diff options
750 files changed, 73401 insertions, 24257 deletions
diff --git a/deliveries/pom.xml b/deliveries/pom.xml index 29ecf6582..e5129d973 100755 --- a/deliveries/pom.xml +++ b/deliveries/pom.xml @@ -3,13 +3,13 @@ <modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.openecomp.vid</groupId>
+ <groupId>org.onap.vid</groupId>
<artifactId>vid-parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>
<packaging>pom</packaging>
- <groupId>org.openecomp.vid</groupId>
+ <groupId>org.onap.vid</groupId>
<artifactId>vid-deliveries</artifactId>
<name>VID Deliveries</name>
@@ -35,7 +35,7 @@ <apiVersion>1.23</apiVersion>
<images>
<image>
- <name>openecomp/vid:${project.version}</name>
+ <name>onap/vid:${project.version}</name>
<build>
<cleanup>remove</cleanup>
<dockerFileDir>docker-files</dockerFileDir>
diff --git a/deliveries/src/main/docker/docker-files/docker-compose.yml b/deliveries/src/main/docker/docker-files/docker-compose.yml index 25a7acfc3..508867a7e 100755 --- a/deliveries/src/main/docker/docker-files/docker-compose.yml +++ b/deliveries/src/main/docker/docker-files/docker-compose.yml @@ -1,7 +1,7 @@ version: '2'
services:
vid-server:
- image: openecomp/vid
+ image: onap/vid
ports:
- "8080:8080"
links:
diff --git a/epsdk-app-onap/pom.xml b/epsdk-app-onap/pom.xml index e07f2ea15..a3c417de6 100755 --- a/epsdk-app-onap/pom.xml +++ b/epsdk-app-onap/pom.xml @@ -6,7 +6,7 @@ <!-- This is the Maven project object model (POM) file for the open-source
SDK web app. This is NOT the Portal - but it is developed and supported by
the Portal team. -->
- <groupId>org.openecomp.vid</groupId>
+ <groupId>org.onap.vid</groupId>
<artifactId>epsdk-app-onap</artifactId>
<version>1.2.1-SNAPSHOT</version>
<packaging>war</packaging>
diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppConfig.java index f713cf110..eb110931e 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppConfig.java @@ -1,249 +1,248 @@ -/*-
- * ================================================================================
- * ECOMP Portal SDK
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-package org.openecomp.portalapp.conf;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.annotation.PostConstruct;
-import javax.sql.DataSource;
-
-//import org.openecomp.portalapp.lm.FusionLicenseManagerImpl;
-import org.openecomp.portalapp.login.LoginStrategyImpl;
-import org.openecomp.portalapp.scheduler.RegistryAdapter;
-import org.openecomp.portalsdk.core.auth.LoginStrategy;
-import org.openecomp.portalsdk.core.conf.AppConfig;
-import org.openecomp.portalsdk.core.conf.Configurable;
-import org.openecomp.portalsdk.core.lm.FusionLicenseManager;
-import org.openecomp.portalsdk.core.lm.FusionLicenseManagerUtils;
-//import org.openecomp.portalsdk.core.lm.LicenseableClassImpl;
-import org.openecomp.portalsdk.core.objectcache.AbstractCacheManager;
-import org.openecomp.portalsdk.core.service.DataAccessService;
-import org.openecomp.portalsdk.core.util.CacheManager;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Import;
-import org.springframework.context.annotation.Profile;
-import org.springframework.context.annotation.PropertySource;
-import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
-import org.springframework.core.io.Resource;
-import org.springframework.jdbc.datasource.init.DataSourceInitializer;
-import org.springframework.jdbc.datasource.init.DatabasePopulator;
-import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
-import org.springframework.scheduling.annotation.EnableAsync;
-import org.springframework.scheduling.annotation.EnableScheduling;
-import org.springframework.scheduling.quartz.SchedulerFactoryBean;
-import org.springframework.web.servlet.ViewResolver;
-import org.springframework.web.servlet.config.annotation.EnableWebMvc;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
-import org.openecomp.portalsdk.core.service.DataAccessService;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-/**
- * ECOMP Portal SDK sample application. ECOMP Portal SDK core AppConfig class to
- * reuse interceptors, view resolvers and other features defined there.
- */
-@Configuration
-@EnableWebMvc
-@ComponentScan(basePackages = "org.openecomp")
-@PropertySource(value = { "${container.classpath:}/WEB-INF/conf/app/test.properties" }, ignoreResourceNotFound = true)
-@Profile("src")
-@EnableAsync
-@EnableScheduling
-public class ExternalAppConfig extends AppConfig implements Configurable {
-
- private RegistryAdapter schedulerRegistryAdapter;
- /** The Constant LOG. */
- private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(ExternalAppConfig.class);
-
- /** The vid schema script. */
- @Value("classpath:vid-schema.sql")
- private Resource vidSchemaScript;
-
- /** The vid data script. */
- @Value("classpath:vid-data.sql")
- private Resource vidDataScript;
-
- /**
- * The Class InnerConfiguration.
- */
- @Configuration
- @Import(SystemProperties.class)
- static class InnerConfiguration {
- }
-
- /**
- * View resolver.
- *
- * @return the view resolver
- * @see org.openecomp.portalsdk.core.conf.AppConfig#viewResolver()
- */
- public ViewResolver viewResolver() {
- return super.viewResolver();
- }
-
- /**
- * @see org.openecomp.portalsdk.core.conf.AppConfig#addResourceHandlers(ResourceHandlerRegistry)
- *
- * @param registry
- */
- public void addResourceHandlers(ResourceHandlerRegistry registry) {
- super.addResourceHandlers(registry);
- }
-
- /**
- * @see org.openecomp.portalsdk.core.conf.AppConfig#dataAccessService()
- */
- public DataAccessService dataAccessService() {
- // Echo the JDBC URL to assist developers when starting the app.
- System.out.println("ExternalAppConfig: " + SystemProperties.DB_CONNECTIONURL + " is "
- + SystemProperties.getProperty(SystemProperties.DB_CONNECTIONURL));
- return super.dataAccessService();
- }
-
- /**
- * Creates a new list with a single entry that is the external app
- * definitions.xml path.
- *
- * @return List of String, size 1
- */
- public List<String> addTileDefinitions() {
- List<String> definitions = new ArrayList<String>();
- definitions.add("/WEB-INF/defs/definitions.xml");
- return definitions;
- }
-
- /**
- * Adds request interceptors to the specified registry by calling
- * {@link AppConfig#addInterceptors(InterceptorRegistry)}, but excludes
- * certain paths from the session timeout interceptor.
- */
- @Override
- public void addInterceptors(InterceptorRegistry registry) {
- super.setExcludeUrlPathsForSessionTimeout("/login_external", "*/login_external.htm", "login", "/login.htm",
- "/api*", "/single_signon.htm", "/single_signon");
- super.addInterceptors(registry);
- }
-
- /**
- * Creates and returns a new instance of a {@link CacheManager} class.
- *
- * @return New instance of {@link CacheManager}
- */
- @Bean
- public AbstractCacheManager cacheManager() {
- return new CacheManager();
- }
-
-
-
-
- /**
- * Creates and returns a new instance of a {@link FusionLicenseManager}.
- *
- * @return New instance of {@link FusionLicenseManager}.
- */
-// @Bean
-// public FusionLicenseManager fusionLicenseManager() {
-// return new FusionLicenseManagerImpl();
-// }
-
- /**
- * Creates and returns a new instance of a
- * {@link FusionLicenseManagerUtils}.
- *
- * @return New instance of {@link FusionLicenseManagerUtils}.
- */
-// @Bean
-// public FusionLicenseManagerUtils fusionLicenseManagerUtils() {
-// return new FusionLicenseManagerUtils();
-// }
-
- /**
- * Creates and returns a new instance of a {@link SchedulerFactoryBean} and
- * populates it with triggers.
- *
- * @return New instance of {@link SchedulerFactoryBean}
- * @throws Exception
- */
- // @Bean // ANNOTATION COMMENTED OUT
- // APPLICATIONS REQUIRING QUARTZ SHOULD RESTORE ANNOTATION
- public SchedulerFactoryBean schedulerFactoryBean() throws Exception {
- SchedulerFactoryBean scheduler = new SchedulerFactoryBean();
- scheduler.setTriggers(schedulerRegistryAdapter.getTriggers());
- scheduler.setConfigLocation(appApplicationContext.getResource("WEB-INF/conf/quartz.properties"));
- scheduler.setDataSource(dataSource());
- return scheduler;
- }
-
- /**
- * Data source initializer.
- *
- * @param dataSource the data source
- * @return the data source initializer
- */
- @Bean
- public DataSourceInitializer dataSourceInitializer(DataSource dataSource) {
-
- LOG.info("Initializing VID data source");
-
- final DataSourceInitializer initializer = new DataSourceInitializer();
- initializer.setDataSource(dataSource);
- initializer.setDatabasePopulator(databasePopulator());
- return initializer;
- }
-
- /**
- * Database populator.
- *
- * @return the database populator
- */
- public DatabasePopulator databasePopulator() {
- LOG.info("Populating VID data source");
-
- final ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
- populator.addScript(vidSchemaScript);
- populator.addScript(vidDataScript);
- return populator;
- }
-
- /**
- * Sets the scheduler registry adapter.
- *
- * @param schedulerRegistryAdapter
- */
- @Autowired
- public void setSchedulerRegistryAdapter(final RegistryAdapter schedulerRegistryAdapter) {
- this.schedulerRegistryAdapter = schedulerRegistryAdapter;
- }
-
- /**
- * Creates the LoginStrategy
- * @return instance of LoginStrategy
- */
- @Bean
- public LoginStrategy loginStrategy() {
-
- return new LoginStrategyImpl();
- }
-}
+/*- + * ================================================================================ + * ECOMP Portal SDK + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ================================================================================ + */ +package org.onap.portalapp.conf; + +import java.util.ArrayList; +import java.util.List; +import javax.annotation.PostConstruct; +import javax.sql.DataSource; + +import org.onap.portalapp.login.LoginStrategyImpl; +import org.onap.portalapp.scheduler.RegistryAdapter; +import org.openecomp.portalsdk.core.auth.LoginStrategy; +import org.openecomp.portalsdk.core.conf.AppConfig; +import org.openecomp.portalsdk.core.conf.Configurable; +import org.openecomp.portalsdk.core.lm.FusionLicenseManager; +import org.openecomp.portalsdk.core.lm.FusionLicenseManagerUtils; +//import org.openecomp.portalsdk.core.lm.LicenseableClassImpl; +import org.openecomp.portalsdk.core.objectcache.AbstractCacheManager; +import org.openecomp.portalsdk.core.service.DataAccessService; +import org.openecomp.portalsdk.core.util.CacheManager; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Import; +import org.springframework.context.annotation.Profile; +import org.springframework.context.annotation.PropertySource; +import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; +import org.springframework.core.io.Resource; +import org.springframework.jdbc.datasource.init.DataSourceInitializer; +import org.springframework.jdbc.datasource.init.DatabasePopulator; +import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator; +import org.springframework.scheduling.annotation.EnableAsync; +import org.springframework.scheduling.annotation.EnableScheduling; +import org.springframework.scheduling.quartz.SchedulerFactoryBean; +import org.springframework.web.servlet.ViewResolver; +import org.springframework.web.servlet.config.annotation.EnableWebMvc; +import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; +import org.openecomp.portalsdk.core.service.DataAccessService; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +/** + * ECOMP Portal SDK sample application. ECOMP Portal SDK core AppConfig class to + * reuse interceptors, view resolvers and other features defined there. + */ +@Configuration +@EnableWebMvc +@ComponentScan(basePackages = "org.openecomp") +@PropertySource(value = { "${container.classpath:}/WEB-INF/conf/app/test.properties" }, ignoreResourceNotFound = true) +@Profile("src") +@EnableAsync +@EnableScheduling +public class ExternalAppConfig extends AppConfig implements Configurable { + + private RegistryAdapter schedulerRegistryAdapter; + /** The Constant LOG. */ + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(ExternalAppConfig.class); + + /** The vid schema script. */ + @Value("classpath:vid-schema.sql") + private Resource vidSchemaScript; + + /** The vid data script. */ + @Value("classpath:vid-data.sql") + private Resource vidDataScript; + + /** + * The Class InnerConfiguration. + */ + @Configuration + @Import(SystemProperties.class) + static class InnerConfiguration { + } + + /** + * View resolver. + * + * @return the view resolver + * @see org.openecomp.portalsdk.core.conf.AppConfig#viewResolver() + */ + public ViewResolver viewResolver() { + return super.viewResolver(); + } + + /** + * @see org.openecomp.portalsdk.core.conf.AppConfig#addResourceHandlers(ResourceHandlerRegistry) + * + * @param registry + */ + public void addResourceHandlers(ResourceHandlerRegistry registry) { + super.addResourceHandlers(registry); + } + + /** + * @see org.openecomp.portalsdk.core.conf.AppConfig#dataAccessService() + */ + public DataAccessService dataAccessService() { + // Echo the JDBC URL to assist developers when starting the app. + System.out.println("ExternalAppConfig: " + SystemProperties.DB_CONNECTIONURL + " is " + + SystemProperties.getProperty(SystemProperties.DB_CONNECTIONURL)); + return super.dataAccessService(); + } + + /** + * Creates a new list with a single entry that is the external app + * definitions.xml path. + * + * @return List of String, size 1 + */ + public List<String> addTileDefinitions() { + List<String> definitions = new ArrayList<String>(); + definitions.add("/WEB-INF/defs/definitions.xml"); + return definitions; + } + + /** + * Adds request interceptors to the specified registry by calling + * {@link AppConfig#addInterceptors(InterceptorRegistry)}, but excludes + * certain paths from the session timeout interceptor. + */ + @Override + public void addInterceptors(InterceptorRegistry registry) { + super.setExcludeUrlPathsForSessionTimeout("/login_external", "*/login_external.htm", "login", "/login.htm", + "/api*", "/single_signon.htm", "/single_signon"); + super.addInterceptors(registry); + } + + /** + * Creates and returns a new instance of a {@link CacheManager} class. + * + * @return New instance of {@link CacheManager} + */ + @Bean + public AbstractCacheManager cacheManager() { + return new CacheManager(); + } + + + + + /** + * Creates and returns a new instance of a {@link FusionLicenseManager}. + * + * @return New instance of {@link FusionLicenseManager}. + */ +// @Bean +// public FusionLicenseManager fusionLicenseManager() { +// return new FusionLicenseManagerImpl(); +// } + + /** + * Creates and returns a new instance of a + * {@link FusionLicenseManagerUtils}. + * + * @return New instance of {@link FusionLicenseManagerUtils}. + */ +// @Bean +// public FusionLicenseManagerUtils fusionLicenseManagerUtils() { +// return new FusionLicenseManagerUtils(); +// } + + /** + * Creates and returns a new instance of a {@link SchedulerFactoryBean} and + * populates it with triggers. + * + * @return New instance of {@link SchedulerFactoryBean} + * @throws Exception + */ + // @Bean // ANNOTATION COMMENTED OUT + // APPLICATIONS REQUIRING QUARTZ SHOULD RESTORE ANNOTATION + public SchedulerFactoryBean schedulerFactoryBean() throws Exception { + SchedulerFactoryBean scheduler = new SchedulerFactoryBean(); + scheduler.setTriggers(schedulerRegistryAdapter.getTriggers()); + scheduler.setConfigLocation(appApplicationContext.getResource("WEB-INF/conf/quartz.properties")); + scheduler.setDataSource(dataSource()); + return scheduler; + } + + /** + * Data source initializer. + * + * @param dataSource the data source + * @return the data source initializer + */ + @Bean + public DataSourceInitializer dataSourceInitializer(DataSource dataSource) { + + LOG.info("Initializing VID data source"); + + final DataSourceInitializer initializer = new DataSourceInitializer(); + initializer.setDataSource(dataSource); + initializer.setDatabasePopulator(databasePopulator()); + return initializer; + } + + /** + * Database populator. + * + * @return the database populator + */ + public DatabasePopulator databasePopulator() { + LOG.info("Populating VID data source"); + + final ResourceDatabasePopulator populator = new ResourceDatabasePopulator(); + populator.addScript(vidSchemaScript); + populator.addScript(vidDataScript); + return populator; + } + + /** + * Sets the scheduler registry adapter. + * + * @param schedulerRegistryAdapter + */ + @Autowired + public void setSchedulerRegistryAdapter(final RegistryAdapter schedulerRegistryAdapter) { + this.schedulerRegistryAdapter = schedulerRegistryAdapter; + } + + /** + * Creates the LoginStrategy + * @return instance of LoginStrategy + */ + @Bean + public LoginStrategy loginStrategy() { + + return new LoginStrategyImpl(); + } +} diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/conf/ExternalAppInitializer.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java index 6e5354a36..347bb51e1 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/conf/ExternalAppInitializer.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java @@ -1,47 +1,47 @@ -/*-
- * ================================================================================
- * ECOMP Portal SDK
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-package org.openecomp.portalapp.conf;
-
-import org.openecomp.portalsdk.core.conf.AppInitializer;
-
-public class ExternalAppInitializer extends AppInitializer {
-
- @Override
- protected Class<?>[] getRootConfigClasses() {
- return super.getRootConfigClasses();
- }
-
- @Override
- protected Class<?>[] getServletConfigClasses() {
- Class<?> appConfigClass = ExternalAppConfig.class;
- // Show something on stdout to indicate the app is starting.
- System.out.println("ExternalAppInitializer: servlet configuration class is " + appConfigClass.getName());
- return new Class[] { appConfigClass };
- }
-
- /*
- * URL request will direct to the Spring dispatcher for processing
- */
- @Override
- protected String[] getServletMappings() {
- return super.getServletMappings();
- }
-
-}
+/*- + * ================================================================================ + * ECOMP Portal SDK + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ================================================================================ + */ +package org.onap.portalapp.conf; + +import org.openecomp.portalsdk.core.conf.AppInitializer; + +public class ExternalAppInitializer extends AppInitializer { + + @Override + protected Class<?>[] getRootConfigClasses() { + return super.getRootConfigClasses(); + } + + @Override + protected Class<?>[] getServletConfigClasses() { + Class<?> appConfigClass = ExternalAppConfig.class; + // Show something on stdout to indicate the app is starting. + System.out.println("ExternalAppInitializer: servlet configuration class is " + appConfigClass.getName()); + return new Class[] { appConfigClass }; + } + + /* + * URL request will direct to the Spring dispatcher for processing + */ + @Override + protected String[] getServletMappings() { + return super.getServletMappings(); + } + +} diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/conf/HibernateMappingLocations.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/HibernateMappingLocations.java index bc751f750..e0e09d6a9 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/conf/HibernateMappingLocations.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/HibernateMappingLocations.java @@ -1,57 +1,57 @@ -/*-
- * ================================================================================
- * ECOMP Portal SDK
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-package org.openecomp.portalapp.conf;
-
-import org.springframework.context.annotation.Profile;
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.core.io.Resource;
-import org.springframework.stereotype.Component;
-
-import org.openecomp.portalsdk.core.conf.HibernateMappingLocatable;
-
-@Component
-@Profile("src")
-public class HibernateMappingLocations implements HibernateMappingLocatable {
-
- /*
- * (non-Javadoc)
- *
- * @see org.openecomp.portalsdk.core.conf.HibernateMappingLocatable#
- * getMappingLocations()
- */
- @Override
- public Resource[] getMappingLocations() {
- return new Resource[] { new ClassPathResource("../fusion/orm/Fusion.hbm.xml"),
- new ClassPathResource("../fusion/orm/Workflow.hbm.xml"),
- new ClassPathResource("../fusion/orm/RNoteBookIntegration.hbm.xml") };
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.openecomp.portalsdk.core.conf.HibernateMappingLocatable#
- * getPackagesToScan()
- */
- @Override
- public String[] getPackagesToScan() {
- return new String[] { "org.openecomp" };
- }
-
-}
+/*- + * ================================================================================ + * ECOMP Portal SDK + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ================================================================================ + */ +package org.onap.portalapp.conf; + +import org.springframework.context.annotation.Profile; +import org.springframework.core.io.ClassPathResource; +import org.springframework.core.io.Resource; +import org.springframework.stereotype.Component; + +import org.openecomp.portalsdk.core.conf.HibernateMappingLocatable; + +@Component +@Profile("src") +public class HibernateMappingLocations implements HibernateMappingLocatable { + + /* + * (non-Javadoc) + * + * @see org.openecomp.portalsdk.core.conf.HibernateMappingLocatable# + * getMappingLocations() + */ + @Override + public Resource[] getMappingLocations() { + return new Resource[] { new ClassPathResource("../fusion/orm/Fusion.hbm.xml"), + new ClassPathResource("../fusion/orm/Workflow.hbm.xml"), + new ClassPathResource("../fusion/orm/RNoteBookIntegration.hbm.xml") }; + } + + /* + * (non-Javadoc) + * + * @see org.openecomp.portalsdk.core.conf.HibernateMappingLocatable# + * getPackagesToScan() + */ + @Override + public String[] getPackagesToScan() { + return new String[] { "org.openecomp" }; + } + +} diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/lm/FusionLicenseManagerImpl.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/lm/FusionLicenseManagerImpl.java index e6a393668..75569d4c5 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/lm/FusionLicenseManagerImpl.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/lm/FusionLicenseManagerImpl.java @@ -1,70 +1,70 @@ -package org.openecomp.portalapp.lm;
-
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-
-import javax.servlet.ServletContext;
-
-import org.openecomp.portalsdk.core.lm.FusionLicenseManager;
-import org.springframework.stereotype.Component;
-
-/*
- * Please note that this class is not being used; its a dummy stub to have a qualifying bean for the interface.
- */
-
-@Component
-public class FusionLicenseManagerImpl implements FusionLicenseManager {
-
- @Override
- public void initKeyStoreParam() {
-
- }
-
- @Override
- public void initCipherParam() {
-
- }
-
- @Override
- public void initLicenseParam() {
-
- }
-
- @Override
- public void doInitWork() {
-
- }
-
- @Override
- public int installLicense() {
- return 0;
- }
-
- @Override
- public synchronized int verifyLicense(ServletContext context) {
- return 0;
- }
-
- @Override
- public void generateLicense(Map<String, String> clientInfoMap, List<String> ipAddressList) throws Exception {
-
- }
-
- @Override
- public String nvl(String s) {
- return null;
- }
-
- @Override
- public Date getExpiredDate() {
- return null;
- }
-
- @Override
- public void setExpiredDate(Date expiredDate) {
-
- }
-
-
-}
+package org.onap.portalapp.lm; + +import java.util.Date; +import java.util.List; +import java.util.Map; + +import javax.servlet.ServletContext; + +import org.openecomp.portalsdk.core.lm.FusionLicenseManager; +import org.springframework.stereotype.Component; + +/* + * Please note that this class is not being used; its a dummy stub to have a qualifying bean for the interface. + */ + +@Component +public class FusionLicenseManagerImpl implements FusionLicenseManager { + + @Override + public void initKeyStoreParam() { + + } + + @Override + public void initCipherParam() { + + } + + @Override + public void initLicenseParam() { + + } + + @Override + public void doInitWork() { + + } + + @Override + public int installLicense() { + return 0; + } + + @Override + public synchronized int verifyLicense(ServletContext context) { + return 0; + } + + @Override + public void generateLicense(Map<String, String> clientInfoMap, List<String> ipAddressList) throws Exception { + + } + + @Override + public String nvl(String s) { + return null; + } + + @Override + public Date getExpiredDate() { + return null; + } + + @Override + public void setExpiredDate(Date expiredDate) { + + } + + +} diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/lm/LicenseableClassImpl.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/lm/LicenseableClassImpl.java index d688987ff..856d8e0ed 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/lm/LicenseableClassImpl.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/lm/LicenseableClassImpl.java @@ -1,62 +1,62 @@ -/*-
- * ================================================================================
- * eCOMP Portal SDK
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-package org.openecomp.portalapp.lm;
-
-import java.io.FileNotFoundException;
-import java.io.InputStream;
-
-import org.openecomp.portalsdk.core.lm.LicenseableClass;
-
-/*
- * Please note that this class is not being used; its a dummy stub to have a qualifying bean for the interface.
- */
-
-public class LicenseableClassImpl implements LicenseableClass {
-
- public String getApplicationName() {
- return "";
- }
-
- public InputStream getPublicKeystoreAsInputStream() throws FileNotFoundException {
- return null;
- }
-
- public String getAlias() {
- return "";
- }
-
- public String getKeyPasswd() {
- return "";
- }
-
- public String getPublicKeystorePassword() {
- return "";
- }
-
- public String getCipherParamPassword() {
- return "";
- }
-
- @SuppressWarnings("rawtypes")
- public Class getClassToLicense() {
- return this.getClass();
- }
-}
-
+/*- + * ================================================================================ + * eCOMP Portal SDK + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ================================================================================ + */ +package org.onap.portalapp.lm; + +import java.io.FileNotFoundException; +import java.io.InputStream; + +import org.openecomp.portalsdk.core.lm.LicenseableClass; + +/* + * Please note that this class is not being used; its a dummy stub to have a qualifying bean for the interface. + */ + +public class LicenseableClassImpl implements LicenseableClass { + + public String getApplicationName() { + return ""; + } + + public InputStream getPublicKeystoreAsInputStream() throws FileNotFoundException { + return null; + } + + public String getAlias() { + return ""; + } + + public String getKeyPasswd() { + return ""; + } + + public String getPublicKeystorePassword() { + return ""; + } + + public String getCipherParamPassword() { + return ""; + } + + @SuppressWarnings("rawtypes") + public Class getClassToLicense() { + return this.getClass(); + } +} + diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/login/LoginStrategyImpl.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/login/LoginStrategyImpl.java index e004c241b..b04202290 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/login/LoginStrategyImpl.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/login/LoginStrategyImpl.java @@ -1,69 +1,69 @@ -package org.openecomp.portalapp.login;
-
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.openecomp.portalsdk.core.auth.LoginStrategy;
-import org.openecomp.portalsdk.core.onboarding.exception.PortalAPIException;
-import org.openecomp.portalsdk.core.onboarding.util.CipherUtil;
-import org.openecomp.portalsdk.core.onboarding.util.PortalApiConstants;
-import org.openecomp.portalsdk.core.onboarding.util.PortalApiProperties;
-import org.springframework.web.servlet.ModelAndView;
-
-public class LoginStrategyImpl extends LoginStrategy {
-
- @Override
- public ModelAndView doLogin(HttpServletRequest request, HttpServletResponse response) throws Exception {
- //'login' for opensource is same as 'external' login.
- return doExternalLogin(request, response);
- }
-
- @Override
- public String getUserId(HttpServletRequest request) throws PortalAPIException {
- // Check ECOMP Portal cookie
- if (!isLoginCookieExist(request))
- return null;
-
- String userid = null;
- try {
- userid = getUserIdFromCookie(request);
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return userid;
- }
-
- private static String getUserIdFromCookie(HttpServletRequest request) throws Exception {
- String userId = "";
- Cookie[] cookies = request.getCookies();
- Cookie userIdcookie = null;
- if (cookies != null)
- for (Cookie cookie : cookies)
- if (cookie.getName().equals(USER_ID))
- userIdcookie = cookie;
- if(userIdcookie!=null){
- userId = CipherUtil.decrypt(userIdcookie.getValue());
- }
- return userId;
-
- }
-
- private static boolean isLoginCookieExist(HttpServletRequest request) {
- Cookie ep = getCookie(request, EP_SERVICE);
- return (ep != null);
- }
-
- private static Cookie getCookie(HttpServletRequest request, String cookieName) {
- Cookie[] cookies = request.getCookies();
- if (cookies != null)
- for (Cookie cookie : cookies)
- if (cookie.getName().equals(cookieName))
- return cookie;
-
- return null;
- }
-
-
-}
+package org.onap.portalapp.login; + +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.openecomp.portalsdk.core.auth.LoginStrategy; +import org.openecomp.portalsdk.core.onboarding.exception.PortalAPIException; +import org.openecomp.portalsdk.core.onboarding.util.CipherUtil; +import org.openecomp.portalsdk.core.onboarding.util.PortalApiConstants; +import org.openecomp.portalsdk.core.onboarding.util.PortalApiProperties; +import org.springframework.web.servlet.ModelAndView; + +public class LoginStrategyImpl extends LoginStrategy { + + @Override + public ModelAndView doLogin(HttpServletRequest request, HttpServletResponse response) throws Exception { + //'login' for opensource is same as 'external' login. + return doExternalLogin(request, response); + } + + @Override + public String getUserId(HttpServletRequest request) throws PortalAPIException { + // Check ECOMP Portal cookie + if (!isLoginCookieExist(request)) + return null; + + String userid = null; + try { + userid = getUserIdFromCookie(request); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return userid; + } + + private static String getUserIdFromCookie(HttpServletRequest request) throws Exception { + String userId = ""; + Cookie[] cookies = request.getCookies(); + Cookie userIdcookie = null; + if (cookies != null) + for (Cookie cookie : cookies) + if (cookie.getName().equals(USER_ID)) + userIdcookie = cookie; + if(userIdcookie!=null){ + userId = CipherUtil.decrypt(userIdcookie.getValue()); + } + return userId; + + } + + private static boolean isLoginCookieExist(HttpServletRequest request) { + Cookie ep = getCookie(request, EP_SERVICE); + return (ep != null); + } + + private static Cookie getCookie(HttpServletRequest request, String cookieName) { + Cookie[] cookies = request.getCookies(); + if (cookies != null) + for (Cookie cookie : cookies) + if (cookie.getName().equals(cookieName)) + return cookie; + + return null; + } + + +} diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/scheduler/Register.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/scheduler/Register.java index acf934dd7..165f3318d 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/scheduler/Register.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/scheduler/Register.java @@ -1,71 +1,72 @@ -/*-
- * ================================================================================
- * ECOMP Portal SDK
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-package org.openecomp.portalapp.scheduler;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.scheduler.Registerable;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.quartz.Trigger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.annotation.DependsOn;
-import org.springframework.stereotype.Component;
-
-@Component
-@DependsOn({ "logRegistry", "systemProperties" })
-public class Register implements Registerable {
-
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(Register.class);
-
- private List<Trigger> scheduleTriggers = new ArrayList<Trigger>();
- Trigger trigger[] = new Trigger[1];
-
- @Autowired
- private LogRegistry logRegistry;
-
- @Override
- public Trigger[] getTriggers() {
- return getScheduleTriggers().toArray(trigger);
- }
-
- @Override
- public void registerTriggers() {
- // if the property value is not available; the cron will not be added
- // and can be ignored. its safe to ignore the exceptions
- try {
- if (SystemProperties.getProperty(SystemProperties.LOG_CRON) != null)
- getScheduleTriggers().add(logRegistry.getTrigger());
- } catch (IllegalStateException ies) {
- logger.info(EELFLoggerDelegate.debugLogger, ("Log Cron not available"));
- }
-
- }
-
- public List<Trigger> getScheduleTriggers() {
- return scheduleTriggers;
- }
-
- public void setScheduleTriggers(List<Trigger> scheduleTriggers) {
- this.scheduleTriggers = scheduleTriggers;
- }
-
-}
+/*- + * ================================================================================ + * ECOMP Portal SDK + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ================================================================================ + */ +package org.onap.portalapp.scheduler; + +import java.util.ArrayList; +import java.util.List; + +import org.openecomp.portalapp.scheduler.LogRegistry; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.scheduler.Registerable; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.quartz.Trigger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.DependsOn; +import org.springframework.stereotype.Component; + +@Component +@DependsOn({ "logRegistry", "systemProperties" }) +public class Register implements Registerable { + + EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(Register.class); + + private List<Trigger> scheduleTriggers = new ArrayList<Trigger>(); + Trigger trigger[] = new Trigger[1]; + + @Autowired + private LogRegistry logRegistry; + + @Override + public Trigger[] getTriggers() { + return getScheduleTriggers().toArray(trigger); + } + + @Override + public void registerTriggers() { + // if the property value is not available; the cron will not be added + // and can be ignored. its safe to ignore the exceptions + try { + if (SystemProperties.getProperty(SystemProperties.LOG_CRON) != null) + getScheduleTriggers().add(logRegistry.getTrigger()); + } catch (IllegalStateException ies) { + logger.info(EELFLoggerDelegate.debugLogger, ("Log Cron not available")); + } + + } + + public List<Trigger> getScheduleTriggers() { + return scheduleTriggers; + } + + public void setScheduleTriggers(List<Trigger> scheduleTriggers) { + this.scheduleTriggers = scheduleTriggers; + } + +} diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/scheduler/RegistryAdapter.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/scheduler/RegistryAdapter.java index 902c545d3..2cb5d89fe 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/scheduler/RegistryAdapter.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/scheduler/RegistryAdapter.java @@ -1,92 +1,92 @@ -/*-
- * ================================================================================
- * ECOMP Portal SDK
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-package org.openecomp.portalapp.scheduler;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import org.openecomp.portalsdk.core.scheduler.Registerable;
-import org.openecomp.portalsdk.workflow.services.WorkflowScheduleService;
-import org.quartz.Trigger;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.scheduling.quartz.SchedulerFactoryBean;
-import org.springframework.stereotype.Component;
-
-@Component
-public class RegistryAdapter {
-
- @Autowired
- private Registerable registry;
-
- @Autowired
- private WorkflowScheduleService workflowScheduleService;
-
- private SchedulerFactoryBean schedulerBean;
-
- Trigger trigger[] = new Trigger[1];
-
- public Trigger[] getTriggers() {
-
- registry.registerTriggers();
-
- List<Trigger> allTriggers = new ArrayList<Trigger>();
-
- List<Trigger> coreTriggers = addCoreTriggers();
- final Trigger[] extTriggerArray = registry.getTriggers();
-
- allTriggers.addAll(Arrays.asList(extTriggerArray));
- allTriggers.addAll(coreTriggers);
-
- return allTriggers.toArray(trigger);
- }
-
- public List<Trigger> addCoreTriggers() {
- // On startup of the application after crash recovery, invoke workflow
- // schedule trigger
- List<Trigger> triggers = getWorkflowScheduleService().triggerWorkflowScheduling();
- return triggers;
- }
-
- public void setSchedulerBean(SchedulerFactoryBean _schedulerBean) {
- schedulerBean = _schedulerBean;
- }
-
- public SchedulerFactoryBean getSchedulerBean() {
- return schedulerBean;
- }
-
- public Registerable getRegistry() {
- return registry;
- }
-
- public void setRegistry(Registerable registry) {
- this.registry = registry;
- }
-
- public WorkflowScheduleService getWorkflowScheduleService() {
- return workflowScheduleService;
- }
-
- public void setWorkflowScheduleService(WorkflowScheduleService workflowScheduleService) {
- this.workflowScheduleService = workflowScheduleService;
- }
-
-}
+/*- + * ================================================================================ + * ECOMP Portal SDK + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ================================================================================ + */ +package org.onap.portalapp.scheduler; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import org.openecomp.portalsdk.core.scheduler.Registerable; +import org.openecomp.portalsdk.workflow.services.WorkflowScheduleService; +import org.quartz.Trigger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.scheduling.quartz.SchedulerFactoryBean; +import org.springframework.stereotype.Component; + +@Component +public class RegistryAdapter { + + @Autowired + private Registerable registry; + + @Autowired + private WorkflowScheduleService workflowScheduleService; + + private SchedulerFactoryBean schedulerBean; + + Trigger trigger[] = new Trigger[1]; + + public Trigger[] getTriggers() { + + registry.registerTriggers(); + + List<Trigger> allTriggers = new ArrayList<Trigger>(); + + List<Trigger> coreTriggers = addCoreTriggers(); + final Trigger[] extTriggerArray = registry.getTriggers(); + + allTriggers.addAll(Arrays.asList(extTriggerArray)); + allTriggers.addAll(coreTriggers); + + return allTriggers.toArray(trigger); + } + + public List<Trigger> addCoreTriggers() { + // On startup of the application after crash recovery, invoke workflow + // schedule trigger + List<Trigger> triggers = getWorkflowScheduleService().triggerWorkflowScheduling(); + return triggers; + } + + public void setSchedulerBean(SchedulerFactoryBean _schedulerBean) { + schedulerBean = _schedulerBean; + } + + public SchedulerFactoryBean getSchedulerBean() { + return schedulerBean; + } + + public Registerable getRegistry() { + return registry; + } + + public void setRegistry(Registerable registry) { + this.registry = registry; + } + + public WorkflowScheduleService getWorkflowScheduleService() { + return workflowScheduleService; + } + + public void setWorkflowScheduleService(WorkflowScheduleService workflowScheduleService) { + this.workflowScheduleService = workflowScheduleService; + } + +} diff --git a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/service/AdminAuthExtension.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/service/AdminAuthExtension.java index 4145aa3d3..e3dbdf82d 100755..100644 --- a/epsdk-app-onap/src/main/java/org/openecomp/portalapp/service/AdminAuthExtension.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/service/AdminAuthExtension.java @@ -1,64 +1,65 @@ -/*-
- * ================================================================================
- * ECOMP Portal SDK
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-package org.openecomp.portalapp.service;
-
-import java.util.Set;
-
-import org.openecomp.portalsdk.core.domain.Role;
-import org.openecomp.portalsdk.core.domain.User;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
-
-@Service("adminAuthExtension")
-@Transactional
-/**
- * Provides empty implementations of the methods in IAdminAuthExtension.
- */
-public class AdminAuthExtension implements IAdminAuthExtension {
-
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(AdminAuthExtension.class);
-
- /*
- * (non-Javadoc)
- * @see org.openecomp.portalapp.service.IAdminAuthExtension#saveUserExtension(org.openecomp.portalsdk.core.domain.User)
- */
- public void saveUserExtension(User user) {
- logger.debug("saveUserExtension");
- }
-
- /*
- * (non-Javadoc)
- * @see org.openecomp.portalapp.service.IAdminAuthExtension#editUserExtension(org.openecomp.portalsdk.core.domain.User)
- */
- public void editUserExtension(User user) {
- logger.debug("editUserExtension");
- }
-
- /*
- * (non-Javadoc)
- * @see org.openecomp.portalapp.service.IAdminAuthExtension#saveUserRoleExtension(java.util.Set, org.openecomp.portalsdk.core.domain.User)
- */
- public void saveUserRoleExtension(Set<Role> roles, User user) {
- logger.debug("saveUserRoleExtension");
- }
-
-}
+/*- + * ================================================================================ + * ECOMP Portal SDK + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ================================================================================ + */ +package org.onap.portalapp.service; + +import java.util.Set; + +import org.openecomp.portalapp.service.IAdminAuthExtension; +import org.openecomp.portalsdk.core.domain.Role; +import org.openecomp.portalsdk.core.domain.User; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + + +@Service("adminAuthExtension") +@Transactional +/** + * Provides empty implementations of the methods in IAdminAuthExtension. + */ +public class AdminAuthExtension implements IAdminAuthExtension { + + EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(AdminAuthExtension.class); + + /* + * (non-Javadoc) + * @see org.openecomp.portalapp.service.IAdminAuthExtension#saveUserExtension(org.openecomp.portalsdk.core.domain.User) + */ + public void saveUserExtension(User user) { + logger.debug("saveUserExtension"); + } + + /* + * (non-Javadoc) + * @see org.openecomp.portalapp.service.IAdminAuthExtension#editUserExtension(org.openecomp.portalsdk.core.domain.User) + */ + public void editUserExtension(User user) { + logger.debug("editUserExtension"); + } + + /* + * (non-Javadoc) + * @see org.openecomp.portalapp.service.IAdminAuthExtension#saveUserRoleExtension(java.util.Set, org.openecomp.portalsdk.core.domain.User) + */ + public void saveUserRoleExtension(Set<Role> roles, User user) { + logger.debug("saveUserRoleExtension"); + } + +} diff --git a/epsdk-app-onap/src/main/resources/portal.properties b/epsdk-app-onap/src/main/resources/portal.properties index 824fd730e..405821119 100755 --- a/epsdk-app-onap/src/main/resources/portal.properties +++ b/epsdk-app-onap/src/main/resources/portal.properties @@ -30,7 +30,7 @@ use_rest_for_functional_menu=true ##########################################################################
# Name of java class that implements the OnBoardingApiService interface.
-portal.api.impl.class = org.openecomp.portalapp.service.OnBoardingApiServiceImpl
+portal.api.impl.class = org.onap.portalapp.service.OnBoardingApiServiceImpl
# Log On for single sign on
ecomp_redirect_url = http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm
diff --git a/epsdk-app-onap/src/main/resources/portal_template.properties b/epsdk-app-onap/src/main/resources/portal_template.properties index ed6940148..d01413aa1 100755 --- a/epsdk-app-onap/src/main/resources/portal_template.properties +++ b/epsdk-app-onap/src/main/resources/portal_template.properties @@ -1,6 +1,6 @@ # Properties read by ECOMP Framework library, ecompFW.jar
-portal.api.impl.class = org.openecomp.portalapp.service.OnBoardingApiServiceImpl
+portal.api.impl.class = org.onap.portalapp.service.OnBoardingApiServiceImpl
portal.api.prefix = /api
max.idle.time = 5
user.attribute.name = user_attribute
diff --git a/epsdk-app-onap/src/main/resources/vid-data.sql b/epsdk-app-onap/src/main/resources/vid-data.sql index 497ca2028..8f0eabee2 100755 --- a/epsdk-app-onap/src/main/resources/vid-data.sql +++ b/epsdk-app-onap/src/main/resources/vid-data.sql @@ -28,8 +28,11 @@ DELETE FROM `fn_tab`; DELETE FROM `fn_function`;
DELETE FROM `fn_lu_alert_method`;
DELETE FROM `fn_lu_activity`;
+DELETE FROM `fn_lu_call_times`;
+DELETE FROM `fn_lu_country`;
DELETE FROM `fn_lu_menu_set`;
DELETE FROM `fn_lu_priority`;
+DELETE FROM `fn_lu_state`;
DELETE FROM `fn_lu_tab_set`;
--
@@ -44,6 +47,31 @@ REPLACE INTO `cr_raptor_action_img` VALUES ('DELETE','/static/fusion/raptor/img/ INSERT IGNORE INTO `fn_app` VALUES (1,'Default',null,'Some Default Description','Some Default Note',null,null,null,'ECPP','?',1,'okYTaDrhzibcbGVq5mjkVQ==','N','N',null,'Default',null,null,'ECOMP-PORTAL-INBOX');
+--
+-- Dumping data for table `vid_workflow`
+--
+INSERT INTO `vid_workflow` (`WORKFLOW_DB_ID`, `WORKFLOW_APP_NAME`) VALUES (1, 'Update') ON DUPLICATE KEY UPDATE WORKFLOW_APP_NAME='Update';
+INSERT INTO `vid_workflow` (`WORKFLOW_DB_ID`, `WORKFLOW_APP_NAME`) VALUES (2, 'Replace') ON DUPLICATE KEY UPDATE WORKFLOW_APP_NAME='Replace';
+INSERT INTO `vid_workflow` (`WORKFLOW_DB_ID`, `WORKFLOW_APP_NAME`) VALUES (3, 'VNF In Place Software Update') ON DUPLICATE KEY UPDATE WORKFLOW_APP_NAME='VNF In Place Software Update';
+
+
+--
+-- Dumping data for table `vid_category_parameter`
+--
+INSERT INTO `vid_category_parameter` (`CATEGORY_ID`, `NAME`, `ID_SUPPORTED`, `FAMILY`,`CREATED_DATE`, `MODIFIED_DATE`) VALUES (1, 'platform', 0, 'PARAMETER_STANDARDIZATION','2017-09-12 17:01:13', '2017-09-12 17:01:13') ON DUPLICATE KEY UPDATE NAME='platform';
+INSERT INTO `vid_category_parameter` (`CATEGORY_ID`, `NAME`, `ID_SUPPORTED`, `FAMILY`,`CREATED_DATE`, `MODIFIED_DATE`) VALUES (2, 'project', 0, 'PARAMETER_STANDARDIZATION','2017-09-12 18:23:54', '2017-09-13 15:05:25') ON DUPLICATE KEY UPDATE NAME='project';
+INSERT INTO `vid_category_parameter` (`CATEGORY_ID`, `NAME`, `ID_SUPPORTED`, `FAMILY`,`CREATED_DATE`, `MODIFIED_DATE`) VALUES (3, 'lineOfBusiness', 0,'PARAMETER_STANDARDIZATION', '2017-09-12 18:24:14', '2017-09-12 18:24:15') ON DUPLICATE KEY UPDATE NAME='lineOfBusiness';
+INSERT INTO `vid_category_parameter` (`CATEGORY_ID`, `NAME`, `ID_SUPPORTED`, `FAMILY`,`CREATED_DATE`, `MODIFIED_DATE`) VALUES (4, 'owningEntity', 1, 'PARAMETER_STANDARDIZATION', '2017-09-12 18:24:26', '2017-09-12 18:24:28') ON DUPLICATE KEY UPDATE NAME='owningEntity';
+INSERT INTO `vid_category_parameter` (`CATEGORY_ID`, `NAME`, `ID_SUPPORTED`, `FAMILY`,`CREATED_DATE`, `MODIFIED_DATE`) VALUES (5,'operational-environment-type', 0,'TENANT_ISOLATION', '2017-11-12 18:24:26', '2017-11-12 18:24:28') ON DUPLICATE KEY UPDATE NAME='operational-environment-type';
+INSERT INTO `vid_category_parameter` (`CATEGORY_ID`, `NAME`, `ID_SUPPORTED`, `FAMILY`,`CREATED_DATE`, `MODIFIED_DATE`) VALUES (6,'workload-context', 0, 'TENANT_ISOLATION','2017-11-12 18:24:26', '2017-11-12 18:24:28') ON DUPLICATE KEY UPDATE NAME='workload-context';
+
+--
+-- Dumping data for table `vid_category_parameter_option`
+--
+INSERT INTO `vid_category_parameter_option` (`CATEGORY_OPT_APP_ID`, `NAME`, `CATEGORY_ID`) VALUES ('ECOMP', 'ECOMP', '6') ON DUPLICATE KEY UPDATE NAME='ECOMP';
+INSERT INTO `vid_category_parameter_option` (`CATEGORY_OPT_APP_ID`, `NAME`, `CATEGORY_ID`) VALUES ('DEV', 'DEV', '6') ON DUPLICATE KEY UPDATE NAME='DEV';
+INSERT INTO `vid_category_parameter_option` (`CATEGORY_OPT_APP_ID`, `NAME`, `CATEGORY_ID`) VALUES ('TEST', 'TEST', '6') ON DUPLICATE KEY UPDATE NAME='TEST';
+INSERT INTO `vid_category_parameter_option` (`CATEGORY_OPT_APP_ID`, `NAME`, `CATEGORY_ID`) VALUES ('VNF', 'VNF', '5') ON DUPLICATE KEY UPDATE NAME='VNF';
--
-- Dumping data for table `fn_function`
@@ -84,6 +112,8 @@ INSERT INTO `fn_function` VALUES ('menu_test','Test Menu') ON DUPLICATE KEY UPDA INSERT INTO `fn_function` VALUES ('menu_viewlog','Log Menu') ON DUPLICATE KEY UPDATE FUNCTION_NAME='Log Menu';
INSERT INTO `fn_function` VALUES ('view_reports','View Raptor reports') ON DUPLICATE KEY UPDATE FUNCTION_NAME='View Raptor reports';
INSERT INTO `fn_function` VALUES ('menu_searchexisting', 'Search for Existing Service Instances') ON DUPLICATE KEY UPDATE FUNCTION_NAME='Search for Existing Service Instances';
+INSERT INTO `fn_function` VALUES ('menu_changemanagement','VNF Changes') ON DUPLICATE KEY UPDATE FUNCTION_NAME='VNF Changes';
+INSERT INTO `fn_function` VALUES ('menu_testenvironment','Test Environments') ON DUPLICATE KEY UPDATE FUNCTION_NAME='Test Environments';
--
-- Dumping data for table `fn_lu_activity`
@@ -111,6 +141,303 @@ REPLACE INTO `fn_lu_alert_method` VALUES ('PHONE','Phone'); REPLACE INTO `fn_lu_alert_method` VALUES ('SMS','SMS');
--
+-- Dumping data for table `fn_lu_call_times`
+--
+REPLACE INTO `fn_lu_call_times` VALUES (1,20,'20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (2,40,'40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (3,60,'1 hr');
+REPLACE INTO `fn_lu_call_times` VALUES (4,80,'1 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (5,100,'1 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (6,120,'2 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (7,140,'2 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (8,160,'2 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (9,180,'3 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (10,200,'3 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (11,220,'3 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (12,240,'4 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (13,260,'4 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (14,280,'4 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (15,300,'5 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (16,320,'5 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (17,340,'5 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (18,360,'6 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (19,380,'6 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (20,400,'6 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (21,420,'7 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (22,440,'7 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (23,460,'7 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (24,480,'8 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (25,500,'8 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (26,520,'8 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (27,540,'9 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (28,560,'9 hr 20 min');
+REPLACE INTO `fn_lu_call_times` VALUES (29,580,'9 hr 40 min');
+REPLACE INTO `fn_lu_call_times` VALUES (30,600,'10 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (31,10,'10 min');
+REPLACE INTO `fn_lu_call_times` VALUES (32,5,'5 min');
+REPLACE INTO `fn_lu_call_times` VALUES (33,1200,'20 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (34,1800,'30 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (35,2400,'40 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (36,3000,'50 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (37,4200,'70 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (38,4800,'80 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (39,5400,'90 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (40,6000,'100 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (41,7200,'120 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (42,9600,'160 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (43,10800,'180 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (44,12000,'200 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (45,18000,'300 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (46,24000,'400 hrs');
+REPLACE INTO `fn_lu_call_times` VALUES (47,30000,'500 hrs');
+
+--
+-- Dumping data for table `fn_lu_country`
+--
+REPLACE INTO `fn_lu_country` VALUES ('AD','Andorra','Andorra',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AE','United Arab Emirates','United Arab Emirates',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AF','Afghanistan','Afghanistan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AG','Antigua and Barbuda','Antigua and Barbuda',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AI','Anguilla','Anguilla',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AL','Albania','Albania',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AM','Armenia','Armenia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AN','Netherlands Antilles','Netherlands Antilles',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AO','Angola','Angola',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AQ','Antarctica','Antarctica',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AR','Argentina','Argentina',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AS','American Samoa','American Samoa',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AT','Austria','Austria',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AU','Australia','Australia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AW','Aruba','Aruba',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('AZ','Azerbaidjan','Azerbaidjan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BA','Bosnia-Herzegovina','Bosnia-Herzegovina',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BB','Barbados','Barbados',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BD','Bangladesh','Bangladesh',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BE','Belgium','Belgium',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BF','Burkina Faso','Burkina Faso',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BG','Bulgaria','Bulgaria',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BH','Bahrain','Bahrain',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BI','Burundi','Burundi',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BJ','Benin','Benin',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BM','Bermuda','Bermuda',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BN','Brunei Darussalam','Brunei Darussalam',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BO','Bolivia','Bolivia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BR','Brazil','Brazil',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BS','Bahamas','Bahamas',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BT','Bhutan','Bhutan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BV','Bouvet Island','Bouvet Island',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BW','Botswana','Botswana',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BY','Belarus','Belarus',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('BZ','Belize','Belize',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CA','Canada','Canada',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CC','Cocos (Keeling) Islands','Cocos (Keeling) Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CF','Central African Republic','Central African Republic',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CG','Congo','Congo',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CH','Switzerland','Switzerland',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CI','Ivory Coast (Cote D\'Ivoire)','Ivory Coast (Cote D\'Ivoire)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CK','Cook Islands','Cook Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CL','Chile','Chile',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CM','Cameroon','Cameroon',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CN','China','China','China');
+REPLACE INTO `fn_lu_country` VALUES ('CO','Colombia','Colombia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CR','Costa Rica','Costa Rica',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CS','Former Czechoslovakia','Former Czechoslovakia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CU','Cuba','Cuba',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CV','Cape Verde','Cape Verde',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CX','Christmas Island','Christmas Island',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CY','Cyprus','Cyprus',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('CZ','Czech Republic','Czech Republic',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('DE','Germany','Germany',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('DJ','Djibouti','Djibouti',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('DK','Denmark','Denmark',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('DM','Dominica','Dominica',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('DO','Dominican Republic','Dominican Republic',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('DZ','Algeria','Algeria',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('EC','Ecuador','Ecuador',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('EE','Estonia','Estonia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('EG','Egypt','Egypt',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('EH','Western Sahara','Western Sahara',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ER','Eritrea','Eritrea',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ES','Spain','Spain',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ET','Ethiopia','Ethiopia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('FI','Finland','Finland',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('FJ','Fiji','Fiji',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('FK','Falkland Islands','Falkland Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('FM','Micronesia','Micronesia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('FO','Faroe Islands','Faroe Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('FR','France','France',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('FX','France (European Territory)','France (European Territory)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GA','Gabon','Gabon',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GB','Great Britain','Great Britain',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GD','Grenada','Grenada',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GE','Georgia','Georgia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GF','French Guyana','French Guyana',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GH','Ghana','Ghana',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GI','Gibraltar','Gibraltar',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GL','Greenland','Greenland',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GM','Gambia','Gambia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GN','Guinea','Guinea',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GP','Guadeloupe (French)','Guadeloupe (French)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GQ','Equatorial Guinea','Equatorial Guinea',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GR','Greece','Greece',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GS','S. Georgia and S. Sandwich Isls.','S. Georgia and S. Sandwich Isls.',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GT','Guatemala','Guatemala',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GU','Guam (USA)','Guam (USA)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GW','Guinea Bissau','Guinea Bissau',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('GY','Guyana','Guyana',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('HK','Hong Kong','Hong Kong',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('HM','Heard and McDonald Islands','Heard and McDonald Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('HN','Honduras','Honduras',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('HR','Croatia','Croatia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('HT','Haiti','Haiti',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('HU','Hungary','Hungary',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ID','Indonesia','Indonesia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('IE','Ireland','Ireland',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('IL','Israel','Israel',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('IN','India','India',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('IO','British Indian Ocean Territory','British Indian Ocean Territory',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('IQ','Iraq','Iraq',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('IR','Iran','Iran',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('IS','Iceland','Iceland',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('IT','Italy','Italy',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('JM','Jamaica','Jamaica',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('JO','Jordan','Jordan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('JP','Japan','Japan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KE','Kenya','Kenya',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KG','Kyrgyzstan','Kyrgyzstan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KH','Cambodia','Cambodia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KI','Kiribati','Kiribati',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KM','Comoros','Comoros',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KN','Saint Kitts and Nevis Anguilla','Saint Kitts and Nevis Anguilla',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KP','North Korea','North Korea',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KR','South Korea','South Korea',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KW','Kuwait','Kuwait',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KY','Cayman Islands','Cayman Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('KZ','Kazakhstan','Kazakhstan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LA','Laos','Laos',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LB','Lebanon','Lebanon',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LC','Saint Lucia','Saint Lucia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LI','Liechtenstein','Liechtenstein',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LK','Sri Lanka','Sri Lanka',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LR','Liberia','Liberia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LS','Lesotho','Lesotho',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LT','Lithuania','Lithuania',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LU','Luxembourg','Luxembourg',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LV','Latvia','Latvia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('LY','Libya','Libya',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MA','Morocco','Morocco',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MC','Monaco','Monaco',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MD','Moldavia','Moldavia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MG','Madagascar','Madagascar',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MH','Marshall Islands','Marshall Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MK','Macedonia','Macedonia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ML','Mali','Mali',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MM','Myanmar','Myanmar',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MN','Mongolia','Mongolia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MO','Macau','Macau',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MP','Northern Mariana Islands','Northern Mariana Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MQ','Martinique (French)','Martinique (French)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MR','Mauritania','Mauritania',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MS','Montserrat','Montserrat',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MT','Malta','Malta',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MU','Mauritius','Mauritius',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MV','Maldives','Maldives',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MW','Malawi','Malawi',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MX','Mexico','Mexico','Mexico');
+REPLACE INTO `fn_lu_country` VALUES ('MY','Malaysia','Malaysia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('MZ','Mozambique','Mozambique',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NA','Namibia','Namibia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NC','New Caledonia (French)','New Caledonia (French)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NE','Niger','Niger',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NF','Norfolk Island','Norfolk Island',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NG','Nigeria','Nigeria',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NI','Nicaragua','Nicaragua',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NL','Netherlands','Netherlands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NO','Norway','Norway',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NP','Nepal','Nepal',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NR','Nauru','Nauru',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NU','Niue','Niue',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('NZ','New Zealand','New Zealand',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('OM','Oman','Oman',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PA','Panama','Panama',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PE','Peru','Peru',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PF','Polynesia (French)','Polynesia (French)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PG','Papua New Guinea','Papua New Guinea',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PH','Philippines','Philippines',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PK','Pakistan','Pakistan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PL','Poland','Poland',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PM','Saint Pierre and Miquelon','Saint Pierre and Miquelon',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PN','Pitcairn Island','Pitcairn Island',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PR','Puerto Rico','Puerto Rico',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PT','Portugal','Portugal',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PW','Palau','Palau',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('PY','Paraguay','Paraguay',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('QA','Qatar','Qatar',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('RE','Reunion (French)','Reunion (French)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('RO','Romania','Romania',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('RU','Russian Federation','Russian Federation',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('RW','Rwanda','Rwanda',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SA','Saudi Arabia','Saudi Arabia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SB','Solomon Islands','Solomon Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SC','Seychelles','Seychelles',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SD','Sudan','Sudan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SE','Sweden','Sweden',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SG','Singapore','Singapore',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SH','Saint Helena','Saint Helena',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SI','Slovenia','Slovenia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SJ','Svalbard and Jan Mayen Islands','Svalbard and Jan Mayen Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SK','Slovak Republic','Slovak Republic',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SL','Sierra Leone','Sierra Leone',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SM','San Marino','San Marino',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SN','Senegal','Senegal',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SO','Somalia','Somalia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SR','Suriname','Suriname',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ST','Saint Tome (Sao Tome) and Principe','Saint Tome (Sao Tome) and Principe',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SU','Former USSR','Former USSR',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SV','El Salvador','El Salvador',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SY','Syria','Syria',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('SZ','Swaziland','Swaziland',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TC','Turks and Caicos Islands','Turks and Caicos Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TD','Chad','Chad',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TF','French Southern Territories','French Southern Territories',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TG','Togo','Togo',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TH','Thailand','Thailand',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TJ','Tadjikistan','Tadjikistan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TK','Tokelau','Tokelau',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TM','Turkmenistan','Turkmenistan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TN','Tunisia','Tunisia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TO','Tonga','Tonga',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TP','East Timor','East Timor',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TR','Turkey','Turkey',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TT','Trinidad and Tobago','Trinidad and Tobago',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TV','Tuvalu','Tuvalu',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TW','Taiwan','Taiwan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('TZ','Tanzania','Tanzania',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('UA','Ukraine','Ukraine',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('UG','Uganda','Uganda',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('UK','United Kingdom','United Kingdom',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('UM','USA Minor Outlying Islands','USA Minor Outlying Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('US','United States','United States','USA');
+REPLACE INTO `fn_lu_country` VALUES ('UY','Uruguay','Uruguay',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('UZ','Uzbekistan','Uzbekistan',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('VA','Vatican City State','Vatican City State',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('VC','Saint Vincent and Grenadines','Saint Vincent and Grenadines',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('VE','Venezuela','Venezuela',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('VG','Virgin Islands (British)','Virgin Islands (British)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('VI','Virgin Islands (USA)','Virgin Islands (USA)',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('VN','Vietnam','Vietnam',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('VU','Vanuatu','Vanuatu',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('WF','Wallis and Futuna Islands','Wallis and Futuna Islands',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('WS','Samoa','Samoa',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('YE','Yemen','Yemen',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('YT','Mayotte','Mayotte',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('YU','Yugoslavia','Yugoslavia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ZA','South Africa','South Africa',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ZM','Zambia','Zambia',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ZR','Zaire','Zaire',NULL);
+REPLACE INTO `fn_lu_country` VALUES ('ZW','Zimbabwe','Zimbabwe',NULL);
+
+--
-- Dumping data for table `fn_lu_menu_set`
--
INSERT INTO `fn_lu_menu_set` VALUES ('APP','Application Menu') ON DUPLICATE KEY UPDATE MENU_SET_NAME='Application Menu';
@@ -124,6 +451,62 @@ REPLACE INTO `fn_lu_priority` VALUES (30,'High','Y',30); REPLACE INTO `fn_lu_priority` VALUES (40,'Urgent','Y',40);
REPLACE INTO `fn_lu_priority` VALUES (50,'Fatal','Y',50);
+--
+-- Dumping data for table `fn_lu_state`
+--
+REPLACE INTO `fn_lu_state` VALUES ('AK','AK - Alaska');
+REPLACE INTO `fn_lu_state` VALUES ('AL','AL - Alabama');
+REPLACE INTO `fn_lu_state` VALUES ('AR','AR - Arkansas');
+REPLACE INTO `fn_lu_state` VALUES ('AZ','AZ - Arizona');
+REPLACE INTO `fn_lu_state` VALUES ('CA','CA - California');
+REPLACE INTO `fn_lu_state` VALUES ('CO','CO - Colorado');
+REPLACE INTO `fn_lu_state` VALUES ('CT','CT - Connecticut');
+REPLACE INTO `fn_lu_state` VALUES ('DC','DC - District Of Columbia');
+REPLACE INTO `fn_lu_state` VALUES ('DE','DE - Delaware');
+REPLACE INTO `fn_lu_state` VALUES ('FL','FL - Florida');
+REPLACE INTO `fn_lu_state` VALUES ('GA','GA - Georgia');
+REPLACE INTO `fn_lu_state` VALUES ('HI','HI - Hawaii');
+REPLACE INTO `fn_lu_state` VALUES ('IA','IA - Iowa');
+REPLACE INTO `fn_lu_state` VALUES ('ID','ID - Idaho');
+REPLACE INTO `fn_lu_state` VALUES ('IL','IL - Illinois');
+REPLACE INTO `fn_lu_state` VALUES ('IN','IN - Indiana');
+REPLACE INTO `fn_lu_state` VALUES ('KS','KS - Kansas');
+REPLACE INTO `fn_lu_state` VALUES ('KY','KY - Kentucky');
+REPLACE INTO `fn_lu_state` VALUES ('LA','LA - Louisiana');
+REPLACE INTO `fn_lu_state` VALUES ('MA','MA - Massachusetts');
+REPLACE INTO `fn_lu_state` VALUES ('MD','MD - Maryland');
+REPLACE INTO `fn_lu_state` VALUES ('ME','ME - Maine');
+REPLACE INTO `fn_lu_state` VALUES ('MI','MI - Michigan');
+REPLACE INTO `fn_lu_state` VALUES ('MN','MN - Minnesota');
+REPLACE INTO `fn_lu_state` VALUES ('MO','MO - Missouri');
+REPLACE INTO `fn_lu_state` VALUES ('MS','MS - Mississippi');
+REPLACE INTO `fn_lu_state` VALUES ('MT','MT - Montana');
+REPLACE INTO `fn_lu_state` VALUES ('NC','NC - North Carolina');
+REPLACE INTO `fn_lu_state` VALUES ('ND','ND - North Dakota');
+REPLACE INTO `fn_lu_state` VALUES ('NE','NE - Nebraska');
+REPLACE INTO `fn_lu_state` VALUES ('NH','NH - New Hampshire');
+REPLACE INTO `fn_lu_state` VALUES ('NJ','NJ - New Jersey');
+REPLACE INTO `fn_lu_state` VALUES ('NM','NM - New Mexico');
+REPLACE INTO `fn_lu_state` VALUES ('NV','NV - Nevada');
+REPLACE INTO `fn_lu_state` VALUES ('NY','NY - New York');
+REPLACE INTO `fn_lu_state` VALUES ('OH','OH - Ohio');
+REPLACE INTO `fn_lu_state` VALUES ('OK','OK - Oklahoma');
+REPLACE INTO `fn_lu_state` VALUES ('OR','OR - Oregon');
+REPLACE INTO `fn_lu_state` VALUES ('PA','PA - Pennsylvania');
+REPLACE INTO `fn_lu_state` VALUES ('PR','PR - Puerto Rico');
+REPLACE INTO `fn_lu_state` VALUES ('RI','RI - Rhode Island');
+REPLACE INTO `fn_lu_state` VALUES ('SC','SC - South Carolina');
+REPLACE INTO `fn_lu_state` VALUES ('SD','SD - South Dakota');
+REPLACE INTO `fn_lu_state` VALUES ('TN','TN - Tennessee');
+REPLACE INTO `fn_lu_state` VALUES ('TX','TX - Texas');
+REPLACE INTO `fn_lu_state` VALUES ('UT','UT - Utah');
+REPLACE INTO `fn_lu_state` VALUES ('VA','VA - Virginia');
+REPLACE INTO `fn_lu_state` VALUES ('VI','VI-Virgin Island');
+REPLACE INTO `fn_lu_state` VALUES ('VT','VT - Vermont');
+REPLACE INTO `fn_lu_state` VALUES ('WA','WA - Washington');
+REPLACE INTO `fn_lu_state` VALUES ('WI','WI - Wisconsin');
+REPLACE INTO `fn_lu_state` VALUES ('WV','WV - West Virginia');
+REPLACE INTO `fn_lu_state` VALUES ('WY','WY - Wyoming');
--
-- Dumping data for table `fn_lu_tab_set`
@@ -305,6 +688,9 @@ REPLACE INTO `fn_role_function` VALUES (16,'menu_viewlog'); REPLACE INTO `fn_role_function` VALUES ('1', 'menu_searchexisting');
REPLACE INTO `fn_role_function` VALUES ('16', 'menu_searchexisting');
+update fn_menu set active_yn = 'Y' where label = 'Admin';
+update fn_menu set active_yn = 'Y' where label = 'Root';
+update fn_menu set action = 'admin' where label = 'Admin';
--
-- Dumping data for table `fn_tab`
diff --git a/epsdk-app-onap/src/main/resources/vid-schema.sql b/epsdk-app-onap/src/main/resources/vid-schema.sql index 6ca06b193..efd4d05f4 100755 --- a/epsdk-app-onap/src/main/resources/vid-schema.sql +++ b/epsdk-app-onap/src/main/resources/vid-schema.sql @@ -66,8 +66,8 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_folder` ( `PARENT_FOLDER_ID` INT(11) NULL DEFAULT NULL,
`PUBLIC_YN` VARCHAR(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`FOLDER_ID`),
- INDEX `fk_parent_key_cr_folder` (`PARENT_FOLDER_ID` ASC),
- CONSTRAINT `fk_parent_key_cr_folder`
+ INDEX `FK_PARENT_KEY_CR_FOLDER` (`PARENT_FOLDER_ID` ASC),
+ CONSTRAINT `FK_PARENT_KEY_CR_FOLDER`
FOREIGN KEY (`PARENT_FOLDER_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_folder` (`FOLDER_ID`))
ENGINE = InnoDB
@@ -94,11 +94,11 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_hist_user_map` ( `HIST_ID` INT(11) NOT NULL,
`USER_ID` INT(11) NOT NULL,
PRIMARY KEY (`HIST_ID`, `USER_ID`),
- INDEX `sys_c0014617` (`USER_ID` ASC),
- CONSTRAINT `sys_c0014616`
+ INDEX `SYS_C0014617` (`USER_ID` ASC),
+ CONSTRAINT `SYS_C0014616`
FOREIGN KEY (`HIST_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_report_file_history` (`HIST_ID`),
- CONSTRAINT `sys_c0014617`
+ CONSTRAINT `SYS_C0014617`
FOREIGN KEY (`USER_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`))
ENGINE = InnoDB
@@ -167,7 +167,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report` ( `DASHBOARD_TYPE_YN` VARCHAR(1) NULL DEFAULT 'N',
`DASHBOARD_YN` VARCHAR(1) NULL DEFAULT 'N',
PRIMARY KEY (`REP_ID`),
- INDEX `cr_report_create_idpublic_yntitle` (`CREATE_ID` ASC, `PUBLIC_YN` ASC, `TITLE` ASC))
+ INDEX `CR_REPORT_CREATE_IDPUBLIC_YNTITLE` (`CREATE_ID` ASC, `PUBLIC_YN` ASC, `TITLE` ASC))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
@@ -181,7 +181,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_access` ( `USER_ID` DECIMAL(11,0) NULL DEFAULT NULL,
`READ_ONLY_YN` VARCHAR(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`REP_ID`, `ORDER_NO`),
- CONSTRAINT `fk_cr_repor_ref_8550_cr_repor`
+ CONSTRAINT `FK_CR_REPOR_REF_8550_CR_REPOR`
FOREIGN KEY (`REP_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
ENGINE = InnoDB
@@ -213,8 +213,8 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_email_sent_log` ( `ACCESS_FLAG` VARCHAR(1) NOT NULL DEFAULT 'Y',
`TOUCH_DATE` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`LOG_ID`),
- INDEX `fk_cr_report_rep_id` (`REP_ID` ASC),
- CONSTRAINT `fk_cr_report_rep_id`
+ INDEX `FK_CR_REPORT_REP_ID` (`REP_ID` ASC),
+ CONSTRAINT `FK_CR_REPORT_REP_ID`
FOREIGN KEY (`REP_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
ENGINE = InnoDB
@@ -241,12 +241,12 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_file_history` ( `DELETED_YN` CHAR(1) NULL DEFAULT 'N',
`DELETED_BY` DECIMAL(38,0) NULL DEFAULT NULL,
PRIMARY KEY (`HIST_ID`),
- INDEX `sys_c0014614` (`FILE_TYPE_ID` ASC),
- INDEX `sys_c0014615` (`REP_ID` ASC),
- CONSTRAINT `sys_c0014614`
+ INDEX `SYS_C0014614` (`FILE_TYPE_ID` ASC),
+ INDEX `SYS_C0014615` (`REP_ID` ASC),
+ CONSTRAINT `SYS_C0014614`
FOREIGN KEY (`FILE_TYPE_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_lu_file_type` (`LOOKUP_ID`),
- CONSTRAINT `sys_c0014615`
+ CONSTRAINT `SYS_C0014615`
FOREIGN KEY (`REP_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
ENGINE = InnoDB
@@ -262,8 +262,8 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_log` ( `ACTION` VARCHAR(2000) NOT NULL,
`ACTION_VALUE` VARCHAR(50) NULL DEFAULT NULL,
`FORM_FIELDS` VARCHAR(4000) NULL DEFAULT NULL,
- INDEX `fk_cr_repor_ref_17645_cr_repor` (`REP_ID` ASC),
- CONSTRAINT `fk_cr_repor_ref_17645_cr_repor`
+ INDEX `FK_CR_REPOR_REF_17645_CR_REPOR` (`REP_ID` ASC),
+ CONSTRAINT `FK_CR_REPOR_REF_17645_CR_REPOR`
FOREIGN KEY (`REP_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
ENGINE = InnoDB
@@ -292,8 +292,8 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_schedule` ( `ENCRYPT_YN` CHAR(1) NULL DEFAULT 'N',
`ATTACHMENT_YN` CHAR(1) NULL DEFAULT 'Y',
PRIMARY KEY (`SCHEDULE_ID`),
- INDEX `fk_cr_repor_ref_14707_cr_repor` (`REP_ID` ASC),
- CONSTRAINT `fk_cr_repor_ref_14707_cr_repor`
+ INDEX `FK_CR_REPOR_REF_14707_CR_REPOR` (`REP_ID` ASC),
+ CONSTRAINT `FK_CR_REPOR_REF_14707_CR_REPOR`
FOREIGN KEY (`REP_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_report` (`REP_ID`))
ENGINE = InnoDB
@@ -309,7 +309,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_report_schedule_users` ( `ROLE_ID` DECIMAL(11,0) NULL DEFAULT NULL,
`ORDER_NO` DECIMAL(11,0) NOT NULL,
PRIMARY KEY (`SCHEDULE_ID`, `REP_ID`, `USER_ID`, `ORDER_NO`),
- CONSTRAINT `fk_cr_repor_ref_14716_cr_repor`
+ CONSTRAINT `FK_CR_REPOR_REF_14716_CR_REPOR`
FOREIGN KEY (`SCHEDULE_ID`)
REFERENCES `vid_openecomp_epsdk`.`cr_report_schedule` (`SCHEDULE_ID`))
ENGINE = InnoDB
@@ -343,12 +343,12 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_table_join` ( `SRC_TABLE_NAME` VARCHAR(30) NOT NULL,
`DEST_TABLE_NAME` VARCHAR(30) NOT NULL,
`JOIN_EXPR` VARCHAR(500) NOT NULL,
- INDEX `cr_table_join_dest_table_name` (`DEST_TABLE_NAME` ASC),
- INDEX `cr_table_join_src_table_name` (`SRC_TABLE_NAME` ASC),
- CONSTRAINT `fk_cr_table_ref_311_cr_tab`
+ INDEX `CR_TABLE_JOIN_DEST_TABLE_NAME` (`DEST_TABLE_NAME` ASC),
+ INDEX `CR_TABLE_JOIN_SRC_TABLE_NAME` (`SRC_TABLE_NAME` ASC),
+ CONSTRAINT `FK_CR_TABLE_REF_311_CR_TAB`
FOREIGN KEY (`SRC_TABLE_NAME`)
REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`),
- CONSTRAINT `fk_cr_table_ref_315_cr_tab`
+ CONSTRAINT `FK_CR_TABLE_REF_315_CR_TAB`
FOREIGN KEY (`DEST_TABLE_NAME`)
REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`))
ENGINE = InnoDB
@@ -361,7 +361,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`cr_table_role` ( `TABLE_NAME` VARCHAR(30) NOT NULL,
`ROLE_ID` DECIMAL(11,0) NOT NULL,
PRIMARY KEY (`TABLE_NAME`, `ROLE_ID`),
- CONSTRAINT `fk_cr_table_ref_32384_cr_table`
+ CONSTRAINT `FK_CR_TABLE_REF_32384_CR_TABLE`
FOREIGN KEY (`TABLE_NAME`)
REFERENCES `vid_openecomp_epsdk`.`cr_table_source` (`TABLE_NAME`))
ENGINE = InnoDB
@@ -383,74 +383,7 @@ ENGINE = InnoDB DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.demo_bar_chart
--- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`demo_bar_chart` (
- `label` VARCHAR(20) NULL DEFAULT NULL,
- `value` DECIMAL(25,15) NULL DEFAULT NULL)
-ENGINE = InnoDB
-DEFAULT CHARACTER SET = utf8;
-
--- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.demo_bar_chart_inter
--- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`demo_bar_chart_inter` (
- `spam_date` DATE NULL DEFAULT NULL,
- `num_rpt_sources` DECIMAL(10,0) NULL DEFAULT NULL,
- `num_det_sources` DECIMAL(10,0) NULL DEFAULT NULL)
-ENGINE = InnoDB
-DEFAULT CHARACTER SET = utf8;
-
--- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.demo_line_chart
--- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`demo_line_chart` (
- `series` VARCHAR(20) NULL DEFAULT NULL,
- `log_date` DATE NULL DEFAULT NULL,
- `data_value` DECIMAL(10,5) NULL DEFAULT NULL)
-ENGINE = InnoDB
-DEFAULT CHARACTER SET = utf8;
-
--- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.demo_pie_chart
--- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`demo_pie_chart` (
- `legend` VARCHAR(20) NULL DEFAULT NULL,
- `data_value` DECIMAL(10,5) NULL DEFAULT NULL)
-ENGINE = InnoDB
-DEFAULT CHARACTER SET = utf8;
-
--- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.demo_scatter_chart
--- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`demo_scatter_chart` (
- `rainfall` DECIMAL(10,2) NULL DEFAULT NULL,
- `key_value` VARCHAR(20) NULL DEFAULT NULL,
- `measurements` DECIMAL(10,2) NULL DEFAULT NULL)
-ENGINE = InnoDB
-DEFAULT CHARACTER SET = utf8;
-
--- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.demo_scatter_plot
--- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`demo_scatter_plot` (
- `SERIES` VARCHAR(20) NULL DEFAULT NULL,
- `VALUEX` DECIMAL(25,15) NULL DEFAULT NULL,
- `VALUEY` DECIMAL(25,15) NULL DEFAULT NULL)
-ENGINE = InnoDB
-DEFAULT CHARACTER SET = utf8;
-
--- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.demo_util_chart
--- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`demo_util_chart` (
- `traffic_date` DATE NULL DEFAULT NULL,
- `util_perc` DECIMAL(10,5) NULL DEFAULT NULL)
-ENGINE = InnoDB
-DEFAULT CHARACTER SET = utf8;
-
--- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.fn_app
+-- Table vid_portal.fn_app
-- ----------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_app` (
`APP_ID` INT(11) NOT NULL AUTO_INCREMENT,
@@ -478,6 +411,21 @@ AUTO_INCREMENT = 2 DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_app_mme_cpu
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_app_mme_cpu` (
+ `MME` VARCHAR(200) NULL DEFAULT NULL,
+ `YEARMONTH` INT(11) NULL DEFAULT NULL,
+ `SCTP_CPU` INT(11) NULL DEFAULT NULL,
+ `AP_CPU` INT(11) NULL DEFAULT NULL,
+ `DP_CPU` INT(11) NULL DEFAULT NULL,
+ `ROUTER_CPU` INT(11) NULL DEFAULT NULL,
+ `PEB_CPU` INT(11) NULL DEFAULT NULL,
+ `SAU` INT(11) NULL DEFAULT NULL)
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
-- Table vid_openecomp_epsdk.fn_audit_action
-- ----------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_audit_action` (
@@ -519,14 +467,14 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_audit_log` ( `AFFECTED_RECORD_ID_BK` VARCHAR(500) NULL DEFAULT NULL,
`AFFECTED_RECORD_ID` VARCHAR(4000) NULL DEFAULT NULL,
PRIMARY KEY (`LOG_ID`),
- INDEX `fn_audit_log_activity_cd` (`ACTIVITY_CD` ASC),
- INDEX `fn_audit_log_user_id` (`USER_ID` ASC),
+ INDEX `FN_AUDIT_LOG_ACTIVITY_CD` (`ACTIVITY_CD` ASC),
+ INDEX `FN_AUDIT_LOG_USER_ID` (`USER_ID` ASC),
+ CONSTRAINT `FK_FN_AUDIT_REF_205_FN_LU_AC`
+ FOREIGN KEY (`ACTIVITY_CD`)
+ REFERENCES `vid_openecomp_epsdk`.`fn_lu_activity` (`ACTIVITY_CD`),
CONSTRAINT `FK_FN_AUDIT_REF_209_FN_USER`
FOREIGN KEY (`USER_ID`)
- REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`),
- CONSTRAINT `fk_fn_audit_ref_205_fn_lu_ac`
- FOREIGN KEY (`ACTIVITY_CD`)
- REFERENCES `vid_openecomp_epsdk`.`fn_lu_activity` (`ACTIVITY_CD`))
+ REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
@@ -604,6 +552,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_datasource` ( `DS_TYPE` VARCHAR(20) NULL DEFAULT NULL,
PRIMARY KEY (`ID`))
ENGINE = InnoDB
+AUTO_INCREMENT = 4
DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
@@ -617,6 +566,76 @@ ENGINE = InnoDB DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_license
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license` (
+ `id` DECIMAL(11,0) NOT NULL,
+ `app_id` DECIMAL(11,0) NOT NULL,
+ `ip_address` VARCHAR(100) NOT NULL,
+ `quantum_version_id` DECIMAL(11,0) NOT NULL,
+ `created_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `modified_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `created_id` DECIMAL(11,0) NULL DEFAULT NULL,
+ `modified_id` DECIMAL(11,0) NULL DEFAULT NULL,
+ `end_date` TIMESTAMP NOT NULL DEFAULT '2036-01-19 03:14:07',
+ PRIMARY KEY (`id`),
+ INDEX `fn_license_r02` (`quantum_version_id` ASC),
+ CONSTRAINT `fn_license_r02`
+ FOREIGN KEY (`quantum_version_id`)
+ REFERENCES `vid_openecomp_epsdk`.`fn_license_version` (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_license_app
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license_app` (
+ `id` DECIMAL(11,0) NOT NULL,
+ `app_name` VARCHAR(100) NOT NULL,
+ `ctxt_name` VARCHAR(100) NULL DEFAULT NULL,
+ INDEX `fn_license_app_ID` (`id` ASC))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_license_contact
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license_contact` (
+ `id` INT(11) NOT NULL,
+ `license_id` INT(11) NULL DEFAULT NULL,
+ `sbcid` VARCHAR(20) NULL DEFAULT NULL,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_license_history
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license_history` (
+ `license_id` DECIMAL(11,0) NULL DEFAULT NULL,
+ `app_id` DECIMAL(11,0) NULL DEFAULT NULL,
+ `ip_address` VARCHAR(100) NULL DEFAULT NULL,
+ `quantum_version_id` DECIMAL(11,0) NULL DEFAULT NULL,
+ `created_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `modified_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `created_id` DECIMAL(11,0) NULL DEFAULT NULL,
+ `modified_id` DECIMAL(11,0) NULL DEFAULT NULL,
+ `id` DECIMAL(11,0) NOT NULL,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_license_version
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_license_version` (
+ `id` DECIMAL(11,0) NOT NULL,
+ `quantum_version` VARCHAR(25) NULL DEFAULT NULL,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
-- Table vid_openecomp_epsdk.fn_lu_activity
-- ----------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_activity` (
@@ -647,22 +666,46 @@ ENGINE = InnoDB DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.fn_lu_menu_set
+-- Table vid_openecomp_epsdk.fn_lu_call_times
-- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_menu_set` (
- `MENU_SET_CD` VARCHAR(10) NOT NULL,
- `MENU_SET_NAME` VARCHAR(50) NOT NULL,
- PRIMARY KEY (`MENU_SET_CD`))
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_call_times` (
+ `CALL_TIME_ID` DECIMAL(10,0) NOT NULL,
+ `CALL_TIME_AMOUNT` DECIMAL(10,0) NOT NULL,
+ `CALL_TIME_DISPLAY` VARCHAR(50) NOT NULL,
+ PRIMARY KEY (`CALL_TIME_ID`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.fn_lu_message_location
+-- Table vid_openecomp_epsdk.fn_lu_city
-- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_message_location` (
- `message_location_id` DECIMAL(11,0) NOT NULL,
- `message_location_descr` VARCHAR(30) NOT NULL,
- PRIMARY KEY (`message_location_id`))
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_city` (
+ `CITY_CD` VARCHAR(2) NOT NULL,
+ `CITY` VARCHAR(100) NOT NULL,
+ `STATE_CD` VARCHAR(2) NOT NULL,
+ PRIMARY KEY (`CITY_CD`, `STATE_CD`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_lu_country
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_country` (
+ `COUNTRY_CD` VARCHAR(3) NOT NULL,
+ `COUNTRY` VARCHAR(100) NOT NULL,
+ `FULL_NAME` VARCHAR(100) NULL DEFAULT NULL,
+ `WEBPHONE_COUNTRY_LABEL` VARCHAR(30) NULL DEFAULT NULL,
+ PRIMARY KEY (`COUNTRY_CD`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_lu_menu_set
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_menu_set` (
+ `MENU_SET_CD` VARCHAR(10) NOT NULL,
+ `MENU_SET_NAME` VARCHAR(50) NOT NULL,
+ PRIMARY KEY (`MENU_SET_CD`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
@@ -689,6 +732,16 @@ ENGINE = InnoDB DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.fn_lu_state
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_state` (
+ `STATE_CD` VARCHAR(2) NOT NULL,
+ `STATE` VARCHAR(100) NOT NULL,
+ PRIMARY KEY (`STATE_CD`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = utf8;
+
+-- ----------------------------------------------------------------------------
-- Table vid_openecomp_epsdk.fn_lu_tab_set
-- ----------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_lu_tab_set` (
@@ -730,7 +783,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_menu` ( PRIMARY KEY (`MENU_ID`),
INDEX `FK_FN_MENU_REF_196_FN_MENU` (`PARENT_ID` ASC),
INDEX `FK_FN_MENU_MENU_SET_CD` (`MENU_SET_CD` ASC),
- INDEX `fn_menu_function_cd` (`FUNCTION_CD` ASC),
+ INDEX `FN_MENU_FUNCTION_CD` (`FUNCTION_CD` ASC),
CONSTRAINT `FK_FN_MENU_MENU_SET_CD`
FOREIGN KEY (`MENU_SET_CD`)
REFERENCES `vid_openecomp_epsdk`.`fn_lu_menu_set` (`MENU_SET_CD`),
@@ -741,7 +794,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_menu` ( FOREIGN KEY (`FUNCTION_CD`)
REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`))
ENGINE = InnoDB
-AUTO_INCREMENT = 150039
+AUTO_INCREMENT = 150029
DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
@@ -752,7 +805,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_org` ( `ORG_NAME` VARCHAR(50) NOT NULL,
`ACCESS_CD` VARCHAR(10) NULL DEFAULT NULL,
PRIMARY KEY (`ORG_ID`),
- INDEX `fn_org_access_cd` (`ACCESS_CD` ASC))
+ INDEX `FN_ORG_ACCESS_CD` (`ACCESS_CD` ASC))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
@@ -817,12 +870,12 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_fired_triggers` ( `IS_NONCONCURRENT` VARCHAR(1) NULL DEFAULT NULL,
`REQUESTS_RECOVERY` VARCHAR(1) NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `ENTRY_ID`),
- INDEX `idx_fn_qz_ft_trig_inst_name` (`SCHED_NAME` ASC, `INSTANCE_NAME` ASC),
- INDEX `idx_fn_qz_ft_inst_job_req_rcvry` (`SCHED_NAME` ASC, `INSTANCE_NAME` ASC, `REQUESTS_RECOVERY` ASC),
- INDEX `idx_fn_qz_ft_j_g` (`SCHED_NAME` ASC, `JOB_NAME` ASC, `JOB_GROUP` ASC),
- INDEX `idx_fn_qz_ft_jg` (`SCHED_NAME` ASC, `JOB_GROUP` ASC),
- INDEX `idx_fn_qz_ft_t_g` (`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC),
- INDEX `idx_fn_qz_ft_tg` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC))
+ INDEX `IDX_FN_QZ_FT_TRIG_INST_NAME` (`SCHED_NAME` ASC, `INSTANCE_NAME` ASC),
+ INDEX `IDX_FN_QZ_FT_INST_JOB_REQ_RCVRY` (`SCHED_NAME` ASC, `INSTANCE_NAME` ASC, `REQUESTS_RECOVERY` ASC),
+ INDEX `IDX_FN_QZ_FT_J_G` (`SCHED_NAME` ASC, `JOB_NAME` ASC, `JOB_GROUP` ASC),
+ INDEX `IDX_FN_QZ_FT_JG` (`SCHED_NAME` ASC, `JOB_GROUP` ASC),
+ INDEX `IDX_FN_QZ_FT_T_G` (`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC),
+ INDEX `IDX_FN_QZ_FT_TG` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
@@ -841,8 +894,8 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_job_details` ( `REQUESTS_RECOVERY` VARCHAR(1) NOT NULL,
`JOB_DATA` BLOB NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`),
- INDEX `idx_fn_qz_j_req_recovery` (`SCHED_NAME` ASC, `REQUESTS_RECOVERY` ASC),
- INDEX `idx_fn_qz_j_grp` (`SCHED_NAME` ASC, `JOB_GROUP` ASC))
+ INDEX `IDX_FN_QZ_J_REQ_RECOVERY` (`SCHED_NAME` ASC, `REQUESTS_RECOVERY` ASC),
+ INDEX `IDX_FN_QZ_J_GRP` (`SCHED_NAME` ASC, `JOB_GROUP` ASC))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
@@ -941,20 +994,18 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_qz_triggers` ( `MISFIRE_INSTR` SMALLINT(2) NULL DEFAULT NULL,
`JOB_DATA` BLOB NULL DEFAULT NULL,
PRIMARY KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`),
- INDEX `idx_fn_qz_t_j` (`SCHED_NAME` ASC, `JOB_NAME` ASC, `JOB_GROUP` ASC),
- INDEX `idx_fn_qz_t_jg` (`SCHED_NAME` ASC, `JOB_GROUP` ASC),
- INDEX `idx_fn_qz_t_c` (`SCHED_NAME` ASC, `CALENDAR_NAME` ASC),
- INDEX `idx_fn_qz_t_g` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC),
- INDEX `idx_fn_qz_t_state` (`SCHED_NAME` ASC, `TRIGGER_STATE` ASC),
- INDEX `idx_fn_qz_t_n_state` (`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC),
- INDEX `idx_fn_qz_t_n_g_state` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC),
- INDEX `idx_fn_qz_t_next_fire_time` (`SCHED_NAME` ASC, `NEXT_FIRE_TIME` ASC),
- INDEX `idx_fn_qz_t_nft_st` (`SCHED_NAME` ASC, `TRIGGER_STATE` ASC, `NEXT_FIRE_TIME` ASC),
- INDEX `idx_fn_qz_t_nft_misfire` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC),
- INDEX `idx_fn_qz_t_nft_st_misfire` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC, `TRIGGER_STATE` ASC),
- INDEX `idx_fn_qz_t_nft_st_misfire_grp` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC, `TRIGGER_GROUP` ASC,
-
-`TRIGGER_STATE` ASC),
+ INDEX `IDX_FN_QZ_T_J` (`SCHED_NAME` ASC, `JOB_NAME` ASC, `JOB_GROUP` ASC),
+ INDEX `IDX_FN_QZ_T_JG` (`SCHED_NAME` ASC, `JOB_GROUP` ASC),
+ INDEX `IDX_FN_QZ_T_C` (`SCHED_NAME` ASC, `CALENDAR_NAME` ASC),
+ INDEX `IDX_FN_QZ_T_G` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC),
+ INDEX `IDX_FN_QZ_T_STATE` (`SCHED_NAME` ASC, `TRIGGER_STATE` ASC),
+ INDEX `IDX_FN_QZ_T_N_STATE` (`SCHED_NAME` ASC, `TRIGGER_NAME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC),
+ INDEX `IDX_FN_QZ_T_N_G_STATE` (`SCHED_NAME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC),
+ INDEX `IDX_FN_QZ_T_NEXT_FIRE_TIME` (`SCHED_NAME` ASC, `NEXT_FIRE_TIME` ASC),
+ INDEX `IDX_FN_QZ_T_NFT_ST` (`SCHED_NAME` ASC, `TRIGGER_STATE` ASC, `NEXT_FIRE_TIME` ASC),
+ INDEX `IDX_FN_QZ_T_NFT_MISFIRE` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC),
+ INDEX `IDX_FN_QZ_T_NFT_ST_MISFIRE` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC, `TRIGGER_STATE` ASC),
+ INDEX `IDX_FN_QZ_T_NFT_ST_MISFIRE_GRP` (`SCHED_NAME` ASC, `MISFIRE_INSTR` ASC, `NEXT_FIRE_TIME` ASC, `TRIGGER_GROUP` ASC, `TRIGGER_STATE` ASC),
CONSTRAINT `fn_qz_triggers_ibfk_1`
FOREIGN KEY (`SCHED_NAME` , `JOB_NAME` , `JOB_GROUP`)
REFERENCES `vid_openecomp_epsdk`.`fn_qz_job_details` (`SCHED_NAME` , `JOB_NAME` , `JOB_GROUP`))
@@ -968,8 +1019,8 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_restricted_url` ( `RESTRICTED_URL` VARCHAR(250) NOT NULL,
`FUNCTION_CD` VARCHAR(30) NOT NULL,
PRIMARY KEY (`RESTRICTED_URL`, `FUNCTION_CD`),
- INDEX `fk_restricted_url_function_cd` (`FUNCTION_CD` ASC),
- CONSTRAINT `fk_restricted_url_function_cd`
+ INDEX `FK_RESTRICTED_URL_FUNCTION_CD` (`FUNCTION_CD` ASC),
+ CONSTRAINT `FK_RESTRICTED_URL_FUNCTION_CD`
FOREIGN KEY (`FUNCTION_CD`)
REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`))
ENGINE = InnoDB
@@ -980,7 +1031,7 @@ DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_role` (
`ROLE_ID` INT(11) NOT NULL AUTO_INCREMENT,
- `ROLE_NAME` VARCHAR(50) NOT NULL,
+ `ROLE_NAME` VARCHAR(255) NOT NULL,
`ACTIVE_YN` VARCHAR(1) NOT NULL DEFAULT 'Y',
`PRIORITY` DECIMAL(4,0) NULL DEFAULT NULL,
PRIMARY KEY (`ROLE_ID`))
@@ -988,6 +1039,9 @@ ENGINE = InnoDB AUTO_INCREMENT = 17
DEFAULT CHARACTER SET = utf8;
+ALTER TABLE `vid_openecomp_epsdk`.`fn_role` MODIFY `ROLE_NAME` VARCHAR (255);
+
+
-- ----------------------------------------------------------------------------
-- Table vid_openecomp_epsdk.fn_role_composite
-- ----------------------------------------------------------------------------
@@ -1012,12 +1066,12 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_role_function` ( `ROLE_ID` INT(11) NOT NULL,
`FUNCTION_CD` VARCHAR(30) NOT NULL,
PRIMARY KEY (`ROLE_ID`, `FUNCTION_CD`),
- INDEX `fn_role_function_function_cd` (`FUNCTION_CD` ASC),
- INDEX `fn_role_function_role_id` (`ROLE_ID` ASC),
+ INDEX `FN_ROLE_FUNCTION_FUNCTION_CD` (`FUNCTION_CD` ASC),
+ INDEX `FN_ROLE_FUNCTION_ROLE_ID` (`ROLE_ID` ASC),
CONSTRAINT `FK_FN_ROLE__REF_198_FN_ROLE`
FOREIGN KEY (`ROLE_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`),
- CONSTRAINT `fk_fn_role__ref_201_fn_funct`
+ CONSTRAINT `FK_FN_ROLE__REF_201_FN_FUNCT`
FOREIGN KEY (`FUNCTION_CD`)
REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`))
ENGINE = InnoDB
@@ -1053,12 +1107,12 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_tab` ( `PARENT_TAB_CD` VARCHAR(30) NULL DEFAULT NULL,
`TAB_SET_CD` VARCHAR(30) NULL DEFAULT NULL,
PRIMARY KEY (`TAB_CD`),
- INDEX `fk_fn_tab_function_cd` (`FUNCTION_CD` ASC),
- INDEX `fk_fn_tab_set_cd` (`TAB_SET_CD` ASC),
- CONSTRAINT `fk_fn_tab_function_cd`
+ INDEX `FK_FN_TAB_FUNCTION_CD` (`FUNCTION_CD` ASC),
+ INDEX `FK_FN_TAB_SET_CD` (`TAB_SET_CD` ASC),
+ CONSTRAINT `FK_FN_TAB_FUNCTION_CD`
FOREIGN KEY (`FUNCTION_CD`)
REFERENCES `vid_openecomp_epsdk`.`fn_function` (`FUNCTION_CD`),
- CONSTRAINT `fk_fn_tab_set_cd`
+ CONSTRAINT `FK_FN_TAB_SET_CD`
FOREIGN KEY (`TAB_SET_CD`)
REFERENCES `vid_openecomp_epsdk`.`fn_lu_tab_set` (`TAB_SET_CD`))
ENGINE = InnoDB
@@ -1071,7 +1125,7 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_tab_selected` ( `SELECTED_TAB_CD` VARCHAR(30) NOT NULL,
`TAB_URI` VARCHAR(40) NOT NULL,
PRIMARY KEY (`SELECTED_TAB_CD`, `TAB_URI`),
- CONSTRAINT `fk_fn_tab_selected_tab_cd`
+ CONSTRAINT `FK_FN_TAB_SELECTED_TAB_CD`
FOREIGN KEY (`SELECTED_TAB_CD`)
REFERENCES `vid_openecomp_epsdk`.`fn_tab` (`TAB_CD`))
ENGINE = InnoDB
@@ -1124,37 +1178,38 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_user` ( `FIN_LOC_CODE` VARCHAR(10) NULL DEFAULT NULL,
`SILO_STATUS` VARCHAR(10) NULL DEFAULT NULL,
PRIMARY KEY (`USER_ID`),
- UNIQUE INDEX `fn_user_hrid` (`HRID` ASC),
- UNIQUE INDEX `fn_user_login_id` (`LOGIN_ID` ASC),
- INDEX `fn_user_address_id` (`ADDRESS_ID` ASC),
- INDEX `fn_user_alert_method_cd` (`ALERT_METHOD_CD` ASC),
- INDEX `fn_user_org_id` (`ORG_ID` ASC),
- INDEX `fk_fn_user_ref_197_fn_user` (`MANAGER_ID` ASC),
- INDEX `fk_fn_user_ref_198_fn_user` (`CREATED_ID` ASC),
- INDEX `fk_fn_user_ref_199_fn_user` (`MODIFIED_ID` ASC),
- INDEX `fk_timezone` (`TIMEZONE` ASC),
- CONSTRAINT `fk_fn_user_ref_110_fn_org`
+ UNIQUE INDEX `FN_USER_HRID` (`HRID` ASC),
+ UNIQUE INDEX `FN_USER_LOGIN_ID` (`LOGIN_ID` ASC),
+ INDEX `FN_USER_ADDRESS_ID` (`ADDRESS_ID` ASC),
+ INDEX `FN_USER_ALERT_METHOD_CD` (`ALERT_METHOD_CD` ASC),
+ INDEX `FN_USER_ORG_ID` (`ORG_ID` ASC),
+ INDEX `FK_FN_USER_REF_197_FN_USER` (`MANAGER_ID` ASC),
+ INDEX `FK_FN_USER_REF_198_FN_USER` (`CREATED_ID` ASC),
+ INDEX `FK_FN_USER_REF_199_FN_USER` (`MODIFIED_ID` ASC),
+ INDEX `FK_TIMEZONE` (`TIMEZONE` ASC),
+ CONSTRAINT `FK_FN_USER_REF_110_FN_ORG`
FOREIGN KEY (`ORG_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_org` (`ORG_ID`),
- CONSTRAINT `fk_fn_user_ref_123_fn_lu_al`
+ CONSTRAINT `FK_FN_USER_REF_123_FN_LU_AL`
FOREIGN KEY (`ALERT_METHOD_CD`)
REFERENCES `vid_openecomp_epsdk`.`fn_lu_alert_method` (`ALERT_METHOD_CD`),
- CONSTRAINT `fk_fn_user_ref_197_fn_user`
+ CONSTRAINT `FK_FN_USER_REF_197_FN_USER`
FOREIGN KEY (`MANAGER_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`),
- CONSTRAINT `fk_fn_user_ref_198_fn_user`
+ CONSTRAINT `FK_FN_USER_REF_198_FN_USER`
FOREIGN KEY (`CREATED_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`),
- CONSTRAINT `fk_fn_user_ref_199_fn_user`
+ CONSTRAINT `FK_FN_USER_REF_199_FN_USER`
FOREIGN KEY (`MODIFIED_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`),
- CONSTRAINT `fk_timezone`
+ CONSTRAINT `FK_TIMEZONE`
FOREIGN KEY (`TIMEZONE`)
REFERENCES `vid_openecomp_epsdk`.`fn_lu_timezone` (`TIMEZONE_ID`))
ENGINE = InnoDB
-AUTO_INCREMENT = 2
+AUTO_INCREMENT = 3
DEFAULT CHARACTER SET = utf8;
+
-- ----------------------------------------------------------------------------
-- Table vid_openecomp_epsdk.fn_user_pseudo_role
-- ----------------------------------------------------------------------------
@@ -1162,11 +1217,11 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_user_pseudo_role` ( `PSEUDO_ROLE_ID` INT(11) NOT NULL,
`USER_ID` INT(11) NOT NULL,
PRIMARY KEY (`PSEUDO_ROLE_ID`, `USER_ID`),
- INDEX `fk_pseudo_role_user_id` (`USER_ID` ASC),
- CONSTRAINT `fk_pseudo_role_pseudo_role_id`
+ INDEX `FK_PSEUDO_ROLE_USER_ID` (`USER_ID` ASC),
+ CONSTRAINT `FK_PSEUDO_ROLE_PSEUDO_ROLE_ID`
FOREIGN KEY (`PSEUDO_ROLE_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`),
- CONSTRAINT `fk_pseudo_role_user_id`
+ CONSTRAINT `FK_PSEUDO_ROLE_USER_ID`
FOREIGN KEY (`USER_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`))
ENGINE = InnoDB
@@ -1181,16 +1236,16 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_user_role` ( `PRIORITY` DECIMAL(4,0) NULL DEFAULT NULL,
`APP_ID` INT(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`USER_ID`, `ROLE_ID`, `APP_ID`),
- INDEX `fn_user_role_role_id` (`ROLE_ID` ASC),
- INDEX `fn_user_role_user_id` (`USER_ID` ASC),
- INDEX `fk_fn_user__ref_178_fn_app_IDX` (`APP_ID` ASC),
+ INDEX `FN_USER_ROLE_ROLE_ID` (`ROLE_ID` ASC),
+ INDEX `FN_USER_ROLE_USER_ID` (`USER_ID` ASC),
+ INDEX `FK_FN_USER__REF_178_FN_APP_idx` (`APP_ID` ASC),
CONSTRAINT `FK_FN_USER__REF_172_FN_USER`
FOREIGN KEY (`USER_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_user` (`USER_ID`),
CONSTRAINT `FK_FN_USER__REF_175_FN_ROLE`
FOREIGN KEY (`ROLE_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_role` (`ROLE_ID`),
- CONSTRAINT `fk_fn_user__ref_178_fn_app`
+ CONSTRAINT `FK_FN_USER__REF_178_FN_APP`
FOREIGN KEY (`APP_ID`)
REFERENCES `vid_openecomp_epsdk`.`fn_app` (`APP_ID`))
ENGINE = InnoDB
@@ -1218,26 +1273,12 @@ ENGINE = InnoDB DEFAULT CHARACTER SET = utf8;
-- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.rcloudinvocation
--- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`rcloudinvocation` (
- `id` VARCHAR(128) NOT NULL,
- `created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `userinfo` VARCHAR(2048) NOT NULL,
- `notebookid` VARCHAR(128) NOT NULL,
- `parameters` VARCHAR(2048) NULL DEFAULT NULL,
- `tokenreaddate` TIMESTAMP NULL DEFAULT NULL,
- PRIMARY KEY (`id`))
-ENGINE = InnoDB
-DEFAULT CHARACTER SET = utf8;
-
--- ----------------------------------------------------------------------------
--- Table vid_openecomp_epsdk.rcloudnotebook
+-- Table vid_openecomp_epsdk.fn_xmltype
-- ----------------------------------------------------------------------------
-CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`rcloudnotebook` (
- `notebookname` VARCHAR(128) NOT NULL,
- `notebookid` VARCHAR(128) NOT NULL,
- PRIMARY KEY (`notebookname`))
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`fn_xmltype` (
+ `ID` DECIMAL(10,0) NOT NULL,
+ `XML_DOCUMENT` TEXT NULL DEFAULT NULL,
+ UNIQUE INDEX `FN_XMLTYPE_ID` (`ID` ASC))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
@@ -1257,16 +1298,87 @@ CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`schema_info` ( `IDLE_CONNECTION_TEST_PERIOD` INT(11) NOT NULL)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.vid_vnf
+-- ----------------------------------------------------------------------------
+
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`vid_vnf` (
+ `VNF_DB_ID` int(11) NOT NULL AUTO_INCREMENT,
+ `VNF_APP_UUID` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
+ `VNF_APP_INVARIANT_UUID` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
+ `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`VNF_DB_ID`),
+ UNIQUE KEY `vid_vnf_VNF_ID_uindex` (`VNF_APP_UUID`,`VNF_APP_INVARIANT_UUID`)
+) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
-- ----------------------------------------------------------------------------
--- View vid_openecomp_epsdk.v_url_access
+-- Table vid_openecomp_epsdk.vid_workflow
+-- ----------------------------------------------------------------------------
+
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`vid_workflow` (
+ `WORKFLOW_DB_ID` int(11) NOT NULL AUTO_INCREMENT,
+ `WORKFLOW_APP_NAME` varchar(50) COLLATE utf8_bin NOT NULL,
+ `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`WORKFLOW_DB_ID`),
+ UNIQUE KEY `vid_workflow_workflow_uuid_uindex` (`WORKFLOW_APP_NAME`),
+ UNIQUE KEY `vid_workflow_WORKFLOW_ID_uindex` (`WORKFLOW_DB_ID`)
+) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
+
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.vid_vnf_workflow
+-- ----------------------------------------------------------------------------
+
+
+CREATE TABLE IF NOT EXISTS `vid_openecomp_epsdk`.`vid_vnf_workflow` (
+ `VNF_DB_ID` int(11) NOT NULL,
+ `WORKFLOW_DB_ID` int(11) NOT NULL,
+ KEY `vid_vnf_workflow_vid_vnf_VND_ID_fk` (`VNF_DB_ID`),
+ KEY `vid_vnf_workflow_vid_workflow_WORKFLOW_ID_fk` (`WORKFLOW_DB_ID`),
+ CONSTRAINT `vid_vnf_workflow_vid_vnf_VND_ID_fk` FOREIGN KEY (`VNF_DB_ID`) REFERENCES `vid_vnf` (`VNF_DB_ID`),
+ CONSTRAINT `vid_vnf_workflow_vid_workflow_WORKFLOW_ID_fk` FOREIGN KEY (`WORKFLOW_DB_ID`) REFERENCES `vid_openecomp_epsdk`.`vid_workflow` (`WORKFLOW_DB_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
+
+
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.vid_category_parameter
-- ----------------------------------------------------------------------------
-CREATE OR REPLACE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `v_url_access` AS select distinct `m`.`ACTION` AS
-`URL`,`m`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_menu` `m` where (`m`.`ACTION` is not null) union select distinct
-`t`.`ACTION` AS `URL`,`t`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_tab` `t` where (`t`.`ACTION` is not null) union select
+CREATE TABLE IF NOT EXISTS `vid_category_parameter` (
+ `CATEGORY_ID` INT(11) NOT NULL AUTO_INCREMENT,
+ `NAME` VARCHAR(255) NULL COLLATE 'utf8_bin',
+ `ID_SUPPORTED` TINYINT(1) NOT NULL DEFAULT '0',
+ `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`CATEGORY_ID`)
+) COLLATE='utf8_bin' ENGINE=InnoDB AUTO_INCREMENT=5;
-`r`.`RESTRICTED_URL` AS `URL`,`r`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_restricted_url` `r`;
+-------------------------------------------------------------------------------
+
+ALTER TABLE `vid_category_parameter`
+ ADD COLUMN if not exists `FAMILY` ENUM('PARAMETER_STANDARDIZATION','TENANT_ISOLATION') NOT NULL DEFAULT 'PARAMETER_STANDARDIZATION' AFTER `ID_SUPPORTED`;
+-- ----------------------------------------------------------------------------
+-- Table vid_openecomp_epsdk.vid_category_parameter
+-- ----------------------------------------------------------------------------
+CREATE TABLE IF NOT EXISTS `vid_category_parameter_option` (
+ `CATEGORY_OPT_DB_ID` INT(11) NOT NULL AUTO_INCREMENT,
+ `CATEGORY_OPT_APP_ID` VARCHAR(50) NOT NULL COLLATE 'utf8_bin',
+ `NAME` VARCHAR(50) NULL COLLATE 'utf8_bin',
+ `CATEGORY_ID` INT(11) NOT NULL DEFAULT '0',
+ `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`CATEGORY_OPT_DB_ID`),
+ UNIQUE INDEX `APP_ID_CATEGORY_UNIQUE` (`CATEGORY_ID`, `CATEGORY_OPT_APP_ID`),
+ UNIQUE INDEX `NAME_CATEGORY_UNIQUE` (`CATEGORY_ID`, `NAME`),
+ CONSTRAINT `FK_OWNING_ENTITY_OPTIONS_TO_OE` FOREIGN KEY (`CATEGORY_ID`) REFERENCES `vid_openecomp_epsdk`.`vid_category_parameter` (`CATEGORY_ID`)
+) COLLATE='utf8_bin' ENGINE=InnoDB AUTO_INCREMENT=25;
+
+
+-- ----------------------------------------------------------------------------
+-- View vid_openecomp_epsdk.v_url_access
+-- ----------------------------------------------------------------------------
+CREATE OR REPLACE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `v_url_access` AS select distinct `m`.`ACTION` AS `URL`,`m`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_menu` `m` where (`m`.`ACTION` is not null) union select distinct `t`.`ACTION` AS `URL`,`t`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_tab` `t` where (`t`.`ACTION` is not null) union select `r`.`RESTRICTED_URL` AS `URL`,`r`.`FUNCTION_CD` AS `FUNCTION_CD` from `fn_restricted_url` `r`;
SET FOREIGN_KEY_CHECKS = 1;
diff --git a/epsdk-app-onap/src/main/swm/common/common.sh b/epsdk-app-onap/src/main/swm/common/common.sh deleted file mode 100755 index 4b98a5eac..000000000 --- a/epsdk-app-onap/src/main/swm/common/common.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash
-
-if [[ "${INSTALL_ROOT}" = */ ]]; then
- export ROOT_DIR=${INSTALL_ROOT}opt/app/vid/portal
-else
- export ROOT_DIR=${INSTALL_ROOT}/opt/app/vid/portal
-fi
-
-export JAVA_HOME=/opt/app/java/jdk/jdk180
-
-
-OS=`uname`
-
-if [ "${OS}" = "SunOS" ]; then
- CURRENT_USER=`/usr/xpg4/bin/id -un`
- CURRENT_GROUP=`/usr/xpg4/bin/id -gn`
-else
- CURRENT_USER=`id -un`
- CURRENT_GROUP=`id -gn`
-fi
-
-export CURRENT_USER CURRENT_GROUP
-export TOMCAT_HOME=/opt/app/vid/tomcat
-
-if [ -z "${VID_ENDPOINT_NAME}" ]; then
- VID_ENDPOINT_NAME="vid"
-fi
-
-# Fail - used to quickly exit with a rc and error message
-fail() {
- rc=$1
- shift;
- echo "ERROR: $@"
- exit $rc
-}
diff --git a/epsdk-app-onap/src/main/swm/common/localize.sh b/epsdk-app-onap/src/main/swm/common/localize.sh deleted file mode 100755 index 711287e1f..000000000 --- a/epsdk-app-onap/src/main/swm/common/localize.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash
-
-COMMON_DIR="$(dirname "$AFTSWM_ACTIONHANDLER_SCRIPT")/../../common"
-
-source "${COMMON_DIR}/localize_logback.sh" || {
- echo "ERROR: Localizing logback.xml failed"
- exit 1
-}
-
-source "${COMMON_DIR}/localize_portal.sh" || {
- echo "ERROR: Localizing portal.properties failed"
- exit 1
-}
-
-source "${COMMON_DIR}/localize_quartz.sh" || {
- echo "ERROR: Localizing quartz.properties failed"
- exit 1
-}
-
-source "${COMMON_DIR}/localize_system.sh" || {
- echo "ERROR: Localizing system.properties failed"
- exit 1
-}
-
-source "${COMMON_DIR}/localize_cache.sh" || {
- echo "ERROR: Localizing cache.ccf failed"
- exit 1
-}
-
-source "${COMMON_DIR}/localize_asdc.sh" || {
- echo "ERROR: Localizing asdc.properties failed"
- exit 1
-}
diff --git a/epsdk-app-onap/src/main/swm/common/localize_asdc.sh b/epsdk-app-onap/src/main/swm/common/localize_asdc.sh deleted file mode 100755 index 5774e5a0c..000000000 --- a/epsdk-app-onap/src/main/swm/common/localize_asdc.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/bash
-
-FINAL_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/asdc.properties
-TEMPLATE_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/asdc_template.properties
-BACKUP1_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/asdc.properties.bk.1
-BACKUP2_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/asdc.properties.bk.2
-
-echo "Localizing the SDC client configuration"
-
-if [ -z "${ASDC_CLIENT_TYPE}" ]; then
- ASDC_CLIENT_TYPE=REST
-fi
-
-if [ "${ASDC_CLIENT_TYPE}" = "REST" ]; then
- if [ -z "${ASDC_CLIENT_REST_HOST}" ]; then
- echo 'ASDC_CLIENT_REST_HOST must be provided when ASDC_CLIENT_TYPE=REST'
- exit 1
- fi
-
- if [ -z "${ASDC_CLIENT_REST_AUTH}" ]; then
- echo 'ASDC_CLIENT_REST_AUTH must be provided when ASDC_CLIENT_TYPE=REST'
- exit 2
- fi
-
- if [ -z "${ASDC_CLIENT_REST_PROTOCOL}" ]; then
- ASDC_CLIENT_REST_PROTOCOL=http
- fi
-
- if [ -z "${ASDC_CLIENT_REST_PORT}" ]; then
- ASDC_CLIENT_REST_PORT=8080
- fi
-else
- ASDC_CLIENT_REST_HOST=""
- ASDC_CLIENT_REST_AUTH=""
- ASDC_CLIENT_REST_PROTOCOL="http"
- ASDC_CLIENT_REST_PORT="8080"
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF PREVIOUS BACKUP FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${BACKUP1_CONFIG_FILE} ]; then
- cp -f ${BACKUP1_CONFIG_FILE} ${BACKUP2_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${BACKUP1_CONFIG_FILE} to ${BACKUP2_CONFIG_FILE}"
- exit 2
- }
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF CURRENT FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${FINAL_CONFIG_FILE} ]; then
- cp -f ${FINAL_CONFIG_FILE} ${BACKUP1_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${FINAL_CONFIG_FILE} to ${BACKUP1_CONFIG_FILE}"
- exit 3
- }
-fi
-
-sed -e 's ${ASDC_CLIENT_TYPE} '${ASDC_CLIENT_TYPE}' g' \
- -e 's ${ASDC_CLIENT_REST_HOST} '${ASDC_CLIENT_REST_HOST}' g' \
- -e 's ${ASDC_CLIENT_REST_PORT} '${ASDC_CLIENT_REST_PORT}' g' \
- -e 's ${ASDC_CLIENT_REST_PROTOCOL} '${ASDC_CLIENT_REST_PROTOCOL}' g' \
- -e 's/${ASDC_CLIENT_REST_AUTH}/'"${ASDC_CLIENT_REST_AUTH}"'/g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
- echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
- exit 4
- }
-
-echo "Localized ${FINAL_CONFIG_FILE} successfully."
diff --git a/epsdk-app-onap/src/main/swm/common/localize_cache.sh b/epsdk-app-onap/src/main/swm/common/localize_cache.sh deleted file mode 100755 index 00069f89f..000000000 --- a/epsdk-app-onap/src/main/swm/common/localize_cache.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash
-
-FINAL_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/cache.ccf
-TEMPLATE_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/cache_template.ccf
-BACKUP1_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/cache.ccf.bk.1
-BACKUP2_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/cache.ccf.bk.2
-
-echo "Localizing the VID cache configuration"
-
-if [ -z "${CACHE_DIRECTORY}" ]; then
- CACHE_DIRECTORY=${ROOT_DIR}/cache
-fi
-
-mkdir -p "${CACHE_DIRECTORY}"
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF PREVIOUS BACKUP FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${BACKUP1_CONFIG_FILE} ]; then
- cp -f ${BACKUP1_CONFIG_FILE} ${BACKUP2_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${BACKUP1_CONFIG_FILE} to ${BACKUP2_CONFIG_FILE}"
- exit 1
- }
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF CURRENT FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${FINAL_CONFIG_FILE} ]; then
- cp -f ${FINAL_CONFIG_FILE} ${BACKUP1_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${FINAL_CONFIG_FILE} to ${BACKUP1_CONFIG_FILE}"
- exit 2
- }
-fi
-
-sed -e 's,${CACHE_DIRECTORY},'${CACHE_DIRECTORY}',g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
- echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
- exit 3
- }
-
-echo "Localized ${FINAL_CONFIG_FILE} successfully."
diff --git a/epsdk-app-onap/src/main/swm/common/localize_log4j.sh b/epsdk-app-onap/src/main/swm/common/localize_log4j.sh deleted file mode 100755 index 1b044aa6b..000000000 --- a/epsdk-app-onap/src/main/swm/common/localize_log4j.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash
-
-FINAL_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/log4j.properties
-TEMPLATE_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/log4j_template.properties
-BACKUP1_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/log4j.properties.bk.1
-BACKUP2_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/log4j.properties.bk.2
-
-echo "Localizing the VID log4j configuration"
-
-if [ -z "${LOG4J_LOGLEVEL}" ]; then
- LOG4J_LOGLEVEL=INFO
-fi
-
-
-if [ -z "${LOG4J_APPENDER}" ]; then
- LOG4J_APPENDER=rollingfile
-fi
-
-if [ -z "${LOG4J_LOGS_DIRECTORY}" ]; then
- LOG4J_LOGS_DIRECTORY=${ROOT_DIR}/logs
-fi
-
-mkdir -p ${LOG4J_LOGS_DIRECTORY}
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF PREVIOUS BACKUP FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${BACKUP1_CONFIG_FILE} ]; then
- cp -f ${BACKUP1_CONFIG_FILE} ${BACKUP2_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${BACKUP1_CONFIG_FILE} to ${BACKUP2_CONFIG_FILE}"
- exit 1
- }
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF CURRENT FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${FINAL_CONFIG_FILE} ]; then
- cp -f ${FINAL_CONFIG_FILE} ${BACKUP1_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${FINAL_CONFIG_FILE} to ${BACKUP1_CONFIG_FILE}"
- exit 2
- }
-fi
-
-sed -e 's/${LOG4J_LOGLEVEL}/'${LOG4J_LOGLEVEL}'/g' \
- -e 's/${LOG4J_APPENDER}/'${LOG4J_APPENDER}'/g' \
- -e 's,${LOG4J_LOGS_DIRECTORY},'${LOG4J_LOGS_DIRECTORY}',g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
- echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
- exit 3
- }
-
-echo "Localized ${FINAL_CONFIG_FILE} successfully."
-
-
diff --git a/epsdk-app-onap/src/main/swm/common/localize_logback.sh b/epsdk-app-onap/src/main/swm/common/localize_logback.sh deleted file mode 100755 index bda2486d4..000000000 --- a/epsdk-app-onap/src/main/swm/common/localize_logback.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash
-
-FINAL_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/logback.xml
-TEMPLATE_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/logback_template.xml
-BACKUP1_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/logback.xml.bk.1
-BACKUP2_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/logback.xml.bk.2
-
-echo "Localizing the VID logback configuration"
-
-if [ -z "${VID_LOG_DIR}" ]; then
- VID_LOG_DIR="${ROOT_DIR}/logs"
-fi
-
-if [ -z "${VID_LOG_LEVEL}" ]; then
- VID_LOG_LEVEL="INFO"
-fi
-
-mkdir -p "${VID_LOG_DIR}"
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF PREVIOUS BACKUP FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${BACKUP1_CONFIG_FILE} ]; then
- cp -f ${BACKUP1_CONFIG_FILE} ${BACKUP2_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${BACKUP1_CONFIG_FILE} to ${BACKUP2_CONFIG_FILE}"
- exit 1
- }
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF CURRENT FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${FINAL_CONFIG_FILE} ]; then
- cp -f ${FINAL_CONFIG_FILE} ${BACKUP1_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${FINAL_CONFIG_FILE} to ${BACKUP1_CONFIG_FILE}"
- exit 2
- }
-fi
-
-sed -e 's/${VID_LOG_LEVEL}/'${VID_LOG_LEVEL}'/g' \
- -e 's,${VID_LOG_DIR},'${VID_LOG_DIR}',g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
- echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
- exit 3
- }
-
-echo "Localized ${FINAL_CONFIG_FILE} successfully."
diff --git a/epsdk-app-onap/src/main/swm/common/localize_portal.sh b/epsdk-app-onap/src/main/swm/common/localize_portal.sh deleted file mode 100755 index 27ea24a11..000000000 --- a/epsdk-app-onap/src/main/swm/common/localize_portal.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/bash
-
-FINAL_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/portal.properties
-TEMPLATE_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/portal_template.properties
-BACKUP1_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/portal.properties.bk.1
-BACKUP2_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/classes/portal.properties.bk.2
-
-echo "Localizing the VID portal configuration"
-
-if [ -z "${VID_ECOMP_REDIRECT_URL}" ]; then
- VID_ECOMP_REDIRECT_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm
-fi
-
-if [ -z "${VID_WJ_LOGOUT_URL}" ]; then
- VID_WJ_LOGOUT_URL=https://portal.openecomp.org/ecompportal/ecompportal/process_csp
-fi
-
-if [ -z "${VID_ECOMP_REST_URL}" ]; then
- VID_ECOMP_REST_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi
-fi
-
-if [ -z "${VID_UEB_URL_LIST}" ]; then
- VID_UEB_URL_LIST=ueb.openecomp.org
-fi
-
-if [ -z "${VID_UEB_CONSUMER_GROUP}" ]; then
- VID_UEB_CONSUMER_GROUP=VID
-fi
-
-if [ -z "${VID_ECOMP_PORTAL_INBOX_NAME}" ]; then
- VID_ECOMP_PORTAL_INBOX_NAME=ECOMP-PORTAL-INBOX-DEV-LOCAL
-fi
-
-if [ -z "${VID_UEB_APP_KEY}" ]; then
- VID_UEB_APP_KEY=sYH0NJnsKmJC1B2A
-fi
-
-if [ -z "${VID_UEB_APP_SECRET}" ]; then
- VID_UEB_APP_SECRET=YOtknsT2wVFz9WISlSPDaAtd
-fi
-
-if [ -z "${VID_UEB_APP_MAILBOX_NAME}" ]; then
- VID_UEB_APP_MAILBOX_NAME="ECOMP-PORTAL-OUTBOX-90"
-fi
-
-if [ -z "${VID_UEB_LISTENERS_ENABLE}" ]; then
- VID_UEB_LISTENERS_ENABLE="false"
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF PREVIOUS BACKUP FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${BACKUP1_CONFIG_FILE} ]; then
- cp -f ${BACKUP1_CONFIG_FILE} ${BACKUP2_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${BACKUP1_CONFIG_FILE} to ${BACKUP2_CONFIG_FILE}"
- exit 2
- }
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF CURRENT FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${FINAL_CONFIG_FILE} ]; then
- cp -f ${FINAL_CONFIG_FILE} ${BACKUP1_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${FINAL_CONFIG_FILE} to ${BACKUP1_CONFIG_FILE}"
- exit 3
- }
-fi
-
-sed -e 's ${VID_WJ_LOGOUT_URL} '${VID_WJ_LOGOUT_URL}' g' \
- -e 's ${VID_ECOMP_REDIRECT_URL} '${VID_ECOMP_REDIRECT_URL}' g' \
- -e 's ${VID_ECOMP_REST_URL} '${VID_ECOMP_REST_URL}' g' \
- -e 's ${VID_UEB_URL_LIST} '${VID_UEB_URL_LIST}' g' \
- -e 's ${VID_ECOMP_PORTAL_INBOX_NAME} '${VID_ECOMP_PORTAL_INBOX_NAME}' g' \
- -e 's ${VID_UEB_APP_KEY} '${VID_UEB_APP_KEY}' g' \
- -e 's ${VID_UEB_APP_SECRET} '${VID_UEB_APP_SECRET}' g' \
- -e 's ${VID_UEB_APP_MAILBOX_NAME} '${VID_UEB_APP_MAILBOX_NAME}' g' \
- -e 's ${VID_UEB_LISTENERS_ENABLE} '${VID_UEB_LISTENERS_ENABLE}' g' \
- -e 's/${VID_UEB_CONSUMER_GROUP}/'${VID_UEB_CONSUMER_GROUP}'/g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
- echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
- exit 4
- }
-
-echo "Localized ${FINAL_CONFIG_FILE} successfully."
diff --git a/epsdk-app-onap/src/main/swm/common/localize_quartz.sh b/epsdk-app-onap/src/main/swm/common/localize_quartz.sh deleted file mode 100755 index 9a646867c..000000000 --- a/epsdk-app-onap/src/main/swm/common/localize_quartz.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash
-
-FINAL_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/quartz.properties
-TEMPLATE_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/quartz_template.properties
-BACKUP1_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/quartz.properties.bk.1
-BACKUP2_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/quartz.properties.bk.2
-
-echo "Localizing the VID quartz configuration"
-
-if [ -z "${VID_MYSQL_HOST}" ]; then
- VID_MYSQL_HOST=localhost
-fi
-
-if [ -z "${VID_MYSQL_PORT}" ]; then
- VID_MYSQL_PORT=3306
-fi
-
-if [ -z "${VID_MYSQL_DBNAME}" ]; then
- VID_MYSQL_DBNAME=vid_portal
-fi
-
-if [ -z "${VID_MYSQL_USER}" ]; then
- VID_MYSQL_USER=$(id -un)
-fi
-
-if [ -z "${VID_MYSQL_MAXCONNECTIONS}" ]; then
- VID_MYSQL_MAXCONNECTIONS=5
-fi
-
-if [ -z "${VID_MYSQL_PASS}" ]; then
- echo "Missing required parameter VID_MYSQL_PASS"
- exit 1
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF PREVIOUS BACKUP FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${BACKUP1_CONFIG_FILE} ]; then
- cp -f ${BACKUP1_CONFIG_FILE} ${BACKUP2_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${BACKUP1_CONFIG_FILE} to ${BACKUP2_CONFIG_FILE}"
- exit 2
- }
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF CURRENT FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${FINAL_CONFIG_FILE} ]; then
- cp -f ${FINAL_CONFIG_FILE} ${BACKUP1_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${FINAL_CONFIG_FILE} to ${BACKUP1_CONFIG_FILE}"
- exit 3
- }
-fi
-
-sed -e 's/${VID_MYSQL_HOST}/'${VID_MYSQL_HOST}'/g' \
- -e 's/${VID_MYSQL_PORT}/'${VID_MYSQL_PORT}'/g' \
- -e 's/${VID_MYSQL_DBNAME}/'${VID_MYSQL_DBNAME}'/g' \
- -e 's/${VID_MYSQL_USER}/'${VID_MYSQL_USER}'/g' \
- -e 's/${VID_MYSQL_PASS}/'${VID_MYSQL_PASS}'/g' \
- -e 's/${VID_MYSQL_MAXCONNECTIONS}/'${VID_MYSQL_MAXCONNECTIONS}'/g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
- echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
- exit 4
- }
-
-echo "Localized ${FINAL_CONFIG_FILE} successfully."
-
-
diff --git a/epsdk-app-onap/src/main/swm/common/localize_system.sh b/epsdk-app-onap/src/main/swm/common/localize_system.sh deleted file mode 100755 index c9d0afd8d..000000000 --- a/epsdk-app-onap/src/main/swm/common/localize_system.sh +++ /dev/null @@ -1,178 +0,0 @@ -#!/bin/bash
-
-FINAL_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/system.properties
-TEMPLATE_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/system_template.properties
-BACKUP1_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/system.properties.bk.1
-BACKUP2_CONFIG_FILE=${ROOT_DIR}/war/WEB-INF/conf/system.properties.bk.2
-
-echo "Localizing the VID system configuration"
-
-if [ -z "${VID_MYSQL_HOST}" ]; then
- VID_MYSQL_HOST=localhost
-fi
-
-if [ -z "${VID_MYSQL_PORT}" ]; then
- VID_MYSQL_PORT=3306
-fi
-
-if [ -z "${VID_MYSQL_DBNAME}" ]; then
- VID_MYSQL_DBNAME=vid_portal
-fi
-
-if [ -z "${VID_MYSQL_USER}" ]; then
- VID_MYSQL_USER=vid_admin
-fi
-
-if [ -z "${VID_MYSQL_MAXCONNECTIONS}" ]; then
- VID_MYSQL_MAXCONNECTIONS=5
-fi
-
-if [ -z "${VID_AAI_HOST}" ]; then
- VID_AAI_HOST=aai.api.openecomp.org
-fi
-
-if [ -z "${VID_AAI_PORT}" ]; then
- VID_AAI_PORT=8443
-fi
-
-if [ -z "${VID_APP_DISPLAY_NAME}" ]; then
- VID_APP_DISPLAY_NAME=VID
-fi
-
-if [ -z "${VID_ECOMP_SHARED_CONTEXT_REST_URL}" ]; then
- VID_ECOMP_SHARED_CONTEXT_REST_URL="https://portal.openecomp.org:8080/ecompportal/context"
-fi
-
-if [ -z "${VID_ECOMP_REDIRECT_URL}" ]; then
- VID_ECOMP_REDIRECT_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm
-fi
-
-if [ -z "${VID_ECOMP_REST_URL}" ]; then
- VID_ECOMP_REST_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi
-fi
-
-if [ -z "${VID_MSO_SERVER_URL}" ]; then
- VID_MSO_SERVER_URL=https://mso.api.openecomp.org:8443
-fi
-
-if [ -z "${VID_TRUSTSTORE_FILE}" ]; then
- VID_TRUSTSTORE_FILE=${ROOT_DIR}/etc/vid_keystore.jks
-fi
-
-if [ -z "${VID_MYLOGIN_FEED_DIRECTORY}" ]; then
- VID_MYLOGIN_FEED_DIRECTORY=/tmp/MyLogins
-fi
-
-if [ -z "${VID_TRUSTSTORE_PASS}" ]; then
- echo "ERROR: Missing required parameter VID_TRUSTSTORE_PASS"
- exit 1
-fi
-
-if [ -z "${VID_MSO_USER}" ]; then
- echo "ERROR: Missing required parameter VID_MSO_USER"
- exit 1
-fi
-
-if [ -z "${VID_MSO_PASS}" ]; then
- echo "ERROR: Missing required parameter VID_MSO_PASS";
- exit 1
-fi
-
-if [ -z "${VID_MYSQL_PASS}" ]; then
- echo "ERROR: Missing required parameter VID_MYSQL_PASS"
- exit 1
-fi
-
-if [ -z "${MSO_DME2_CLIENT_TIMEOUT}" ]; then
- echo "ERROR: Missing required parameter MSO_DME2_CLIENT_TIMEOUT"
- exit 1
-fi
-
-if [ -z "${MSO_DME2_CLIENT_READ_TIMEOUT}" ]; then
- echo "ERROR: Missing required parameter MSO_DME2_CLIENT_READ_TIMEOUT"
- exit 1
-fi
-
-if [ -z "${MSO_DME2_SERVER_URL}" ]; then
- echo "ERROR: Missing required parameter MSO_DME2_SERVER_URL"
- exit 1
-fi
-if [ -z "${MSO_DME2_ENABLED}" ]; then
- echo "ERROR: Missing required parameter MSO_DME2_ENABLED"
- exit 1
-fi
-if [ -z "${MSO_POLLING_INTERVAL_MSECS}" ]; then
- MSO_POLLING_INTERVAL_MSECS=10000
-fi
-
-if [ -z "${AAI_TRUSTSTORE_FILENAME}" ]; then
- AAI_TRUSTSTORE_FILENAME=tomcat_keystore
-fi
-
-if [ -z "${AAI_TRUSTSTORE_PASSWD_X}" ]; then
- AAI_TRUSTSTORE_PASSWD_X=70c87528c88dcd9f9c2558d30e817868
-fi
-
-if [ -z "${AAI_KEYSTORE_FILENAME}" ]; then
- AAI_KEYSTORE_FILENAME=aai-client-cert.p12
-fi
-
-if [ -z "${AAI_KEYSTORE_PASSWD_X}" ]; then
- AAI_KEYSTORE_PASSWD_X=70c87528c88dcd9f9c2558d30e817868
-fi
-
-mkdir -p "${VID_MYLOGIN_FEED_DIRECTORY}"
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF PREVIOUS BACKUP FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${BACKUP1_CONFIG_FILE} ]; then
- cp -f ${BACKUP1_CONFIG_FILE} ${BACKUP2_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${BACKUP1_CONFIG_FILE} to ${BACKUP2_CONFIG_FILE}"
- exit 2
- }
-fi
-
-#------------------------------------------------------------------------
-#- MAKE A BACKUP OF CURRENT FILE, IF EXISTS
-#------------------------------------------------------------------------
-if [ -f ${FINAL_CONFIG_FILE} ]; then
- cp -f ${FINAL_CONFIG_FILE} ${BACKUP1_CONFIG_FILE} || {
- echo "ERROR: Could not copy ${FINAL_CONFIG_FILE} to ${BACKUP1_CONFIG_FILE}"
- exit 3
- }
-fi
-
-sed -e 's/${VID_MYSQL_HOST}/'${VID_MYSQL_HOST}'/g' \
- -e 's/${VID_MYSQL_PORT}/'${VID_MYSQL_PORT}'/g' \
- -e 's/${VID_MYSQL_DBNAME}/'${VID_MYSQL_DBNAME}'/g' \
- -e 's/${VID_MYSQL_USER}/'${VID_MYSQL_USER}'/g' \
- -e 's/${VID_MYSQL_PASS}/'${VID_MYSQL_PASS}'/g' \
- -e 's/${VID_AAI_HOST}/'${VID_AAI_HOST}'/g' \
- -e 's/${VID_AAI_PORT}/'${VID_AAI_PORT}'/g' \
- -e 's,${AAI_TRUSTSTORE_FILENAME},'${AAI_TRUSTSTORE_FILENAME}',g' \
- -e 's/${AAI_TRUSTSTORE_PASSWD_X}/'${AAI_TRUSTSTORE_PASSWD_X}'/g' \
- -e 's,${AAI_KEYSTORE_FILENAME},'${AAI_KEYSTORE_FILENAME}',g' \
- -e 's/${AAI_KEYSTORE_PASSWD_X}/'${AAI_KEYSTORE_PASSWD_X}'/g' \
- -e 's/${VID_APP_DISPLAY_NAME}/'${VID_APP_DISPLAY_NAME}'/g' \
- -e 's ${VID_ECOMP_SHARED_CONTEXT_REST_URL} '${VID_ECOMP_SHARED_CONTEXT_REST_URL}' g' \
- -e 's ${VID_ECOMP_REDIRECT_URL} '${VID_ECOMP_REDIRECT_URL}' g' \
- -e 's ${VID_ECOMP_REST_URL} '${VID_ECOMP_REST_URL}' g' \
- -e 's ${VID_MSO_SERVER_URL} '${VID_MSO_SERVER_URL}' g' \
- -e 's/${VID_MSO_USER}/'${VID_MSO_USER}'/g' \
- -e 's/${VID_MSO_PASS}/'${VID_MSO_PASS}'/g' \
- -e 's,${VID_MYLOGIN_FEED_DIRECTORY},'${VID_MYLOGIN_FEED_DIRECTORY}',g' \
- -e 's,${MSO_DME2_CLIENT_TIMEOUT},'${MSO_DME2_CLIENT_TIMEOUT}',g' \
- -e 's,${MSO_DME2_CLIENT_READ_TIMEOUT},'${MSO_DME2_CLIENT_READ_TIMEOUT}',g' \
- -e 's,${MSO_DME2_SERVER_URL},'${MSO_DME2_SERVER_URL}',g' \
- -e 's,${MSO_DME2_ENABLED},'${MSO_DME2_ENABLED}',g' \
- -e 's,${MSO_POLLING_INTERVAL_MSECS},'${MSO_POLLING_INTERVAL_MSECS}',g' \
- -e 's,${VID_TRUSTSTORE_FILE},'${VID_TRUSTSTORE_FILE}',g' \
- -e 's/${VID_TRUSTSTORE_PASS}/'${VID_TRUSTSTORE_PASS}'/g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
- echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
- exit 4
- }
-
-echo "Localized ${FINAL_CONFIG_FILE} successfully."
-
-
diff --git a/epsdk-app-onap/src/main/swm/deinstall/postproc/post_proc b/epsdk-app-onap/src/main/swm/deinstall/postproc/post_proc deleted file mode 100755 index 103d18d38..000000000 --- a/epsdk-app-onap/src/main/swm/deinstall/postproc/post_proc +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh
-
-cd ../../common
-exec sh -x ./deinstall_postproc.sh
\ No newline at end of file diff --git a/epsdk-app-onap/src/main/swm/deinstall/preproc/pre_proc b/epsdk-app-onap/src/main/swm/deinstall/preproc/pre_proc deleted file mode 100755 index ce87ecffb..000000000 --- a/epsdk-app-onap/src/main/swm/deinstall/preproc/pre_proc +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh
-
-cd ../../common
-exec sh -x ./deinstall_preproc.sh
\ No newline at end of file diff --git a/epsdk-app-onap/src/main/swm/descriptor.xml b/epsdk-app-onap/src/main/swm/descriptor.xml deleted file mode 100755 index 7c09ef3a8..000000000 --- a/epsdk-app-onap/src/main/swm/descriptor.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<descriptor version="1" concurrent="false" xmlns="http://aft.openecomp.org/swm/descriptor">
- <platforms>
- <platform os="Linux" osVersions="*" architecture="*" />
- </platforms>
-
- <paths>
- <path name="/opt/app/vid" type="d" user="vidadmin" group="vidadmin" permissions="755" recursive="true"/>
- </paths>
-
- <actions>
- <action type="DINST">
- <proc stage="PRE" user="vidadmin" group="vidadmin"/>
- <proc stage="POST" user="vidadmin" group="vidadmin"/>
- </action>
- <action type="INIT">
- <proc stage="PRE" user="vidadmin" group="vidadmin"/>
- <proc stage="POST" user="vidadmin" group="vidadmin"/>
- </action>
- <action type="INST">
- <proc stage="PRE" user="vidadmin" group="vidadmin"/>
- <proc stage="POST" user="vidadmin" group="vidadmin"/>
- </action>
- <action type="FALL">
- <proc stage="PRE" user="vidadmin" group="vidadmin"/>
- <proc stage="POST" user="vidadmin" group="vidadmin"/>
- </action>
- </actions>
-
- <dependencies>
- <dependencyFilter componentName="org.openecomp.java:jdk8lin" versions="[1.8.0.77-02]" sequence="1"/>
- <dependencyFilter componentName="org.openecomp.vid:tomcat" versions="[8.0.36-37,)" sequence="2"/>
- </dependencies>
-</descriptor>
diff --git a/epsdk-app-onap/src/main/swm/fallback/postproc/post_proc b/epsdk-app-onap/src/main/swm/fallback/postproc/post_proc deleted file mode 100755 index 96b4b06ad..000000000 --- a/epsdk-app-onap/src/main/swm/fallback/postproc/post_proc +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh
\ No newline at end of file diff --git a/epsdk-app-onap/src/main/swm/fallback/preproc/pre_proc b/epsdk-app-onap/src/main/swm/fallback/preproc/pre_proc deleted file mode 100755 index 96b4b06ad..000000000 --- a/epsdk-app-onap/src/main/swm/fallback/preproc/pre_proc +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh
\ No newline at end of file diff --git a/epsdk-app-onap/src/main/swm/initinst/postproc/post_proc b/epsdk-app-onap/src/main/swm/initinst/postproc/post_proc deleted file mode 100755 index a986928c0..000000000 --- a/epsdk-app-onap/src/main/swm/initinst/postproc/post_proc +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-source ${DIR}/../../install/postproc/post_proc || {
- echo "INITINST post_proc script failed"; exit 1
-}
diff --git a/epsdk-app-onap/src/main/swm/initinst/preproc/pre_proc b/epsdk-app-onap/src/main/swm/initinst/preproc/pre_proc deleted file mode 100755 index 983d0c535..000000000 --- a/epsdk-app-onap/src/main/swm/initinst/preproc/pre_proc +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash
-
-DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-
-source "${DIR}/../../install/preproc/pre_proc" || {
- echo "INITINST pre_proc script failed"; exit 1
-}
diff --git a/epsdk-app-onap/src/main/swm/install/postproc/post_proc b/epsdk-app-onap/src/main/swm/install/postproc/post_proc deleted file mode 100755 index 370d44b61..000000000 --- a/epsdk-app-onap/src/main/swm/install/postproc/post_proc +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-COMMON_SCRIPT=${DIR}/../../common/common.sh
-
-source "${COMMON_SCRIPT}" || {
- echo "ERROR: Common script failed"
- exit 1
-}
-
-mkdir -p "${TOMCAT_HOME}/temp"
-
-#Extract the WAR so it can be customized by the localization script
-mkdir -p ${ROOT_DIR}/war
-cp "${ROOT_DIR}/lib/vid.war" "${ROOT_DIR}/war/${VID_ENDPOINT_NAME}.war"
-cd "${ROOT_DIR}/war"
-${JAVA_HOME}/bin/jar -xf ${VID_ENDPOINT_NAME}.war
-rm ${ROOT_DIR}/war/${VID_ENDPOINT_NAME}.war
-
-LOCALIZE_SCRIPT=$(dirname "$AFTSWM_ACTIONHANDLER_SCRIPT")/../../common/localize.sh
-
-
-source "${LOCALIZE_SCRIPT}" || {
- echo "ERROR: Localization script failed"
- exit 2
-}
-
-#Create the customized WAR and deploy it to Tomcat
-mkdir -p "${ROOT_DIR}/deployed"
-cd "${ROOT_DIR}/war"
-${JAVA_HOME}/bin/jar -cvf "${ROOT_DIR}/deployed/${VID_ENDPOINT_NAME}.war" .
-cd
-rm -rf "${ROOT_DIR}/war"
-mv -f "${ROOT_DIR}/deployed/${VID_ENDPOINT_NAME}.war" "${TOMCAT_HOME}/webapps"
-
-if [ -f "${TOMCAT_HOME}/bin/startup.sh" ]; then
- "${TOMCAT_HOME}/bin/startup.sh"
-fi
diff --git a/epsdk-app-onap/src/main/swm/install/preproc/pre_proc b/epsdk-app-onap/src/main/swm/install/preproc/pre_proc deleted file mode 100755 index a09a9c46f..000000000 --- a/epsdk-app-onap/src/main/swm/install/preproc/pre_proc +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash
-
-DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-COMMON_SCRIPT=${DIR}/../../common/common.sh
-
-source "${COMMON_SCRIPT}" || {
- echo "ERROR: Common script failed"
- exit 1
-}
-
-if [ -f "${TOMCAT_HOME}/bin/shutdown.sh" ]; then
- "${TOMCAT_HOME}/bin/shutdown.sh"
-
- if [ -d "${TOMCAT_HOME}/webapps/${VID_ENDPOINT_NAME}" ]; then
- rm -r "${TOMCAT_HOME}/webapps/${VID_ENDPOINT_NAME}"
- fi
-fi
-
diff --git a/epsdk-app-onap/src/main/swm/notes.txt b/epsdk-app-onap/src/main/swm/notes.txt deleted file mode 100755 index f0a8fa974..000000000 --- a/epsdk-app-onap/src/main/swm/notes.txt +++ /dev/null @@ -1,52 +0,0 @@ -This package will install the Virtual Infrastructure Deployment (VID) war to the local tomcat server.
-The Tomcat server is marked as a dependency of this package and will be installed automatically on the
-target server if it has not already been installed. The current version of Tomcat used by VID
-is 8.0.36. MariaDB is also necessary for VID and can be installed by whichever method you choose.
-
-The following are variables that can be set to customize your installation of VID:
-
-Variable Default Description
-
-ASDC_CLIENT_REST_AUTH unset Basic authentication header value (e.g. Basic asdfoijwelkjsg=)
-ASDC_CLIENT_REST_HOST unset Host where the SDC Catalog Service is running
-ASDC_CLIENT_REST_PORT 8080 Port where the SDC Catalog Service is running
-ASDC_CLIENT_TYPE REST Set to IN_MEMORY for testing, REST for connecting with an actual SDC Catalog Service
-
-MSO_DME2_CLIENT_READ_TIMEOUT unset Time in ms before DME2 MSO read requests timeout
-MSO_DME2_CLIENT_TIMEOUT unset Time in ms before DME2 MSO requests timeout
-MSO_DME2_ENABLED unset Whether the enable the MSO DME2 client or not
-MSO_DME2_SERVER_URL unset The server URL for connecting to the MSO service
-MSO_POLLING_INTERVAL_MSECS 10000 The interval at which to poll MSO for orchestration requests
-VID_MSO_PASS unset The password for connecting with the MSO service
-VID_MSO_SERVER_URL unset The server URL for connecting with the MSO service
-VID_MSO_USER unset The user name for connecting with the MSO service
-
-VID_LOG_DIR ${ROOT_DIR}/logs The directory to store log files in
-VID_LOG_LEVEL INFO The level at which to log (follows logback logging levels)
-VID_ECOMP_REDIRECT_URL https://portal.openecomp.org/ecompportal/ecompportal/process_csp See ECOMP SDK Documentation
-VID_ECOMP_REST_URL https://portal.openecomp.org/ecompportal/auxapi See ECOMP SDK Documentation
-VID_ENDPOINT_NAME vid http://{host}:{port}/{VID_ENDPOINT_NAME}
-
-VID_MYSQL_HOST unset The host where the VID MariaDB instance is running
-VID_MYSQL_MAXCONNECTIONS 5 The maximum connections to use to connect to the MariaDB instance
-VID_MYSQL_PORT 3306 The port where the VID MariaDB instance is running
-VID_MYSQL_DBNAME vid_portal The database name (i.e. CREATE DATABASE ${VID_MYSQL_DBNAME}
-VID_MYSQL_USER vidadmin The user to connect as to the MariaDB instance
-VID_MYSQL_PASS unset The password for the ${VID_MYSQL_USER} @ ${VID_MYSQL_HOST}
-
-VID_AAI_HOST unset The host where the A&AI service is running
-VID_AAI_PORT 8443 The port where the A&AI service is running
-VID_TRUSTSTORE_PASS unset The password for the VID truststore (A&AI client)
-VID_TRUSTSTORE_FILE unset The location on the file system of the truststore (A&AI client)
-AAI_TRUSTSTORE_FILENAME tomcat_keystore A file name
-AAI_TRUSTSTORE_PASSWD_X (dev env creds) A password
-AAI_KEYSTORE_FILENAME aai-client-cert.p12 A file name
-AAI_KEYSTORE_PASSWD_X (dev env creds) A password
-
-VID_UEB_URL_LIST ueb.openecomp.org The hosts where UEB is running
-VID_UEB_CONSUMER_GROUP VID The UEB consumer group name to use
-VID_ECOMP_PORTAL_INBOX_NAME ECOMP-PORTAL-INBOX-DEV-LOCAL A UEB Topic to send messages to the ECOMP portal on
-VID_UEB_APP_KEY sYH0NJnsKmJC1B2A The UEB App Key (mandatory)
-VID_UEB_APP_SECRET YOtknsT2wVFz9WISlSPDaAtd The UEB App Secret
-VID_UEB_APP_MAILBOX_NAME ECOMP-PORTAL-OUTBOX-90 A UEB Topic to listen for messages from the ECOMP portal on
-VID_UEB_LISTENERS_ENABLE false Enable the UEB listeners for the specified mailboxes (In 1610, this should always be false)
diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system.properties b/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system.properties index 7a6d5d9c9..86e18940d 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system.properties +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/conf/system.properties @@ -169,7 +169,6 @@ mso.restapi.get.man.tasks=/tasks/v1 vid.truststore.filename=/opt/app/vid/etc/vid_keystore.jks
mso.dme2.client.timeout=30000
mso.dme2.client.read.timeout=120000
-vid.truststore.filename=vid_keystore.jks
vid.truststore.passwd.x=OBF:1wgg1wfq1uus1uui1x131x0r1x1v1x1j1uvo1uve1wg81wfi
scheduler.create.new.vnf.change.instance=/v1/ChangeManagement/schedules/
scheduler.get.time.slots=/v1/ChangeManagement/schedules/
diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ds2/footer.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ds2/footer.jsp index 33bb38d0e..9cb681501 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ds2/footer.jsp +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ds2/footer.jsp @@ -1,17 +1,34 @@ <script src="./app/fusion/external/angular-1.5/angular.min.js"></script>
-<script src="app/fusion/external/ds2/js/b2b-angular/b2b-library.min.js"></script>
+<script src="./app/fusion/external/angular-1.5/angular-messages.js"></script>
+<script src="./app/fusion/external/angular-1.5/angular-touch.js"></script>
+<script src="./app/fusion/external/angular-1.5/angular-sanitize.js"></script>
+<script src="./app/fusion/external/angular-1.5/angular-route.min.js"></script>
+<script src="./app/fusion/external/angular-1.5/angular-cookies.min.js"></script>
<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/b2b-angular/b2b-angular.css"></style>
+<script src="app/fusion/external/ds2/js/b2b-angular/b2b-library.min.js"></script>
+<!-- b2b-column-switch-footer can only found in b2b-library.min.js -->
+
<div style="position: relative; bottom: 0; left: 0; width: 100%">
- <footer class="b2b-footer-wrapper" role="contentinfo"
- aria-label="footer">
+ <footer class="b2b-footer-wrapper" role="contentinfo" aria-label="footer">
<div class="b2b-footer-container" b2b-column-switch-footer>
- <!-- footer-link-items='footerItems' -->
- <!-- <hr> -->
<div style="margin-top: -25px;" class="divider-bottom-footer">
- <div class="span12 footerLogo">
+ <div style="text-align: center;" class="span12 footerLogo">
+ <div class="span8 copyright-text">
+ <a href="//www.att.com/gen/privacy-policy?pid=2587" target="_blank">© 2017 AT&T Intellectual Property.</a> All rights reserved. AT&T, the AT&T Globe logo and all other AT&T marks contained herein are trademarks of AT&T intellectual property and/or AT&T affiliated companies.
+ </div>
+ <div class="span3" style="margin-left:30px;">
+ <a href="welcome.htm" class="footer-logo">
+ <span class="footer-global">
+ <i class="icon-att-globe" >
+ <span class="hidden-spoken">A T & T</span>
+ </i>
+ </span>
+ <h2 class="logo-title" id="at&t">AT&T</h2>
+ </a>
+ </div>
</div>
</div>
</div>
</footer>
-</div>
\ No newline at end of file +</div>
\ No newline at end of file diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ds2/header.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ds2/header.jsp index 94213a2a3..483922fca 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ds2/header.jsp +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ds2/header.jsp @@ -1 +1,235 @@ -<div ds2-menu id="menuContainer" class="menu-container" ></div>
\ No newline at end of file +<script src="./app/fusion/external/angular-1.5/angular.min.js"></script> +<script src="./app/fusion/external/angular-1.5/angular-messages.js"></script> +<script src="./app/fusion/external/angular-1.5/angular-touch.js"></script> +<script src="./app/fusion/external/angular-1.5/angular-sanitize.js"></script> +<script src="./app/fusion/external/angular-1.5/angular-route.min.js"></script> +<script src="./app/fusion/external/angular-1.5/angular-cookies.min.js"></script> +<script src="./app/fusion/external/ds2/js/b2b-angular/b2b-library.min.js"></script> +<script src="./app/fusion/external/ds2/js/digital-ng-library/digital-design-library.js"></script> +<script src="./app/fusion/scripts/DS2-services/leftMenuServiceDS2.js"></script> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/b2b-angular/b2b-angular.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/b2b-angular/b2b-angular.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/extras/ds2-accordion.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/extras/ds2-bootstrap-datepicker.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/extras/ds2-cc-input-field.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/extras/ds2-tooltip.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/extras/x-tabs-pills.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-accordion.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-bootstrap-datepicker.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-c2c.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-cc-input-field.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-filmstrip.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-filters.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-legacynav-fix.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-marquee.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-pagination.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-popover.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-progressbar.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ds2-tooltip.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/global.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/digital-design-library.css"> + +<link rel="stylesheet" type="text/css" href="./app/fusion/external/ds2/css/digital-ng-library/ionicons.css"> +<link rel="stylesheet" type="text/css" href="./app/fusion/styles/ecomp.css"> +<script> +angular.module('att.abs.helper', []); +angular.module('quantum', []); +var appDS2=angular.module("abs", ["ngRoute", 'ngAnimate', 'ngTouch', 'ui.bootstrap', 'ngMessages', 'ngCookies', 'b2b.att.tpls', 'ddh.att.tpls', 'ddh.att.switches', 'b2b.att.footer', 'b2b.att.header', 'btorfs.multiselect']); +</script> + +<script src="./app/fusion/scripts/DS2-services/leftMenuServiceDS2.js"></script> + +<script> +appDS2.controller("leftMenuController", ['$scope', '$filter','$http','$timeout','$cookies','LeftMenuServiceDS2', function ($scope, $filter, $http, $timeout, $cookies, LeftMenuServiceDS2) { + $scope.menuData = []; + $scope.leftChildData=[]; + $scope.leftParentData=[]; + $scope.leftMenuItems = []; + $scope.app_name = ""; + $scope.app_name_full; + LeftMenuServiceDS2.getLeftMenu().then(function(response){ + var j = response; + try{ + if(j && j !== "null" && j!== "undefined"){ + $scope.leftParentData = JSON.parse(j.data); + $scope.leftChildData = JSON.parse(j.data2); + }else{ + throw "Get Left Menu respsone is not an object/is empty"; + } + try{ + var leftChildItemList = $scope.leftChildData; + var pageUrl = window.location.href.split('/')[window.location.href.split('/').length-1]; + var leftParentList =$scope.leftParentData; + + for (var i = 0; i < leftParentList.length; i++) { + var parentItem = {}; + parentItem.name = leftParentList[i].label; + if(parentItem.name == 'Home'){ + parentItem.imageSrc = /*"icon-location-pinpoint"*/ "icon-building-home"; + } else if(parentItem.name == 'Sample Pages'){ + parentItem.imageSrc = "icon-documents-book"; + } else if(parentItem.name == 'Reports'){ + parentItem.imageSrc = "icon-misc-piechart"; + } else if(parentItem.name == 'Profile'){ + parentItem.imageSrc = "icon-people-oneperson"; + } else if(parentItem.name == 'Admin'){ + parentItem.imageSrc = "icon-content-star"; + } else if(parentItem.name == 'Sample Pages'){ + parentItem.imageSrc = "icon-content-searchchannels"; + } else { + parentItem.imageSrc = "icon-building-door"; + } + parentItem.menuItems = []; + for (var j = 0; j < leftChildItemList[i].length; j++) { + if(leftChildItemList[i][j].label != null && leftChildItemList[i][j].label.length > 0) { + var childItem = {}; + childItem.name = leftChildItemList[i][j].label; + childItem.href = leftChildItemList[i][j].action; + parentItem.menuItems.push(childItem) + } + } + $scope.menuData.push(parentItem); + } + + + //For Home, add href + $scope.menuData[0].href = leftParentList[0].action; + + for (var i = 0; i < leftParentList.length; i++) { + $scope.item = { + parentLabel : leftParentList[i].label, + parentAction : leftParentList[i].action, + parentImageSrc : leftParentList[i].imageSrc, + open:pageUrl==leftParentList[i].action?true:false, + childItemList : leftChildItemList[i] + }; + }; + }catch(err){ + console.log("error happened while trying to set left menu structure"+err); + } + }catch (e) { + console.log("error happened while trying to get left menu items"+e); + reloadPageOnce(); + return; + } +},function(error){ + console.log("error happened while calling getLeftMenu"+error); +}); + +LeftMenuServiceDS2.getAppName().then(function(response){ + var j = response; + try{ + if(j && j !== "null" && j!== "undefined"){ + console.log("app name is " + $scope.app_name); + $scope.app_name_full = j.data; + var processed_app_name = j.data; + var n = processed_app_name.length; + if (n > 15) { + n = 15; + } + $scope.app_name = processed_app_name.substr(0, n); + }else{ + throw "Get app_name respsone is not an object/is empty"; + } + }catch (e) { + console.log("error happened while trying to get app name "+e); + return; + } +},function(error){ + console.log("error happened while calling getAppName "+error); +}); + +$scope.adjustHeader=function() { + $scope.showHeader = ($cookies.show_app_header == undefined ? true : $cookies.show_app_header); + + if($scope.showHeader == true) { + $scope.drawer_margin_top = 50; + $scope.drawer_custom_top = 54; + $scope.toggle_drawer_top = 55; + } + else { + + $scope.drawer_margin_ top = 40; + $scope.drawer_custom_top = 0; + $scope.toggle_drawer_top = 10; + } + + +}; + +$scope.adjustHLeftMenu = function (type){ + $scope.showHeader = ($cookies.show_app_header == undefined ? true : $cookies.show_app_header); + + if($scope.showHeader == true) { + $scope.drawer_margin_top = 60; + $scope.drawer_custom_top = 54; + $scope.toggle_drawer_top = 55; + } + else { + + $scope.drawer_margin_top = 50; + $scope.drawer_custom_top = 0; + $scope.toggle_drawer_top = 10; + } + if(type=='burgerIcon'){ + return { "top": $scope.toggle_drawer_top+"px"}; + }else if(type=='leftMenu'){ + return { "margin-top": $scope.drawer_margin_top+"px"}; + }else + return; +} +$scope.adjustHeader(); +$scope.drawerOpen = true; + +$scope.toggleDrawer = function() { + $scope.drawerOpen = !($scope.drawerOpen); + if ($scope.drawerOpen) { + // setCookie('drawerOpen','open',30); + $scope.arrowShow = true; + + + if (document.getElementById('fnMenueContent')!=null) + document.getElementById('fnMenueContent').style.marginLeft = "0px"; + + if (document.getElementById('rightContentAdmin')!=null) + document.getElementById('rightContentAdmin').style.marginLeft = "210px"; + + else if (document.getElementById('rightContentProfile')!=null) + document.getElementById('rightContentProfile').style.marginLeft = "210px"; + } else { + + $scope.arrowShow = false; + + if (document.getElementById('fnMenueContent')!=null) + document.getElementById('fnMenueContent').style.marginLeft = "-150px"; + + if (document.getElementById('rightContentAdmin')!=null) { + document.getElementById('rightContentAdmin').style.marginLeft = "50px"; + } + + else if (document.getElementById('rightContentProfile')!=null) + document.getElementById('rightContentProfile').style.marginLeft = "50px"; + } + }; + +$timeout(function() { + //detectScrollEvent(); + }, 800); +}]); +</script> + +<style> +#page-content{ +margin-top:-250px; +} + +#page-content td, th { + padding: 0px; + border:none; +} +</style> +<div ng-app="abs"> + <div ng-controller = "leftMenuController"> + <ddh-left-navigation menu-data="menuData"></ddh-left-navigation> + </div> +</div>
\ No newline at end of file diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp new file mode 100644 index 000000000..ad3201cf8 --- /dev/null +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp @@ -0,0 +1,837 @@ +<%-- + ================================================================================ + eCOMP Portal SDK + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> +<%@ page isELIgnored="false"%> +<%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%> +<%@ page import="org.openecomp.portalsdk.core.onboarding.util.PortalApiProperties"%> +<%@ page import="org.openecomp.portalsdk.core.onboarding.util.PortalApiConstants"%> +<%@ page import="org.openecomp.portalsdk.core.domain.MenuData"%> +<link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/ebz_header/header.css"> +<link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/ebz_header/portal_ebz_header.css"> +<link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/style.css" > + + +<%--<script src= "app/fusion/external/ebz/angular_js/angular.js"></script> --%> +<script src="app/fusion/external/angular-1.4.8/angular.min.js"></script> +<script src="app/fusion/external/angular-1.4.8/angular-route.min.js"></script> +<script src="app/fusion/external/angular-1.4.8/angular-sanitize.min.js"></script> +<script src="app/fusion/external/angular-1.4.8/angular-cookies.min.js"></script> +<script src="app/fusion/external/ebz/angular_js/app.js"></script> +<script src="app/fusion/external/ebz/angular_js/gestures.js"></script> +<script src="static/js/jquery-1.10.2.js"></script> +<script src="app/fusion/scripts/modalService.js"></script> +<script src="static/js/jquery.mask.min.js" type="text/javascript"></script> +<script src="static/js/jquery-ui.js" type="text/javascript"></script> +<script src="app/fusion/external/ebz/sandbox/att-abs-tpls.js" type="text/javascript"></script> +<script src="static/fusion/js/att_angular_gridster/ui-gridster-tpls.js"></script> +<script src="static/fusion/js/att_angular_gridster/angular-gridster.js"></script> +<script src= "app/fusion/external/ebz/angular_js/checklist-model.js"></script> +<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/0.10.0/lodash.min.js"></script> +<%--<script src="app/fusion/external/angular-ui/ui-bootstrap-tpls-1.1.2.min.js"></script>--%> +<script src="app/fusion/external/angular-1.4.8/angular-touch.min.js"></script> +<script src="app/fusion/external/angular-1.4.8/angular-animate.min.js"></script> +<script src="app/fusion/external/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> +<script src="app/fusion/scripts/services/userInfoService.js"></script> +<script src="app/fusion/scripts/services/leftMenuService.js"></script> + + +<jsp:include page="/WEB-INF/fusion/jsp/ebz/loginSnippet.html" ></jsp:include> + +<c:set var="UserName" value="<%= session.getAttribute(\"fullName\")%>" /> +<c:set var="UserFirstName" value="<%= session.getAttribute(\"first_name\")%>" /> + +<% + String contactUsLink = SystemProperties.getProperty(SystemProperties.CONTACT_US_LINK); + String redirectUrl = PortalApiProperties.getProperty(PortalApiConstants.ECOMP_REDIRECT_URL); + String portalUrl = redirectUrl.substring(0, redirectUrl.lastIndexOf('/')) + "/process_csp"; + String getAccessLink = redirectUrl.substring(0, redirectUrl.lastIndexOf('/')) + "/get_access"; +%> +<c:set var="returnPortalUrl" value="<%=portalUrl%>" /> +<c:set var="contactUsLink" value="<%=contactUsLink%>" /> +<c:set var="getAccessLink" value="<%=getAccessLink%>" /> +<style> +.att-drawer{ + z-index:997 !important; +} + +.secondaryMenuContainer{ + z-index:1000; +} +.megamenu-tabs .megamenu__item { + padding: 0 0; +} +.megamenu-tabs .megamenu__item span { + font-size: 18px; +} + +.submenu-tabs { + line-height:50px; +} +.submenu-tabs .sub__menu{ + top:5px; +} + +.top-megamenu .megamenu-tabs ul{ + width:98%; + list-style: none; +} + +</style> +<%@include file="/WEB-INF/fusion/jsp/ebz/loginSnippet.html" %> + +<div style="position: relative; z-index: 999;"> + <div ng-controller="headerController"> + + <div class="headerContainer" id="headerContainer" ng-cloak ng-show="{{showHeader && false}}"> + <div id="megaMenuContainer" class="megaMenuContainer" style="margin-top: 0; overflow: visible;"> + <div> + <!--for mega Menu--> + <!-- Mega Menu parent-tab directive with three models menu-items, active-sub-menu, active-menu --> + <div id="topMenu" class="top-megamenu" ng-mouseleave="activeClickSubMenu.x.active=false; activeClickMenu.x.active=false"> + <div style="float:left;width:100%;"parent-tab menu-items="megaMenuDataObject" active-sub-menu='activeClickSubMenu.x' active-menu='activeClickMenu.x'> + <div parentmenu-tabs mega-menu="true" menu-items="megaMenuDataObject" style="height:55px;"> + <div style="float:left"> + <li class="megamenu__item" style="line-height:55px;" onclick="returnToPortal()"> + <img src="app/fusion/external/ebz/images/att_logo.png" class="ATTLogo" ></span> +<!-- <a id='returnPortal' class="primaryMenuOptionLink" style="font-weight: 400 !important; font-family: clearview_att_bold !important; font-size: 18px;">ECOMP</a> + --> <strong style="font-weight: 400 !important; font-family: clearview_att_bold !important; font-size: 18px;" id='returnPortal' >ECOMP Portal</strong> + </li> + <div menu-tabs mega-menu="true" tab-name="item.text" menu-item="item" active-menu="activeClickMenu.x" + ng-repeat="item in megaMenuDataObject" style="font-size: 18px;" ng-mousedown="loadFavorites()" > + <div parentmenu-tabs sub-menu="true" ng-show="activeClickMenu.x.active && item.active" menu-items="activeClickMenu.x.children"> + <!-- Second level menu --> + <div> + <div menu-tabs sub-menu="true" tab-name="subItem.text" + tab-url="subItem.url" menu-item="subItem" + ng-repeat="subItem in activeClickMenu.x.children | orderBy : 'column'" active-menu="activeClickSubMenu.x" + sub-item-active="{{subItem.active}}" style="float:left;" aria-label="{{subItem.text}}" + ng-mouseenter="submenuLevelAction(subItem.text,subItem.column)" + ng-mouseleave="submenuLevelAction(subItem.text,subItem.column)" + ng-click="submenuLevelAction(subItem.text,subItem.column)" > + <i ng-if="subItem.text=='Favorites'" id="favorite-star" + class="icon-star favorites-icon-active"> + </i> + </div> + + <div class="sub__menu" ng-mouseleave="activeClickSubMenu.x.active=false" > + <ul ng-show="activeClickSubMenu.x.active" role="menubar" class="columns"> + <!-- Third level menu --> + <div menu-tabs menu-item="subItem" + class="columns-div" + ng-repeat="subItem in activeClickSubMenu.x.children | orderBy : 'column'" + ng-show="activeClickSubMenu.x.active"> + + <i id="favorite-selector-third-level" + ng-show="isUrlFavorite(subItem.menuId)==false" + class="icon-star favorites-icon-inactive" + ng-if="subItem.url.length > 1"> + </i> + <i id="favorite-selector-third-level" + ng-show="isUrlFavorite(subItem.menuId)" + class="icon-star favorites-icon-active" + ng-if="subItem.url.length > 1"> + </i> + <span class="title" aria-label="{{subItem.text}}" + ng-click="goToUrl(subItem)">{{subItem.text}}</span> + <!-- Fourth level menus --> + <div att-links-list=""> + <i id="favorite-selector-fourth-level" + class="icon-star favorites-icon-inactive" + ng-show="isUrlFavorite(tabValue.menuId)==false" + ng-if="tabValue.url.length > 1"> + + </i> + <i id="favorite-selector-fourth-level" + class="icon-star favorites-icon-active" + ng-show="isUrlFavorite(tabValue.menuId)" + ng-if="tabValue.url.length > 1"> + + </i> + <span role="menuitem" att-links-list-item="" + ng-repeat="tabValue in subItem.children" + ng-click="goToUrl(tabValue)" + att-accessibility-click="13,32" + ng-class="{'disabled': tabValue.disabled}">{{tabValue.text}}</span> + </div> + <hr ng-show="!$last"/> + + </div> + </ul> + <!-- Favorites level menu --> + <div class="favorites-window" ng-show='favoritesWindow' ng-mouseleave="hideFavoritesWindow()"> + <div id="favorites-menu-items" ng-show="showFavorites"> + <div ng-repeat="subItem in favoritesMenuItems" att-links-list="" style='display: inline'> + <i id="favorite-selector-favorites-list" class="icon-star favorites-icon-active"> + </i> + <a id="favorites-list" aria-label="{{subItem.text}}" + ng-click="goToUrl(subItem)" + style="margin-left: 3px; margin-right: 20px; text-decoration: none; color: #666666;"> + {{subItem.text}} + </a> + </div> + <div> + <br> + <p style='font-weight: 400; font-family: clearview_att_bold !important; + font-size: 18px; text-align: center; background-color: lightgray; + width: 400px; margin-left: 25%; margin-right: 25%;'> + Manage favorites on ECOMP Portal. + </p> + </div> + </div> + <!-- Favorites when empty --> + <div id="favorites-empty" ng-show='favoritesWindow' ng-show="emptyFavorites"> + <div id="favorites-empty" ng-show="emptyFavorites" class="favorites-window-empty"> + <div> + <img src="app/fusion/external/ebz/images/no_favorites_star.png"> + <p class='favoritesLargeText'>No Favorites</p> + <p class='favoritesNormalText'>Manage favorites on ECOMP Portal.</p> + </div> + </div> + </div> + </div> + + </div> + </div> + </div> + </div > + <li class="megamenu__item" style="line-height:55px;" ng-if="loadMenufail"> + <strong style="font-weight: 400 !important; font-family: clearview_att_bold !important; font-size: 18px;" >Unable to load menus</strong> + </li> +<!-- <li class="megamenu__item" style="width: 20%;"> </li> + --> </div> + <!-- Login Snippet--> + <div style="float:right"> + <li id="bcLoginSnippet" class="megamenu__item" style="width: 140px;" > + <div popover="loginSnippet.html" aria-label="Login Snippet" referby="loginSnippet" att-accessibility-click="13,32" popover-style="\" popover-placement="below" style="width: 200px;"> + <div class="icon-user-small login-snippet-icon"></div> + <div class="login-snippet-text" style="display: inline-block; font-size:12px; margin-left:5px;overflow: hidden; max-height: 31px; max-width:120px; padding-top: 0px; margin-top: 0px; white-space: nowrap;" ng-bind="userProfile.firstName"></div> + </div> + </li> + <li class="megamenu__item" style="width:120px;"> </li> + </div> + + </div> + </div> + <div style="clear: both"></div> + </div> + </div> + </div> + </div> + <div class="license-notification" id="license-notification"> + <a href="javascript:void(0)" style="background-color:#bbb;" class="button button--small" tooltip="Please contact ECOMP Portal team to get the license" tooltip-placement="below" tooltip-style="light" tooltip-popup-delay="500" > + <span style="">{{app_name_full}}</span> + </a> + </div> + <div style="position: relative; color: black; top: 70px;"> + <div ng-cloak> + <span ng-style="adjustHLeftMenu('burgerIcon')" style="z-index:998; position:fixed; left:0%; font-size:35px; margin-left:10px;text-decoration:none;"> + <a ng-click="toggleDrawer();isOpen = !isOpen" href="javascript:void(0);" class="arrow-icon-left" > + <span class="icon-hamburger"></span></a> + <span ng-init="isOpen = true" ng-show="isOpen" style="font-size:16px; position:relative; top:-8px; left:-15px;">    {{app_name}}</span> + </span> + <div att-drawer drawer-slide="left" drawer-custom-top="{{drawer_custom_top}}px" drawer-size="200px" drawer-open="drawerOpen" drawer-custom-height="100%" > + <div ng-style="adjustHLeftMenu('leftMenu')"> + <div class="attDrawer" style="margin-top:{{drawer_margin_top}}px;"> + <div style="margin-left:10px; margin-right:10px;"> + <accordion close-others="true" css="att-accordion--no-box"> + <accordion-group ng-repeat="parent in menuItems" heading="{{parent.parentLabel}}" child="{{parent.parentAction}}" parent-link="{{parent.parentAction}}" image-source="{{parent.parentImageSrc}}" child-length="{{parent.childItemList.length}}" is-open="parent.open"> + <div ng-repeat="subMenu in parent.childItemList" style="font-size:12px; margin-left:10px;"> + <a href="{{subMenu.action}}" style="font-size:12px; color:#666666;" >{{subMenu.label}}</a> + </div> + </accordion-group> + </accordion> + </div> + </div> + </div> + </div> + </div> + </div> + </div> +</div> +<script> + function returnToPortal(){ + window.location.href = "<c:out value='${returnPortalUrl}'/>"; + } + detectScrollEvent = function() { + var footerOff = $('#footerContainer').offset().top; + var headOff = $('#headerContainer').offset().top; + var winHeight = $(window).height(); + if ((footerOff - headOff) <= winHeight) { + $('.att-drawer').css({ + "height" : footerOff - headOff - 55 + }); + } else { + $('.att-drawer').css({ + "height" : "94vh" + }); + } + } + $(window).scroll(function() { + if ($('.att-drawer').is(':visible')) { + detectScrollEvent(); + } + }); + app.controller("headerController", function($scope, $timeout, $log, $http, UserInfoService, $window, $cookies,LeftMenuService) { + // $log.debug('HeaderController started'); + $scope.jsonMenuData = []; + $scope.loadMenufail=false; + $scope.app_name = ""; + $scope.app_name_full = ""; + $scope.megaMenuDataObject =[]; + $scope.activeClickSubMenu = { + x: '' + }; + $scope.activeClickMenu = { + x: '' + }; + $scope.favoritesMenuItems = []; + $scope.favoriteItemsCount = 0; + $scope.showFavorites = false; + $scope.emptyFavorites = false; + $scope.favoritesWindow = false; + $scope.userProfile={ + firstName:'', + lastName:'', + fullName:'', + email:'' + } + /*Put user info into fields*/ + $scope.inputUserInfo = function(userInfo){ + if (typeof(userInfo) != "undefined" && userInfo!=null && userInfo!=''){ + if (typeof(userInfo.USER_FIRST_NAME) != "undefined" && userInfo.USER_FIRST_NAME!=null && userInfo.USER_FIRST_NAME!='') + $scope.userProfile.firstName = userInfo.USER_FIRST_NAME; + if (typeof(userInfo.USER_LAST_NAME) != "undefined" && userInfo.USER_LAST_NAME!=null && userInfo.USER_LAST_NAME!='') + $scope.userProfile.lastName = userInfo.USER_LAST_NAME; + if (typeof(userInfo.USER_EMAIL) != "undefined" && userInfo.USER_EMAIL!=null && userInfo.USER_EMAIL!='') + $scope.userProfile.email = userInfo.USER_EMAIL; + } + } + /*getting user info from session*/ + $scope.getUserNameFromSession = function(){ + UserInfoService.getFunctionalMenuStaticDetailSession() + .then(function (res) { + $scope.userProfile.firstName = res.firstName; + $scope.redirectUrl = res.portalUrl; + }); + } + $scope.getTopMenuStaticInfo=function() { + var promise = UserInfoService.getFunctionalMenuStaticDetailShareContext(); + promise.then( + function(res) { + if(res==null || res==''){ + $log.info('failed getting static User information'); + $scope.getUserNameFromSession(); + }else{ + $log.info('Received static User information'); + var resData = res; + $scope.inputUserInfo(resData); + $scope.userProfile.fullName = $scope.userProfile.firstName+ ' '+ $scope.userProfile.lastName; + } + }, + function(err) { + $log.info('failed getting static User information'); + } + ); + } + + var unflatten = function( array, parent, tree ){ + tree = typeof tree !== 'undefined' ? tree : []; + parent = typeof parent !== 'undefined' ? parent : { menuId: null }; + var children = _.filter( array, function(child){ return child.parentMenuId == parent.menuId; }); + + if( !_.isEmpty( children ) ){ + if( parent.menuId === null ){ + tree = children; + }else{ + parent['children'] = children + } + _.each( children, function( child ){ unflatten( array, child ) } ); + } + + return tree; + } + + var menuStructureConvert = function(menuItems) { + var megaMenuDataObjectTemp = [ + { + text: "ECOMP", + children:menuItems + }, + { + text: "Help", + children: [{ + text:"Contact Us", + url:"<c:out value='${contactUsLink}'/>" + }, + { + text:"Get Access", + url:"<c:out value='${getAccessLink}'/>" + }] + } + ]; + return megaMenuDataObjectTemp; + }; + + + /*Left Menu*/ + LeftMenuService.getAppName().then(function(response){ + var j = response; + try{ + if(j && j !== "null" && j!== "undefined"){ + // console.log("app name is " + $scope.app_name); + $scope.app_name_full = j.data; + var processed_app_name = j.data; + var indexOfLic = processed_app_name.indexOf('['); + if(indexOfLic>-1) { + if (jQuery('.license-notification')!=null) + jQuery('.license-notification').css("display", "none"); + } + var n = processed_app_name.length; + if (n > 15) { + n = 15; + } + if(n > indexOfLic && indexOfLic > 0) { + n = indexOfLic; + } + $scope.app_name_full = $scope.app_name_full.substr(0, n); + $scope.app_name = processed_app_name.substr(0, n); + + }else{ + throw "Get app_name response is not an object/is empty"; + } + }catch (e) { + console.log("error happened while trying to get app name "+e); + return; + } + },function(error){ + console.log('getAppName failed', error); + }); + + + $scope.getTopMenuStaticInfo(); + $scope.getMenu=function() { + + $http({ + method: "GET", + url: 'get_functional_menu', +// TIMEOUT USED FOR LOCAL TESTING ONLY +// timeout: 100 + }).success(function (response) { + if(response == '101: Timeout') { + $log.error('Timeout attempting to get_functional_menu'); + // TIMEOUT USED FOR LOCAL TESTING ONLY +// $scope.createErrorMenu(); + $scope.megaMenuDataObject = menuStructureConvert(''); + }else { + $log.debug('get_functional_menu success: ' + response); + if(typeof response != 'undefined' && response.length!=0 && typeof response[0] != 'undefined' && typeof response[0].error!="undefined"){ +// createErrorMenu() USED FOR LOCAL TESTING ONLY +// $scope.createErrorMenu(); + $scope.megaMenuDataObject = menuStructureConvert(''); + // $scope.loadMenufail=true; + }else{ + $scope.jsonMenuData = unflatten( response ); + $scope.megaMenuDataObject = menuStructureConvert($scope.jsonMenuData); + } + } + }).error(function (response){ +// createErrorMenu() USED FOR LOCAL TESTING ONLY +// $scope.createErrorMenu(); + + //$scope.loadMenufail=true; + $scope.megaMenuDataObject = menuStructureConvert(''); + $log.debug('REST API failed get_functional_menu...'+ response); + }); + } + $scope.adjustHLeftMenu = function (type){ + $scope.showHeader = ($cookies.show_app_header == undefined ? true : $cookies.show_app_header); + + if($scope.showHeader == true) { + $scope.drawer_margin_top = 60; + $scope.drawer_custom_top = 5; + $scope.toggle_drawer_top = 5; + } + else { + + $scope.drawer_margin_top = 50; + $scope.drawer_custom_top = 5; + $scope.toggle_drawer_top = 5; + } + if(type=='burgerIcon'){ + return { "top": $scope.toggle_drawer_top+"px"}; + }else if(type=='leftMenu'){ + return { "margin-top": $scope.drawer_margin_top+"px"}; + }else + return; + } + $scope.adjustHeader=function() { + $scope.showHeader = ($cookies.show_app_header == undefined ? true : $cookies.show_app_header); + + if($scope.showHeader == true) { + $scope.drawer_margin_top = 50; + $scope.drawer_custom_top = 5; + $scope.toggle_drawer_top = 5; + } + else { + + $scope.drawer_margin_top = 40; + $scope.drawer_custom_top = 5; + $scope.toggle_drawer_top = 5; + } + + + } + + + //$scope.getMenu(); + $scope.adjustHeader(); + + + /* **************************************************************************/ + /* Logic for the favorite menus is here */ + + $scope.loadFavorites = function () { + $log.debug('loadFavorites has happened.'); + if ($scope.favoritesMenuItems == '') { + $scope.generateFavoriteItems(); + $log.debug('loadFavorites is calling generateFavoriteItems()'); + } else { + $log.debug('loadFavorites is NOT calling generateFavoriteItems()'); + } + } + + $scope.goToUrl = function (item) { + $log.info("goToUrl called") + $log.info(item); + + var url = item.url; + var restrictedApp = item.restrictedApp; + $log.debug('Restricted app status is: ' + restrictedApp); + if (!url) { + $log.info('No url found for this application, doing nothing..'); + return; + } + if (restrictedApp) { + $window.open(url, '_blank'); + } else { + $window.open(url, '_self'); + } + + } + + $scope.submenuLevelAction = function(index, column) { + if ($scope.favoritesMenuItems == '') { + $scope.generateFavoriteItems(); + $log.debug('submenuLevelAction is calling generateFavoriteItems()'); + } + $log.debug('item hovered/clicked: ' + index + '; column = ' + column); + if (column == 2) { // 2 is Design + $scope.favoritesWindow = false; + $scope.showFavorites = false; + $scope.emptyFavorites = false; + } + if (index=='Favorites' && $scope.favoriteItemsCount != 0) { + $log.debug('Showing Favorites window'); + $scope.favoritesWindow = true; + $scope.showFavorites = true; + $scope.emptyFavorites = false; + } + if (index=='Favorites' && $scope.favoriteItemsCount == 0) { + $log.debug('Hiding Favorites window in favor of No Favorites Window'); + $scope.favoritesWindow = true; + $scope.showFavorites = false; + $scope.emptyFavorites = true; + } + if (column > 2) { + $scope.favoritesWindow = false; + $scope.showFavorites = false; + $scope.emptyFavorites = false; + } + }; + + $scope.hideFavoritesWindow = function() { + $log.debug('$scope.hideFavoritesWindow has been called'); + $scope.showFavorites = false; + $scope.emptyFavorites = false; + } + + $scope.isUrlFavorite = function (menuId) { +// $log.debug('array objects in menu favorites = ' + $scope.favoriteItemsCount + '; menuId=' + menuId); + var jsonMenu = JSON.stringify($scope.favoritesMenuItems); + var isMenuFavorite = jsonMenu.indexOf('menuId\":' + menuId); + if (isMenuFavorite==-1) { + return false; + } else { + return true; + } + + } + + $scope.generateFavoriteItems = function() { + $http({ + method: "GET", + url: 'get_favorites', + // TIMEOUT USED FOR LOCAL TESTING ONLY +// timeout: 100 + }).success(function (response) { + if (response == '101: Timeout') { + $log.error('Timeout attempting to get_favorites_menu'); + } else { + if(typeof response != 'undefined' && response.length!=0 && typeof response[0] != 'undefined' && typeof response[0].error!="undefined"){ + $log.error('REST API failed get_favorites' + response); + }else{ + $log.debug('get_favorites = ' + JSON.stringify(response)); + $scope.favoritesMenuItems = response; + $scope.favoriteItemsCount = Object.keys($scope.favoritesMenuItems).length; + $log.info('number of favorite menus: ' + $scope.favoriteItemsCount); + } + } + }).error(function (response){ + $log.error('REST API failed get_favorites' + response); + //createFavoriteErrorMenu() USED FOR LOCAL TESTING ONLY +// $scope.createFavoriteErrorMenu(); + }); + } + + $scope.createFavoriteErrorMenu=function() { + $scope.favoritesMenuItems = [ +// { +// "menuId": "93", +// "text": "JSONLint", +// "url": "http://http://jsonlint.com" +// }, +// { +// "menuId": "22", +// "text": "ECOMP Wasteland", +// "url": "https://ecomp.homer.att.com/ecompportal/applicationsHome" +// }, +// { +// "menuId": "94", +// "text": "HROneStop", +// "url": "http://ebiz.sbc.com/hronestop" +// }, +// { +// "menuId": "91", +// "text": "Andy and his Astrophotgraphy", +// "url": "https://ecomp.homer.att.com/ecompportal/applicationsHome" +// } + ]; + $scope.favoriteItemsCount = Object.keys($scope.favoritesMenuItems).length; + $log.info('number of favorite menus: ' + $scope.favoriteItemsCount); + } + + /* end of Favorite Menu code */ + /* **************************************************************************/ + + + /* **************************************************************************/ + // THIS IS USED FOR LOCAL TESTING ONLY + /* **************************************************************************/ + + $scope.createErrorMenu=function() { + $scope.jsonMenuData = [ + { + "menuId": 1, + "column": 2, + "text": "Design", + "parentMenuId": null, + "url": "" + }, + { + "menuId": 2, + "column": 3, + "text": "Infrastructure Ordering", + "parentMenuId": null, + "url": "" + }, + { + "menuId": 3, + "column": 4, + "text": "Service Creation", + "parentMenuId": null, + "url": "" + }, + { + "menuId": 4, + "column": 5, + "text": "Service Mgmt", + "parentMenuId": null, + "url": "" + }, + { + "menuId": 90, + "column": 1, + "text": "Google", + "parentMenuId": 1, + "url": "http://google.com" + }, + { + "menuId": 91, + "column": 1, + "text": "Mike Little's Coffee Cup", + "parentMenuId": 2, + "url": "http://coffee.com" + }, + { + "menuId": 92, + "column": 2, + "text": "Andy and his Astrophotgraphy", + "parentMenuId": 3, + "url": "http://nightskypix.com" + }, + { + "menuId": 93, + "column": 1, + "text": "JSONLint", + "parentMenuId": 4, + "url": "http://http://jsonlint.com" + }, + { + "menuId": 94, + "column": 2, + "text": "HROneStop", + "parentMenuId": 4, + "url": "http://ebiz.sbc.com/hronestop" + }, + { + "menuId": 95, + "column": 2, + "text": "4th Level App4a R16", + "parentMenuId": 4, + "url": "http://www.e-access.att.com/ecomp_portal_ist/ecompportal/widgets" + }, + { + "menuId": 96, + "column": 3, + "text": "3rd Level App1c R200", + "parentMenuId": 4, + "url": "http://app1c.com" + }, + { + "menuId": 97, + "column": 1, + "text": "3rd Level App4b R16", + "parentMenuId": 5, + "url": "http://app4b.com" + }, + { + "menuId": 98, + "column": 2, + "text": "3rd Level App2b R16", + "parentMenuId": 5, + "url": "http://app2b.com" + }, + { + "menuId": 99, + "column": 1, + "text": "Favorites", + "parentMenuId": null, + "url": "" + } + ]; + $scope.jsonMenuData = unflatten( $scope.jsonMenuData ); + $scope.megaMenuDataObject = menuStructureConvert($scope.jsonMenuData); +// $log.debug(JSON.stringify($scope.jsonMenuData)); + } + var childItemList=""; + var parentList = ""; + try{ + childItemList = ${menu.childItemList}; + parentList = ${menu.parentList}; + }catch(err){ + console.log("ebz_header: failed to get child/parent lists", err); + } + + var pageUrl = window.location.href.split('/')[window.location.href.split('/').length-1]; + + $scope.menuItems = []; + for (var i = 0; i < parentList.length; i++) { + $scope.openCurrentMenu = false; + if(pageUrl==parentList[i].action) + $scope.openCurrentMenu = true; + $scope.childItemList = childItemList[i]; + for(chIndex in $scope.childItemList){ + if($scope.childItemList.length>0) + if($scope.childItemList[chIndex].action!=null){ + if($scope.childItemList[chIndex].action==pageUrl) + $scope.openCurrentMenu = true; + } + } + $scope.item = { + parentLabel : parentList[i].label, + parentAction : parentList[i].action, + parentImageSrc : parentList[i].imageSrc, + open:$scope.openCurrentMenu, + childItemList : $scope.childItemList + } + $scope.menuItems.push($scope.item); + } + $scope.arrowShow = true; + $scope.drawerOpen = false; + $scope.subMenuContent = false; + $scope.toggleSubMenu = function() { + $scope.subMenuContent = !$scope.subMenuContent; + }; + + var drawerOpen = 'open'; + if (drawerOpen == 'open') { + $scope.drawerOpen = true; + $scope.arrowShow = true; + } else { + $scope.arrowShow = false; + } + $scope.arrowShow = true; + $scope.drawerOpen = false; + $scope.toggleDrawer = function() { + $scope.drawerOpen = !($scope.drawerOpen); + if ($scope.drawerOpen) { + $scope.arrowShow = true; + if (document.getElementById('mContent')!=null) + document.getElementById('mContent').style.marginLeft = "0px"; + } else { + $scope.arrowShow = false; + if (document.getElementById('mContent')!=null) + document.getElementById('mContent').style.marginLeft = "-150px"; + } + }; + //var drawerOpen = getCookie('drawerOpen'); + if (drawerOpen == 'open') { + $scope.drawerOpen = true; + $scope.arrowShow = true; + } else { + $scope.arrowShow = false; + } + $timeout(function() { + detectScrollEvent(); + }, 800); + + }); + + app.filter("ellipsis", function(){ + return function(text, length){ + if (text) { + var ellipsis = text.length > length ? "..." : ""; + return text.slice(0, length) + ellipsis; + }; + return text; + } + }); +</script>
\ No newline at end of file diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/createnewserviceinstance.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/createnewserviceinstance.jsp new file mode 100644 index 000000000..fd2030e6c --- /dev/null +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/createnewserviceinstance.jsp @@ -0,0 +1,146 @@ +<script> +app.controller('createNewSIController',['$scope','$http',function ($scope,$http) { + + $scope.searchCategory = ""; + $scope.searchString = ""; + $scope.tableData=[]; + $scope.displayData=[]; + $scope.selectedSubscriber = $scope.tableData[0]; + $scope.selectedServiceType = "Select Service Type"; + function escapeRegExp(str) { + return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|\&]/g, " "); + } + $scope.serviceTypes=["Select Service Type", "uCPE-VMS", "SDN-L3-BONDING", "SDN-ETHERNET-INTERNET"]; + + $scope.getSubscribers = function(refresh){ + + var refreshTxt = 'refresh_subscribers'; + var getTxt = 'get_subscribers'; + var selectedTxt = getTxt; + if (refresh) + selectedTxt = refreshTxt; + $http.get(selectedTxt). + then(function(response){ + var data = JSON.parse(response.data.result); + $scope.tableData = data['customer']; + $scope.initSubscriberList(); + }) + .catch(function(data,status){ + console.log("Error: " + status + " : " + data); + }) + .finally(function() { + + }); + + } + + + $scope.initSubscriberList = function () { + //$scope.selectedSubscriber = $scope.selectedSubscriber['subscriber-name'] || $scope.tableData[0]['subscriber-name']; + $scope.selectedSubscriber = 'Select Subscriber Name'; + } + + $scope.initSrvcTypeList = function () { + $scope.selectedServiceType = $scope.serviceTypes[0]; + } + + $scope.getSubscriberDetails = function(selectedSubscriber){ + if (selectedSubscriber == 'Select Subscriber Name') + return; + $http.get('createsubscriber/' + encodeURIComponent(selectedSubscriber)). + then(function(response){ + // window.location.href = 'createsubscriberdetails.htm'; + }) + .catch(function(data,status){ + console.log("Error: " + status + " : " + data); + }) + .finally(function() { + + }); + } + + $scope.disableSubmitBtn = function (subName, svcType) { + return (typeof subName === "undefined") && (svcType == 'Select Service Type'); + //return (subName == 'Select Subscriber Name') && (svcType == 'Select Service Type'); + } + + $scope.cancelCreateSI = function(selectedSubscriber){ + + window.location.href = 'welcome.htm'; + + } + + $scope.getSubscribers(false); + //$scope.initSubscriberList(); + +}]); + + +</script> + +<div ng-controller="createNewSIController"> + + <h1 class="heading1"><center>Create New Service Instance</center></h1> + + +<BR> + <table> <tr> + + <td width="5%" align="left"> + <!-- <a ng-click="getSubscriberDetails(selectedSubscriber['global-customer-id']);" ng-disabled="disableSubmitBtn(selectedSubscriber['subscriber-name'], selectedServiceType);" ><img src="static/fusion/images/plus.png"></a>--> + <input type="image" ng-click="getSubscriberDetails(selectedSubscriber['global-customer-id']);" ng-disabled="disableSubmitBtn(selectedSubscriber['subscriber-name'], selectedServiceType);" src="static/fusion/images/plus.png"/> + </td> + + <td style="width:10%" align="left"><div class="fn-ebz-container"> + <label class="fn-ebz-text-label">Subscriber:</label> + </div> </td> + <td style="width:30%"><div class="fn-ebz-container"> + <select ng-model="selectedSubscriber" ng-options="resultdata['subscriber-name'] for resultdata in tableData" required> + <option value="">Select Subscriber Name</option> + </select> + </div></td> + <td width="5%" align="left"> + <input type="image" ng-click="getSubscribers(true);" src="static/fusion/images/refresh.jpg"/> + </td> + + <td width="5%"> </td> +<td style="width:10%" align="left"> + + + <div class="fn-ebz-container"> + <label class="fn-ebz-text-label">Service Type:</label> + </div> </td> + <td style="width:32%"><div class="fn-ebz-container"> + <select ng-model="selectedServiceType" ng-options="sType for sType in serviceTypes" ng-init="initSrvcTypeList();" ></select> + </div> </td> + + <td width="5%"> </td> + + </tr> + </table> + + <center> + <button type="cancel" ng-click="cancelCreateSI();" att-button size="small">Cancel</button> + </center> + + + +</div> +<!-- Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/16/2016 --> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> + + diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/searchexistingsi.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/searchexistingsi.jsp new file mode 100644 index 000000000..ca840e62f --- /dev/null +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/searchexistingsi.jsp @@ -0,0 +1,81 @@ +<link rel="stylesheet" type="text/css" href="app/vid/styles/subscriberSearch.css" /> + +<script src="app/vid/scripts/controller/VidApp.js"></script> +<script src="app/vid/scripts/controller/subscriberSearch.js"></script> + +<script src="app/vid/scripts/controller/aaiSubscriberController.js"></script> +<script src="app/vid/scripts/services/utilityService.js"></script> +<script src="app/vid/scripts/angular-ui-tree.js"></script> + +<link rel="stylesheet" type="text/css" href="app/vid/styles/dialogs.css" /> + +<script src="app/vid/test/testAaiData.js"></script> + +<script src="app/vid/scripts/controller/creationDialogController.js"></script> +<script src="app/vid/scripts/controller/deleteResumeDialogController.js"></script> +<script src="app/vid/scripts/controller/detailsDialogController.js"></script> +<script src="app/vid/scripts/controller/statusDialogController.js"></script> +<script src="app/vid/scripts/controller/msoCommitController.js"></script> + +<script src="app/vid/scripts/services/aaiService.js"></script> +<script src="app/vid/scripts/services/asdcService.js"></script> +<script src="app/vid/scripts/services/creationService.js"></script> +<script src="app/vid/scripts/services/dataService.js"></script> +<script src="app/vid/scripts/services/deleteResumeService.js"></script> +<script src="app/vid/scripts/services/detailsService.js"></script> +<script src="app/vid/scripts/services/statusService.js"></script> +<script src="app/vid/scripts/services/componentService.js"></script> +<script src="app/vid/scripts/services/msoService.js"></script> +<script src="app/vid/scripts/services/propertyService.js"></script> +<script src="app/vid/scripts/services/utilityService.js"></script> + +<script src="app/vid/scripts/directives/extensionsDirective.js"></script> +<script src="app/vid/scripts/directives/parameterBlockDirective.js"></script> +<script src="app/vid/scripts/directives/popupWindowDirective.js"></script> +<script src="app/vid/scripts/directives/progressBarDirective.js"></script> + +<script src="app/vid/scripts/constants/componentConstants.js"></script> +<script src="app/vid/scripts/constants/fieldConstants.js"></script> +<script src="app/vid/scripts/constants/parameterConstants.js"></script> + +<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiGetSubs.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiSubDetails.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/angular-ui-tree.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/vidTree.css" /> + +<%@ page import="org.openecomp.vid.mso.*"%> +<%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%> +<% + String properties = "{msoMaxPolls:" + SystemProperties.getProperty(MsoProperties.MSO_MAX_POLLS) + + ",msoMaxPollingIntervalMsec:" + + SystemProperties.getProperty(MsoProperties.MSO_POLLING_INTERVAL_MSECS) + "}"; +%> + +<div ng-controller="aaiSubscriberSearchController" + ng-init="init(<%=properties%>);" ng-cloak> + + + + <div ng-view></div> + +</div> + +<!-- Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/16/2016 --> + +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> + +
\ No newline at end of file diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/serviceModels.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/serviceModels.jsp index d0c36d47a..88131c593 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/serviceModels.jsp +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/serviceModels.jsp @@ -1,3 +1,4 @@ +<link rel="stylesheet" type="text/css" href="app/vid/external/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiGetSubs.css" />
<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiSubDetails.css" />
<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiSubViewEdit.css" />
@@ -7,20 +8,22 @@ <link rel="stylesheet" type="text/css" href="app/vid/styles/vidTree.css" />
<link rel="stylesheet" type="text/css" href="app/vid/styles/dialogs.css" />
<link rel="stylesheet" type="text/css" href="app/vid/styles/angularjs-datetime-picker.css"></link>
-<link rel="stylesheet" type="text/css" href="app/vid/external/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="app/vid/styles/common.css" />
+<link rel="stylesheet" type="text/css" href="app/vid/styles/messageViewer.css" />
<script>
var appDS2 = app;
</script>
+
<script src="app/vid/scripts/controller/VidApp.js"></script>
<!-- Latest compiled and minified JavaScript -->
-<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
+<script src="app/vid/external/bootstrap/js/bootstrap.min.js"></script>
<script src="app/vid/external/multiselect/angular-bootstrap-multiselect.min.js"></script>
+<script src="app/vid/external/upload-file/ng-file-upload.min.js"></script>
<script src="app/vid/scripts/angular-ui-tree.js"></script>
@@ -33,40 +36,56 @@ <script src="app/vid/scripts/filters/date.filter.js"></script>
<script src="app/vid/scripts/modals/change-management-manual-tasks-controller/change-management-manual-tasks.controller.js"></script>
<script src="app/vid/scripts/modals/new-change-management/new-change-management.controller.js"></script>
-<script src="app/vid/scripts/modals/new-scheduler/new-scheduler.controller.js"></script>
+
+<script src="app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js"></script>
+<script src="app/vid/scripts/modals/alert-modal/alert-modal.controller.js"></script>
<script src="app/vid/scripts/controller/aaiSubscriberController.js"></script>
<script src="app/vid/scripts/controller/creationDialogController.js"></script>
-<script src="app/vid/scripts/controller/deletionDialogController.js"></script>
+<script src="app/vid/scripts/controller/deleteResumeDialogController.js"></script>
<script src="app/vid/scripts/controller/detailsDialogController.js"></script>
<script src="app/vid/scripts/controller/statusDialogController.js"></script>
<script src="app/vid/scripts/controller/InstantiationController.js"></script>
<script src="app/vid/scripts/controller/msoCommitController.js"></script>
+<script src="app/vid/scripts/controller/pnfSearchAssociationController.js"></script>
<script src="app/vid/scripts/controller/ServiceModelController.js"></script>
<script src="app/vid/scripts/controller/previousVersionDialogController.js"></script>
<script src="app/vid/scripts/controller/previousVersionContoller.js"></script>
+<script src="app/vid/scripts/controller/AddNetworkNodeController.js"></script>
<script src="app/vid/scripts/controller/change-management.controller.js"></script>
+<script src="app/vid/scripts/controller/testEnvironmentsController.js"></script>
+<script src="app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.controller.js"></script>
+<script src="app/vid/scripts/controller/ServiceProxyConfigController.js"></script>
<script src="app/vid/scripts/directives/angularjs-datetime-picker.js"></script>
+<script src="app/vid/scripts/controller/msoCommitModalController.js"></script>
-
+<script src="app/vid/scripts/directives/messageViewer.js"></script>
<script src="app/vid/scripts/directives/extensionsDirective.js"></script>
<script src="app/vid/scripts/directives/parameterBlockDirective.js"></script>
<script src="app/vid/scripts/directives/popupWindowDirective.js"></script>
<script src="app/vid/scripts/directives/progressBarDirective.js"></script>
+<script src="app/vid/scripts/directives/serviceMetadata.js"></script>
+<script src="app/vid/scripts/directives/search.js"></script>
<script src="app/vid/scripts/services/aaiService.js"></script>
<script src="app/vid/scripts/services/schedulerService.js"></script>
<script src="app/vid/scripts/services/asdcService.js"></script>
<script src="app/vid/scripts/services/componentService.js"></script>
<script src="app/vid/scripts/services/creationService.js"></script>
<script src="app/vid/scripts/services/dataService.js"></script>
-<script src="app/vid/scripts/services/deletionService.js"></script>
+<script src="app/vid/scripts/services/deleteResumeService.js"></script>
<script src="app/vid/scripts/services/detailsService.js"></script>
<script src="app/vid/scripts/services/statusService.js"></script>
<script src="app/vid/scripts/services/msoService.js"></script>
<script src="app/vid/scripts/services/propertyService.js"></script>
<script src="app/vid/scripts/services/utilityService.js"></script>
<script src="app/vid/scripts/services/vnfService.js"></script>
+<script src="app/vid/scripts/services/pnfService.js"></script>
<script src="app/vid/scripts/services/change-management.service.js"></script>
+<script src="app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.controller.js"></script>
+<script src="app/vid/scripts/services/OwningEntityService.js"></script>
+<script src="app/vid/scripts/services/testEnvironmentsService.js"></script>
+
+
<%@ page import="org.openecomp.vid.mso.*"%>
<%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%>
@@ -81,18 +100,20 @@ <div ng-view></div>
</div>
<!-- Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/16/2016 -->
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
+<div class="temporary-solution">
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+</div>
diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/subscriberdetails.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/subscriberdetails.jsp new file mode 100644 index 000000000..ca92b1529 --- /dev/null +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/subscriberdetails.jsp @@ -0,0 +1,184 @@ +<%@ include file="/WEB-INF/fusion/jsp/popup_modal.html" %> +<div ng-controller="subscriberDetailsController"> + <div> + <h1 class="heading1" style="margin-top:20px;">Selected Subscriber's Service Instance Details:</h1> + <div style="margin-top:30px"> + <table att-table table-data="tableData"> + + <thead att-table-row type="header"> + <tr> + <th att-table-header key="viewSubDetails">View/Edit</th> + <th att-table-header key="global-customer-id">Global Customer ID</th> + <th att-table-header key="subscriber-name">Subscriber Name</th> + <th att-table-header key="service-type">Service Type</th> + <th att-table-header key="service-instance-id">Service Instance ID</th> + </tr> + </thead> + <tbody att-table-row type="body" row-repeat="disData in displayData"> + <tr> + <td att-table-body> + <div ng-controller="viewEditSubController"> + <a href="#" ng-click="postsubscriberID(disData.subscriberName)" alt="View/Edit"> + View/Edit + </a> + </div> + </td> + <td att-table-body >{{disData.globalCustomerId}}</td> + <td att-table-body >{{disData.subscriberName}}</td> + <td att-table-body >{{disData.serviceType}}</td> + <td att-table-body >{{disData.serviceInstanceId}}</td> + </tr> + </tbody> + </table> + </div> + </div> + <table><tr> + <td> + <div ng-controller="searchExistingSIController" align="left" > + <button type="submit" ng-click="cancelSubDetails();" att-button + btn-type="primary" size="small">Cancel</button> + </div> + </td></tr> + + </table> + +</div> +<!-- Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/25/2016 --> + +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> + +<script> +app.controller("subscriberDetailsController", function ($scope,$http,modalService, $modal) { + $scope.tableData=${model.customerInfo}; + $scope.displayData= []; + $scope.subscriberData=[]; + $scope.serviceInstanceData= new Array(); + $scope.globalcustomerid = $scope.tableData['global-customer-id']; + $scope.subscriberName = $scope.tableData['subscriber-name']; + $scope.subscriberData = $scope.tableData['service-subscriptions']; + + $scope.setDisplaynoSTSI = function(){ + $scope.displayData.push({ + globalCustomerId : $scope.globalcustomerid, + subscriberName : $scope.subscriberName, + serviceType : "No Service Subscription Found", + serviceInstanceId : "No Service Instance Found" + }); + } + + $scope.setDisplaynoSI = function(servcType){ + $scope.displayData.push({ + globalCustomerId : $scope.globalcustomerid, + subscriberName : $scope.subscriberName, + serviceType : servcType, + serviceInstanceId : "No Service Instance Found" + }); + } + + if ($scope.subscriberData != null) + { + if ($scope.numberofSubscribers = $scope.subscriberData['service-subscription'] != null) + { + $scope.numberofSubscribers = $scope.subscriberData['service-subscription'].length; + if ($scope.numberofSubscribers > 0) + { + var index = 0; + for(i=0; i < $scope.numberofSubscribers; i++) { + $scope.serviceInstanceData[i] = new Array(); + var servicesubscription = $scope.subscriberData['service-subscription'][i]; + $scope.serviceInstanceData[i] = servicesubscription['service-instances']; + if ($scope.serviceInstanceData[i] != null) + { + if ($scope.serviceInstanceData[i]['service-instance'] != null) + { + var numberofserviceInstance = $scope.serviceInstanceData[i]['service-instance'].length; + if (numberofserviceInstance > 0) + { + for(j=0; j < numberofserviceInstance; j++) + { + $scope.displayData.push({ + globalCustomerId : $scope.globalcustomerid, + subscriberName : $scope.subscriberName, + serviceType : servicesubscription['service-type'], + serviceInstanceId : $scope.serviceInstanceData[i]['service-instance'][j]['service-instance-id'] + }); + } + } + else + { + $scope.setDisplaynoSI(servicesubscription['service-type']); + } + } + else + { + $scope.setDisplaynoSI(servicesubscription['service-type']); + } + } + else + { + $scope.setDisplaynoSI(servicesubscription['service-type']); + } + } + } + else + { + $scope.setDisplaynoSTSI(); + } + } + else + { + $scope.setDisplaynoSTSI(); + } + } + else + { + $scope.setDisplaynoSTSI(); + } + + +}); + +app.controller('viewEditSubController',['$scope','$http',function ($scope,$http) { + + $scope.postsubscriberID = function(subID){ + $.ajax({ + url: "vieweditsub/subedit?"+"subscriberID="+encodeURIComponent(subID), + type : "POST", + success:function (response){ + window.location.href = 'instantiate.htm'; + }, + error:function( jqXHR, status,error ){ + $("#errorInfo").show(); + } + + }); + } + +}]); + +app.controller('searchExistingSIController',['$scope','$http',function ($scope,$http) { + + $scope.cancelSubDetails = function(selectedSubscriber){ + + window.location.href = 'searchexistingsi.htm'; + + } + +}]); +</script> + + diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/testViewEdit.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/testViewEdit.jsp index 59c8a317e..2c8022263 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/testViewEdit.jsp +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/testViewEdit.jsp @@ -7,7 +7,7 @@ <link rel="stylesheet" type="text/css" href="app/vid/styles/dialogs.css" />
<script src="app/vid/scripts/controller/creationDialogController.js"></script>
-<script src="app/vid/scripts/controller/deletionDialogController.js"></script>
+<script src="app/vid/scripts/controller/deleteResumeDialogController.js"></script>
<script src="app/vid/scripts/controller/detailsDialogController.js"></script>
<script src="app/vid/scripts/controller/statusDialogController.js"></script>
<script src="app/vid/scripts/controller/msoCommitController.js"></script>
@@ -16,7 +16,7 @@ <script src="app/vid/scripts/services/asdcService.js"></script>
<script src="app/vid/scripts/services/creationService.js"></script>
<script src="app/vid/scripts/services/dataService.js"></script>
-<script src="app/vid/scripts/services/deletionService.js"></script>
+<script src="app/vid/scripts/services/deleteResumeService.js"></script>
<script src="app/vid/scripts/services/detailsService.js"></script>
<script src="app/vid/scripts/services/statusService.js"></script>
<script src="app/vid/scripts/services/componentService.js"></script>
@@ -54,7 +54,7 @@ <div popup-window class="popupContents" ngx-show="{{popup.isVisible}}"
ng-cloak>
<div ng-include="'app/vid/scripts/view-models/creationDialog.htm'"></div>
- <div ng-include="'app/vid/scripts/view-models/deletionDialog.htm'"></div>
+ <div ng-include="'app/vid/scripts/view-models/deleteResumeDialog.htm'"></div>
<div ng-include="'app/vid/scripts/view-models/detailsDialog.htm'"
onload="autoStartTest();"></div>
</div>
diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/welcome.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/welcome.jsp index ad5331d98..b505909f6 100755 --- a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/welcome.jsp +++ b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/welcome.jsp @@ -1,23 +1,27 @@ <script src="app/vid/external/multiselect/angular-bootstrap-multiselect.min.js"></script>
+<script src="app/vid/external/upload-file/ng-file-upload.min.js"></script>
<div>
- <h1 class="heading1">ONAP</h1>
+ <h1 class="heading1">AT&T Domain 2.0 Network</h1>
<br>
<h1 class="heading1"><u>Welcome to VID</u></h1>
<br>
The Virtual Infrastructure Deployment (VID) application allows infrastructure service deployment operators
to instantiate service instances and their constituent parts for Distributed service models required by the
- ONAP service operations that manage them, such as Mobility Network Services, etc.
- The models are defined by ONAP component SDC. The service
+ internal AT&T service operations organizations that manage them, such as Mobility Network Services,
+ Netbond Services, or FlexReach Services. The models are defined by ECOMP component ASDC. The service
deployment operator selects the service operations owner and model that they wish to instantiate. After
- entry of appropriate data, the operator instructs VID to direct another ONAP component, MSO, to instantiate
+ entry of appropriate data, the operator instructs VID to direct another ECOMP component, MSO, to instantiate
the selected service model. Once the service instance has been instantiated, the service operator can instruct
VID to direct MSO to instantiate the service instance's component VNFs, VF Modules, Networks and Volume Groups.
The VID user can also search for, and display, existing service instances and direct the instantiation of
subsequent instance components.
<br><br>
-
- <h1 class="heading1"><a href="mailto:portal@lists.onap.org" target="_top">Contact Us</a></h1>
- <a href="mailto:portal@lists.onap.org" target="_top">Please click here to contact us.</a>
+ <h1 class="heading1"><u>About VID</u></h1>
+ VID was originally developed for the October 2016 release by an integrated IT and Labs team, under the
+ direction of Steve Smokowski and Vivian Pressley.
+ <br><br>
+ <h1 class="heading1"><a href="mailto:VID-Tier4@ist.att.com" target="_top">Contact Us</a></h1>
+ <a href="mailto:VID-Tier4@ist.att.com" target="_top">Please click here to contact us.</a>
@@ -26,6 +30,7 @@ </div>
+<!-- Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/16/2016 -->
<br>
<br>
<br>
diff --git a/epsdk-app-onap/src/main/webapp/app/fusion/external/ebz/angular_js/app.js b/epsdk-app-onap/src/main/webapp/app/fusion/external/ebz/angular_js/app.js index 59e27470f..e5db518d4 100755 --- a/epsdk-app-onap/src/main/webapp/app/fusion/external/ebz/angular_js/app.js +++ b/epsdk-app-onap/src/main/webapp/app/fusion/external/ebz/angular_js/app.js @@ -1,5 +1,5 @@ angular.module('att.abs.helper', []);
angular.module('quantum', []);
var app=angular.module("abs", ["att.abs", "att.abs.helper","modalServices", /*'ngAnimate','ngTouch',*/ 'ui.bootstrap',
- "att.gridster","checklist-model","ngRoute", "ngCookies", 'btorfs.multiselect']);
+ "att.gridster","checklist-model","ngRoute", "ngCookies", 'btorfs.multiselect','ngFileUpload']);
diff --git a/epsdk-app-onap/src/main/webapp/app/vid/external/multiselect/angular-bootstrap-multiselect.min.js b/epsdk-app-onap/src/main/webapp/app/vid/external/multiselect/angular-bootstrap-multiselect.min.js deleted file mode 100644 index b9be2c7e4..000000000 --- a/epsdk-app-onap/src/main/webapp/app/vid/external/multiselect/angular-bootstrap-multiselect.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var a=angular.module("btorfs.multiselect",["btorfs.multiselect.templates"]);a.getRecursiveProperty=function(a,b){return b.split(".").reduce(function(a,b){return a?a[b]:null},a)},a.directive("multiselect",["$filter","$document","$log",function(b,c,d){return{restrict:"AE",scope:{options:"=",displayProp:"@",idProp:"@",searchLimit:"=?",selectionLimit:"=?",showSelectAll:"=?",showUnselectAll:"=?",showSearch:"=?",searchFilter:"=?",disabled:"=?ngDisabled",labels:"=?",showTooltip:"=?",placeholder:"@?"},require:"ngModel",templateUrl:"multiselect.html",link:function(b,e,f,g){b.selectionLimit=b.selectionLimit||0,b.searchLimit=b.searchLimit||25,b.searchFilter="",b.resolvedOptions=[],"function"!=typeof b.options&&(b.resolvedOptions=b.options),"undefined"!=typeof f.disabled&&(b.disabled=!0);var h=function(a){e[0].contains(a.target)||b.$apply(function(){b.open=!1})};c.on("click",h);var i=function(){g.$viewValue?(b.selectedOptions=b.resolvedOptions.filter(function(a){for(var c=b.getId(a),d=0;d<g.$viewValue.length;d++){var e=b.getId(g.$viewValue[d]);if(c===e)return!0}return!1}),b.unselectedOptions=b.resolvedOptions.filter(function(a){return b.selectedOptions.indexOf(a)<0})):(b.selectedOptions&&(b.selectedOptions=[]),b.unselectedOptions=b.resolvedOptions.slice())};b.toggleDropdown=function(){b.open=!b.open,b.resolvedOptions=b.options,i()},g.$render=function(){i()},g.$viewChangeListeners.push(function(){i()}),g.$isEmpty=function(a){return!a||0===a.length};var j=b.$watch("selectedOptions",function(){g.$setViewValue(angular.copy(b.selectedOptions))},!0);b.$on("$destroy",function(){c.off("click",h),j&&j()}),b.getButtonText=function(){if(b.selectedOptions&&1===b.selectedOptions.length)return b.getDisplay(b.selectedOptions[0]);if(b.selectedOptions&&b.selectedOptions.length>1){var a=angular.isDefined(b.selectedOptions)?b.selectedOptions.length:0;return 0===a?b.labels&&b.labels.select?b.labels.select:b.placeholder||"Select":a+" "+(b.labels&&b.labels.itemsSelected?b.labels.itemsSelected:"selected")}return b.labels&&b.labels.select?b.labels.select:b.placeholder||"Select"},b.selectAll=function(){b.selectedOptions=b.resolvedOptions.slice(),b.unselectedOptions=[]},b.unselectAll=function(){b.selectedOptions=[],b.unselectedOptions=b.resolvedOptions.slice()},b.toggleItem=function(a){"undefined"==typeof b.selectedOptions&&(b.selectedOptions=[]);var c=b.selectedOptions.indexOf(a),d=c!==-1;if(d)b.unselectedOptions.push(b.selectedOptions[c]),b.selectedOptions.splice(c,1);else if(!d&&(0===b.selectionLimit||b.selectedOptions.length<b.selectionLimit)){var e=b.unselectedOptions.indexOf(a);b.unselectedOptions.splice(e,1),b.selectedOptions.push(a)}},b.getId=function(c){return angular.isString(c)?c:angular.isObject(c)?b.idProp?a.getRecursiveProperty(c,b.idProp):(d.error("Multiselect: when using objects as model, a idProp value is mandatory."),""):c},b.getDisplay=function(c){return angular.isString(c)?c:angular.isObject(c)?b.displayProp?a.getRecursiveProperty(c,b.displayProp):(d.error("Multiselect: when using objects as model, a displayProp value is mandatory."),""):c},b.isSelected=function(a){if(!b.selectedOptions)return!1;for(var c=b.getId(a),d=0;d<b.selectedOptions.length;d++){var e=b.selectedOptions[d];if(b.getId(e)===c)return!0}return!1},b.updateOptions=function(){"function"==typeof b.options&&b.options().then(function(a){b.resolvedOptions=a,i()})},b.search=function(){var a=0;return function(c){if(a>b.searchLimit)return!1;var d=b.getDisplay(c);if(d){var e=d.toLowerCase().indexOf(b.searchFilter.toLowerCase())>-1;return e&&a++,e}}}}}}])}(),angular.module("btorfs.multiselect.templates",["multiselect.html"]),angular.module("multiselect.html",[]).run(["$templateCache",function(a){a.put("multiselect.html",'<div class="btn-group" style="width: 100%">\n <button type="button" class="btn btn-default btn-block dropdown-toggle" ng-click="toggleDropdown()" ng-disabled="disabled" style="white-space: nowrap; overflow-x: hidden; text-overflow: ellipsis;">\n {{getButtonText()}} <span class="caret"></span>\n </button>\n <ul class="dropdown-menu dropdown-menu-form"\n ng-style="{display: open ? \'block\' : \'none\'}" style="width: 100%; overflow-x: auto">\n\n <li ng-show="showSelectAll">\n <a ng-click="selectAll()" href="">\n <span class="glyphicon glyphicon-ok"></span> {{labels.selectAll || \'Select All\'}}\n </a>\n </li>\n <li ng-show="showUnselectAll">\n <a ng-click="unselectAll()" href="">\n <span class="glyphicon glyphicon-remove"></span> {{labels.unselectAll || \'Unselect All\'}}\n </a>\n </li>\n <li ng-show="(showSelectAll || showUnselectAll)"\n class="divider">\n </li>\n\n <li role="presentation" ng-repeat="option in selectedOptions" class="active">\n <a class="item-selected" href="" title="{{showTooltip ? getDisplay(option) : \'\'}}" ng-click="toggleItem(option); $event.stopPropagation()" style="overflow-x: auto">\n <span class="glyphicon glyphicon-remove"></span>\n {{getDisplay(option)}}\n </a>\n </li>\n <li ng-show="selectedOptions.length > 0" class="divider"></li>\n\n <li ng-show="showSearch">\n <div class="dropdown-header">\n <input type="text" class="form-control input-sm" style="width: 100%;"\n ng-model="searchFilter" placeholder="{{labels.search || \'Search...\'}}" ng-change="updateOptions()"/>\n </div>\n </li>\n\n <li ng-show="showSearch" class="divider"></li>\n <li role="presentation" ng-repeat="option in unselectedOptions | filter:search() | limitTo: searchLimit"\n ng-if="!isSelected(option)"\n ng-class="{disabled : selectionLimit && selectedOptions.length >= selectionLimit}">\n <a class="item-unselected" href="" title="{{showTooltip ? getDisplay(option) : \'\'}}" ng-click="toggleItem(option); $event.stopPropagation()" style="overflow-x: auto">\n {{getDisplay(option)}}\n </a>\n </li>\n\n <li class="divider" ng-show="selectionLimit > 1"></li>\n <li role="presentation" ng-show="selectionLimit > 1">\n <a>{{selectedOptions.length || 0}} / {{selectionLimit}} {{labels.itemsSelected || \'selected\'}}</a>\n </li>\n\n </ul>\n</div>\n')}]);
\ No newline at end of file @@ -1,7 +1,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>org.openecomp.vid</groupId>
+ <groupId>org.onap.vid</groupId>
<artifactId>vid-parent</artifactId>
<packaging>pom</packaging>
<name>vid</name>
@@ -17,6 +17,7 @@ <modules>
<module>vid-app-common</module>
<module>epsdk-app-onap</module>
+ <!--module>vid-automation</module-->
</modules>
<repositories>
@@ -81,7 +82,7 @@ <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
<stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
- <sitePath>/content/sites/site/org/openecomp/vid/${project.version}</sitePath>
+ <sitePath>/content/sites/site/org/onap/vid/${project.version}</sitePath>
</properties>
<build>
diff --git a/vid-app-common/pom.xml b/vid-app-common/pom.xml index 3e87ef277..dae47987f 100755 --- a/vid-app-common/pom.xml +++ b/vid-app-common/pom.xml @@ -7,7 +7,7 @@ <!-- This is the Maven project object model (POM) file for VID web application
based on the ECOMP SDK distribution. This file stands alone; it does not
inherit from a parent maven module. -->
- <groupId>org.openecomp.vid</groupId>
+ <groupId>org.onap.vid</groupId>
<artifactId>vid-app-common</artifactId>
<version>1.2.1-SNAPSHOT</version>
<packaging>war</packaging>
@@ -29,7 +29,7 @@ <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
<stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
- <sitePath>/content/sites/site/org/openecomp/vid/${project.version}</sitePath>
+ <sitePath>/content/sites/site/org/onap/vid/${project.version}</sitePath>
</properties>
@@ -130,7 +130,7 @@ <version>0.4.23</version>
<configuration>
<sourceDirectory>${basedir}/src/main/resources/json/mso</sourceDirectory>
- <targetPackage>org.openecomp.vid.domain.mso</targetPackage>
+ <targetPackage>org.onap.vid.domain.mso</targetPackage>
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
</configuration>
<executions>
@@ -165,6 +165,7 @@ </includes>
<excludes>
<exclude>**/selenium/*.java</exclude>
+ <exclude>**/integrationTest/*.java</exclude>
</excludes>
<additionalClasspathElements>
<additionalClasspathElement>${basedir}/war</additionalClasspathElement>
@@ -452,7 +453,8 @@ <dependency>
<groupId>org.openecomp.sdc.sdc-tosca</groupId>
<artifactId>sdc-tosca</artifactId>
- <version>1.1.32</version>
+ <version>1.1.51-SNAPSHOT</version>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>net.javacrumbs.json-unit</groupId>
@@ -460,5 +462,16 @@ <version>1.23.0</version>
<scope>test</scope>
</dependency>
- </dependencies>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-text</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>java-hamcrest</artifactId>
+ <version>2.0.0.0</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
</project>
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/RelatedTo.java b/vid-app-common/src/main/java/org/onap/vid/RelatedTo.java index 48ca49705..738f62036 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/RelatedTo.java +++ b/vid-app-common/src/main/java/org/onap/vid/RelatedTo.java @@ -1,4 +1,4 @@ -package org.openecomp.vid; +package org.onap.vid; import com.fasterxml.jackson.annotation.*; import org.codehaus.jackson.annotate.JsonProperty; @@ -10,6 +10,7 @@ import java.util.Map; @JsonPropertyOrder({ "id", "node-type", + "relationship-label", "url" }) public class RelatedTo { @@ -18,6 +19,8 @@ public class RelatedTo { public String id; @JsonProperty("node-type") public String nodeType; + @JsonProperty("relationship-label") + public String relationshipLabel; @JsonProperty("url") public String url; @JsonIgnore diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiClient.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java index 0f07f2066..2b8cf3a0e 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java @@ -1,18 +1,22 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.apache.http.HttpStatus; +import org.apache.http.client.utils.URIBuilder; import org.codehaus.jackson.map.ObjectMapper; -import org.ecomp.aai.model.AaiAICZones.AicZones; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; -import org.openecomp.aai.util.AAIRestInterface; +import org.onap.vid.aai.util.AAIRestInterface; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.aai.model.ServiceRelationships; -import org.openecomp.vid.aai.model.AaiGetServicesRequestModel.GetServicesAAIRespone; -import org.openecomp.vid.aai.model.AaiGetTenatns.GetTenantsResponse; -import org.openecomp.vid.model.SubscriberList; +import org.onap.vid.aai.model.AaiGetAicZone.AicZones; +import org.onap.vid.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList; +import org.onap.vid.aai.model.*; +import org.onap.vid.aai.model.AaiGetPnfs.Pnf; +import org.onap.vid.aai.model.AaiGetServicesRequestModel.GetServicesAAIRespone; +import org.onap.vid.aai.model.AaiGetTenatns.GetTenantsResponse; +import org.onap.vid.model.SubscriberList; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.util.UriUtils; import javax.servlet.ServletContext; import javax.ws.rs.BadRequestException; @@ -20,6 +24,8 @@ import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Response; import java.io.File; import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; @@ -27,8 +33,8 @@ import java.util.Iterator; import java.util.List; import java.util.UUID; - /** + * Created by Oren on 7/4/17. */ public class AaiClient implements AaiClientInterface { @@ -45,7 +51,7 @@ public class AaiClient implements AaiClientInterface { */ EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(AaiClient.class); - + private final String getServiceModelsResponseBody = "{\"start\" : \"service-design-and-creation/models/\", \"query\" : \"query/serviceModels-byDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK\"}"; public AaiClient() { // certiPath = getCertificatesFile().getAbsolutePath(); @@ -66,6 +72,90 @@ public class AaiClient implements AaiClientInterface { } @Override + public AaiResponse getServicesByOwningEntityId(List<String> owningEntityIds){ + File certiPath = getCertificatesFile(); + Response resp = doAaiGet(certiPath.getAbsolutePath(), getUrlFromLIst("business/owning-entities?", "owning-entity-id=", owningEntityIds), false); + AaiResponse aaiResponse = proccessAaiResponse(resp, OwningEntityResponse.class, null); + + return aaiResponse; + } + + @Override + public AaiResponse getServicesByProjectNames(List<String> projectNames){ + File certiPath = getCertificatesFile(); + Response resp = doAaiGet(certiPath.getAbsolutePath(), getUrlFromLIst("business/projects?", "project-name=", projectNames), false); + AaiResponse aaiResponse = proccessAaiResponse(resp, ProjectResponse.class, null); + + return aaiResponse; + } + + @Override + public AaiResponse getServiceModelsByDistributionStatus() { + File certiPath = getCertificatesFile(); + Response resp = doAaiPut(certiPath.getAbsolutePath(), "query?format=resource", getServiceModelsResponseBody, false); + AaiResponse aaiResponse = proccessAaiResponse(resp, GetServiceModelsByDistributionStatusResponse.class, null); + + return aaiResponse; + } + + @Override + public AaiResponse getPNFData(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion, String equipVendor, String equipModel) { + String certiPath = getCertificatesFile().getAbsolutePath(); + String siQuery = "/business/customers/customer/" + globalCustomerId + "/service-subscriptions/service-subscription/" + encodePathSegment(serviceType) + "/service-instances?model-version-id=" + modelVersionId + "&model-invariant-id=" + modelInvariantId; + String pnfQuery = "query/pnf-fromModel-byRegion?cloudRegionId=" + encodePathSegment(cloudRegion) + "&equipVendor=" + encodePathSegment(equipVendor) + "&equipModel=" + encodePathSegment(equipModel); + String payload = "{\"start\":\"" + siQuery + "\",\"query\":\"" + pnfQuery + "\"}"; + Response resp = doAaiPut(certiPath, "query?format=simple", payload, false); + return proccessAaiResponse(resp, AaiGetPnfResponse.class, null); + } + + + @Override + public AaiResponse<Pnf> getSpecificPnf(String pnfId) { + File certiPath = getCertificatesFile(); + Response resp = doAaiGet(certiPath.getAbsolutePath(), "network/pnfs/pnf/"+pnfId, false); + AaiResponse aaiResponse = proccessAaiResponse(resp, Pnf.class, null); + + return aaiResponse; + } + + public AaiResponse getServiceInstance(String globalCustomerId, String serviceType, String serviceInstanceId) { + String certiPath = getCertificatesFile().getAbsolutePath(); + String getServiceInstancePath = "business/customers/customer/"+globalCustomerId+"/service-subscriptions/service-subscription/"+serviceType+"/service-instances/service-instance/"+serviceInstanceId; + Response resp = doAaiGet(certiPath , getServiceInstancePath , false); + return proccessAaiResponse(resp, ServiceRelationships.class, null); + } + + @Override + public AaiResponse getLogicalLink(String link) { + String certiPath = getCertificatesFile().getAbsolutePath(); + Response resp = doAaiGet(certiPath , "network/logical-links/logical-link/" + link , false); + return proccessAaiResponse(resp, LogicalLinkResponse.class, null); + } + + private String getUrlFromLIst(String url, String paramKey, List<String> params){ + url.concat(paramKey); + int i = 0; + for(String param: params){ + i ++; + url = url.concat(paramKey); + String encodedParam= param; + try { + encodedParam= URLEncoder.encode(param, "UTF-8"); + } catch (UnsupportedEncodingException e) { + String methodName = "getUrlFromList"; + logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + } + url = url.concat(encodedParam); + if(i != params.size()){ + url = url.concat("&"); + } + } + return url; + } + + + @Override public AaiResponse<SubscriberList> getAllSubscribers() { String certiPath = getCertificatesFile().getAbsolutePath(); String depth = "0"; @@ -81,20 +171,23 @@ public class AaiClient implements AaiClientInterface { AaiResponse aaiAicZones = proccessAaiResponse(resp, AicZones.class, null); return aaiAicZones; } - - - @Override - public AaiResponse<String> getAicZoneForPnf(String globalCustomerId , String serviceType , String serviceId) { - String certiPath = getCertificatesFile().getAbsolutePath(); - String aicZonePath = "business/customers/customer/" + globalCustomerId + "/service-subscriptions/service-subscription/" + serviceType + "/service-instances/service-instance/" + serviceId; - Response resp = doAaiGet(certiPath , aicZonePath , false); - AaiResponse<ServiceRelationships> aaiResponse = proccessAaiResponse(resp , ServiceRelationships.class , null); - ServiceRelationships serviceRelationships = (ServiceRelationships)aaiResponse.getT(); - String aicZone = serviceRelationships.getRelationshipList().getRelationship().get(0).getRelatedToPropertyList().get(0).getPropertyValue(); - AaiResponse<String> aaiAicZonaForPnfResponse = new AaiResponse(aicZone , null ,HttpStatus.SC_OK); - return aaiAicZonaForPnfResponse; - } - + + + @Override + public AaiResponse<String> getAicZoneForPnf(String globalCustomerId , String serviceType , String serviceId) { + String certiPath = getCertificatesFile().getAbsolutePath(); + String aicZonePath = "business/customers/customer/" + globalCustomerId + "/service-subscriptions/service-subscription/" + serviceType + "/service-instances/service-instance/" + serviceId; + Response resp = doAaiGet(certiPath , aicZonePath , false); + AaiResponse<ServiceRelationships> aaiResponse = proccessAaiResponse(resp , ServiceRelationships.class , null); + ServiceRelationships serviceRelationships = (ServiceRelationships)aaiResponse.getT(); + RelationshipList relationshipList = serviceRelationships.getRelationshipList(); + Relationship relationship = relationshipList.getRelationship().get(0); + RelationshipData relationshipData= relationship.getRelationDataList().get(0); + String aicZone = relationshipData.getRelationshipValue(); + AaiResponse<String> aaiAicZonaForPnfResponse = new AaiResponse(aicZone , null ,HttpStatus.SC_OK); + return aaiAicZonaForPnfResponse; + } + @Override public AaiResponse getVNFData() { @@ -108,7 +201,7 @@ public class AaiClient implements AaiClientInterface { @Override public Response getVNFData(String globalSubscriberId, String serviceType) { String certiPath = getCertificatesFile().getAbsolutePath(); - String payload = "{\"start\": [\"business/customers/customer/" + globalSubscriberId + "/service-subscriptions/service-subscription/"+ serviceType +"/service-instances\"]," + + String payload = "{\"start\": [\"business/customers/customer/" + globalSubscriberId + "/service-subscriptions/service-subscription/"+ encodePathSegment(serviceType) +"/service-instances\"]," + "\"query\": \"query/vnf-topology-fromServiceInstance\"}"; return doAaiPut(certiPath, "query?format=simple", payload, false); @@ -117,7 +210,7 @@ public class AaiClient implements AaiClientInterface { @Override public AaiResponse getVNFData(String globalSubscriberId, String serviceType, String serviceInstanceId) { String certiPath = getCertificatesFile().getAbsolutePath(); - String payload = "{\"start\": [\"/business/customers/customer/" + globalSubscriberId + "/service-subscriptions/service-subscription/" + serviceType + "/service-instances/service-instance/" + serviceInstanceId + "\"], \"query\": \"query/vnf-topology-fromServiceInstance\"}"; + String payload = "{\"start\": [\"/business/customers/customer/" + globalSubscriberId + "/service-subscriptions/service-subscription/" + encodePathSegment(serviceType) + "/service-instances/service-instance/" + serviceInstanceId + "\"], \"query\": \"query/vnf-topology-fromServiceInstance\"}"; Response resp = doAaiPut(certiPath, "query?format=simple", payload, false); return proccessAaiResponse(resp, AaiGetVnfResponse.class, null); } @@ -155,19 +248,56 @@ public class AaiClient implements AaiClientInterface { } @Override + public AaiResponse getOperationalEnvironments(String operationalEnvironmentType, String operationalEnvironmentStatus) { + File certiPath = getCertificatesFile(); + String url = "cloud-infrastructure/operational-environments"; + URIBuilder urlBuilder = new URIBuilder(); + if (operationalEnvironmentType != null) + urlBuilder.addParameter("operational-environment-type", operationalEnvironmentType); + if (operationalEnvironmentStatus != null) + urlBuilder.addParameter("operational-environment-status", operationalEnvironmentStatus); + url += urlBuilder.toString(); + Response resp = doAaiGet(certiPath.getAbsolutePath(), url, false); + AaiResponse<OperationalEnvironmentList> getOperationalEnvironmentsResponse = proccessAaiResponse(resp, OperationalEnvironmentList.class, null); + return getOperationalEnvironmentsResponse; + + } + + @Override public AaiResponse getTenants(String globalCustomerId, String serviceType) { File certiPath = getCertificatesFile(); String url = "business/customers/customer/" + globalCustomerId + "/service-subscriptions/service-subscription/" + serviceType; Response resp = doAaiGet(certiPath.getAbsolutePath(), url, false); String responseAsString = parseForTenantsByServiceSubscription(resp.readEntity(String.class)); + if (responseAsString.equals("")){ + AaiResponse aaiResponse = new AaiResponse<>(null, String.format("{\"statusText\":\" A&AI has no LCP Region & Tenants associated to subscriber '%s' and service type '%s'\"}", globalCustomerId, serviceType), HttpStatus.SC_INTERNAL_SERVER_ERROR); + return aaiResponse; + } + else { + AaiResponse<GetTenantsResponse[]> getTenantsResponse = proccessAaiResponse(resp, GetTenantsResponse[].class, responseAsString); + return getTenantsResponse; + } - AaiResponse<GetTenantsResponse[]> getTenantsResponse = proccessAaiResponse(resp, GetTenantsResponse[].class, responseAsString); - return getTenantsResponse; + } + + @Override + public AaiResponse getNodeTemplateInstances(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion) { + + String certiPath = getCertificatesFile().getAbsolutePath(); + + String siQuery = "/business/customers/customer/" + globalCustomerId + "/service-subscriptions/service-subscription/" + encodePathSegment(serviceType) + "/service-instances?model-version-id=" + modelVersionId + "&model-invariant-id=" + modelInvariantId; + String vnfQuery = "query/queryvnfFromModelbyRegion?cloudRegionId=" + encodePathSegment(cloudRegion); + String payload1 = "{\"start\":\"" + siQuery + "\",\"query\":\"" + vnfQuery + "\"}"; + + Response resp1 = doAaiPut(certiPath, "query?format=simple", payload1, false); + AaiResponse aaiResponse1 = proccessAaiResponse(resp1, AaiGetVnfResponse.class, null); + logger.debug(EELFLoggerDelegate.debugLogger, "getNodeTemplateInstances AAI's response: {}", aaiResponse1); + return aaiResponse1; } private AaiResponse proccessAaiResponse(Response resp, Class classType, String responseBody) { - AaiResponse subscriberDataResponse; + AaiResponse subscriberDataResponse = null; if (resp == null) { subscriberDataResponse = new AaiResponse<>(null, null, HttpStatus.SC_INTERNAL_SERVER_ERROR); logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "Invalid response from AAI"); @@ -177,7 +307,7 @@ public class AaiClient implements AaiClientInterface { logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "Invalid response from AAI"); subscriberDataResponse = new AaiResponse<>(null, resp.readEntity(String.class), resp.getStatus()); } else { - String finalResponse; + String finalResponse = null; try { if (responseBody != null) { finalResponse = responseBody; @@ -187,10 +317,10 @@ public class AaiClient implements AaiClientInterface { subscriberDataResponse = new AaiResponse<>((new ObjectMapper().readValue(finalResponse, classType)), null, HttpStatus.SC_OK); - } catch (IOException e) { + } catch(Exception e){ subscriberDataResponse = new AaiResponse<>(null, null, HttpStatus.SC_INTERNAL_SERVER_ERROR); + logger.error("Failed to parse aai response: \"{}\" to class {}", finalResponse, classType, e); } - } } return subscriberDataResponse; @@ -203,7 +333,7 @@ public class AaiClient implements AaiClientInterface { } @SuppressWarnings("all") - protected Response doAaiGet(String certiPath, String uri, boolean xml) { + public Response doAaiGet(String certiPath, String uri, boolean xml) { String methodName = "doAaiGet"; String transId = UUID.randomUUID().toString(); logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); @@ -348,5 +478,12 @@ public class AaiClient implements AaiClientInterface { } + private static String encodePathSegment(String segmentToEncode) { + try { + return UriUtils.encodePathSegment(segmentToEncode, "UTF-8"); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException("URI encoding failed unexpectedly", e); + } + } }
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClientInterface.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClientInterface.java new file mode 100644 index 000000000..5095f48b5 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClientInterface.java @@ -0,0 +1,58 @@ +package org.onap.vid.aai; + +import org.codehaus.jackson.JsonParseException; +import org.codehaus.jackson.map.JsonMappingException; +import org.onap.vid.aai.model.AaiGetPnfs.Pnf; +import org.onap.vid.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList; +import org.onap.vid.aai.model.AaiGetServicesRequestModel.GetServicesAAIRespone; +import org.onap.vid.aai.model.AaiGetTenatns.GetTenantsResponse; +import org.onap.vid.model.SubscriberList; + +import javax.ws.rs.core.Response; + +import java.io.IOException; +import java.util.List; + +/** + * Created by Oren on 7/4/17. + */ +public interface AaiClientInterface { + + AaiResponse<SubscriberList> getAllSubscribers(); + + AaiResponse getSubscriberData(String subscriberId); + + AaiResponse getServices(); + + AaiResponse getServicesByOwningEntityId(List<String> owningEntityIds); + + AaiResponse<GetTenantsResponse[]> getTenants(String globalCustomerId, String serviceType); + + AaiResponse<OperationalEnvironmentList> getOperationalEnvironments(String operationalEnvironmentType, String operationalEnvironmentStatus); + + AaiResponse getAllAicZones(); + + AaiResponse getAicZoneForPnf(String globalCustomerId , String serviceType , String serviceId); + + AaiResponse getVNFData(); + + Response getVNFData(String globalSubscriberId, String serviceType); + + AaiResponse getVNFData(String globalSubscriberId, String serviceType, String serviceInstanceId); + + AaiResponse getNodeTemplateInstances(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion); + + Response getVersionByInvariantId(List<String> modelInvariantId); + + AaiResponse getServicesByProjectNames(List<String> projectNames); + + AaiResponse getServiceModelsByDistributionStatus(); + + AaiResponse getPNFData(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion, String equipVendor, String equipModel); + + AaiResponse<Pnf> getSpecificPnf(String pnfId); + + AaiResponse getServiceInstance(String globalCustomerId, String serviceType, String serviceInstanceId); + + AaiResponse getLogicalLink(String link); +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiGetVnfResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiGetVnfResponse.java index 7c9d44b12..14e8e5dcf 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiGetVnfResponse.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiGetVnfResponse.java @@ -1,6 +1,9 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; -import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.google.common.base.MoreObjects; +import org.codehaus.jackson.annotate.*; +import org.onap.vid.aai.model.VnfResult; import java.util.HashMap; import java.util.List; @@ -25,4 +28,12 @@ public class AaiGetVnfResponse { public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("results", results) + .add("additionalProperties", additionalProperties) + .toString(); + } } diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/AaiResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiResponse.java new file mode 100644 index 000000000..c4b19b134 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiResponse.java @@ -0,0 +1,34 @@ +package org.onap.vid.aai; + +import com.google.common.base.MoreObjects; +import org.onap.vid.model.ProxyResponse; + +/** + * Created by Oren on 7/10/17. + */ +public class AaiResponse<T> extends ProxyResponse{ + + T t; + + public AaiResponse() { + } + + public AaiResponse(T t, String errorMessage, int aaiHttpCode) { + this.t = t; + this.errorMessage = errorMessage; + this.httpCode = aaiHttpCode; + } + + public T getT() { + return t; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("httpCode", httpCode) + .add("errorMessage", errorMessage) + .add("t", t) + .toString(); + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/OperationalEnvironment.java b/vid-app-common/src/main/java/org/onap/vid/aai/OperationalEnvironment.java new file mode 100644 index 000000000..10ad4e963 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/OperationalEnvironment.java @@ -0,0 +1,107 @@ +package org.onap.vid.aai; + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; +import org.onap.vid.aai.model.Relationship; +import org.onap.vid.aai.model.RelationshipList; + +import java.util.List; + +@JsonIgnoreProperties(ignoreUnknown = true) +public class OperationalEnvironment { + + private String operationalEnvironmentId; + private String operationalEnvironmentName; + private String operationalEnvironmentType; + private String operationalEnvironmentStatus; + private String tenantContext; + private String workloadContext; + private String resourceVersion; + private RelationshipList relationshipList; + + public OperationalEnvironment() { + } + + public OperationalEnvironment(String operationalEnvironmentId, String operationalEnvironmentName, String operationalEnvironmentType, String operationalEnvironmentStatus, String tenantContext, String workloadContext, String resourceVersion, RelationshipList relationshipList) { + this.operationalEnvironmentId = operationalEnvironmentId; + this.operationalEnvironmentName = operationalEnvironmentName; + this.operationalEnvironmentType = operationalEnvironmentType; + this.operationalEnvironmentStatus = operationalEnvironmentStatus; + this.tenantContext = tenantContext; + this.workloadContext = workloadContext; + this.resourceVersion = resourceVersion; + this.relationshipList = relationshipList; + } + + @JsonProperty("operational-environment-id") + public String getOperationalEnvironmentId() { + return operationalEnvironmentId; + } + + public void setOperationalEnvironmentId(String operationalEnvironmentId) { + this.operationalEnvironmentId = operationalEnvironmentId; + } + + @JsonProperty("operational-environment-name") + public String getOperationalEnvironmentName() { + return operationalEnvironmentName; + } + + public void setOperationalEnvironmentName(String operationalEnvironmentName) { + this.operationalEnvironmentName = operationalEnvironmentName; + } + + @JsonProperty("operational-environment-type") + public String getOperationalEnvironmentType() { + return operationalEnvironmentType; + } + + public void setOperationalEnvironmentType(String operationalEnvironmentType) { + this.operationalEnvironmentType = operationalEnvironmentType; + } + + @JsonProperty("operational-environment-status") + public String getOperationalEnvironmentStatus() { + return operationalEnvironmentStatus; + } + + public void setOperationalEnvironmentStatus(String operationalEnvironmentStatus) { + this.operationalEnvironmentStatus = operationalEnvironmentStatus; + } + + @JsonProperty("tenant-context") + public String getTenantContext() { + return tenantContext; + } + + public void setTenantContext(String tenantContext) { + this.tenantContext = tenantContext; + } + + @JsonProperty("workload-context") + public String getWorkloadContext() { + return workloadContext; + } + + public void setWorkloadContext(String workloadContext) { + this.workloadContext = workloadContext; + } + + @JsonProperty("resource-version") + public String getResourceVersion() { + return resourceVersion; + } + + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + @JsonProperty("relationship-list") + public RelationshipList getRelationshipList() { + return relationshipList; + } + + public void setRelationshipList(RelationshipList relationshipList) { + this.relationshipList = relationshipList; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceInstance.java b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceInstance.java index 45f7947ef..26f4a21e7 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceInstance.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceInstance.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceInstances.java b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceInstances.java index 063317e43..c92a47a36 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceInstances.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceInstances.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/ServiceInstancesSearchResults.java b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceInstancesSearchResults.java new file mode 100644 index 000000000..b32a83a13 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceInstancesSearchResults.java @@ -0,0 +1,14 @@ +package org.onap.vid.aai; + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; +import org.onap.vid.model.ServiceInstanceSearchResult; + +import java.util.ArrayList; +import java.util.List; + +@JsonIgnoreProperties(ignoreUnknown = true) +public class ServiceInstancesSearchResults { + @JsonProperty("service-instances") + public List<ServiceInstanceSearchResult> serviceInstances; +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceSubscription.java b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceSubscription.java index 6a178d970..5dc9d526b 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceSubscription.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceSubscription.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceSubscriptions.java b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceSubscriptions.java index eaadba2cc..686dc7d60 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceSubscriptions.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/ServiceSubscriptions.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/Services.java b/vid-app-common/src/main/java/org/onap/vid/aai/Services.java index e8148a92c..fe70de5af 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/Services.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/Services.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberAaiResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberAaiResponse.java index 53304e933..2dad75fdf 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberAaiResponse.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberAaiResponse.java @@ -1,7 +1,7 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; -import org.openecomp.vid.model.ProxyResponse; -import org.openecomp.vid.model.SubscriberList; +import org.onap.vid.model.ProxyResponse; +import org.onap.vid.model.SubscriberList; /** * Created by Oren on 7/5/17. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberData.java b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberData.java index efaa47885..1c93d97e2 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberData.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberData.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; /** * Created by Oren on 7/10/17. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberFilteredResults.java b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberFilteredResults.java index c2afee334..2db981999 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberFilteredResults.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberFilteredResults.java @@ -1,8 +1,8 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; -import org.openecomp.vid.model.ProxyResponse; -import org.openecomp.vid.model.SubscriberList; -import org.openecomp.vid.roles.RoleValidator; +import org.onap.vid.model.ProxyResponse; +import org.onap.vid.model.SubscriberList; +import org.onap.vid.roles.RoleValidator; /** * Created by Oren on 7/5/17. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberListWithFilterData.java b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberListWithFilterData.java index 75f505f25..0d4b4b7b3 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberListWithFilterData.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberListWithFilterData.java @@ -1,8 +1,8 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; -import org.openecomp.vid.model.Subscriber; -import org.openecomp.vid.model.SubscriberList; -import org.openecomp.vid.roles.RoleValidator; +import org.onap.vid.model.Subscriber; +import org.onap.vid.model.SubscriberList; +import org.onap.vid.roles.RoleValidator; import java.util.ArrayList; import java.util.List; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberWithFilter.java b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberWithFilter.java index abd9c0f32..aaaa14455 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/SubscriberWithFilter.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/SubscriberWithFilter.java @@ -1,7 +1,7 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.codehaus.jackson.annotate.JsonProperty; -import org.openecomp.vid.model.Subscriber; +import org.onap.vid.model.Subscriber; /** * Created by Oren on 7/5/17. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/exceptions/InvalidAAIResponseException.java b/vid-app-common/src/main/java/org/onap/vid/aai/exceptions/InvalidAAIResponseException.java index f84c09afa..e6296488e 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/exceptions/InvalidAAIResponseException.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/exceptions/InvalidAAIResponseException.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.exceptions; +package org.onap.vid.aai.exceptions; /** * Created by Oren on 7/4/17. diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/exceptions/RoleParsingException.java b/vid-app-common/src/main/java/org/onap/vid/aai/exceptions/RoleParsingException.java new file mode 100644 index 000000000..1d838a1c0 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/exceptions/RoleParsingException.java @@ -0,0 +1,7 @@ +package org.onap.vid.aai.exceptions; + +/** + * Created by Oren on 12/16/17. + */ +public class RoleParsingException extends Exception { +} diff --git a/vid-app-common/src/main/java/org/ecomp/aai/model/AaiAICZones/AicZones.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/AicZones.java index ee8bcf0c8..c30aaeb8f 100644 --- a/vid-app-common/src/main/java/org/ecomp/aai/model/AaiAICZones/AicZones.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/AicZones.java @@ -1,4 +1,4 @@ -package org.ecomp.aai.model.AaiAICZones; +package org.onap.vid.aai.model.AaiGetAicZone; import java.util.List; diff --git a/vid-app-common/src/main/java/org/ecomp/aai/model/AaiAICZones/Zone.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/Zone.java index 00d387c2b..89400f20e 100644 --- a/vid-app-common/src/main/java/org/ecomp/aai/model/AaiAICZones/Zone.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/Zone.java @@ -1,4 +1,4 @@ -package org.ecomp.aai.model.AaiAICZones; +package org.onap.vid.aai.model.AaiGetAicZone; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetOperationalEnvironments/OperationalEnvironmentList.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetOperationalEnvironments/OperationalEnvironmentList.java new file mode 100644 index 000000000..1f31cfaa9 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetOperationalEnvironments/OperationalEnvironmentList.java @@ -0,0 +1,30 @@ +package org.onap.vid.aai.model.AaiGetOperationalEnvironments; + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; +import org.onap.vid.aai.OperationalEnvironment; + +import java.util.List; + +@JsonIgnoreProperties(ignoreUnknown = true) +public class OperationalEnvironmentList { + + @JsonProperty("operational-environment") + public List<OperationalEnvironment> getOperationalEnvironment() { + return operationalEnvironment; + } + + @JsonProperty("operational-environment") + public void setOperationalEnvironment(List<OperationalEnvironment> operationalEnvironment) { + this.operationalEnvironment = operationalEnvironment; + } + + public OperationalEnvironmentList() { + } + + public OperationalEnvironmentList(List<OperationalEnvironment> operationalEnvironment) { + this.operationalEnvironment = operationalEnvironment; + } + + private List<OperationalEnvironment> operationalEnvironment; +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetPnfResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetPnfResponse.java new file mode 100644 index 000000000..cd8cca8f2 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetPnfResponse.java @@ -0,0 +1,42 @@ +package org.onap.vid.aai.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.google.common.base.MoreObjects; +import org.codehaus.jackson.annotate.JsonAnyGetter; +import org.codehaus.jackson.annotate.JsonAnySetter; +import org.codehaus.jackson.annotate.JsonIgnore; +import org.codehaus.jackson.annotate.JsonProperty; +import org.codehaus.jackson.annotate.JsonPropertyOrder; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "results" +}) +public class AaiGetPnfResponse { + @JsonProperty("results") + public List<PnfResult> results = null; + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("results", results) + .add("additionalProperties", additionalProperties) + .toString(); + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetPnfs/Pnf.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetPnfs/Pnf.java new file mode 100644 index 000000000..00a731a70 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetPnfs/Pnf.java @@ -0,0 +1,77 @@ +package org.onap.vid.aai.model.AaiGetPnfs; + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; +import org.onap.vid.aai.model.AaiRelationResponse; + +@JsonIgnoreProperties(ignoreUnknown = true) +public class Pnf extends AaiRelationResponse { + + @JsonProperty("pnf-name") + public String pnfName; + @JsonProperty("pnf-name2") + public String pnfName2; + @JsonProperty("pnf-name2-source") + public String pnfName2Source; + @JsonProperty("pnf-id") + public String pnfId; + @JsonProperty("equip-type") + public String equipType; + @JsonProperty("equip-vendor") + public String equipVendor; + @JsonProperty("equip-model") + public String equipModel; + + public String getPnfName() { + return pnfName; + } + + public void setPnfName(String pnfName) { + this.pnfName = pnfName; + } + + public String getEquipType() { + return equipType; + } + + public void setEquipType(String equipType) { + this.equipType = equipType; + } + + public String getEquipVendor() { + return equipVendor; + } + + public void setEquipVendor(String equipVendor) { + this.equipVendor = equipVendor; + } + + public String getPnfName2() { + return pnfName2; + } + + public void setPnfName2(String pnfName2) { + this.pnfName2 = pnfName2; + } + + public String getPnfId() { + return pnfId; + } + + public void setPnfId(String pnfId) { + this.pnfId = pnfId; + } + + public String getEquipModel() { + return equipModel; + } + + public void setEquipModel(String equipModel) { + this.equipModel = equipModel; + } + + public String getPnfName2Source() { return pnfName2Source; } + + public void setPnfName2Source(String pnfName2Source) { this.pnfName2Source = pnfName2Source; } +} + diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/AaiGetServicesRequestModel/GetServicesAAIRespone.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetServicesRequestModel/GetServicesAAIRespone.java index 27c38ce8a..d3dd7d26c 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/AaiGetServicesRequestModel/GetServicesAAIRespone.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetServicesRequestModel/GetServicesAAIRespone.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model.AaiGetServicesRequestModel; +package org.onap.vid.aai.model.AaiGetServicesRequestModel; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/AaiGetServicesRequestModel/Service.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetServicesRequestModel/Service.java index 977e57e67..367287e1d 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/AaiGetServicesRequestModel/Service.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetServicesRequestModel/Service.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model.AaiGetServicesRequestModel; +package org.onap.vid.aai.model.AaiGetServicesRequestModel; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/AaiGetTenatns/GetTenantsResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetTenatns/GetTenantsResponse.java index 5e88bf37e..bee92440d 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/AaiGetTenatns/GetTenantsResponse.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetTenatns/GetTenantsResponse.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model.AaiGetTenatns; +package org.onap.vid.aai.model.AaiGetTenatns; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; @@ -21,6 +21,13 @@ public class GetTenantsResponse { @JsonProperty("is-permitted") public boolean isPermitted; + public GetTenantsResponse() { + } - + public GetTenantsResponse(String cloudRegionId, String tenantName, String tenantID, boolean isPermitted) { + this.cloudRegionId = cloudRegionId; + this.tenantName = tenantName; + this.tenantID = tenantID; + this.isPermitted = isPermitted; + } }
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiRelationResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiRelationResponse.java new file mode 100644 index 000000000..7bc2e7a2e --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiRelationResponse.java @@ -0,0 +1,45 @@ +package org.onap.vid.aai.model; + + + +import org.codehaus.jackson.annotate.JsonIgnore; +import org.codehaus.jackson.annotate.JsonProperty; + +import java.util.HashMap; +import java.util.Map; + +/** + * Created by moriya1 on 08/10/2017. + */ +public class AaiRelationResponse { + + @JsonProperty("resource-version") + private String resourceVersion; + @JsonProperty("relationship-list") + private RelationshipList relationshipList; + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + + @JsonProperty("resource-version") + public String getResourceVersion() { + return resourceVersion; + } + + @JsonProperty("resource-version") + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + @JsonProperty("relationship-list") + public RelationshipList getRelationshipList() { + return relationshipList; + } + + @JsonProperty("relationship-list") + public void setRelationshipList(RelationshipList relationshipList) { + this.relationshipList = relationshipList; + } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/GetServiceModelsByDistributionStatusResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/GetServiceModelsByDistributionStatusResponse.java new file mode 100644 index 000000000..5a6924dcb --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/GetServiceModelsByDistributionStatusResponse.java @@ -0,0 +1,29 @@ +package org.onap.vid.aai.model; + + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; + +import java.util.List; + +/** + * Created by moriya1 on 15/10/2017. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class GetServiceModelsByDistributionStatusResponse { + @JsonProperty("results") + private List<Result> results; + + + @JsonProperty("results") + public List<Result> getResults() { + return results; + } + + @JsonProperty("results") + public void setResults(List<Result> results) { + this.results = results; + } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/LogicalLinkResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/LogicalLinkResponse.java new file mode 100644 index 000000000..6625957ec --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/LogicalLinkResponse.java @@ -0,0 +1,72 @@ +package org.onap.vid.aai.model; + +import org.codehaus.jackson.annotate.JsonProperty; + +public class LogicalLinkResponse { + + @JsonProperty("link-name") + public String linkName; + + @JsonProperty("in-maint") + public Boolean inMaint; + + @JsonProperty("link-type") + public String linkType; + + @JsonProperty("resource-version") + public String resourceVersion; + + @JsonProperty("purpose") + public String purpose; + + @JsonProperty("relationship-list") + public RelationshipList relationshipList; + + public String getLinkName() { + return linkName; + } + + public void setLinkName(String linkName) { + this.linkName = linkName; + } + + public Boolean getInMaint() { + return inMaint; + } + + public void setInMaint(Boolean inMaint) { + this.inMaint = inMaint; + } + + public String getLinkType() { + return linkType; + } + + public void setLinkType(String linkType) { + this.linkType = linkType; + } + + public String getResourceVersion() { + return resourceVersion; + } + + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public String getPurpose() { + return purpose; + } + + public void setPurpose(String purpose) { + this.purpose = purpose; + } + + public RelationshipList getRelationshipList() { + return relationshipList; + } + + public void setRelationshipList(RelationshipList relationshipList) { + this.relationshipList = relationshipList; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/Model.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/Model.java new file mode 100644 index 000000000..5f422f68a --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/Model.java @@ -0,0 +1,61 @@ +package org.onap.vid.aai.model; + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; + +/** + * Created by moriya1 on 15/10/2017. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class Model { + + @JsonProperty("model-invariant-id") + private String modelInvariantId; + @JsonProperty("model-type") + private String modelType; + @JsonProperty("resource-version") + private String resourceVersion; + @JsonProperty("model-vers") + private ModelVers modelVers; + + @JsonProperty("model-invariant-id") + public String getModelInvariantId() { + return modelInvariantId; + } + + @JsonProperty("model-invariant-id") + public void setModelInvariantId(String modelInvariantId) { + this.modelInvariantId = modelInvariantId; + } + + @JsonProperty("model-type") + public String getModelType() { + return modelType; + } + + @JsonProperty("model-type") + public void setModelType(String modelType) { + this.modelType = modelType; + } + + @JsonProperty("resource-version") + public String getResourceVersion() { + return resourceVersion; + } + + @JsonProperty("resource-version") + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + @JsonProperty("model-vers") + public ModelVers getModelVers() { + return modelVers; + } + + @JsonProperty("model-vers") + public void setModelVers(ModelVers modelVers) { + this.modelVers = modelVers; + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/ModelVer.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ModelVer.java new file mode 100644 index 000000000..f02bbacfe --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ModelVer.java @@ -0,0 +1,84 @@ +package org.onap.vid.aai.model; + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; + +@JsonIgnoreProperties(ignoreUnknown = true) +public class ModelVer { + + @JsonProperty("model-version-id") + private String modelVersionId; + @JsonProperty("model-name") + private String modelName; + @JsonProperty("model-version") + private String modelVersion; + @JsonProperty("distribution-status") + private String distributionStatus; + @JsonProperty("resource-version") + private String resourceVersion; + @JsonProperty("model-description") + private String modelDescription; + + + + @JsonProperty("model-version-id") + public String getModelVersionId() { + return modelVersionId; + } + + @JsonProperty("model-version-id") + public void setModelVersionId(String modelVersionId) { + this.modelVersionId = modelVersionId; + } + + @JsonProperty("model-name") + public String getModelName() { + return modelName; + } + + @JsonProperty("model-name") + public void setModelName(String modelName) { + this.modelName = modelName; + } + + @JsonProperty("model-version") + public String getModelVersion() { + return modelVersion; + } + + @JsonProperty("model-version") + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + @JsonProperty("distribution-status") + public String getDistributionStatus() { + return distributionStatus; + } + + @JsonProperty("distribution-status") + public void setDistributionStatus(String distributionStatus) { + this.distributionStatus = distributionStatus; + } + + @JsonProperty("resource-version") + public String getResourceVersion() { + return resourceVersion; + } + + @JsonProperty("resource-version") + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + @JsonProperty("model-description") + public String getModelDescription() { + return modelDescription; + } + + @JsonProperty("model-description") + public void setModelDescription(String modelDescription) { + this.modelDescription = modelDescription; + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/ModelVers.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ModelVers.java new file mode 100644 index 000000000..f352158f2 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ModelVers.java @@ -0,0 +1,28 @@ +package org.onap.vid.aai.model; + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; + +import java.util.List; + +/** + * Created by moriya1 on 15/10/2017. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class ModelVers { + + @JsonProperty("model-ver") + private List<ModelVer> modelVer; + + @JsonProperty("model-ver") + public List<ModelVer> getModelVer() { + return modelVer; + } + + @JsonProperty("model-ver") + public void setModelVer(List<ModelVer> modelVer) { + this.modelVer = modelVer; + } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/OwningEntity.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/OwningEntity.java new file mode 100644 index 000000000..edf5242d6 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/OwningEntity.java @@ -0,0 +1,36 @@ +package org.onap.vid.aai.model; + + +import org.codehaus.jackson.annotate.JsonProperty; + +/** + * Created by moriya1 on 08/10/2017. + */ +public class OwningEntity extends AaiRelationResponse { + @JsonProperty("owning-entity-id") + private String owningEntityId; + @JsonProperty("owning-entity-name") + private String owningEntityName; + + @JsonProperty("owning-entity-id") + public String getOwningEntityId() { + return owningEntityId; + } + + @JsonProperty("owning-entity-id") + public void setOwningEntityId(String owningEntityId) { + this.owningEntityId = owningEntityId; + } + + @JsonProperty("owning-entity-name") + public String getOwningEntityName() { + return owningEntityName; + } + + @JsonProperty("owning-entity-name") + public void setOwningEntityName(String owningEntityName) { + this.owningEntityName = owningEntityName; + } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/OwningEntityResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/OwningEntityResponse.java new file mode 100644 index 000000000..3a571ea14 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/OwningEntityResponse.java @@ -0,0 +1,28 @@ +package org.onap.vid.aai.model; + + +import org.codehaus.jackson.annotate.JsonProperty; + +import java.util.List; + +/** + * Created by moriya1 on 08/10/2017. + */ +public class OwningEntityResponse { + + @JsonProperty("owning-entity") + private List<OwningEntity> owningEntity; + + + @JsonProperty("owning-entity") + public List<OwningEntity> getOwningEntity() { + return owningEntity; + } + + @JsonProperty("owning-entity") + public void setOwningEntity(List<OwningEntity> owningEntity) { + this.owningEntity = owningEntity; + } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/PnfProperties.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/PnfProperties.java new file mode 100644 index 000000000..3481d263e --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/PnfProperties.java @@ -0,0 +1,51 @@ +package org.onap.vid.aai.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; + +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonPropertyOrder({ + "pnf-name", + "equip-type", + "equip-vendor", + "equip-model", + "in-maint", + "resource-version" +}) +public class PnfProperties { + + @JsonProperty("pnf-name") + public String pnfName; + @JsonProperty("equip-type") + public String equipType; + @JsonProperty("equip-vendor") + public String equipVendor; + @JsonProperty("equip-model") + public String equipModel; + @JsonProperty("in-maint") + public Boolean inMaint; + @JsonProperty("resource-version") + public String resourceVersion; + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/PnfResult.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/PnfResult.java new file mode 100644 index 000000000..a727d8f3c --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/PnfResult.java @@ -0,0 +1,49 @@ +package org.onap.vid.aai.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.codehaus.jackson.annotate.JsonProperty; +import org.onap.vid.RelatedTo; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "id", + "node-type", + "url", + "properties", + "related-to" +}) +public class PnfResult { + + @JsonProperty("id") + public String id; + @JsonProperty("node-type") + public String nodeType; + @JsonProperty("url") + public String url; + @JsonProperty("properties") + public PnfProperties properties; + @JsonProperty("related-to") + public List<RelatedTo> relatedTo; + + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/Project.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/Project.java new file mode 100644 index 000000000..5931bb97a --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/Project.java @@ -0,0 +1,21 @@ +package org.onap.vid.aai.model; + + +import org.codehaus.jackson.annotate.JsonProperty; + +/** + * Created by moriya1 on 08/10/2017. + */ +public class Project extends AaiRelationResponse { + + @JsonProperty("project-name") + private String projectName; + + @JsonProperty("project-name") + public String getProjectName() { return projectName; } + + @JsonProperty("project-name") + public void setProjectName(String projectName) { this.projectName = projectName; } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/ProjectResponse.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ProjectResponse.java new file mode 100644 index 000000000..0ca35b0a9 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ProjectResponse.java @@ -0,0 +1,28 @@ +package org.onap.vid.aai.model; + + +import org.codehaus.jackson.annotate.JsonProperty; + +import java.util.List; + +/** + * Created by moriya1 on 08/10/2017. + */ +public class ProjectResponse { + + @JsonProperty("project") + private List<Project> project; + + + @JsonProperty("project") + public List<Project> getProject() { + return project; + } + + @JsonProperty("project") + public void setProject(List<Project> project) { + this.project = project; + } + + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/RelatedToProperty.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/RelatedToProperty.java index c9f28ed69..38003aec2 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/RelatedToProperty.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/RelatedToProperty.java @@ -1,9 +1,10 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; + import org.codehaus.jackson.annotate.JsonProperty; public class RelatedToProperty { - + public String getPropertyKey() { return propertyKey; } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/Relationship.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/Relationship.java index 796094192..c80d5b6be 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/Relationship.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/Relationship.java @@ -1,8 +1,11 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; + +import org.codehaus.jackson.annotate.JsonProperty; import java.util.List; -import org.codehaus.jackson.annotate.JsonProperty; + + public class Relationship { @@ -11,6 +14,9 @@ public class Relationship { @JsonProperty("related-link") public String relatedLink; + + @JsonProperty("relationship-label") + public String relationshipLabel; @JsonProperty("relationship-data") public List<RelationshipData> relationshipData; @@ -51,5 +57,11 @@ public class Relationship { this.relatedToProperty = relatedToPropertyList; } + public String getRelationshipLabel() { + return relationshipLabel; + } + public void setRelationshipLabel(String relationshipLabel) { + this.relationshipLabel = relationshipLabel; + } } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/RelationshipData.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java index 21af2f5d6..5d2d4091d 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/RelationshipData.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java @@ -1,21 +1,22 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; + import org.codehaus.jackson.annotate.JsonProperty; public class RelationshipData { - + @JsonProperty("relationship-key") public String getRelationshipKey() { return relationshipKey; } - + @JsonProperty("relationship-key") public void setRelationshipKey(String relationshipKey) { this.relationshipKey = relationshipKey; } - + @JsonProperty("relationship-value") public String getRelationshipValue() { return relationshipValue; } - + @JsonProperty("relationship-value") public void setRelationshipValue(String relationshipValue) { this.relationshipValue = relationshipValue; } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/RelationshipList.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipList.java index cdb7af46b..43194fc7c 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/RelationshipList.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipList.java @@ -1,16 +1,18 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; + +import org.codehaus.jackson.annotate.JsonProperty; import java.util.List; -import org.codehaus.jackson.annotate.JsonProperty; public class RelationshipList { - + @JsonProperty("relationship") public List<Relationship> getRelationship() { return relationship; } - + + @JsonProperty("relationship") public void setRelationship(List<Relationship> relationship) { this.relationship = relationship; } diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/Result.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/Result.java new file mode 100644 index 000000000..1eb46be75 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/Result.java @@ -0,0 +1,26 @@ +package org.onap.vid.aai.model; + +import org.codehaus.jackson.annotate.JsonIgnoreProperties; +import org.codehaus.jackson.annotate.JsonProperty; + +/** + * Created by moriya1 on 15/10/2017. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class Result { + @JsonProperty("model") + private Model model; + + @JsonProperty("model") + public Model getModel() { + return model; + } + + @JsonProperty("model") + public void setModel(Model model) { + this.model = model; + } + + + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/ServiceInstance.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceInstance.java index 9fe4c06bc..381f9bc25 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/ServiceInstance.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceInstance.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/ServiceInstances.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceInstances.java index 163ed0458..0fced4c57 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/ServiceInstances.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceInstances.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import java.util.List; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceProperties.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceProperties.java index 113f113d3..a76bcf8a1 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/ServiceProperties.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceProperties.java @@ -1,12 +1,14 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai.model; import com.fasterxml.jackson.annotation.*; +import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.annotate.JsonProperty; import java.util.HashMap; import java.util.Map; @JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) @JsonPropertyOrder({ "service-instance-id", "service-instance-name", @@ -33,46 +35,67 @@ import java.util.Map; public class ServiceProperties { @JsonProperty("service-instance-id") + @com.fasterxml.jackson.annotation.JsonProperty("service-instance-id") public String serviceInstanceId; @JsonProperty("service-instance-name") + @com.fasterxml.jackson.annotation.JsonProperty("service-instance-name") public String serviceInstanceName; @JsonProperty("model-invariant-id") + @com.fasterxml.jackson.annotation.JsonProperty("model-invariant-id") public String modelInvariantId; @JsonProperty("model-version-id") + @com.fasterxml.jackson.annotation.JsonProperty("model-version-id") public String modelVersionId; @JsonProperty("resource-version") + @com.fasterxml.jackson.annotation.JsonProperty("resource-version") public String resourceVersion; @JsonProperty("orchestration-status") + @com.fasterxml.jackson.annotation.JsonProperty("orchestration-status") public String orchestrationStatus; @JsonProperty("global-customer-id") + @com.fasterxml.jackson.annotation.JsonProperty("global-customer-id") public String globalCustomerId; @JsonProperty("subscriber-name") + @com.fasterxml.jackson.annotation.JsonProperty("subscriber-name") public String subscriberName; @JsonProperty("subscriber-type") + @com.fasterxml.jackson.annotation.JsonProperty("subscriber-type") public String subscriberType; @JsonProperty("vnf-id") + @com.fasterxml.jackson.annotation.JsonProperty("vnf-id") public String vnfId; @JsonProperty("vnf-name") + @com.fasterxml.jackson.annotation.JsonProperty("vnf-name") public String vnfName; @JsonProperty("vnf-type") + @com.fasterxml.jackson.annotation.JsonProperty("vnf-type") public String vnfType; @JsonProperty("service-id") + @com.fasterxml.jackson.annotation.JsonProperty("service-id") public String serviceId; @JsonProperty("prov-status") + @com.fasterxml.jackson.annotation.JsonProperty("prov-status") public String provStatus; @JsonProperty("in-maint") + @com.fasterxml.jackson.annotation.JsonProperty("in-maint") public Boolean inMaint; @JsonProperty("is-closed-loop-disabled") + @com.fasterxml.jackson.annotation.JsonProperty("is-closed-loop-disabled") public Boolean isClosedLoopDisabled; @JsonProperty("model-customization-id") + @com.fasterxml.jackson.annotation.JsonProperty("model-customization-id") public String modelCustomizationId; @JsonProperty("nf-type") + @com.fasterxml.jackson.annotation.JsonProperty("nf-type") public String nfType; @JsonProperty("nf-function") + @com.fasterxml.jackson.annotation.JsonProperty("nf-function") public String nfFunction; @JsonProperty("nf-role") + @com.fasterxml.jackson.annotation.JsonProperty("nf-role") public String nfRole; @JsonProperty("nf-naming-code") + @com.fasterxml.jackson.annotation.JsonProperty("nf-naming-code") public String nfNamingCode; @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>(); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/ServiceRelationships.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceRelationships.java index 9bedd8545..b8abc8494 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/ServiceRelationships.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceRelationships.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import org.codehaus.jackson.annotate.JsonProperty; @@ -10,6 +10,18 @@ public class ServiceRelationships { @JsonProperty("service-instance-name") public String serviceInstanceName; + @JsonProperty("service-type") + public String serviceType; + + @JsonProperty("service-role") + public String serviceRole; + + @JsonProperty("environment-context") + public String environmentContext; + + @JsonProperty("workload-context") + public String workloadContext; + @JsonProperty("model-invariant-id") public String modelInvariantId; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/ServiceSubscription.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceSubscription.java index 02ddfd178..91582e816 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/ServiceSubscription.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ServiceSubscription.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/Services.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/Services.java index 6e7b89070..3ba4b22d0 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/model/Services.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/Services.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import java.util.List; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/VnfResult.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/VnfResult.java index b8294e519..e4f22849d 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/VnfResult.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/VnfResult.java @@ -1,8 +1,8 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai.model; import com.fasterxml.jackson.annotation.*; import org.codehaus.jackson.annotate.JsonProperty; -import org.openecomp.vid.RelatedTo; +import org.onap.vid.RelatedTo; import java.util.HashMap; import java.util.List; @@ -21,6 +21,7 @@ public class VnfResult { @JsonProperty("id") public String id; + @com.fasterxml.jackson.annotation.JsonProperty("node-type") @JsonProperty("node-type") public String nodeType; @JsonProperty("url") @@ -28,6 +29,7 @@ public class VnfResult { @JsonProperty("properties") public ServiceProperties properties; @JsonProperty("related-to") + @com.fasterxml.jackson.annotation.JsonProperty("related-to") public List<RelatedTo> relatedTo = null; @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>(); diff --git a/vid-app-common/src/main/java/org/openecomp/aai/util/AAIProperties.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/AAIProperties.java index 9716ba827..254584ca1 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/aai/util/AAIProperties.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/AAIProperties.java @@ -1,68 +1,68 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.aai.util;
-
-
-import org.openecomp.portalsdk.core.util.SystemProperties;
-
-/**
- * The Class AAIProperties.
- */
-public class AAIProperties extends SystemProperties {
-
- /** The Constant AAI_SERVER_URL_BASE. */
- //VID Specific
- public static final String AAI_SERVER_URL_BASE = "aai.server.url.base";
-
- /** The Constant AAI_SERVER_URL. */
- public static final String AAI_SERVER_URL = "aai.server.url";
-
- /** The Constant AAI_OLDSERVER_URL_BASE. */
- public static final String AAI_OLDSERVER_URL_BASE = "aai.oldserver.url.base";
-
- /** The Constant AAI_OLDSERVER_URL. */
- public static final String AAI_OLDSERVER_URL = "aai.oldserver.url";
-
- /** The Constant AAI_TRUSTSTORE_FILENAME. */
- public static final String AAI_TRUSTSTORE_FILENAME = "aai.truststore.filename";
-
- /** The Constant AAI_TRUSTSTORE_PASSWD_X. */
- public static final String AAI_TRUSTSTORE_PASSWD_X = "aai.truststore.passwd.x";
-
- /** The Constant AAI_KEYSTORE_FILENAME. */
- public static final String AAI_KEYSTORE_FILENAME = "aai.keystore.filename";
-
- /** The Constant AAI_KEYSTORE_PASSWD_X. */
- public static final String AAI_KEYSTORE_PASSWD_X = "aai.keystore.passwd.x";
-
- /** The Constant AAI_VID_USERNAME. */
- public static final String AAI_VID_USERNAME = "aai.vid.username";
-
- /** The Constant AAI_VID_PASSWD_X. */
- public static final String AAI_VID_PASSWD_X = "aai.vid.passwd.x";
-
- /** The Constant FILESEPARTOR. */
- public static final String FILESEPARTOR = (System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator");
-
- /** The Constant AAI_USE_CLIENT_CERT */
- public static final String AAI_USE_CLIENT_CERT = "aai.use.client.cert";
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.aai.util; + + +import org.openecomp.portalsdk.core.util.SystemProperties; + +/** + * The Class AAIProperties. + */ +public class AAIProperties extends SystemProperties { + + /** The Constant AAI_SERVER_URL_BASE. */ + //VID Specific + public static final String AAI_SERVER_URL_BASE = "aai.server.url.base"; + + /** The Constant AAI_SERVER_URL. */ + public static final String AAI_SERVER_URL = "aai.server.url"; + + /** The Constant AAI_OLDSERVER_URL_BASE. */ + public static final String AAI_OLDSERVER_URL_BASE = "aai.oldserver.url.base"; + + /** The Constant AAI_OLDSERVER_URL. */ + public static final String AAI_OLDSERVER_URL = "aai.oldserver.url"; + + /** The Constant AAI_TRUSTSTORE_FILENAME. */ + public static final String AAI_TRUSTSTORE_FILENAME = "aai.truststore.filename"; + + /** The Constant AAI_TRUSTSTORE_PASSWD_X. */ + public static final String AAI_TRUSTSTORE_PASSWD_X = "aai.truststore.passwd.x"; + + /** The Constant AAI_KEYSTORE_FILENAME. */ + public static final String AAI_KEYSTORE_FILENAME = "aai.keystore.filename"; + + /** The Constant AAI_KEYSTORE_PASSWD_X. */ + public static final String AAI_KEYSTORE_PASSWD_X = "aai.keystore.passwd.x"; + + /** The Constant AAI_VID_USERNAME. */ + public static final String AAI_VID_USERNAME = "aai.vid.username"; + + /** The Constant AAI_VID_PASSWD_X. */ + public static final String AAI_VID_PASSWD_X = "aai.vid.passwd.x"; + + /** The Constant FILESEPARTOR. */ + public static final String FILESEPARTOR = (System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator"); + + /** The Constant AAI_USE_CLIENT_CERT */ + public static final String AAI_USE_CLIENT_CERT = "aai.use.client.cert"; + +} diff --git a/vid-app-common/src/main/java/org/openecomp/aai/util/AAIRestInterface.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/AAIRestInterface.java index d9bb5c1f4..13b7d30b0 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/aai/util/AAIRestInterface.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/AAIRestInterface.java @@ -1,356 +1,373 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-package org.openecomp.aai.util;
-
-
-import java.io.UnsupportedEncodingException;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.net.URLEncoder;
-import java.security.KeyManagementException;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Base64;
-import java.util.Date;
-import java.util.UUID;
-
-import javax.ws.rs.client.Client;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.Response;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.eclipse.jetty.util.security.Password;
-import org.openecomp.aai.util.AAIProperties;
-import org.openecomp.aai.util.HttpsAuthClient;
-/**
- * The Class AAIRestInterface.
- */
-public class AAIRestInterface {
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(AAIRestInterface.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /** The client. */
- private static Client client = null;
-
- /** The rest srvr base URL. */
- private String restSrvrBaseURL;
-
- /** The certificate path. */
- public String certificatePath = "";
-
- /**
- * Instantiates a new AAI rest interface.
- *
- * @param certPath the cert path
- */
- public AAIRestInterface(String certPath)
- {
- certificatePath = certPath;
- }
-
- /**
- * Encode URL.
- *
- * @param nodeKey the node key
- * @return the string
- * @throws UnsupportedEncodingException the unsupported encoding exception
- */
- public String encodeURL (String nodeKey) throws UnsupportedEncodingException {
- return URLEncoder.encode(nodeKey, "UTF-8").replaceAll("\\+", "%20");
- }
-
- /**
- * Inits the rest client.
- */
- private void initRestClient()
- {
- String methodName = "initRestClient";
-
- if (client == null) {
- try {
- client = HttpsAuthClient.getClient(certificatePath);
- }
- catch (KeyManagementException e){
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== KeyManagementException in " + methodName + e.toString());
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== KeyManagementException in " + methodName + e.toString());
- } catch (Exception e) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== Exception in REST call to DB in initRestClient" + e.toString());
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== Exception in REST call to DB : " + e.toString());
- }
- }
- }
-
- /**
- * Sets the rest srvr base URL.
- *
- * @param baseURL the base URL
- */
- public void SetRestSrvrBaseURL(String baseURL)
- {
- if (baseURL == null)
- {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== REST Server base URL cannot be null.");
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== REST Server base URL cannot be null.");
- }
-
- restSrvrBaseURL = baseURL;
- }
-
- /**
- * Gets the rest srvr base URL.
- *
- * @return the rest srvr base URL
- */
- public String getRestSrvrBaseURL()
- {
- return restSrvrBaseURL;
- }
-
-
- /**
- * Rest get.
- *
- * @param fromAppId the from app id
- * @param transId the trans id
- * @param requestUri the request uri
- * @param xml the xml
- * @return the string
- * @throws UnsupportedEncodingException
- */
- public Response RestGet(String fromAppId, String transId, String requestUri, boolean xml) throws UnsupportedEncodingException {
- String methodName = "RestGet";
-
- String responseType = "application/json";
- if (xml)
- responseType = "application/xml";
-
- initRestClient();
-
- String clientCert = SystemProperties.getProperty(AAIProperties.AAI_USE_CLIENT_CERT);
-
- boolean useClientCert = false;
- if (clientCert != null &&
- SystemProperties.getProperty(AAIProperties.AAI_USE_CLIENT_CERT).equalsIgnoreCase("true")) {
- useClientCert = true;
- }
- String url = "";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- url = SystemProperties.getProperty(AAIProperties.AAI_SERVER_URL) + requestUri;
-
- try {
- // what is the point of this, just to check syntax??
- URL urlObj= new URL(url);
- URI uri = new URI(urlObj.getProtocol(), urlObj.getUserInfo(), urlObj.getHost(), urlObj.getPort(), urlObj.getPath(), urlObj.getQuery(), urlObj.getRef());
- url = uri.toASCIIString();
- } catch (URISyntaxException | MalformedURLException e) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " bad URL");
- return null;
- }
- logger.debug(dateFormat.format(new Date()) + "<== " + url + " for the get REST API");
-
- final Response cres;
- if (useClientCert == true) {
- cres = client.target(url)
- .request()
- .accept(responseType)
- .header("X-TransactionId", transId)
- .header("X-FromAppId", fromAppId)
- .header("Content-Type", "application/json")
- .get();
- } else {
-
- String vidUsername = SystemProperties.getProperty(AAIProperties.AAI_VID_USERNAME);
- String vidPassword = Password.deobfuscate(SystemProperties.getProperty(AAIProperties.AAI_VID_PASSWD_X));
- String encodeThis = vidUsername + ":" + vidPassword;
-
- cres = client.target(url)
- .request()
- .accept(responseType)
- .header("X-TransactionId", transId)
- .header("X-FromAppId", fromAppId)
- .header("Content-Type", "application/json")
- .header("Authorization", "Basic " + Base64.getEncoder().encodeToString(encodeThis.getBytes("utf-8")))
- .get();
- }
-// String r = cres.readEntity(String.class);
- if (cres.getStatus() == 200) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api GET was successful!");
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api GET was successful!");
- } else {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName +" with status="+cres.getStatus()+", url="+url);
- }
- return cres;
-// logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName +" resp=" + r );
-// return r;
- }
-
-
- /**
- * Delete.
- *
- * @param sourceID the source ID
- * @param transId the trans id
- * @param path the path
- * @return true, if successful
- */
- public boolean Delete(String sourceID, String transId, String path) {
- String methodName = "Delete";
- String url="";
- transId += ":" + UUID.randomUUID().toString();
- logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- initRestClient();
- String request = "{}";
- url = SystemProperties.getProperty(AAIProperties.AAI_SERVER_URL) + path;
- final Response cres = client.target(url)
- .request()
- .accept("application/json")
- .header("X-TransactionId", transId)
- .header("X-FromAppId", sourceID)
- //.entity(request)
- .delete();
-
- if (cres.getStatus() == 404) { // resource not found
- String msg = "Resource does not exist...: " + cres.getStatus()
- + ":" + cres.readEntity(String.class);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + msg);
- return false;
- } else if (cres.getStatus() == 200 || cres.getStatus() == 204){
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "Resource " + url + " deleted");
- return true;
- } else {
- String msg = "Deleting Resource failed: " + cres.getStatus()
- + ":" + cres.readEntity(String.class);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + msg);
- }
-
- return false;
- }
-
-
- /**
- * Rest put.
- *
- * @param fromAppId the from app id
- * @param transId the trans id
- * @param path the path
- * @param payload the payload
- * @param xml the xml
- * @return the string
- */
- public Response RestPut(String fromAppId, String transId, String path, String payload, boolean xml) {
- String methodName = "RestPost";
- String url="";
- transId = UUID.randomUUID().toString();
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- try {
-
- String responseType = "application/json";
- if (xml)
- responseType = "application/xml";
-
- initRestClient();
-
- url = SystemProperties.getProperty(AAIProperties.AAI_SERVER_URL) + path;
-
- final Response cres = client.target(url)
- .request()
- .accept(responseType)
- .header("X-TransactionId", transId)
- .header("X-FromAppId", fromAppId)
- .put(Entity.entity(payload, MediaType.APPLICATION_JSON));
-
- if (cres.getStatus() == 200 && cres.getStatus() <= 299) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!");
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!");
- } else {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName +" with status="+cres.getStatus()+", url="+url);
- }
- return cres;
- } catch (Exception e) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " with url="+url+ ", Exception: " + e.toString());
- }
- return null;
- }
-
-
-
- /**
- * Rest post.
- *
- * @param fromAppId the from app id
- * @param transId the trans id
- * @param path the path
- * @param payload the payload
- * @param xml the xml
- * @return the string
- */
- public Response RestPost(String fromAppId, String transId, String path, String payload, boolean xml) {
- String methodName = "RestPost";
- String url="";
- transId = UUID.randomUUID().toString();
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- try {
-
- String responseType = "application/json";
- if (xml)
- responseType = "application/xml";
-
- initRestClient();
-
- url = SystemProperties.getProperty(AAIProperties.AAI_SERVER_URL_BASE) + path;
-
- String vidUsername = SystemProperties.getProperty(AAIProperties.AAI_VID_USERNAME);
- String vidPassword = Password.deobfuscate(SystemProperties.getProperty(AAIProperties.AAI_VID_PASSWD_X));
- String encodeThis = vidUsername + ":" + vidPassword;
-
- final Response cres = client.target(url)
- .request()
- .accept(responseType)
- .header("X-TransactionId", transId)
- .header("X-FromAppId", fromAppId)
- .header("Authorization", "Basic " + Base64.getEncoder().encodeToString(encodeThis.getBytes("utf-8")))
- .post(Entity.entity(payload, MediaType.APPLICATION_JSON));
-
- if (cres.getStatus() == 200 && cres.getStatus() <= 299) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!");
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!");
- } else {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName +" with status="+cres.getStatus()+", url="+url);
- }
- return cres;
- } catch (Exception e) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " with url="+url+ ", Exception: " + e.toString());
- }
- return null;
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.onap.vid.aai.util; + + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.security.KeyManagementException; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Base64; +import java.util.Date; +import java.util.UUID; + +import javax.ws.rs.client.Client; +import javax.ws.rs.client.Entity; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; + +import com.att.eelf.configuration.EELFLogger; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.eclipse.jetty.util.security.Password; +import org.onap.vid.utils.Logging; +import org.springframework.http.HttpMethod; +import static org.onap.vid.utils.Logging.getHttpServletRequest; +import static org.onap.vid.utils.Logging.requestIdHeaderKey; + + +/** + * The Class AAIRestInterface. + */ +public class AAIRestInterface { + + /** The logger. */ + EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(AAIRestInterface.class); + + final private EELFLogger outgoingRequestsLogger = Logging.getRequestsLogger("aai"); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** The client. */ + private static Client client = null; + + /** The rest srvr base URL. */ + private String restSrvrBaseURL; + + /** The certificate path. */ + public String certificatePath = ""; + + private String START_STRING = " start"; + + private String TRANSACTION_ID_HEADER = "X-TransactionId"; + private String FROM_APP_ID_HEADER = "X-FromAppId"; + private String SUCCESSFUL_API_MESSAGE=" REST api POST was successful!"; + private String URL_DECLERATION = ", url="; + + + + + + + /** + * Instantiates a new AAI rest interface. + * + * @param certPath the cert path + */ + public AAIRestInterface(String certPath) + { + certificatePath = certPath; + } + + /** + * Encode URL. + * + * @param nodeKey the node key + * @return the string + * @throws UnsupportedEncodingException the unsupported encoding exception + */ + public String encodeURL (String nodeKey) throws UnsupportedEncodingException { + return URLEncoder.encode(nodeKey, "UTF-8").replaceAll("\\+", "%20"); + } + + /** + * Inits the rest client. + */ + private void initRestClient() + { + String methodName = "initRestClient"; + + if (client == null) { + try { + client = HttpsAuthClient.getClient(certificatePath); + } + catch (KeyManagementException e){ + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== KeyManagementException in " + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== KeyManagementException in " + methodName + e.toString()); + } catch (Exception e) { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== Exception in REST call to DB in initRestClient" + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== Exception in REST call to DB : " + e.toString()); + } + } + } + + /** + * Sets the rest srvr base URL. + * + * @param baseURL the base URL + */ + public void SetRestSrvrBaseURL(String baseURL) + { + if (baseURL == null) + { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== REST Server base URL cannot be null."); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== REST Server base URL cannot be null."); + } + + restSrvrBaseURL = baseURL; + } + + /** + * Gets the rest srvr base URL. + * + * @return the rest srvr base URL + */ + public String getRestSrvrBaseURL() + { + return restSrvrBaseURL; + } + + + /** + * Rest get. + * + * @param fromAppId the from app id + * @param transId the trans id + * @param requestUri the request uri + * @param xml the xml + * @return the string + * @throws UnsupportedEncodingException + */ + public Response RestGet(String fromAppId, String transId, String requestUri, boolean xml) throws UnsupportedEncodingException { + String methodName = "RestGet"; + + String responseType = MediaType.APPLICATION_JSON; + if (xml) + responseType = MediaType.APPLICATION_XML; + + initRestClient(); + + String clientCert = SystemProperties.getProperty(AAIProperties.AAI_USE_CLIENT_CERT); + + boolean useClientCert = false; + if (clientCert != null && + SystemProperties.getProperty(AAIProperties.AAI_USE_CLIENT_CERT).equalsIgnoreCase("true")) { + useClientCert = true; + } + String url = ""; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + START_STRING); + + url = SystemProperties.getProperty(AAIProperties.AAI_SERVER_URL) + requestUri; + + + logger.debug(dateFormat.format(new Date()) + "<== " + url + " for the get REST API"); + Logging.logRequest(outgoingRequestsLogger, HttpMethod.GET, url); + + final Response cres; + if (useClientCert == true) { + cres = client.target(url) + .request() + .accept(responseType) + .header(TRANSACTION_ID_HEADER, transId) + .header(FROM_APP_ID_HEADER, fromAppId) + .header("Content-Type", MediaType.APPLICATION_JSON) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(); + } else { + + String vidUsername = SystemProperties.getProperty(AAIProperties.AAI_VID_USERNAME); + String vidPassword = Password.deobfuscate(SystemProperties.getProperty(AAIProperties.AAI_VID_PASSWD_X)); + String encodeThis = vidUsername + ":" + vidPassword; + + cres = client.target(url) + .request() + .accept(responseType) + .header(TRANSACTION_ID_HEADER, transId) + .header(FROM_APP_ID_HEADER, fromAppId) + .header("Content-Type", "application/json") + .header("Authorization", "Basic " + Base64.getEncoder().encodeToString(encodeThis.getBytes("utf-8"))) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(); + } + Logging.logResponse(outgoingRequestsLogger, HttpMethod.GET, url, cres); +// String r = cres.readEntity(String.class); + if (cres.getStatus() == 200) { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + SUCCESSFUL_API_MESSAGE); + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + SUCCESSFUL_API_MESSAGE); + } else { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName +" with status="+cres.getStatus()+URL_DECLERATION+url); + } + return cres; +// logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName +" resp=" + r ); +// return r; + } + + + /** + * Delete. + * + * @param sourceID the source ID + * @param transId the trans id + * @param path the path + * @return true, if successful + */ + public boolean Delete(String sourceID, String transId, String path) { + String methodName = "Delete"; + String url=""; + transId += ":" + UUID.randomUUID().toString(); + logger.debug(dateFormat.format(new Date()) + "<== " + methodName + START_STRING); + + initRestClient(); + String request = "{}"; + url = SystemProperties.getProperty(AAIProperties.AAI_SERVER_URL) + path; + Logging.logRequest(outgoingRequestsLogger, HttpMethod.DELETE, url); + final Response cres = client.target(url) + .request() + .accept(MediaType.APPLICATION_JSON) + .header(TRANSACTION_ID_HEADER, transId) + .header(FROM_APP_ID_HEADER, sourceID) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + //.entity(request) + .delete(); + Logging.logResponse(outgoingRequestsLogger, HttpMethod.DELETE, url, cres); + if (cres.getStatus() == 404) { // resource not found + String msg = "Resource does not exist...: " + cres.getStatus() + + ":" + cres.readEntity(String.class); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + msg); + return false; + } else if (cres.getStatus() == 200 || cres.getStatus() == 204){ + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "Resource " + url + " deleted"); + return true; + } else { + String msg = "Deleting Resource failed: " + cres.getStatus() + + ":" + cres.readEntity(String.class); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + msg); + } + + return false; + } + + + /** + * Rest put. + * + * @param fromAppId the from app id + * @param transId the trans id + * @param path the path + * @param payload the payload + * @param xml the xml + * @return the string + */ + public Response RestPut(String fromAppId, String transId, String path, String payload, boolean xml) { + String methodName = "RestPut"; + String url=""; + transId = UUID.randomUUID().toString(); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + START_STRING); + + try { + + String responseType = MediaType.APPLICATION_JSON; + if (xml) + responseType = "application/xml"; + + initRestClient(); + + url = SystemProperties.getProperty(AAIProperties.AAI_SERVER_URL) + path; + Logging.logRequest(outgoingRequestsLogger, HttpMethod.PUT, url, payload); + final Response cres = client.target(url) + .request() + .accept(responseType) + .header(TRANSACTION_ID_HEADER, transId) + .header(FROM_APP_ID_HEADER, fromAppId) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .put(Entity.entity(payload, MediaType.APPLICATION_JSON)); + Logging.logResponse(outgoingRequestsLogger, HttpMethod.PUT, url, cres); + + if (cres.getStatus() == 200 && cres.getStatus() <= 299) { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + URL_DECLERATION); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + URL_DECLERATION); + } else { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName +" with status="+cres.getStatus()+URL_DECLERATION+url); + } + return cres; + } catch (Exception e) { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + URL_DECLERATION+url+ ", Exception: " + e.toString()); + } + return null; + } + + + + /** + * Rest post. + * + * @param fromAppId the from app id + * @param transId the trans id + * @param path the path + * @param payload the payload + * @param xml the xml + * @return the string + */ + public Response RestPost(String fromAppId, String transId, String path, String payload, boolean xml) { + String methodName = "RestPost"; + String url=""; + transId = UUID.randomUUID().toString(); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + START_STRING); + + try { + + String responseType = MediaType.APPLICATION_JSON; + if (xml) + responseType = "application/xml"; + + initRestClient(); + + url = SystemProperties.getProperty(AAIProperties.AAI_SERVER_URL_BASE) + path; + String vidUsername = SystemProperties.getProperty(AAIProperties.AAI_VID_USERNAME); + String vidPassword = Password.deobfuscate(SystemProperties.getProperty(AAIProperties.AAI_VID_PASSWD_X)); + String encodeThis = vidUsername + ":" + vidPassword; + + Logging.logRequest(outgoingRequestsLogger, HttpMethod.POST, url, payload); + final Response cres = client.target(url) + .request() + .accept(responseType) + .header(TRANSACTION_ID_HEADER, transId) + .header(FROM_APP_ID_HEADER, fromAppId) + .header("Authorization", "Basic " + Base64.getEncoder().encodeToString(encodeThis.getBytes("utf-8"))) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .post(Entity.entity(payload, MediaType.APPLICATION_JSON)); + Logging.logResponse(outgoingRequestsLogger, HttpMethod.POST, url, cres); + + if (cres.getStatus() == 200 && cres.getStatus() <= 299) { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + URL_DECLERATION); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + URL_DECLERATION); + } else { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " with status="+cres.getStatus()+URL_DECLERATION+url); + } + return cres; + } catch (Exception e) { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + URL_DECLERATION+url+ ", Exception: " + e.toString()); + } + return null; + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/aai/util/CustomJacksonJaxBJsonProvider.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/CustomJacksonJaxBJsonProvider.java index 1ed079219..996341a9c 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/aai/util/CustomJacksonJaxBJsonProvider.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/CustomJacksonJaxBJsonProvider.java @@ -1,73 +1,73 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.aai.util;
-
-
-import javax.ws.rs.ext.Provider;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.databind.DeserializationFeature;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.SerializationFeature;
-import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
-import com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule;
-
-/**
- * The Class CustomJacksonJaxBJsonProvider.
- */
-@Provider
-public class CustomJacksonJaxBJsonProvider extends JacksonJaxbJsonProvider {
-
- /** The common mapper. */
- private static ObjectMapper commonMapper = null;
-
- /**
- * Instantiates a new custom jackson jax B json provider.
- */
- public CustomJacksonJaxBJsonProvider() {
- if (commonMapper == null) {
- ObjectMapper mapper = new ObjectMapper();
-
- mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
-
- mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
- mapper.configure(SerializationFeature.INDENT_OUTPUT, false);
- mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false);
-
- mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
- mapper.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, false);
-
- mapper.registerModule(new JaxbAnnotationModule());
-
- commonMapper = mapper;
- }
- super.setMapper(commonMapper);
- }
-
- /**
- * Gets the mapper.
- *
- * @return the mapper
- */
- public ObjectMapper getMapper() {
- return commonMapper;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.aai.util; + + +import javax.ws.rs.ext.Provider; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider; +import com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule; + +/** + * The Class CustomJacksonJaxBJsonProvider. + */ +@Provider +public class CustomJacksonJaxBJsonProvider extends JacksonJaxbJsonProvider { + + /** The common mapper. */ + private static ObjectMapper commonMapper = null; + + /** + * Instantiates a new custom jackson jax B json provider. + */ + public CustomJacksonJaxBJsonProvider() { + if (commonMapper == null) { + ObjectMapper mapper = new ObjectMapper(); + + mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + + mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); + mapper.configure(SerializationFeature.INDENT_OUTPUT, false); + mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); + + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, false); + + mapper.registerModule(new JaxbAnnotationModule()); + + commonMapper = mapper; + } + super.setMapper(commonMapper); + } + + /** + * Gets the mapper. + * + * @return the mapper + */ + public ObjectMapper getMapper() { + return commonMapper; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/aai/util/HttpsAuthClient.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/HttpsAuthClient.java index 3323b3fb4..0cf32cd42 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/aai/util/HttpsAuthClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/HttpsAuthClient.java @@ -1,140 +1,140 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.aai.util;
-
-
-import java.io.FileInputStream;
-import java.security.KeyManagementException;
-import java.security.KeyStore;
-
-import javax.net.ssl.HostnameVerifier;
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.KeyManagerFactory;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSession;
-import javax.ws.rs.client.Client;
-import javax.ws.rs.client.ClientBuilder;
-
-import org.eclipse.jetty.util.security.Password;
-import org.glassfish.jersey.client.ClientConfig;
-import org.glassfish.jersey.client.HttpUrlConnectorProvider;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-/**
- * The Class HttpsAuthClient.
- */
-public class HttpsAuthClient{
- /** The logger. */
- static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(HttpsAuthClient.class);
-
- /**
- * Gets the client.
- *
- * @param certFilePath the cert file path
- * @return the client
- * @throws KeyManagementException the key management exception
- */
- public static Client getClient(String certFilePath) throws KeyManagementException {
-
- ClientConfig config = new ClientConfig();
- //config.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
- //config.getClasses().add(org.openecomp.aai.util.CustomJacksonJaxBJsonProvider.class);
-
- try {
-
- config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, Boolean.TRUE );
-
- config.connectorProvider(new HttpUrlConnectorProvider().useSetMethodWorkaround());
- String truststore_path = certFilePath + AAIProperties.FILESEPARTOR + SystemProperties.getProperty(AAIProperties.AAI_TRUSTSTORE_FILENAME);
- String truststore_password = SystemProperties.getProperty(AAIProperties.AAI_TRUSTSTORE_PASSWD_X);
- String decrypted_truststore_password = Password.deobfuscate(truststore_password);
-
- boolean useClientCert = false;
-
- String keystore_path = certFilePath + AAIProperties.FILESEPARTOR + SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_FILENAME);
- String keystore_password = SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_PASSWD_X);
- String decrypted_keystore_password = Password.deobfuscate(keystore_password);
-
- String clientCert = SystemProperties.getProperty(AAIProperties.AAI_USE_CLIENT_CERT);
-
- if (clientCert != null &&
- SystemProperties.getProperty(AAIProperties.AAI_USE_CLIENT_CERT).equalsIgnoreCase("true")) {
- useClientCert = true;
- }
-
- System.setProperty("javax.net.ssl.trustStore", truststore_path);
- System.setProperty("javax.net.ssl.trustStorePassword", decrypted_truststore_password);
- HttpsURLConnection.setDefaultHostnameVerifier( new HostnameVerifier(){
- public boolean verify(String string,SSLSession ssls) {
- return true;
- }
- });
-
- final SSLContext ctx = SSLContext.getInstance("TLS");
-
- KeyManagerFactory kmf = null;
- if (useClientCert) {
-
- try {
- kmf = KeyManagerFactory.getInstance("SunX509");
- FileInputStream fin = new FileInputStream(keystore_path);
- KeyStore ks = KeyStore.getInstance("PKCS12");
- char[] pwd = decrypted_keystore_password.toCharArray();
- ks.load(fin, pwd);
- kmf.init(ks, pwd);
- } catch (Exception e) {
- //System.out.println("Error setting up kmf: exiting");
- logger.debug(EELFLoggerDelegate.debugLogger, "Error setting up kmf: exiting");
- e.printStackTrace();
- return null;
- }
- ctx.init(kmf.getKeyManagers(), null, null);
-
- return ClientBuilder.newBuilder()
- .sslContext(ctx)
- .hostnameVerifier(new HostnameVerifier() {
- @Override
- public boolean verify( String s, SSLSession sslSession ) {
- return true;
- }
- }).withConfig(config)
- .build()
- .register(org.openecomp.aai.util.CustomJacksonJaxBJsonProvider.class);
- } else {
- return ClientBuilder.newBuilder()
- .hostnameVerifier(new HostnameVerifier() {
- @Override
- public boolean verify( String s, SSLSession sslSession ) {
- return true;
- }
- }).withConfig(config)
- .build()
- .register(org.openecomp.aai.util.CustomJacksonJaxBJsonProvider.class);
- }
- } catch (Exception e) {
- logger.debug(EELFLoggerDelegate.debugLogger, "Error setting up config: exiting");
- //System.out.println("Error setting up config: exiting");
- e.printStackTrace();
- System.exit(1);
- return null;
- }
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.aai.util; + + +import java.io.FileInputStream; +import java.security.KeyManagementException; +import java.security.KeyStore; + +import javax.net.ssl.HostnameVerifier; +import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.KeyManagerFactory; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSession; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; + +import org.eclipse.jetty.util.security.Password; +import org.glassfish.jersey.client.ClientConfig; +import org.glassfish.jersey.client.HttpUrlConnectorProvider; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +/** + * The Class HttpsAuthClient. + */ +public class HttpsAuthClient{ + /** The logger. */ + static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(HttpsAuthClient.class); + + /** + * Gets the client. + * + * @param certFilePath the cert file path + * @return the client + * @throws KeyManagementException the key management exception + */ + public static Client getClient(String certFilePath) throws KeyManagementException { + + ClientConfig config = new ClientConfig(); + //config.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE); + //config.getClasses().add(org.openecomp.aai.util.CustomJacksonJaxBJsonProvider.class); + + try { + + config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, Boolean.TRUE ); + + config.connectorProvider(new HttpUrlConnectorProvider().useSetMethodWorkaround()); + String truststore_path = certFilePath + org.onap.vid.aai.util.AAIProperties.FILESEPARTOR + SystemProperties.getProperty(org.onap.vid.aai.util.AAIProperties.AAI_TRUSTSTORE_FILENAME); + String truststore_password = SystemProperties.getProperty(org.onap.vid.aai.util.AAIProperties.AAI_TRUSTSTORE_PASSWD_X); + String decrypted_truststore_password = Password.deobfuscate(truststore_password); + + boolean useClientCert = false; + + String keystore_path = certFilePath + org.onap.vid.aai.util.AAIProperties.FILESEPARTOR + SystemProperties.getProperty(org.onap.vid.aai.util.AAIProperties.AAI_KEYSTORE_FILENAME); + String keystore_password = SystemProperties.getProperty(org.onap.vid.aai.util.AAIProperties.AAI_KEYSTORE_PASSWD_X); + String decrypted_keystore_password = Password.deobfuscate(keystore_password); + + String clientCert = SystemProperties.getProperty(org.onap.vid.aai.util.AAIProperties.AAI_USE_CLIENT_CERT); + + if (clientCert != null && + SystemProperties.getProperty(org.onap.vid.aai.util.AAIProperties.AAI_USE_CLIENT_CERT).equalsIgnoreCase("true")) { + useClientCert = true; + } + + System.setProperty("javax.net.ssl.trustStore", truststore_path); + System.setProperty("javax.net.ssl.trustStorePassword", decrypted_truststore_password); + HttpsURLConnection.setDefaultHostnameVerifier( new HostnameVerifier(){ + public boolean verify(String string,SSLSession ssls) { + return true; + } + }); + + final SSLContext ctx = SSLContext.getInstance("TLS"); + + KeyManagerFactory kmf = null; + if (useClientCert) { + + try { + kmf = KeyManagerFactory.getInstance("SunX509"); + FileInputStream fin = new FileInputStream(keystore_path); + KeyStore ks = KeyStore.getInstance("PKCS12"); + char[] pwd = decrypted_keystore_password.toCharArray(); + ks.load(fin, pwd); + kmf.init(ks, pwd); + } catch (Exception e) { + //System.out.println("Error setting up kmf: exiting"); + logger.debug(EELFLoggerDelegate.debugLogger, "Error setting up kmf: exiting"); + e.printStackTrace(); + return null; + } + ctx.init(kmf.getKeyManagers(), null, null); + + return ClientBuilder.newBuilder() + .sslContext(ctx) + .hostnameVerifier(new HostnameVerifier() { + @Override + public boolean verify( String s, SSLSession sslSession ) { + return true; + } + }).withConfig(config) + .build() + .register(org.onap.vid.aai.util.CustomJacksonJaxBJsonProvider.class); + } else { + return ClientBuilder.newBuilder() + .hostnameVerifier(new HostnameVerifier() { + @Override + public boolean verify( String s, SSLSession sslSession ) { + return true; + } + }).withConfig(config) + .build() + .register(org.onap.vid.aai.util.CustomJacksonJaxBJsonProvider.class); + } + } catch (Exception e) { + logger.debug(EELFLoggerDelegate.debugLogger, "Error setting up config: exiting"); + //System.out.println("Error setting up config: exiting"); + e.printStackTrace(); + System.exit(1); + return null; + } + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/aai/util/HttpsComponentsClient.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/HttpsComponentsClient.java index a041c6520..54d7f4684 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/aai/util/HttpsComponentsClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/HttpsComponentsClient.java @@ -1,99 +1,99 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.aai.util;
-
-import java.io.FileInputStream;
-import java.security.KeyManagementException;
-import java.security.KeyStore;
-
-import javax.net.ssl.SSLContext;
-
-import org.apache.http.conn.ssl.SSLContextBuilder;
-import org.apache.http.impl.client.CloseableHttpClient;
-import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
-import org.apache.http.impl.client.HttpClients;
-import org.eclipse.jetty.util.security.Password;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-
-
-/**
- * The Class HttpsComponentsClient.
- */
-public class HttpsComponentsClient{
-
- /**
- * Gets the client.
- *
- * @param certFilePath the cert file path
- * @return the client
- * @throws KeyManagementException the key management exception
- */
- public static CloseableHttpClient getClient(String certFilePath) throws Exception {
- CloseableHttpClient httpclient = null;
- try {
-
- String truststore_path = certFilePath + AAIProperties.FILESEPARTOR + SystemProperties.getProperty(AAIProperties.AAI_TRUSTSTORE_FILENAME);
- String truststore_password = SystemProperties.getProperty(AAIProperties.AAI_TRUSTSTORE_PASSWD_X);
- String decrypted_truststore_password = Password.deobfuscate(truststore_password);
- String keystore_path = certFilePath + AAIProperties.FILESEPARTOR + SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_FILENAME);
- String keystore_password = SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_PASSWD_X);
- String decrypted_keystore_password = Password.deobfuscate(keystore_password);
-
- SSLContextBuilder sslContextB = new SSLContextBuilder();
-
- KeyStore ks = KeyStore.getInstance("PKCS12");
- FileInputStream fin = new FileInputStream(keystore_path);
- char[] pwd = decrypted_keystore_password.toCharArray();
- ks.load(fin, pwd);
-
- sslContextB.loadKeyMaterial(ks, pwd);
-
- KeyStore ts = KeyStore.getInstance("JKS");
- FileInputStream fin1 = new FileInputStream(truststore_path);
- char[] pwd1 = decrypted_truststore_password.toCharArray();
- ts.load(fin1, pwd1);
-
- sslContextB.loadTrustMaterial(ts);
- sslContextB.loadKeyMaterial(ks, pwd);
- sslContextB.useTLS();
-
- SSLContext sslcontext = sslContextB.build();
-
- SSLConnectionSocketFactory sslFactory = new SSLConnectionSocketFactory(
- sslcontext,
- new String[] { "TLSv1.1", "TLSv1.2" },
- null,
- SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER );
-
- httpclient = HttpClients.custom()
- .setSSLSocketFactory(sslFactory)
- .build();
-
-
- } catch (Exception e) {
- throw e;
- }
- return httpclient;
- }
-
-
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.aai.util; + +import java.io.FileInputStream; +import java.security.KeyManagementException; +import java.security.KeyStore; + +import javax.net.ssl.SSLContext; + +import org.apache.http.conn.ssl.SSLContextBuilder; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.conn.ssl.SSLConnectionSocketFactory; +import org.apache.http.impl.client.HttpClients; +import org.eclipse.jetty.util.security.Password; +import org.openecomp.portalsdk.core.util.SystemProperties; + + +/** + * The Class HttpsComponentsClient. + */ +public class HttpsComponentsClient{ + + /** + * Gets the client. + * + * @param certFilePath the cert file path + * @return the client + * @throws KeyManagementException the key management exception + */ + public static CloseableHttpClient getClient(String certFilePath) throws Exception { + CloseableHttpClient httpclient = null; + try { + + String truststore_path = certFilePath + AAIProperties.FILESEPARTOR + SystemProperties.getProperty(AAIProperties.AAI_TRUSTSTORE_FILENAME); + String truststore_password = SystemProperties.getProperty(AAIProperties.AAI_TRUSTSTORE_PASSWD_X); + String decrypted_truststore_password = Password.deobfuscate(truststore_password); + String keystore_path = certFilePath + AAIProperties.FILESEPARTOR + SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_FILENAME); + String keystore_password = SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_PASSWD_X); + String decrypted_keystore_password = Password.deobfuscate(keystore_password); + + SSLContextBuilder sslContextB = new SSLContextBuilder(); + + KeyStore ks = KeyStore.getInstance("PKCS12"); + FileInputStream fin = new FileInputStream(keystore_path); + char[] pwd = decrypted_keystore_password.toCharArray(); + ks.load(fin, pwd); + + sslContextB.loadKeyMaterial(ks, pwd); + + KeyStore ts = KeyStore.getInstance("JKS"); + FileInputStream fin1 = new FileInputStream(truststore_path); + char[] pwd1 = decrypted_truststore_password.toCharArray(); + ts.load(fin1, pwd1); + + sslContextB.loadTrustMaterial(ts); + sslContextB.loadKeyMaterial(ks, pwd); + sslContextB.useTLS(); + + SSLContext sslcontext = sslContextB.build(); + + SSLConnectionSocketFactory sslFactory = new SSLConnectionSocketFactory( + sslcontext, + new String[] { "TLSv1.1", "TLSv1.2" }, + null, + SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER ); + + httpclient = HttpClients.custom() + .setSSLSocketFactory(sslFactory) + .build(); + + + } catch (Exception e) { + throw e; + } + return httpclient; + } + + + +} diff --git a/vid-app-common/src/main/java/org/openecomp/aai/util/JettyObfuscationConversionCommandLineUtil.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/JettyObfuscationConversionCommandLineUtil.java index e31b0c1c7..8a3ba88ff 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/aai/util/JettyObfuscationConversionCommandLineUtil.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/JettyObfuscationConversionCommandLineUtil.java @@ -1,78 +1,78 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.aai.util;
-
-
-import org.apache.commons.cli.BasicParser;
-import org.apache.commons.cli.CommandLine;
-import org.apache.commons.cli.CommandLineParser;
-import org.apache.commons.cli.Options;
-import org.apache.commons.cli.ParseException;
-import org.eclipse.jetty.util.security.Password;
-
-
-public class JettyObfuscationConversionCommandLineUtil {
- /**
- * The main method.
- *
- * @param args the arguments
- */
- public static void main(String[] args){
- Options options = new Options();
- options.addOption("e", true, "obfuscate the given string");
- options.addOption("d", true, "deobfuscate the given string");
-
- CommandLineParser parser = new BasicParser();
-
- try {
- CommandLine cmd = parser.parse(options, args);
- String toProcess = null;
-
- if (cmd.hasOption("e")){
- toProcess = cmd.getOptionValue("e");
- String encoded = Password.obfuscate(toProcess);
- System.out.println(encoded);
- } else if (cmd.hasOption("d")) {
- toProcess = cmd.getOptionValue("d");
- String decoded_str = Password.deobfuscate(toProcess);
- System.out.println(decoded_str);
- } else {
- usage();
- }
- } catch (ParseException e) {
- System.out.println("failed to parse input");
- System.out.println(e.toString());
- usage();
- } catch (Exception e) {
- System.out.println("exception:" + e.toString());
- }
- }
-
- /**
- * Usage.
- */
- private static void usage(){
- System.out.println("usage:");;
- System.out.println("-e [string] to obfuscate");
- System.out.println("-d [string] to deobfuscate");
- System.out.println("-h help");
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.aai.util; + + +import org.apache.commons.cli.BasicParser; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.CommandLineParser; +import org.apache.commons.cli.Options; +import org.apache.commons.cli.ParseException; +import org.eclipse.jetty.util.security.Password; + + +public class JettyObfuscationConversionCommandLineUtil { + /** + * The main method. + * + * @param args the arguments + */ + public static void main(String[] args){ + Options options = new Options(); + options.addOption("e", true, "obfuscate the given string"); + options.addOption("d", true, "deobfuscate the given string"); + + CommandLineParser parser = new BasicParser(); + + try { + CommandLine cmd = parser.parse(options, args); + String toProcess = null; + + if (cmd.hasOption("e")){ + toProcess = cmd.getOptionValue("e"); + String encoded = Password.obfuscate(toProcess); + System.out.println(encoded); + } else if (cmd.hasOption("d")) { + toProcess = cmd.getOptionValue("d"); + String decoded_str = Password.deobfuscate(toProcess); + System.out.println(decoded_str); + } else { + usage(); + } + } catch (ParseException e) { + System.out.println("failed to parse input"); + System.out.println(e.toString()); + usage(); + } catch (Exception e) { + System.out.println("exception:" + e.toString()); + } + } + + /** + * Usage. + */ + private static void usage(){ + System.out.println("usage:");; + System.out.println("-e [string] to obfuscate"); + System.out.println("-d [string] to deobfuscate"); + System.out.println("-h help"); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/AsdcCatalogException.java b/vid-app-common/src/main/java/org/onap/vid/asdc/AsdcCatalogException.java index c80787205..01883d50e 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/AsdcCatalogException.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/AsdcCatalogException.java @@ -1,58 +1,58 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc;
-
-/**
- * The Class AsdcCatalogException.
- */
-public class AsdcCatalogException extends Exception {
-
- /** The Constant serialVersionUID. */
- private static final long serialVersionUID = 1L;
-
- /**
- * Instantiates a new sdc catalog exception.
- *
- * @param msg the msg
- */
- public AsdcCatalogException(String msg) {
- super(msg);
- }
-
- /**
- * Instantiates a new sdc catalog exception.
- *
- * @param cause the cause
- */
- public AsdcCatalogException(Throwable cause) {
- super(cause);
- }
-
- /**
- * Instantiates a new sdc catalog exception.
- *
- * @param msg the msg
- * @param t the t
- */
- public AsdcCatalogException(String msg, Throwable t) {
- super(msg, t);
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc; + +/** + * The Class AsdcCatalogException. + */ +public class AsdcCatalogException extends Exception { + + /** The Constant serialVersionUID. */ + private static final long serialVersionUID = 1L; + + /** + * Instantiates a new sdc catalog exception. + * + * @param msg the msg + */ + public AsdcCatalogException(String msg) { + super(msg); + } + + /** + * Instantiates a new sdc catalog exception. + * + * @param cause the cause + */ + public AsdcCatalogException(Throwable cause) { + super(cause); + } + + /** + * Instantiates a new sdc catalog exception. + * + * @param msg the msg + * @param t the t + */ + public AsdcCatalogException(String msg, Throwable t) { + super(msg, t); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/AsdcClient.java b/vid-app-common/src/main/java/org/onap/vid/asdc/AsdcClient.java index 314ea037d..970ec954f 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/AsdcClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/AsdcClient.java @@ -1,129 +1,129 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc;
-
-import java.io.IOException;
-import java.nio.file.Path;
-import java.util.Collection;
-import java.util.Map;
-import java.util.UUID;
-
-import org.openecomp.vid.asdc.beans.Artifact;
-import org.openecomp.vid.asdc.beans.Resource;
-import org.openecomp.vid.asdc.beans.Service;
-
-/**
- * The Interface AsdcClient.
- */
-public interface AsdcClient {
-
- /**
- * Gets the resource.
- *
- * @param uuid the uuid
- * @return the resource
- * @throws AsdcCatalogException the sdc catalog exception
- */
- public Resource getResource(UUID uuid) throws AsdcCatalogException;
-
- /**
- * Gets the resources.
- *
- * @return the resources
- * @throws AsdcCatalogException the sdc catalog exception
- */
- public Collection<Resource> getResources() throws AsdcCatalogException;
-
- /**
- * Gets the resources.
- *
- * @param filter the filter
- * @return the resources
- * @throws AsdcCatalogException the sdc catalog exception
- */
- public Collection<Resource> getResources(Map<String, String[]> filter) throws AsdcCatalogException;
-
- /**
- * Gets the resource artifact.
- *
- * @param resourceUuid the resource uuid
- * @param artifactUuid the artifact uuid
- * @return the resource artifact
- * @throws AsdcCatalogException the sdc catalog exception
- */
- public Artifact getResourceArtifact(UUID resourceUuid, UUID artifactUuid) throws AsdcCatalogException;
-
- /**
- * Gets the resource tosca model.
- *
- * @param uuid the uuid
- * @return the resource tosca model
- * @throws AsdcCatalogException the sdc catalog exception
- */
- public Path getResourceToscaModel(UUID uuid) throws AsdcCatalogException;
-
- /**
- * Gets the service.
- *
- * @param uuid the uuid
- * @return the service
- * @throws AsdcCatalogException the sdc catalog exception
- */
- public Service getService(UUID uuid) throws AsdcCatalogException;
-
- /**
- * Gets the services.
- *
- * @return the services
- * @throws AsdcCatalogException the sdc catalog exception
- */
- public Collection<Service> getServices() throws AsdcCatalogException;
-
- /**
- * Gets the services.
- *
- * @param filter the filter
- * @return the services
- * @throws AsdcCatalogException the asdc catalog exception
- */
- public Collection<Service> getServices(Map<String, String[]> filter) throws AsdcCatalogException;
-
- /**
- * Gets the service artifact.
- *
- * @param serviceUuid the service uuid
- * @param artifactUuid the artifact uuid
- * @return the service artifact
- * @throws AsdcCatalogException the asdc catalog exception
- */
- public Artifact getServiceArtifact(UUID serviceUuid, UUID artifactUuid) throws AsdcCatalogException;
-
- /**
- * Gets the service tosca model.
- *
- * @param uuid the uuid
- * @return the service tosca model
- * @throws AsdcCatalogException the asdc catalog exception
- */
- public Path getServiceToscaModel(UUID uuid) throws AsdcCatalogException;
-
- //TODO: Collect TOSCA information from CSAR
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc; + +import java.io.IOException; +import java.nio.file.Path; +import java.util.Collection; +import java.util.Map; +import java.util.UUID; + +import org.onap.vid.asdc.beans.Artifact; +import org.onap.vid.asdc.beans.Resource; +import org.onap.vid.asdc.beans.Service; + +/** + * The Interface AsdcClient. + */ +public interface AsdcClient { + + /** + * Gets the resource. + * + * @param uuid the uuid + * @return the resource + * @throws AsdcCatalogException the sdc catalog exception + */ + public Resource getResource(UUID uuid) throws AsdcCatalogException; + + /** + * Gets the resources. + * + * @return the resources + * @throws AsdcCatalogException the sdc catalog exception + */ + public Collection<Resource> getResources() throws AsdcCatalogException; + + /** + * Gets the resources. + * + * @param filter the filter + * @return the resources + * @throws AsdcCatalogException the sdc catalog exception + */ + public Collection<Resource> getResources(Map<String, String[]> filter) throws AsdcCatalogException; + + /** + * Gets the resource artifact. + * + * @param resourceUuid the resource uuid + * @param artifactUuid the artifact uuid + * @return the resource artifact + * @throws AsdcCatalogException the sdc catalog exception + */ + public Artifact getResourceArtifact(UUID resourceUuid, UUID artifactUuid) throws AsdcCatalogException; + + /** + * Gets the resource tosca model. + * + * @param uuid the uuid + * @return the resource tosca model + * @throws AsdcCatalogException the sdc catalog exception + */ + public Path getResourceToscaModel(UUID uuid) throws AsdcCatalogException; + + /** + * Gets the service. + * + * @param uuid the uuid + * @return the service + * @throws AsdcCatalogException the sdc catalog exception + */ + public Service getService(UUID uuid) throws AsdcCatalogException; + + /** + * Gets the services. + * + * @return the services + * @throws AsdcCatalogException the sdc catalog exception + */ + public Collection<Service> getServices() throws AsdcCatalogException; + + /** + * Gets the services. + * + * @param filter the filter + * @return the services + * @throws AsdcCatalogException the asdc catalog exception + */ + public Collection<Service> getServices(Map<String, String[]> filter) throws AsdcCatalogException; + + /** + * Gets the service artifact. + * + * @param serviceUuid the service uuid + * @param artifactUuid the artifact uuid + * @return the service artifact + * @throws AsdcCatalogException the asdc catalog exception + */ + public Artifact getServiceArtifact(UUID serviceUuid, UUID artifactUuid) throws AsdcCatalogException; + + /** + * Gets the service tosca model. + * + * @param uuid the uuid + * @return the service tosca model + * @throws AsdcCatalogException the asdc catalog exception + */ + public Path getServiceToscaModel(UUID uuid) throws AsdcCatalogException; + + //TODO: Collect TOSCA information from CSAR +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/Artifact.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/Artifact.java index 4974d44a8..c7e093ffb 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/Artifact.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/Artifact.java @@ -1,314 +1,314 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans;
-
-import java.util.UUID;
-
-/**
- * The Class Artifact.
- */
-public class Artifact {
-
-/*
- * SDC has widened this to a String type for 1610.
- public enum Type {
- HEAT,
- HEAT_ENV,
- HEAT_VOL,
- HEAT_NET,
- HEAT_NESTED,
- HEAT_ARTIFACT,
- YANG_XML,
- VNF_CATALOG,
- VF_LICENSE,
- VENDOR_LICENSE,
- ASSET_INVENTORY_PROFILE,
- ASSET_QUERY_SPEC,
- APPC_CONFIG,
- VF_MODULES_METADATA,
- DCAE_TOSCA,
- DCAE_JSON,
- DCAE_EMF,
- DCAE_DOC,
- DCAE_BLUEPRINT,
- DCAE_EVENT,
- DCAE_INVENTORY_TOSCA,
- DCAE_INVENTORY_JSON,
- DCAE_INVENTORY_EMF,
- DCAE_INVENTORY_DOC,
- DCAE_INVENTORY_BLUEPRINT,
- DCAE_INVENTORY_EVENT,
- OTHER,
- AAI_SERVICE_MODEL //HEY! READ ME! YES, YOU! I AM A TEMPORARY FIX, PLEASE REMOVE ME BECAUSE I AM A FRAUD. I DON'T BELONG HERE.
- //Warm Regards,
- // *The* Artifact.Type.AAI_SERVICE_MODEL Constant
- }
- */
-
- /** The artifact name. */
- private String artifactName;
-
- /** The artifact label. */
- private String artifactLabel;
-
- /** The artifact group type. */
- private String artifactGroupType;
-
- /** The artifact type. */
- private String artifactType;
-
- /** The artifact URL. */
- private String artifactURL;
-
- /** The artifact description. */
- private String artifactDescription;
-
- /** The artifact timeout. */
- private int artifactTimeout;
-
- /** The artifact checksum. */
- private String artifactChecksum;
-
- /** The artifact UUID. */
- private String artifactUUID;
-
- /** The artifact version. */
- private String artifactVersion;
-
- /** The generated from UUID. */
- private String generatedFromUUID;
-
- /**
- * Gets the artifact name.
- *
- * @return the artifact name
- */
- public String getArtifactName() {
- return artifactName;
- }
-
- /**
- * Gets the artifact type.
- *
- * @return the artifact type
- */
- public String getArtifactType() {
- return artifactType;
- }
- /**
- * Gets the artifact group type.
- *
- * @return the artifact group type
- */
- public String getArtifactGroupType() {
- return artifactGroupType;
- }
-
- /**
- * Gets the artifact label.
- *
- * @return the artifact label
- */
- public String getArtifactLabel() {
- return artifactLabel;
- }
- /**
- * Gets the artifact URL.
- *
- * @return the artifact URL
- */
- public String getArtifactURL() {
- return artifactURL;
- }
-
- /**
- * Gets the artifact description.
- *
- * @return the artifact description
- */
- public String getArtifactDescription() {
- return artifactDescription;
- }
-
- /**
- * Gets the artifact timeout.
- *
- * @return the artifact timeout
- */
- public int getArtifactTimeout() {
- return artifactTimeout;
- }
-
- /**
- * Gets the artifact checksum.
- *
- * @return the artifact checksum
- */
- public String getArtifactChecksum() {
- return artifactChecksum;
- }
-
- /**
- * Gets the artifact UUID.
- *
- * @return the artifact UUID
- */
- public String getArtifactUUID() {
- return artifactUUID;
- }
-
- /**
- * Gets the artifact version.
- *
- * @return the artifact version
- */
- public String getArtifactVersion() {
- return artifactVersion;
- }
-
- /**
- * Gets the generated from UUID.
- *
- * @return the generated from UUID
- */
- public String getGeneratedFromUUID() {
- return generatedFromUUID;
- }
-
- /**
- * Sets the artifact name.
- *
- * @param artifactName the new artifact name
- */
- public void setArtifactName(String artifactName) {
- this.artifactName = artifactName;
- }
-
- /**
- * Sets the artifact type.
- *
- * @param artifactType the new artifact type
- */
- public void setArtifactType(String artifactType) {
- this.artifactType = artifactType;
- }
- /**
- * Sets the artifact group type.
- *
- * @param artifactGroupType the new artifact group type
- */
- public void setArtifactGroupType(String artifactGroupType) {
- this.artifactGroupType = artifactGroupType;
- }
- /**
- * Sets the artifact label.
- *
- * @param artifactGroupType the new artifact label
- */
- public void setArtifactLabel(String artifactLabel) {
- this.artifactLabel = artifactLabel;
- }
- /**
- * Sets the artifact URL.
- *
- * @param artifactURL the new artifact URL
- */
- public void setArtifactURL(String artifactURL) {
- this.artifactURL = artifactURL;
- }
-
- /**
- * Sets the artifact description.
- *
- * @param artifactDescription the new artifact description
- */
- public void setArtifactDescription(String artifactDescription) {
- this.artifactDescription = artifactDescription;
- }
-
- /**
- * Sets the artifact timeout.
- *
- * @param artifactTimeout the new artifact timeout
- */
- public void setArtifactTimeout(int artifactTimeout) {
- this.artifactTimeout = artifactTimeout;
- }
-
- /**
- * Sets the artifact checksum.
- *
- * @param artifactChecksum the new artifact checksum
- */
- public void setArtifactChecksum(String artifactChecksum) {
- this.artifactChecksum = artifactChecksum;
- }
-
- /**
- * Sets the artifact UUID.
- *
- * @param artifactUUID the new artifact UUID
- */
- public void setArtifactUUID(String artifactUUID) {
- this.artifactUUID = artifactUUID;
- }
-
- /**
- * Sets the artifact version.
- *
- * @param artifactVersion the new artifact version
- */
- public void setArtifactVersion(String artifactVersion) {
- this.artifactVersion = artifactVersion;
- }
-
- /**
- * Sets the generated from UUID.
- *
- * @param generatedFromUUID the new generated from UUID
- */
- public void setGeneratedFromUUID(String generatedFromUUID) {
- this.generatedFromUUID = generatedFromUUID;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#hashCode()
- */
- @Override
- public int hashCode() {
- final UUID uuid = UUID.fromString(getArtifactUUID());
-
- return uuid.hashCode();
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object o) {
- if (o == this) return true;
- if (!(o instanceof Artifact)) return false;
-
- final Artifact artifact = (Artifact) o;
-
- return (artifact.getArtifactUUID().equals(getArtifactUUID()));
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans; + +import java.util.UUID; + +/** + * The Class Artifact. + */ +public class Artifact { + +/* + * SDC has widened this to a String type for 1610. + public enum Type { + HEAT, + HEAT_ENV, + HEAT_VOL, + HEAT_NET, + HEAT_NESTED, + HEAT_ARTIFACT, + YANG_XML, + VNF_CATALOG, + VF_LICENSE, + VENDOR_LICENSE, + ASSET_INVENTORY_PROFILE, + ASSET_QUERY_SPEC, + APPC_CONFIG, + VF_MODULES_METADATA, + DCAE_TOSCA, + DCAE_JSON, + DCAE_EMF, + DCAE_DOC, + DCAE_BLUEPRINT, + DCAE_EVENT, + DCAE_INVENTORY_TOSCA, + DCAE_INVENTORY_JSON, + DCAE_INVENTORY_EMF, + DCAE_INVENTORY_DOC, + DCAE_INVENTORY_BLUEPRINT, + DCAE_INVENTORY_EVENT, + OTHER, + AAI_SERVICE_MODEL //HEY! READ ME! YES, YOU! I AM A TEMPORARY FIX, PLEASE REMOVE ME BECAUSE I AM A FRAUD. I DON'T BELONG HERE. + //Warm Regards, + // *The* Artifact.Type.AAI_SERVICE_MODEL Constant + } + */ + + /** The artifact name. */ + private String artifactName; + + /** The artifact label. */ + private String artifactLabel; + + /** The artifact group type. */ + private String artifactGroupType; + + /** The artifact type. */ + private String artifactType; + + /** The artifact URL. */ + private String artifactURL; + + /** The artifact description. */ + private String artifactDescription; + + /** The artifact timeout. */ + private int artifactTimeout; + + /** The artifact checksum. */ + private String artifactChecksum; + + /** The artifact UUID. */ + private String artifactUUID; + + /** The artifact version. */ + private String artifactVersion; + + /** The generated from UUID. */ + private String generatedFromUUID; + + /** + * Gets the artifact name. + * + * @return the artifact name + */ + public String getArtifactName() { + return artifactName; + } + + /** + * Gets the artifact type. + * + * @return the artifact type + */ + public String getArtifactType() { + return artifactType; + } + /** + * Gets the artifact group type. + * + * @return the artifact group type + */ + public String getArtifactGroupType() { + return artifactGroupType; + } + + /** + * Gets the artifact label. + * + * @return the artifact label + */ + public String getArtifactLabel() { + return artifactLabel; + } + /** + * Gets the artifact URL. + * + * @return the artifact URL + */ + public String getArtifactURL() { + return artifactURL; + } + + /** + * Gets the artifact description. + * + * @return the artifact description + */ + public String getArtifactDescription() { + return artifactDescription; + } + + /** + * Gets the artifact timeout. + * + * @return the artifact timeout + */ + public int getArtifactTimeout() { + return artifactTimeout; + } + + /** + * Gets the artifact checksum. + * + * @return the artifact checksum + */ + public String getArtifactChecksum() { + return artifactChecksum; + } + + /** + * Gets the artifact UUID. + * + * @return the artifact UUID + */ + public String getArtifactUUID() { + return artifactUUID; + } + + /** + * Gets the artifact version. + * + * @return the artifact version + */ + public String getArtifactVersion() { + return artifactVersion; + } + + /** + * Gets the generated from UUID. + * + * @return the generated from UUID + */ + public String getGeneratedFromUUID() { + return generatedFromUUID; + } + + /** + * Sets the artifact name. + * + * @param artifactName the new artifact name + */ + public void setArtifactName(String artifactName) { + this.artifactName = artifactName; + } + + /** + * Sets the artifact type. + * + * @param artifactType the new artifact type + */ + public void setArtifactType(String artifactType) { + this.artifactType = artifactType; + } + /** + * Sets the artifact group type. + * + * @param artifactGroupType the new artifact group type + */ + public void setArtifactGroupType(String artifactGroupType) { + this.artifactGroupType = artifactGroupType; + } + /** + * Sets the artifact label. + * + * @param artifactGroupType the new artifact label + */ + public void setArtifactLabel(String artifactLabel) { + this.artifactLabel = artifactLabel; + } + /** + * Sets the artifact URL. + * + * @param artifactURL the new artifact URL + */ + public void setArtifactURL(String artifactURL) { + this.artifactURL = artifactURL; + } + + /** + * Sets the artifact description. + * + * @param artifactDescription the new artifact description + */ + public void setArtifactDescription(String artifactDescription) { + this.artifactDescription = artifactDescription; + } + + /** + * Sets the artifact timeout. + * + * @param artifactTimeout the new artifact timeout + */ + public void setArtifactTimeout(int artifactTimeout) { + this.artifactTimeout = artifactTimeout; + } + + /** + * Sets the artifact checksum. + * + * @param artifactChecksum the new artifact checksum + */ + public void setArtifactChecksum(String artifactChecksum) { + this.artifactChecksum = artifactChecksum; + } + + /** + * Sets the artifact UUID. + * + * @param artifactUUID the new artifact UUID + */ + public void setArtifactUUID(String artifactUUID) { + this.artifactUUID = artifactUUID; + } + + /** + * Sets the artifact version. + * + * @param artifactVersion the new artifact version + */ + public void setArtifactVersion(String artifactVersion) { + this.artifactVersion = artifactVersion; + } + + /** + * Sets the generated from UUID. + * + * @param generatedFromUUID the new generated from UUID + */ + public void setGeneratedFromUUID(String generatedFromUUID) { + this.generatedFromUUID = generatedFromUUID; + } + + /* (non-Javadoc) + * @see java.lang.Object#hashCode() + */ + @Override + public int hashCode() { + final UUID uuid = UUID.fromString(getArtifactUUID()); + + return uuid.hashCode(); + } + + /* (non-Javadoc) + * @see java.lang.Object#equals(java.lang.Object) + */ + @Override + public boolean equals(Object o) { + if (o == this) return true; + if (!(o instanceof Artifact)) return false; + + final Artifact artifact = (Artifact) o; + + return (artifact.getArtifactUUID().equals(getArtifactUUID())); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/Resource.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/Resource.java index 000aae1a9..6b5aa5320 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/Resource.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/Resource.java @@ -1,429 +1,429 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans;
-
-import java.util.Collection;
-import java.util.UUID;
-
-/**
- * The Class Resource.
- */
-public class Resource {
-
- /**
- * The Enum Type.
- */
- public enum Type {
-
- /** The vf. */
- VF,
-
- /** The vfc. */
- VFC,
-
- /** The cp. */
- CP,
-
- /** The vl. */
- VL,
-
- /** The vfcmt. */
- VFCMT
- }
-
- /**
- * The Enum LifecycleState.
- */
- public enum LifecycleState {
-
- /** The not certified checkout. */
- NOT_CERTIFIED_CHECKOUT,
-
- /** The not certified checkin. */
- NOT_CERTIFIED_CHECKIN,
-
- /** The ready for certification. */
- READY_FOR_CERTIFICATION,
-
- /** The certification in progress. */
- CERTIFICATION_IN_PROGRESS,
-
- /** The certified. */
- CERTIFIED
- }
-
- /** The uuid. */
- private String uuid;
-
- /** The invariant UUID. */
- private String invariantUUID;
-
- /** The name. */
- private String name;
-
- /** The description. */
- private String description;
-
- /** The version. */
- private String version;
-
- /** The tosca model URL. */
- private String toscaModelURL;
-
- /** The category. */
- private String category;
-
- /** The sub category. */
- private String subCategory;
-
- /** The resource type. */
- private Resource.Type resourceType;
-
- /** The lifecycle state. */
- private Resource.LifecycleState lifecycleState;
-
- /** The last updater user ID. */
- private String lastUpdaterUserId;
-
- /** The last updater full name. */
- private String lastUpdaterFullName;
-
- /** The tosca model. */
- private String toscaModel;
-
- /** The tosca resource name. */
- private String toscaResourceName;
-
- /** The artifacts. */
- private Collection<Artifact> artifacts;
-
- /** The resources. */
- private Collection<SubResource> resources;
-
- /**
- * Gets the uuid.
- *
- * @return the uuid
- */
- public String getUuid() {
- return uuid;
- }
-
- /**
- * Gets the invariant UUID.
- *
- * @return the invariant UUID
- */
- public String getInvariantUUID() {
- return invariantUUID;
- }
-
- /**
- * Gets the name.
- *
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Gets the version.
- *
- * @return the version
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * Gets the tosca model URL.
- *
- * @return the tosca model URL
- */
- public String getToscaModelURL() {
- return toscaModelURL;
- }
-
- /**
- * Gets the category.
- *
- * @return the category
- */
- public String getCategory() {
- return category;
- }
-
- /**
- * Gets the sub category.
- *
- * @return the sub category
- */
- public String getSubCategory() {
- return subCategory;
- }
-
- /**
- * Gets the resource type.
- *
- * @return the resource type
- */
- public Resource.Type getResourceType() {
- return resourceType;
- }
-
- /**
- * Gets the lifecycle state.
- *
- * @return the lifecycle state
- */
- public Resource.LifecycleState getLifecycleState() {
- return lifecycleState;
- }
-
- /**
- * Gets the last updater user ID.
- *
- * @return the last updater user ID
- */
- public String getLastUpdaterUserId() {
- return lastUpdaterUserId;
- }
-
- /**
- * Gets the last updater full name.
- *
- * @return the last updater full name
- */
- public String getLastUpdaterFullName() {
- return lastUpdaterFullName;
- }
-
- /**
- * Gets the tosca model.
- *
- * @return the tosca model
- */
- public String getToscaModel() {
- return toscaModel;
- }
-
- /**
- * Gets the tosca resource name.
- *
- * @return the tosca resource name
- */
- public String getToscaResourceName() {
- return toscaResourceName;
- }
-
- /**
- * Gets the artifacts.
- *
- * @return the artifacts
- */
- public Collection<Artifact> getArtifacts() {
- return artifacts;
- }
-
- /**
- * Gets the resources.
- *
- * @return the resources
- */
- public Collection<SubResource> getResources() {
- return resources;
- }
-
- /**
- * Sets the uuid.
- *
- * @param uuid the new uuid
- */
- public void setUuid(String uuid) {
- this.uuid = uuid;
- }
-
- /**
- * Sets the invariant UUID.
- *
- * @param invariantUUID the new invariant UUID
- */
- public void setInvariantUUID(String invariantUUID) {
- this.invariantUUID = invariantUUID;
- }
-
- /**
- * Sets the name.
- *
- * @param name the new name
- */
- public void setName(String name) {
- this.name = name;
- }
- /**
- * Sets the description.
- *
- * @param name the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
- /**
- * Sets the version.
- *
- * @param version the new version
- */
- public void setVersion(String version) {
- this.version = version;
- }
-
- /**
- * Sets the tosca model URL.
- *
- * @param toscaModelURL the new tosca model URL
- */
- public void setToscaModelURL(String toscaModelURL) {
- this.toscaModelURL = toscaModelURL;
- }
-
- /**
- * Sets the category.
- *
- * @param category the new category
- */
- public void setCategory(String category) {
- this.category = category;
- }
-
- /**
- * Sets the sub category.
- *
- * @param subCategory the new sub category
- */
- public void setSubCategory(String subCategory) {
- this.subCategory = subCategory;
- }
-
- /**
- * Sets the resource type.
- *
- * @param resourceType the new resource type
- */
- public void setResourceType(Resource.Type resourceType) {
- this.resourceType = resourceType;
- }
-
- /**
- * Sets the lifecycle state.
- *
- * @param lifecycleState the new lifecycle state
- */
- public void setLifecycleState(Resource.LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- }
-
- /**
- * Sets the last updater user ID.
- *
- * @param lastUpdaterUserId the new last updater user ID
- */
- public void setLastUpdaterUserId(String lastUpdaterUserId) {
- this.lastUpdaterUserId = lastUpdaterUserId;
- }
-
- /**
- * Sets the last updater full name.
- *
- * @param lastUpdaterFullName the new last updater full name
- */
- public void setLastUpdaterFullName(String lastUpdaterFullName) {
- this.lastUpdaterFullName = lastUpdaterFullName;
- }
-
- /**
- * Sets the tosca model.
- *
- * @param toscaModel the new tosca model
- */
- public void setToscaModel(String toscaModel) {
- this.toscaModel = toscaModel;
- }
-
- /**
- * Sets the tosca resource name.
- *
- * @param toscaResourceName the new tosca resource name
- */
- public void setToscaResourceName(String toscaResourceName) {
- this.toscaResourceName = toscaResourceName;
- }
-
- /**
- * Sets the artifacts.
- *
- * @param artifacts the new artifacts
- */
- public void setArtifacts(Collection<Artifact> artifacts) {
- this.artifacts = artifacts;
- }
-
- /**
- * Sets the resources.
- *
- * @param resources the new resources
- */
- public void setResources(Collection<SubResource> resources) {
- this.resources = resources;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#hashCode()
- */
- @Override
- public int hashCode() {
- final UUID uuid = UUID.fromString(getUuid());
-
- return uuid.hashCode();
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object o) {
- if (o == this) return true;
- if (!(o instanceof Resource)) return false;
-
- final Resource resource = (Resource) o;
-
- return (resource.getUuid().equals(getUuid()));
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans; + +import java.util.Collection; +import java.util.UUID; + +/** + * The Class Resource. + */ +public class Resource { + + /** + * The Enum Type. + */ + public enum Type { + + /** The vf. */ + VF, + + /** The vfc. */ + VFC, + + /** The cp. */ + CP, + + /** The vl. */ + VL, + + /** The vfcmt. */ + VFCMT + } + + /** + * The Enum LifecycleState. + */ + public enum LifecycleState { + + /** The not certified checkout. */ + NOT_CERTIFIED_CHECKOUT, + + /** The not certified checkin. */ + NOT_CERTIFIED_CHECKIN, + + /** The ready for certification. */ + READY_FOR_CERTIFICATION, + + /** The certification in progress. */ + CERTIFICATION_IN_PROGRESS, + + /** The certified. */ + CERTIFIED + } + + /** The uuid. */ + private String uuid; + + /** The invariant UUID. */ + private String invariantUUID; + + /** The name. */ + private String name; + + /** The description. */ + private String description; + + /** The version. */ + private String version; + + /** The tosca model URL. */ + private String toscaModelURL; + + /** The category. */ + private String category; + + /** The sub category. */ + private String subCategory; + + /** The resource type. */ + private Resource.Type resourceType; + + /** The lifecycle state. */ + private Resource.LifecycleState lifecycleState; + + /** The last updater user ID. */ + private String lastUpdaterUserId; + + /** The last updater full name. */ + private String lastUpdaterFullName; + + /** The tosca model. */ + private String toscaModel; + + /** The tosca resource name. */ + private String toscaResourceName; + + /** The artifacts. */ + private Collection<Artifact> artifacts; + + /** The resources. */ + private Collection<SubResource> resources; + + /** + * Gets the uuid. + * + * @return the uuid + */ + public String getUuid() { + return uuid; + } + + /** + * Gets the invariant UUID. + * + * @return the invariant UUID + */ + public String getInvariantUUID() { + return invariantUUID; + } + + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Gets the version. + * + * @return the version + */ + public String getVersion() { + return version; + } + + /** + * Gets the tosca model URL. + * + * @return the tosca model URL + */ + public String getToscaModelURL() { + return toscaModelURL; + } + + /** + * Gets the category. + * + * @return the category + */ + public String getCategory() { + return category; + } + + /** + * Gets the sub category. + * + * @return the sub category + */ + public String getSubCategory() { + return subCategory; + } + + /** + * Gets the resource type. + * + * @return the resource type + */ + public Resource.Type getResourceType() { + return resourceType; + } + + /** + * Gets the lifecycle state. + * + * @return the lifecycle state + */ + public Resource.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Gets the last updater user ID. + * + * @return the last updater user ID + */ + public String getLastUpdaterUserId() { + return lastUpdaterUserId; + } + + /** + * Gets the last updater full name. + * + * @return the last updater full name + */ + public String getLastUpdaterFullName() { + return lastUpdaterFullName; + } + + /** + * Gets the tosca model. + * + * @return the tosca model + */ + public String getToscaModel() { + return toscaModel; + } + + /** + * Gets the tosca resource name. + * + * @return the tosca resource name + */ + public String getToscaResourceName() { + return toscaResourceName; + } + + /** + * Gets the artifacts. + * + * @return the artifacts + */ + public Collection<Artifact> getArtifacts() { + return artifacts; + } + + /** + * Gets the resources. + * + * @return the resources + */ + public Collection<SubResource> getResources() { + return resources; + } + + /** + * Sets the uuid. + * + * @param uuid the new uuid + */ + public void setUuid(String uuid) { + this.uuid = uuid; + } + + /** + * Sets the invariant UUID. + * + * @param invariantUUID the new invariant UUID + */ + public void setInvariantUUID(String invariantUUID) { + this.invariantUUID = invariantUUID; + } + + /** + * Sets the name. + * + * @param name the new name + */ + public void setName(String name) { + this.name = name; + } + /** + * Sets the description. + * + * @param name the new description + */ + public void setDescription(String description) { + this.description = description; + } + /** + * Sets the version. + * + * @param version the new version + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * Sets the tosca model URL. + * + * @param toscaModelURL the new tosca model URL + */ + public void setToscaModelURL(String toscaModelURL) { + this.toscaModelURL = toscaModelURL; + } + + /** + * Sets the category. + * + * @param category the new category + */ + public void setCategory(String category) { + this.category = category; + } + + /** + * Sets the sub category. + * + * @param subCategory the new sub category + */ + public void setSubCategory(String subCategory) { + this.subCategory = subCategory; + } + + /** + * Sets the resource type. + * + * @param resourceType the new resource type + */ + public void setResourceType(Resource.Type resourceType) { + this.resourceType = resourceType; + } + + /** + * Sets the lifecycle state. + * + * @param lifecycleState the new lifecycle state + */ + public void setLifecycleState(Resource.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + } + + /** + * Sets the last updater user ID. + * + * @param lastUpdaterUserId the new last updater user ID + */ + public void setLastUpdaterUserId(String lastUpdaterUserId) { + this.lastUpdaterUserId = lastUpdaterUserId; + } + + /** + * Sets the last updater full name. + * + * @param lastUpdaterFullName the new last updater full name + */ + public void setLastUpdaterFullName(String lastUpdaterFullName) { + this.lastUpdaterFullName = lastUpdaterFullName; + } + + /** + * Sets the tosca model. + * + * @param toscaModel the new tosca model + */ + public void setToscaModel(String toscaModel) { + this.toscaModel = toscaModel; + } + + /** + * Sets the tosca resource name. + * + * @param toscaResourceName the new tosca resource name + */ + public void setToscaResourceName(String toscaResourceName) { + this.toscaResourceName = toscaResourceName; + } + + /** + * Sets the artifacts. + * + * @param artifacts the new artifacts + */ + public void setArtifacts(Collection<Artifact> artifacts) { + this.artifacts = artifacts; + } + + /** + * Sets the resources. + * + * @param resources the new resources + */ + public void setResources(Collection<SubResource> resources) { + this.resources = resources; + } + + /* (non-Javadoc) + * @see java.lang.Object#hashCode() + */ + @Override + public int hashCode() { + final UUID uuid = UUID.fromString(getUuid()); + + return uuid.hashCode(); + } + + /* (non-Javadoc) + * @see java.lang.Object#equals(java.lang.Object) + */ + @Override + public boolean equals(Object o) { + if (o == this) return true; + if (!(o instanceof Resource)) return false; + + final Resource resource = (Resource) o; + + return (resource.getUuid().equals(getUuid())); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/SecureService.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/SecureService.java index 1372472f5..b81a43893 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/SecureService.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/SecureService.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans; +package org.onap.vid.asdc.beans; /** * Created by Oren on 6/27/17. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/SecureServices.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/SecureServices.java index 0fcd79223..a6aa3de6f 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/SecureServices.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/SecureServices.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans; +package org.onap.vid.asdc.beans; import java.util.Collection; import java.util.List; @@ -9,8 +9,7 @@ import java.util.List; public class SecureServices { private Collection<Service> services; - //Disable roles until AAF integration finishes - private boolean isReadOnly = false; + private boolean isReadOnly = true; public void setServices(Collection<Service> services) { this.services = services; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/Service.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/Service.java index 2a83cbe3a..5f59b89e8 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/Service.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/Service.java @@ -1,351 +1,354 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans;
-
-import java.util.Collection;
-import java.util.UUID;
-/**
- * The Class Service.
- */
-public class Service {
-
- /**
- * The Enum DistributionStatus.
- */
- public enum DistributionStatus {
-
- /** The distribution not approved. */
- DISTRIBUTION_NOT_APPROVED,
-
- /** The distribution approved. */
- DISTRIBUTION_APPROVED,
-
- /** The distributed. */
- DISTRIBUTED,
-
- /** The distribution rejected. */
- DISTRIBUTION_REJECTED
- }
-
- /**
- * The Enum LifecycleState.
- */
- public enum LifecycleState {
-
- /** The not certified checkout. */
- NOT_CERTIFIED_CHECKOUT,
-
- /** The not certified checkin. */
- NOT_CERTIFIED_CHECKIN,
-
- /** The ready for certification. */
- READY_FOR_CERTIFICATION,
-
- /** The certification in progress. */
- CERTIFICATION_IN_PROGRESS,
-
- /** The certified. */
- CERTIFIED
- }
-
- /** The uuid. */
- private String uuid;
-
- /** The invariant UUID. */
- private String invariantUUID;
-
- /** The name. */
- private String name;
-
- /** The version. */
- private String version;
-
- /** The tosca model URL. */
- private String toscaModelURL;
-
- /** The category. */
- private String category;
-
- /** The lifecycle state. */
- private Service.LifecycleState lifecycleState;
-
- /** The last updater user uid. */
- private String lastUpdaterUserId;
-
- /** The last updater full name. */
- private String lastUpdaterFullName;
-
- /** The distribution status. */
- private Service.DistributionStatus distributionStatus;
-
- /** The artifacts. */
- private Collection<Artifact> artifacts;
-
- /** The resources. */
- private Collection<SubResource> resources;
-
- /**
- * Gets the uuid.
- *
- * @return the uuid
- */
- public String getUuid() {
- return uuid;
- }
-
- /**
- * Gets the invariant UUID.
- *
- * @return the invariant UUID
- */
- public String getInvariantUUID() {
- return invariantUUID;
- }
-
- /**
- * Gets the name.
- *
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * Gets the version.
- *
- * @return the version
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * Gets the tosca model URL.
- *
- * @return the tosca model URL
- */
- public String getToscaModelURL() {
- return toscaModelURL;
- }
-
- /**
- * Gets the category.
- *
- * @return the category
- */
- public String getCategory() {
- return category;
- }
-
- /**
- * Gets the lifecycle state.
- *
- * @return the lifecycle state
- */
- public Service.LifecycleState getLifecycleState() {
- return lifecycleState;
- }
-
- /**
- * Gets the last updater user uid.
- *
- * @return the last updater user uid
- */
- public String getLastUpdaterUserId() {
- return lastUpdaterUserId;
- }
-
- /**
- * Gets the last updater full name.
- *
- * @return the last updater full name
- */
- public String getLastUpdaterFullName() {
- return lastUpdaterFullName;
- }
-
- /**
- * Gets the distribution status.
- *
- * @return the distribution status
- */
- public Service.DistributionStatus getDistributionStatus() {
- return distributionStatus;
- }
-
- /**
- * Gets the artifacts.
- *
- * @return the artifacts
- */
- public Collection<Artifact> getArtifacts() {
- return artifacts;
- }
-
- /**
- * Gets the resources.
- *
- * @return the resources
- */
- public Collection<SubResource> getResources() {
- return resources;
- }
-
- /**
- * Sets the uuid.
- *
- * @param uuid the new uuid
- */
- public void setUuid(String uuid) {
- this.uuid = uuid;
- }
-
- /**
- * Sets the invariant UUID.
- *
- * @param invariantUUID the new invariant UUID
- */
- public void setInvariantUUID(String invariantUUID) {
- this.invariantUUID = invariantUUID;
- }
-
- /**
- * Sets the name.
- *
- * @param name the new name
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * Sets the version.
- *
- * @param version the new version
- */
- public void setVersion(String version) {
- this.version = version;
- }
-
- /**
- * Sets the tosca model URL.
- *
- * @param toscaModelURL the new tosca model URL
- */
- public void setToscaModelURL(String toscaModelURL) {
- this.toscaModelURL = toscaModelURL;
- }
-
- /**
- * Sets the category.
- *
- * @param category the new category
- */
- public void setCategory(String category) {
- this.category = category;
- }
-
- /**
- * Sets the lifecycle state.
- *
- * @param lifecycleState the new lifecycle state
- */
- public void setLifecycleState(Service.LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- }
-
- /**
- * Sets the last updater user uid.
- *
- * @param lastUpdaterUserId the new last updater user uid
- */
- public void set(String lastUpdaterUserId) {
- this.lastUpdaterUserId = lastUpdaterUserId;
- }
-
- /**
- * Sets the last updater full name.
- *
- * @param lastUpdaterFullName the new last updater full name
- */
- public void setLastUpdaterFullName(String lastUpdaterFullName) {
- this.lastUpdaterFullName = lastUpdaterFullName;
- }
-
- /**
- * Sets the distribution status.
- *
- * @param distributionStatus the new distribution status
- */
- public void setDistributionStatus(Service.DistributionStatus distributionStatus) {
- this.distributionStatus = distributionStatus;
- }
-
- /**
- * Sets the artifacts.
- *
- * @param artifacts the new artifacts
- */
- public void setArtifacts(Collection<Artifact> artifacts) {
- this.artifacts = artifacts;
- }
-
- /**
- * Sets the resources.
- *
- * @param resources the new resources
- */
- public void setResources(Collection<SubResource> resources) {
- this.resources = resources;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return uuid;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#hashCode()
- */
- @Override
- public int hashCode() {
- final UUID uuid = UUID.fromString(getUuid());
-
- return uuid.hashCode();
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object o) {
- if (o == this) return true;
- if (!(o instanceof Service)) return false;
-
- final Service service = (Service) o;
-
- return (service.getUuid().equals(getUuid()));
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans; + +import java.util.Collection; +import java.util.UUID; +/** + * The Class Service. + */ +public class Service { + + /** + * The Enum DistributionStatus. + */ + public enum DistributionStatus { + + /** The distribution not approved. */ + DISTRIBUTION_NOT_APPROVED, + + /** The distribution approved. */ + DISTRIBUTION_APPROVED, + + /** The distributed. */ + DISTRIBUTED, + + /** The distribution rejected. */ + DISTRIBUTION_REJECTED, + + /** The destributed for tenant isolation. */ + DISTRIBUTION_COMPLETE_OK + } + + /** + * The Enum LifecycleState. + */ + public enum LifecycleState { + + /** The not certified checkout. */ + NOT_CERTIFIED_CHECKOUT, + + /** The not certified checkin. */ + NOT_CERTIFIED_CHECKIN, + + /** The ready for certification. */ + READY_FOR_CERTIFICATION, + + /** The certification in progress. */ + CERTIFICATION_IN_PROGRESS, + + /** The certified. */ + CERTIFIED + } + + /** The uuid. */ + private String uuid; + + /** The invariant UUID. */ + private String invariantUUID; + + /** The name. */ + private String name; + + /** The version. */ + private String version; + + /** The tosca model URL. */ + private String toscaModelURL; + + /** The category. */ + private String category; + + /** The lifecycle state. */ + private Service.LifecycleState lifecycleState; + + /** The last updater user uid. */ + private String lastUpdaterUserId; + + /** The last updater full name. */ + private String lastUpdaterFullName; + + /** The distribution status. */ + private Service.DistributionStatus distributionStatus; + + /** The artifacts. */ + private Collection<Artifact> artifacts; + + /** The resources. */ + private Collection<SubResource> resources; + + /** + * Gets the uuid. + * + * @return the uuid + */ + public String getUuid() { + return uuid; + } + + /** + * Gets the invariant UUID. + * + * @return the invariant UUID + */ + public String getInvariantUUID() { + return invariantUUID; + } + + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Gets the version. + * + * @return the version + */ + public String getVersion() { + return version; + } + + /** + * Gets the tosca model URL. + * + * @return the tosca model URL + */ + public String getToscaModelURL() { + return toscaModelURL; + } + + /** + * Gets the category. + * + * @return the category + */ + public String getCategory() { + return category; + } + + /** + * Gets the lifecycle state. + * + * @return the lifecycle state + */ + public Service.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Gets the last updater user uid. + * + * @return the last updater user uid + */ + public String getLastUpdaterUserId() { + return lastUpdaterUserId; + } + + /** + * Gets the last updater full name. + * + * @return the last updater full name + */ + public String getLastUpdaterFullName() { + return lastUpdaterFullName; + } + + /** + * Gets the distribution status. + * + * @return the distribution status + */ + public Service.DistributionStatus getDistributionStatus() { + return distributionStatus; + } + + /** + * Gets the artifacts. + * + * @return the artifacts + */ + public Collection<Artifact> getArtifacts() { + return artifacts; + } + + /** + * Gets the resources. + * + * @return the resources + */ + public Collection<SubResource> getResources() { + return resources; + } + + /** + * Sets the uuid. + * + * @param uuid the new uuid + */ + public void setUuid(String uuid) { + this.uuid = uuid; + } + + /** + * Sets the invariant UUID. + * + * @param invariantUUID the new invariant UUID + */ + public void setInvariantUUID(String invariantUUID) { + this.invariantUUID = invariantUUID; + } + + /** + * Sets the name. + * + * @param name the new name + */ + public void setName(String name) { + this.name = name; + } + + /** + * Sets the version. + * + * @param version the new version + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * Sets the tosca model URL. + * + * @param toscaModelURL the new tosca model URL + */ + public void setToscaModelURL(String toscaModelURL) { + this.toscaModelURL = toscaModelURL; + } + + /** + * Sets the category. + * + * @param category the new category + */ + public void setCategory(String category) { + this.category = category; + } + + /** + * Sets the lifecycle state. + * + * @param lifecycleState the new lifecycle state + */ + public void setLifecycleState(Service.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + } + + /** + * Sets the last updater user uid. + * + * @param lastUpdaterUserId the new last updater user uid + */ + public void set(String lastUpdaterUserId) { + this.lastUpdaterUserId = lastUpdaterUserId; + } + + /** + * Sets the last updater full name. + * + * @param lastUpdaterFullName the new last updater full name + */ + public void setLastUpdaterFullName(String lastUpdaterFullName) { + this.lastUpdaterFullName = lastUpdaterFullName; + } + + /** + * Sets the distribution status. + * + * @param distributionStatus the new distribution status + */ + public void setDistributionStatus(Service.DistributionStatus distributionStatus) { + this.distributionStatus = distributionStatus; + } + + /** + * Sets the artifacts. + * + * @param artifacts the new artifacts + */ + public void setArtifacts(Collection<Artifact> artifacts) { + this.artifacts = artifacts; + } + + /** + * Sets the resources. + * + * @param resources the new resources + */ + public void setResources(Collection<SubResource> resources) { + this.resources = resources; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return uuid; + } + + /* (non-Javadoc) + * @see java.lang.Object#hashCode() + */ + @Override + public int hashCode() { + final UUID uuid = UUID.fromString(getUuid()); + + return uuid.hashCode(); + } + + /* (non-Javadoc) + * @see java.lang.Object#equals(java.lang.Object) + */ + @Override + public boolean equals(Object o) { + if (o == this) return true; + if (!(o instanceof Service)) return false; + + final Service service = (Service) o; + + return (service.getUuid().equals(getUuid())); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/SubResource.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/SubResource.java index cd3ec7fee..5f7811d64 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/SubResource.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/SubResource.java @@ -1,175 +1,175 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans;
-
-import java.util.Collection;
-/**
- * The Class SubResource.
- */
-public class SubResource {
-
- /** The resource instance name. */
- private String resourceInstanceName;
-
- /** The resource name. */
- private String resourceName;
-
- /** The resource invariant UUID. */
- private String resourceInvariantUUID;
-
- /** The resource version. */
- private String resourceVersion;
-
- /** The resource type. */
- private String resourceType;
-
- /** The resource UUID. */
- private String resourceUUID;
-
- /** The artifacts. */
- private Collection<Artifact> artifacts;
-
- /**
- * Gets the resource instance name.
- *
- * @return the resource instance name
- */
- public String getResourceInstanceName() {
- return resourceInstanceName;
- }
-
- /**
- * Gets the resource name.
- *
- * @return the resource name
- */
- public String getResourceName() {
- return resourceName;
- }
-
- /**
- * Gets the resource invariant UUID.
- *
- * @return the resource invariant UUID
- */
- public String getResourceInvariantUUID() {
- return resourceInvariantUUID;
- }
-
- /**
- * Gets the resource version.
- *
- * @return the resource version
- */
- public String getResourceVersion() {
- return resourceVersion;
- }
-
- /**
- * Gets the resoucre type.
- *
- * @return the resoucre type
- */
- public String getResoucreType() {
- return resourceType;
- }
-
- /**
- * Gets the resource UUID.
- *
- * @return the resource UUID
- */
- public String getResourceUUID() {
- return resourceUUID;
- }
-
- /**
- * Gets the artifacts.
- *
- * @return the artifacts
- */
- public Collection<Artifact> getArtifacts() {
- return artifacts;
- }
-
- /**
- * Sets the resource instance name.
- *
- * @param resourceInstanceName the new resource instance name
- */
- public void setResourceInstanceName(String resourceInstanceName) {
- this.resourceInstanceName = resourceInstanceName;
- }
-
- /**
- * Sets the resource name.
- *
- * @param resourceName the new resource name
- */
- public void setResourceName(String resourceName) {
- this.resourceName = resourceName;
- }
-
- /**
- * Sets the resource invariant UUID.
- *
- * @param resourceInvariantUUID the new resource invariant UUID
- */
- public void setResourceInvariantUUID(String resourceInvariantUUID) {
- this.resourceInvariantUUID = resourceInvariantUUID;
- }
-
- /**
- * Sets the resource version.
- *
- * @param resourceVersion the new resource version
- */
- public void setResourceVersion(String resourceVersion) {
- this.resourceVersion = resourceVersion;
- }
-
- /**
- * Sets the resoucre type.
- *
- * @param resourceType the new resoucre type
- */
- public void setResoucreType(String resourceType) {
- this.resourceType = resourceType;
- }
-
- /**
- * Sets the resource UUID.
- *
- * @param resourceUUID the new resource UUID
- */
- public void setResourceUUID(String resourceUUID) {
- this.resourceUUID = resourceUUID;
- }
-
- /**
- * Sets the artifacts.
- *
- * @param artifacts the new artifacts
- */
- public void setArtifacts(Collection<Artifact> artifacts) {
- this.artifacts = artifacts;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans; + +import java.util.Collection; +/** + * The Class SubResource. + */ +public class SubResource { + + /** The resource instance name. */ + private String resourceInstanceName; + + /** The resource name. */ + private String resourceName; + + /** The resource invariant UUID. */ + private String resourceInvariantUUID; + + /** The resource version. */ + private String resourceVersion; + + /** The resource type. */ + private String resourceType; + + /** The resource UUID. */ + private String resourceUUID; + + /** The artifacts. */ + private Collection<Artifact> artifacts; + + /** + * Gets the resource instance name. + * + * @return the resource instance name + */ + public String getResourceInstanceName() { + return resourceInstanceName; + } + + /** + * Gets the resource name. + * + * @return the resource name + */ + public String getResourceName() { + return resourceName; + } + + /** + * Gets the resource invariant UUID. + * + * @return the resource invariant UUID + */ + public String getResourceInvariantUUID() { + return resourceInvariantUUID; + } + + /** + * Gets the resource version. + * + * @return the resource version + */ + public String getResourceVersion() { + return resourceVersion; + } + + /** + * Gets the resoucre type. + * + * @return the resoucre type + */ + public String getResoucreType() { + return resourceType; + } + + /** + * Gets the resource UUID. + * + * @return the resource UUID + */ + public String getResourceUUID() { + return resourceUUID; + } + + /** + * Gets the artifacts. + * + * @return the artifacts + */ + public Collection<Artifact> getArtifacts() { + return artifacts; + } + + /** + * Sets the resource instance name. + * + * @param resourceInstanceName the new resource instance name + */ + public void setResourceInstanceName(String resourceInstanceName) { + this.resourceInstanceName = resourceInstanceName; + } + + /** + * Sets the resource name. + * + * @param resourceName the new resource name + */ + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + /** + * Sets the resource invariant UUID. + * + * @param resourceInvariantUUID the new resource invariant UUID + */ + public void setResourceInvariantUUID(String resourceInvariantUUID) { + this.resourceInvariantUUID = resourceInvariantUUID; + } + + /** + * Sets the resource version. + * + * @param resourceVersion the new resource version + */ + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + /** + * Sets the resoucre type. + * + * @param resourceType the new resoucre type + */ + public void setResoucreType(String resourceType) { + this.resourceType = resourceType; + } + + /** + * Sets the resource UUID. + * + * @param resourceUUID the new resource UUID + */ + public void setResourceUUID(String resourceUUID) { + this.resourceUUID = resourceUUID; + } + + /** + * Sets the artifacts. + * + * @param artifacts the new artifacts + */ + public void setArtifacts(Collection<Artifact> artifacts) { + this.artifacts = artifacts; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Capability.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Capability.java index 0d3f17ae4..7aa13435d 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Capability.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Capability.java @@ -1,140 +1,140 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.util.Collection;
-import java.util.Map;
-
-/**
- * The Class Capability.
- */
-public class Capability {
-
- /** The type. */
- private String type; //FIXME: Make an enumeration?
-
- /** The description. */
- private String description;
-
- /** The occurrences. */
- private Collection<String> occurrences; //FIXME: Make an enumeration?
-
- /** The properties. */
- private Map<String, Property> properties;
-
- /** The valid source types. */
- private Collection<String> valid_source_types; //FIXME: Make an enumeration?
-
- /**
- * Instantiates a new capability.
- */
- public Capability() {}
-
- /**
- * Gets the type.
- *
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Gets the occurrences.
- *
- * @return the occurrences
- */
- public Collection<String> getOccurrences() {
- return occurrences;
- }
-
- /**
- * Gets the properties.
- *
- * @return the properties
- */
- public Map<String, Property> getProperties() {
- return properties;
- }
-
- /**
- * Gets the valid source types.
- *
- * @return the valid source types
- */
- public Collection<String> getValid_source_types() {
- return valid_source_types;
- }
-
- /**
- * Sets the type.
- *
- * @param type the new type
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Sets the occurrences.
- *
- * @param occurrences the new occurrences
- */
- public void setOccurrences(Collection<String> occurrences) {
- this.occurrences = occurrences;
- }
-
- /**
- * Sets the properties.
- *
- * @param properties the properties
- */
- public void setProperties(Map<String, Property> properties) {
- this.properties = properties;
- }
-
- /**
- * Sets the valid source types.
- *
- * @param valid_source_types the new valid source types
- */
- public void setValid_source_types(Collection<String> valid_source_types) {
- this.valid_source_types = valid_source_types;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.util.Collection; +import java.util.Map; + +/** + * The Class Capability. + */ +public class Capability { + + /** The type. */ + private String type; //FIXME: Make an enumeration? + + /** The description. */ + private String description; + + /** The occurrences. */ + private Collection<String> occurrences; //FIXME: Make an enumeration? + + /** The properties. */ + private Map<String, Property> properties; + + /** The valid source types. */ + private Collection<String> valid_source_types; //FIXME: Make an enumeration? + + /** + * Instantiates a new capability. + */ + public Capability() {} + + /** + * Gets the type. + * + * @return the type + */ + public String getType() { + return type; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Gets the occurrences. + * + * @return the occurrences + */ + public Collection<String> getOccurrences() { + return occurrences; + } + + /** + * Gets the properties. + * + * @return the properties + */ + public Map<String, Property> getProperties() { + return properties; + } + + /** + * Gets the valid source types. + * + * @return the valid source types + */ + public Collection<String> getValid_source_types() { + return valid_source_types; + } + + /** + * Sets the type. + * + * @param type the new type + */ + public void setType(String type) { + this.type = type; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Sets the occurrences. + * + * @param occurrences the new occurrences + */ + public void setOccurrences(Collection<String> occurrences) { + this.occurrences = occurrences; + } + + /** + * Sets the properties. + * + * @param properties the properties + */ + public void setProperties(Map<String, Property> properties) { + this.properties = properties; + } + + /** + * Sets the valid source types. + * + * @param valid_source_types the new valid source types + */ + public void setValid_source_types(Collection<String> valid_source_types) { + this.valid_source_types = valid_source_types; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Constraint.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Constraint.java index a91f38312..118776cab 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Constraint.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Constraint.java @@ -1,199 +1,199 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-package org.openecomp.vid.asdc.beans.tosca;
-import java.util.List;
-import java.util.ArrayList;
-
-/**
- * The Class Constraint.
- */
-
-public class Constraint {
- private List<Object> valid_values;
- private Object equal;
- private Object greater_than;
- private Object greater_or_equal;
- private Object less_than;
- private Object less_or_equal;
- private List<Object> in_range;
- private Object length;
- private Object min_length;
- private Object max_length;
-
- /**
- * Instantiates a new Constraint.
- */
- public Constraint() {
- valid_values = new ArrayList<Object>();
- in_range = new ArrayList<Object>();
- }
-
- /**
- * Gets the valid_values.
- *
- * @return the valid_values
- */
- public List<Object> getvalid_values() {
- return valid_values;
- }
- /**
- * Gets equal.
- *
- * @return equal
- */
- public Object getEqual() {
- return equal;
- }
- /**
- * Gets greater_than.
- *
- * @return greater_than
- */
- public Object getGreater_than() {
- return greater_than;
- }
- /**
- * Gets greater_or_equal.
- *
- * @return greater_or_equal
- */
- public Object getGreater_or_equal() {
- return greater_or_equal;
- }
- /**
- * Gets less_than.
- *
- * @return less_than
- */
- public Object getLess_than() {
- return less_than;
- }
- /**
- * Gets less_or_equal.
- *
- * @return less_or_equal
- */
- public Object getLess_or_equal() {
- return less_or_equal;
- }
- /**
- * Gets in_range.
- *
- * @return in_range
- */
- public List<Object> getIn_range() {
- return in_range;
- }
- /**
- * Gets length.
- *
- * @return length
- */
- public Object getLength() {
- return length;
- }
- /**
- * Gets min_length.
- *
- * @return min_length
- */
- public Object getMin_length() {
- return min_length;
- }
- /**
- * Gets max_length.
- *
- * @return max_length
- */
- public Object getMax_length() {
- return max_length;
- }
- /**
- * Sets the valid_values.
- *
- * @param op the new valid_values
- */
- public void setvalid_values(List<Object> vlist) {
- this.valid_values = vlist;
- }
- /**
- * Sets equal.
- *
- * @param e the new equal
- */
- public void setEqual(Object e) {
- this.equal = e;
- }
- /**
- * Sets greater_than.
- *
- * @param e the new greater_than
- */
- public void setGreater_than(Object e) {
- this.greater_than = e;
- }
- /**
- * Sets less_than.
- *
- * @param e the new less_than
- */
- public void setLess_than(Object e) {
- this.less_than = e;
- }
- /**
- * Sets in_range.
- *
- * @param e the new in_range
- */
- public void setIn_range(List<Object> e) {
- this.in_range = e;
- }
- /**
- * Sets length.
- *
- * @param e the length
- */
- public void setLength(Object e) {
- this.length = e;
- }
- /**
- * Sets min_length.
- *
- * @param e the min_length
- */
- public void setMin_length(Object e) {
- this.min_length = e;
- }
- /**
- * Sets max_length.
- *
- * @param e the max_length
- */
- public void setMax_length(Object e) {
- this.max_length = e;
- }
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "valid_values=" + valid_values;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.onap.vid.asdc.beans.tosca; +import java.util.List; +import java.util.ArrayList; + +/** + * The Class Constraint. + */ + +public class Constraint { + private List<Object> valid_values; + private Object equal; + private Object greater_than; + private Object greater_or_equal; + private Object less_than; + private Object less_or_equal; + private List<Object> in_range; + private Object length; + private Object min_length; + private Object max_length; + + /** + * Instantiates a new Constraint. + */ + public Constraint() { + valid_values = new ArrayList<Object>(); + in_range = new ArrayList<Object>(); + } + + /** + * Gets the valid_values. + * + * @return the valid_values + */ + public List<Object> getvalid_values() { + return valid_values; + } + /** + * Gets equal. + * + * @return equal + */ + public Object getEqual() { + return equal; + } + /** + * Gets greater_than. + * + * @return greater_than + */ + public Object getGreater_than() { + return greater_than; + } + /** + * Gets greater_or_equal. + * + * @return greater_or_equal + */ + public Object getGreater_or_equal() { + return greater_or_equal; + } + /** + * Gets less_than. + * + * @return less_than + */ + public Object getLess_than() { + return less_than; + } + /** + * Gets less_or_equal. + * + * @return less_or_equal + */ + public Object getLess_or_equal() { + return less_or_equal; + } + /** + * Gets in_range. + * + * @return in_range + */ + public List<Object> getIn_range() { + return in_range; + } + /** + * Gets length. + * + * @return length + */ + public Object getLength() { + return length; + } + /** + * Gets min_length. + * + * @return min_length + */ + public Object getMin_length() { + return min_length; + } + /** + * Gets max_length. + * + * @return max_length + */ + public Object getMax_length() { + return max_length; + } + /** + * Sets the valid_values. + * + * @param op the new valid_values + */ + public void setvalid_values(List<Object> vlist) { + this.valid_values = vlist; + } + /** + * Sets equal. + * + * @param e the new equal + */ + public void setEqual(Object e) { + this.equal = e; + } + /** + * Sets greater_than. + * + * @param e the new greater_than + */ + public void setGreater_than(Object e) { + this.greater_than = e; + } + /** + * Sets less_than. + * + * @param e the new less_than + */ + public void setLess_than(Object e) { + this.less_than = e; + } + /** + * Sets in_range. + * + * @param e the new in_range + */ + public void setIn_range(List<Object> e) { + this.in_range = e; + } + /** + * Sets length. + * + * @param e the length + */ + public void setLength(Object e) { + this.length = e; + } + /** + * Sets min_length. + * + * @param e the min_length + */ + public void setMin_length(Object e) { + this.min_length = e; + } + /** + * Sets max_length. + * + * @param e the max_length + */ + public void setMax_length(Object e) { + this.max_length = e; + } + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return "valid_values=" + valid_values; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Group.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Group.java index 4d31faab1..2685b22b8 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Group.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Group.java @@ -1,135 +1,135 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.util.Collection;
-import java.util.Map;
-
-/**
- * The Class Group.
- */
-public class Group {
-
- /** The type. */
- private String type;
-
- /** The members. */
- private Collection<String> members;
-
- /** The metadata. */
- private ToscaMetadata metadata;
-
- /** The vf module type. */
- private String vf_module_type;
-
- /** The properties. */
- private Map<String, Object> properties;
-
- /**
- * Gets the metadata.
- *
- * @return the metadata
- */
- public ToscaMetadata getMetadata() {
- return metadata;
- }
-
- /**
- * Sets the metadata.
- *
- * @param metadata the new metadata
- */
- public void setMetadata(ToscaMetadata metadata) {
- this.metadata = metadata;
- }
-
- /**
- * Gets the members.
- *
- * @return the members
- */
- public Collection<String> getMembers() {
- return members;
- }
-
- /**
- * Sets the members.
- *
- * @param members the new members
- */
- public void setMembers(Collection<String> members) {
- this.members = members;
- }
-
- /**
- * Gets the type.
- *
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * Sets the type.
- *
- * @param type the new type
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * Gets the vf module type.
- *
- * @return the vf module type
- */
- public String getvf_module_type() {
- return vf_module_type;
- }
-
- /**
- * Sets the vf module type.
- *
- * @param vf_module_type the new vf module type
- */
- public void setvf_module_type(String vf_module_type) {
- this.vf_module_type = vf_module_type;
- }
-
- /**
- * Gets the properties.
- *
- * @return the properties
- */
- public Map<String, Object> getProperties() {
- return properties;
- }
-
- /**
- * Sets the properties.
- *
- * @param properties the properties
- */
- public void setProperties(Map<String, Object> properties) {
- this.properties = properties;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.util.Collection; +import java.util.Map; + +/** + * The Class Group. + */ +public class Group { + + /** The type. */ + private String type; + + /** The members. */ + private Collection<String> members; + + /** The metadata. */ + private ToscaMetadata metadata; + + /** The vf module type. */ + private String vf_module_type; + + /** The properties. */ + private Map<String, Object> properties; + + /** + * Gets the metadata. + * + * @return the metadata + */ + public ToscaMetadata getMetadata() { + return metadata; + } + + /** + * Sets the metadata. + * + * @param metadata the new metadata + */ + public void setMetadata(ToscaMetadata metadata) { + this.metadata = metadata; + } + + /** + * Gets the members. + * + * @return the members + */ + public Collection<String> getMembers() { + return members; + } + + /** + * Sets the members. + * + * @param members the new members + */ + public void setMembers(Collection<String> members) { + this.members = members; + } + + /** + * Gets the type. + * + * @return the type + */ + public String getType() { + return type; + } + + /** + * Sets the type. + * + * @param type the new type + */ + public void setType(String type) { + this.type = type; + } + + /** + * Gets the vf module type. + * + * @return the vf module type + */ + public String getvf_module_type() { + return vf_module_type; + } + + /** + * Sets the vf module type. + * + * @param vf_module_type the new vf module type + */ + public void setvf_module_type(String vf_module_type) { + this.vf_module_type = vf_module_type; + } + + /** + * Gets the properties. + * + * @return the properties + */ + public Map<String, Object> getProperties() { + return properties; + } + + /** + * Sets the properties. + * + * @param properties the properties + */ + public void setProperties(Map<String, Object> properties) { + this.properties = properties; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Import.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Import.java index d64a58066..dcd66e605 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Import.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Import.java @@ -1,48 +1,48 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-/**
- * The Class Import.
- */
-public class Import {
-
- /** The file. */
- private String file;
-
- /**
- * Gets the file.
- *
- * @return the file
- */
- public String getFile() {
- return file;
- }
-
- /**
- * Sets the file.
- *
- * @param file the new file
- */
- public void setFile(String file) {
- this.file = file;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +/** + * The Class Import. + */ +public class Import { + + /** The file. */ + private String file; + + /** + * Gets the file. + * + * @return the file + */ + public String getFile() { + return file; + } + + /** + * Sets the file. + * + * @param file the new file + */ + public void setFile(String file) { + this.file = file; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Input.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java index e5eec0121..e485a65e2 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Input.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java @@ -1,168 +1,168 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import org.openecomp.sdc.toscaparser.api.elements.constraints.*;
-
-import java.util.List;
-import java.util.ArrayList;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class Input.
- */
-public class Input {
-
- /** The type. */
- private String type;
-
- /** The description. */
- private String description;
-
- /** The default. */
- private Object _default;
-
- /** The entry schema. */
- private Input entry_schema;
-
- /** The constraints */
- private List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> constraints;
-
- /** The required field. If not set, the default is true */
- private boolean required = true;
-
- /**
- * Instantiates a new input.
- */
- public Input() {
- constraints = new ArrayList<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint>();
- }
-
- /**
- * Gets the type.
- *
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * Sets the type.
- *
- * @param type the new type
- */
- public void setType(String type) {
- this.type = type;
- }
- /**
- * Gets the required field.
- *
- * @return the required field
- */
- public boolean getRequired() {
- return required;
- }
- /**
- * Sets the required value.
- *
- * @param required the new required value
- */
- public void setRequired(boolean required) {
- this.required = required;
- }
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Gets the default.
- *
- * @return the default
- */
- public Object getDefault() {
- return _default;
- }
-
- /**
- * Sets the default.
- *
- * @param _default the new default
- */
- public void setDefault(Object _default) {
- this._default = _default;
- }
-
- /**
- * Gets the entry schema.
- *
- * @return the entry schema
- */
- public Input getentry_schema() {
- return entry_schema;
- }
- /**
- * Sets the entry schema.
- *
- * @param the entry schema
- */
- public void setentry_schema(Input s) {
- this.entry_schema = s;
- }
- /**
- * Sets the constraints.
- *
- * @param c the new constraints
- */
- public void setConstraints(List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> c) {
- this.constraints = c;
- }
- /**
- * Gets the constraints
- *
- * @return the constraints
- */
- public List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() {
- return constraints;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "type=" + type + ",description=" + description + ",default=" + _default;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import org.openecomp.sdc.toscaparser.api.elements.constraints.*; + +import java.util.List; +import java.util.ArrayList; + +// TODO: Auto-generated Javadoc +/** + * The Class Input. + */ +public class Input { + + /** The type. */ + private String type; + + /** The description. */ + private String description; + + /** The default. */ + private Object _default; + + /** The entry schema. */ + private Input entry_schema; + + /** The constraints */ + private List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> constraints; + + /** The required field. If not set, the default is true */ + private boolean required = true; + + /** + * Instantiates a new input. + */ + public Input() { + constraints = new ArrayList<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint>(); + } + + /** + * Gets the type. + * + * @return the type + */ + public String getType() { + return type; + } + + /** + * Sets the type. + * + * @param type the new type + */ + public void setType(String type) { + this.type = type; + } + /** + * Gets the required field. + * + * @return the required field + */ + public boolean getRequired() { + return required; + } + /** + * Sets the required value. + * + * @param required the new required value + */ + public void setRequired(boolean required) { + this.required = required; + } + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Gets the default. + * + * @return the default + */ + public Object getDefault() { + return _default; + } + + /** + * Sets the default. + * + * @param _default the new default + */ + public void setDefault(Object _default) { + this._default = _default; + } + + /** + * Gets the entry schema. + * + * @return the entry schema + */ + public Input getentry_schema() { + return entry_schema; + } + /** + * Sets the entry schema. + * + * @param the entry schema + */ + public void setentry_schema(Input s) { + this.entry_schema = s; + } + /** + * Sets the constraints. + * + * @param c the new constraints + */ + public void setConstraints(List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> c) { + this.constraints = c; + } + /** + * Gets the constraints + * + * @return the constraints + */ + public List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() { + return constraints; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return "type=" + type + ",description=" + description + ",default=" + _default; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/NodeTemplate.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/NodeTemplate.java index 97740b3f5..28210b2ec 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/NodeTemplate.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/NodeTemplate.java @@ -1,117 +1,117 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.util.Map;
-import java.util.HashMap;
-
-/**
- * The Class NodeTemplate.
- */
-public class NodeTemplate {
-
- /** The type. */
- private String type;
-
- /** The metadata. */
- private ToscaMetadata metadata;
-
- /** The properties. */
- private Map<String, Object> properties; //HEAT?
-
- /** The requirements. */
- private Object requirements;
-
- public NodeTemplate () {
- properties = new HashMap<String,Object>();
- }
- /**
- * Gets the type.
- *
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * Sets the type.
- *
- * @param type the new type
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * Gets the metadata.
- *
- * @return the metadata
- */
- public ToscaMetadata getMetadata() {
- return metadata;
- }
-
- /**
- * Sets the metadata.
- *
- * @param metadata the new metadata
- */
- public void setMetadata(ToscaMetadata metadata) {
- this.metadata = metadata;
- }
-
- /**
- * Gets the properties.
- *
- * @return the properties
- */
- public Map<String, Object> getProperties() {
- return properties;
- }
-
- /**
- * Sets the properties.
- *
- * @param properties the properties
- */
- public void setProperties(Map<String, Object> properties) {
- this.properties = properties;
- }
-
- /**
- * Gets the requirements.
- *
- * @return the requirements
- */
- public Object getRequirements() {
- return requirements;
- }
-
- /**
- * Sets the requirements.
- *
- * @param requirements the new requirements
- */
- public void setRequirements(Object requirements) {
- this.requirements = requirements;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.util.Map; +import java.util.HashMap; + +/** + * The Class NodeTemplate. + */ +public class NodeTemplate { + + /** The type. */ + private String type; + + /** The metadata. */ + private ToscaMetadata metadata; + + /** The properties. */ + private Map<String, Object> properties; //HEAT? + + /** The requirements. */ + private Object requirements; + + public NodeTemplate () { + properties = new HashMap<String,Object>(); + } + /** + * Gets the type. + * + * @return the type + */ + public String getType() { + return type; + } + + /** + * Sets the type. + * + * @param type the new type + */ + public void setType(String type) { + this.type = type; + } + + /** + * Gets the metadata. + * + * @return the metadata + */ + public ToscaMetadata getMetadata() { + return metadata; + } + + /** + * Sets the metadata. + * + * @param metadata the new metadata + */ + public void setMetadata(ToscaMetadata metadata) { + this.metadata = metadata; + } + + /** + * Gets the properties. + * + * @return the properties + */ + public Map<String, Object> getProperties() { + return properties; + } + + /** + * Sets the properties. + * + * @param properties the properties + */ + public void setProperties(Map<String, Object> properties) { + this.properties = properties; + } + + /** + * Gets the requirements. + * + * @return the requirements + */ + public Object getRequirements() { + return requirements; + } + + /** + * Sets the requirements. + * + * @param requirements the new requirements + */ + public void setRequirements(Object requirements) { + this.requirements = requirements; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Property.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Property.java index 16b921e2a..107f5c82f 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Property.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Property.java @@ -1,157 +1,157 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-/**
- * The Class Property.
- */
-public class Property {
-
- /** The type. */
- private String type;
-
- /** The description. */
- private String description;
-
- /** The entry schema. */
- private Schema entry_schema;
-
- /** The default. */
- private String _default;
-
- /** The required. */
- private boolean required;
-
- /**
- * Instantiates a new property.
- */
- private Property() {}
-
- /**
- * Gets the type.
- *
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Gets the entry schema.
- *
- * @return the entry schema
- */
- public Schema getEntry_schema() {
- return entry_schema;
- }
-
- /**
- * Gets the default.
- *
- * @return the default
- */
- public String get_default() {
- return _default;
- }
-
- /**
- * Sets the type.
- *
- * @param type the new type
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Sets the entry schema.
- *
- * @param entry_schema the new entry schema
- */
- public void setEntry_schema(Schema entry_schema) {
- this.entry_schema = entry_schema;
- }
-
- /**
- * Sets the default.
- *
- * @param _default the new default
- */
- public void set_default(String _default) {
- this._default = _default;
- }
-
- /**
- * Gets the default.
- *
- * @return the default
- */
- public String getDefault() {
- return _default;
- }
-
- /**
- * Checks if is required.
- *
- * @return true, if is required
- */
- public boolean isRequired() {
- return required;
- }
-
- /**
- * Sets the default.
- *
- * @param _default the new default
- */
- public void setDefault(String _default) {
- this._default = _default;
- }
-
- /**
- * Sets the required.
- *
- * @param required the new required
- */
- public void setRequired(boolean required) {
- this.required = required;
- }
-
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +/** + * The Class Property. + */ +public class Property { + + /** The type. */ + private String type; + + /** The description. */ + private String description; + + /** The entry schema. */ + private Schema entry_schema; + + /** The default. */ + private String _default; + + /** The required. */ + private boolean required; + + /** + * Instantiates a new property. + */ + private Property() {} + + /** + * Gets the type. + * + * @return the type + */ + public String getType() { + return type; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Gets the entry schema. + * + * @return the entry schema + */ + public Schema getEntry_schema() { + return entry_schema; + } + + /** + * Gets the default. + * + * @return the default + */ + public String get_default() { + return _default; + } + + /** + * Sets the type. + * + * @param type the new type + */ + public void setType(String type) { + this.type = type; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Sets the entry schema. + * + * @param entry_schema the new entry schema + */ + public void setEntry_schema(Schema entry_schema) { + this.entry_schema = entry_schema; + } + + /** + * Sets the default. + * + * @param _default the new default + */ + public void set_default(String _default) { + this._default = _default; + } + + /** + * Gets the default. + * + * @return the default + */ + public String getDefault() { + return _default; + } + + /** + * Checks if is required. + * + * @return true, if is required + */ + public boolean isRequired() { + return required; + } + + /** + * Sets the default. + * + * @param _default the new default + */ + public void setDefault(String _default) { + this._default = _default; + } + + /** + * Sets the required. + * + * @param required the new required + */ + public void setRequired(boolean required) { + this.required = required; + } + + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Requirement.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Requirement.java index acb250997..0c2f88493 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Requirement.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Requirement.java @@ -1,120 +1,120 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.util.Collection;
-
-/**
- * The Class Requirement.
- */
-public class Requirement {
-
- /** The occurrences. */
- private Collection<String> occurrences;
-
- /** The capability. */
- private String capability;
-
- /** The node. */
- private String node;
-
- /** The relationship. */
- private String relationship;
-
- /**
- * Instantiates a new requirement.
- */
- private Requirement() {}
-
- /**
- * Gets the occurrences.
- *
- * @return the occurrences
- */
- public Collection<String> getOccurrences() {
- return occurrences;
- }
-
- /**
- * Gets the capability.
- *
- * @return the capability
- */
- public String getCapability() {
- return capability;
- }
-
- /**
- * Gets the node.
- *
- * @return the node
- */
- public String getNode() {
- return node;
- }
-
- /**
- * Gets the relationship.
- *
- * @return the relationship
- */
- public String getRelationship() {
- return relationship;
- }
-
- /**
- * Sets the occurrences.
- *
- * @param occurrences the new occurrences
- */
- public void setOccurrences(Collection<String> occurrences) {
- this.occurrences = occurrences;
- }
-
- /**
- * Sets the capability.
- *
- * @param capability the new capability
- */
- public void setCapability(String capability) {
- this.capability = capability;
- }
-
- /**
- * Sets the node.
- *
- * @param node the new node
- */
- public void setNode(String node) {
- this.node = node;
- }
-
- /**
- * Sets the relationship.
- *
- * @param relationship the new relationship
- */
- public void setRelationship(String relationship) {
- this.relationship = relationship;
- }
-
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.util.Collection; + +/** + * The Class Requirement. + */ +public class Requirement { + + /** The occurrences. */ + private Collection<String> occurrences; + + /** The capability. */ + private String capability; + + /** The node. */ + private String node; + + /** The relationship. */ + private String relationship; + + /** + * Instantiates a new requirement. + */ + private Requirement() {} + + /** + * Gets the occurrences. + * + * @return the occurrences + */ + public Collection<String> getOccurrences() { + return occurrences; + } + + /** + * Gets the capability. + * + * @return the capability + */ + public String getCapability() { + return capability; + } + + /** + * Gets the node. + * + * @return the node + */ + public String getNode() { + return node; + } + + /** + * Gets the relationship. + * + * @return the relationship + */ + public String getRelationship() { + return relationship; + } + + /** + * Sets the occurrences. + * + * @param occurrences the new occurrences + */ + public void setOccurrences(Collection<String> occurrences) { + this.occurrences = occurrences; + } + + /** + * Sets the capability. + * + * @param capability the new capability + */ + public void setCapability(String capability) { + this.capability = capability; + } + + /** + * Sets the node. + * + * @param node the new node + */ + public void setNode(String node) { + this.node = node; + } + + /** + * Sets the relationship. + * + * @param relationship the new relationship + */ + public void setRelationship(String relationship) { + this.relationship = relationship; + } + + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Schema.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Schema.java index f77c1b4b5..7bf347708 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/Schema.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Schema.java @@ -1,53 +1,53 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-/**
- * The Class Schema.
- */
-public class Schema {
-
- /** The type. */
- public String type;
-
- /**
- * Instantiates a new schema.
- */
- public Schema() {}
-
- /**
- * Gets the type.
- *
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * Sets the type.
- *
- * @param type the new type
- */
- public void setType(String type) {
- this.type = type;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +/** + * The Class Schema. + */ +public class Schema { + + /** The type. */ + public String type; + + /** + * Instantiates a new schema. + */ + public Schema() {} + + /** + * Gets the type. + * + * @return the type + */ + public String getType() { + return type; + } + + /** + * Sets the type. + * + * @param type the new type + */ + public void setType(String type) { + this.type = type; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/SubstitutionMappings.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/SubstitutionMappings.java index f59f24674..70779c5f2 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/SubstitutionMappings.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/SubstitutionMappings.java @@ -1,101 +1,101 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * The Class SubstitutionMappings.
- */
-public class SubstitutionMappings {
-
- /** The node type. */
- private String node_type;
-
- /** The capabilities. */
- private Map<String, Object> capabilities;
-
- /** The requirements. */
- private Map<String, Object> requirements;
-
- /**
- * Instantiates a new substitution mappings.
- */
- public SubstitutionMappings() {
- capabilities = new HashMap<String, Object> ();
- requirements = new HashMap<String, Object> ();
- }
-
- /**
- * Gets the node type.
- *
- * @return the node type
- */
- public String getnode_type() {
- return node_type;
- }
-
- /**
- * Sets the node type.
- *
- * @param node_type the new node type
- */
- public void setnode_type(String node_type) {
- this.node_type = node_type;
- }
-
- /**
- * Gets the capabilities.
- *
- * @return the capabilities
- */
- public Map<String, Object> getCapabilities() {
- return capabilities;
- }
-
- /**
- * Sets the capabilities.
- *
- * @param capabilities the capabilities
- */
- public void setCapabilities(Map<String, Object> capabilities) {
- this.capabilities = capabilities;
- }
-
- /**
- * Gets the requirements.
- *
- * @return the requirements
- */
- public Map<String, Object> getRequirements() {
- return requirements;
- }
-
- /**
- * Sets the requirements.
- *
- * @param requirements the requirements
- */
- public void setRequirements(Map<String, Object> requirements) {
- this.requirements = requirements;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.util.HashMap; +import java.util.Map; + +/** + * The Class SubstitutionMappings. + */ +public class SubstitutionMappings { + + /** The node type. */ + private String node_type; + + /** The capabilities. */ + private Map<String, Object> capabilities; + + /** The requirements. */ + private Map<String, Object> requirements; + + /** + * Instantiates a new substitution mappings. + */ + public SubstitutionMappings() { + capabilities = new HashMap<String, Object> (); + requirements = new HashMap<String, Object> (); + } + + /** + * Gets the node type. + * + * @return the node type + */ + public String getnode_type() { + return node_type; + } + + /** + * Sets the node type. + * + * @param node_type the new node type + */ + public void setnode_type(String node_type) { + this.node_type = node_type; + } + + /** + * Gets the capabilities. + * + * @return the capabilities + */ + public Map<String, Object> getCapabilities() { + return capabilities; + } + + /** + * Sets the capabilities. + * + * @param capabilities the capabilities + */ + public void setCapabilities(Map<String, Object> capabilities) { + this.capabilities = capabilities; + } + + /** + * Gets the requirements. + * + * @return the requirements + */ + public Map<String, Object> getRequirements() { + return requirements; + } + + /** + * Sets the requirements. + * + * @param requirements the requirements + */ + public void setRequirements(Map<String, Object> requirements) { + this.requirements = requirements; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/TopologyTemplate.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/TopologyTemplate.java index 25b2c2c38..70830715e 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/TopologyTemplate.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/TopologyTemplate.java @@ -1,124 +1,124 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * The Class TopologyTemplate.
- */
-public class TopologyTemplate {
-
- /** The substitution mappings. */
- private SubstitutionMappings substitution_mappings;
-
- /** The inputs. */
- private Map<String, Input> inputs;
-
- /** The node templates. */
- private Map<String, NodeTemplate> node_templates;
-
- /** The groups. */
- private Map<String, Group> groups;
-
- /**
- * Instantiates a new topology template.
- */
- public TopologyTemplate() {
- substitution_mappings = new SubstitutionMappings();
- inputs = new HashMap<String, Input> ();
- node_templates = new HashMap<String, NodeTemplate> ();
- groups = new HashMap<String, Group> ();
- }
-
- /**
- * Gets the substitution mappings.
- *
- * @return the substitution mappings
- */
- public SubstitutionMappings getsubstitution_mappings() {
- return this.substitution_mappings;
- }
-
- /**
- * Sets the substitution mappings.
- *
- * @param substitution_mappings the new substitution mappings
- */
- public void setsubstitution_mappings(SubstitutionMappings substitution_mappings) {
- this.substitution_mappings = substitution_mappings;
- }
-
- /**
- * Gets the inputs.
- *
- * @return the inputs
- */
- public Map<String, Input> getInputs() {
- return inputs;
- }
-
- /**
- * Sets the inputs.
- *
- * @param inputs the inputs
- */
- public void setInputs(Map<String, Input> inputs) {
- this.inputs = inputs;
- }
-
- /**
- * Gets the node templates.
- *
- * @return the node templates
- */
- public Map<String, NodeTemplate> getnode_templates() {
- return node_templates;
- }
-
- /**
- * Setnode templates.
- *
- * @param node_templates the node templates
- */
- public void setnode_templates(Map<String, NodeTemplate> node_templates) {
- this.node_templates = node_templates;
- }
-
- /**
- * Gets the groups.
- *
- * @return the groups
- */
- public Map<String, Group> getGroups() {
- return groups;
- }
-
- /**
- * Sets the groups.
- *
- * @param groups the groups
- */
- public void setGroups(Map<String, Group> groups) {
- this.groups = groups;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.util.HashMap; +import java.util.Map; + +/** + * The Class TopologyTemplate. + */ +public class TopologyTemplate { + + /** The substitution mappings. */ + private SubstitutionMappings substitution_mappings; + + /** The inputs. */ + private Map<String, Input> inputs; + + /** The node templates. */ + private Map<String, NodeTemplate> node_templates; + + /** The groups. */ + private Map<String, Group> groups; + + /** + * Instantiates a new topology template. + */ + public TopologyTemplate() { + substitution_mappings = new SubstitutionMappings(); + inputs = new HashMap<String, Input> (); + node_templates = new HashMap<String, NodeTemplate> (); + groups = new HashMap<String, Group> (); + } + + /** + * Gets the substitution mappings. + * + * @return the substitution mappings + */ + public SubstitutionMappings getsubstitution_mappings() { + return this.substitution_mappings; + } + + /** + * Sets the substitution mappings. + * + * @param substitution_mappings the new substitution mappings + */ + public void setsubstitution_mappings(SubstitutionMappings substitution_mappings) { + this.substitution_mappings = substitution_mappings; + } + + /** + * Gets the inputs. + * + * @return the inputs + */ + public Map<String, Input> getInputs() { + return inputs; + } + + /** + * Sets the inputs. + * + * @param inputs the inputs + */ + public void setInputs(Map<String, Input> inputs) { + this.inputs = inputs; + } + + /** + * Gets the node templates. + * + * @return the node templates + */ + public Map<String, NodeTemplate> getnode_templates() { + return node_templates; + } + + /** + * Setnode templates. + * + * @param node_templates the node templates + */ + public void setnode_templates(Map<String, NodeTemplate> node_templates) { + this.node_templates = node_templates; + } + + /** + * Gets the groups. + * + * @return the groups + */ + public Map<String, Group> getGroups() { + return groups; + } + + /** + * Sets the groups. + * + * @param groups the groups + */ + public void setGroups(Map<String, Group> groups) { + this.groups = groups; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/ToscaCsar.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/ToscaCsar.java index 9e9e1d00b..678583573 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/ToscaCsar.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/ToscaCsar.java @@ -1,101 +1,101 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.util.Collection;
-import java.util.LinkedList;
-
-/**
- * The Class ToscaCsar.
- */
-public class ToscaCsar {
-
- /** The parent. */
- private final ToscaModel parent;
-
- /** The children. */
- private final Collection<ToscaModel> children;
-
- /**
- * The Class Builder.
- */
- public static class Builder {
-
- /** The parent. */
- private final ToscaModel parent;
-
- /** The children. */
- private Collection<ToscaModel> children = new LinkedList<ToscaModel> ();
-
- /**
- * Instantiates a new builder.
- *
- * @param parent the parent
- */
- public Builder(ToscaModel parent) {
- this.parent = parent;
- }
-
- /**
- * Adds the vnf.
- *
- * @param child the child
- * @return the builder
- */
- public Builder addVnf(ToscaModel child) {
- children.add(child);
- return this;
- }
-
- /**
- * Builds the.
- *
- * @return the tosca csar
- */
- public ToscaCsar build() {
- return new ToscaCsar(this);
- }
- }
-
- /**
- * Instantiates a new tosca csar.
- *
- * @param builder the builder
- */
- public ToscaCsar(Builder builder) {
- this.parent = builder.parent;
- this.children = builder.children;
- }
-
- /**
- * Gets the parent.
- *
- * @return the parent
- */
- public ToscaModel getParent() { return parent; }
-
- /**
- * Gets the children.
- *
- * @return the children
- */
- public Collection<ToscaModel> getChildren() { return children; }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.util.Collection; +import java.util.LinkedList; + +/** + * The Class ToscaCsar. + */ +public class ToscaCsar { + + /** The parent. */ + private final ToscaModel parent; + + /** The children. */ + private final Collection<ToscaModel> children; + + /** + * The Class Builder. + */ + public static class Builder { + + /** The parent. */ + private final ToscaModel parent; + + /** The children. */ + private Collection<ToscaModel> children = new LinkedList<ToscaModel> (); + + /** + * Instantiates a new builder. + * + * @param parent the parent + */ + public Builder(ToscaModel parent) { + this.parent = parent; + } + + /** + * Adds the vnf. + * + * @param child the child + * @return the builder + */ + public Builder addVnf(ToscaModel child) { + children.add(child); + return this; + } + + /** + * Builds the. + * + * @return the tosca csar + */ + public ToscaCsar build() { + return new ToscaCsar(this); + } + } + + /** + * Instantiates a new tosca csar. + * + * @param builder the builder + */ + public ToscaCsar(Builder builder) { + this.parent = builder.parent; + this.children = builder.children; + } + + /** + * Gets the parent. + * + * @return the parent + */ + public ToscaModel getParent() { return parent; } + + /** + * Gets the children. + * + * @return the children + */ + public Collection<ToscaModel> getChildren() { return children; } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/ToscaMeta.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/ToscaMeta.java index a5295c476..a7a6c6296 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/ToscaMeta.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/ToscaMeta.java @@ -1,124 +1,124 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.openecomp.vid.asdc.AsdcCatalogException;
-
-/**
- * The Class ToscaMeta.
- */
-public class ToscaMeta {
-
- /** The metadata. */
- private final Map<String, String> metadata;
-
- /**
- * Instantiates a new tosca meta.
- *
- * @param builder the builder
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws AsdcCatalogException the asdc catalog exception
- */
- private ToscaMeta(Builder builder) throws IOException, AsdcCatalogException {
- metadata = new HashMap<String, String> ();
-
- read(builder.inputStream);
- }
-
- /**
- * The Class Builder.
- */
- public static class Builder {
-
- /** The input stream. */
- private final InputStream inputStream;
-
- /**
- * Instantiates a new builder.
- *
- * @param inputStream the input stream
- */
- public Builder(InputStream inputStream) {
- this.inputStream = inputStream;
- }
-
- /**
- * Builds the.
- *
- * @return the tosca meta
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws AsdcCatalogException the asdc catalog exception
- */
- public ToscaMeta build() throws IOException, AsdcCatalogException {
- return new ToscaMeta(this);
- }
- }
-
- /**
- * Gets the.
- *
- * @param property the property
- * @return the string
- */
- public String get(String property) {
- return metadata.get(property);
- }
-
- /**
- * Read.
- *
- * @param inputStream the input stream
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws AsdcCatalogException the asdc catalog exception
- */
- private void read(InputStream inputStream) throws IOException, AsdcCatalogException {
-
- final BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));
-
- String line;
-
- try {
- while ((line = br.readLine()) != null) {
- if ( line.length() > 0 ) {
- final String[] entry = line.split(":");
-
- if (entry.length != 2) throw new AsdcCatalogException("TOSCA.meta file cannot be parsed (more than 1 colon found on a single line");
- if (!entry[1].startsWith(" ")) throw new AsdcCatalogException("TOSCA.meta file cannot be parsed (: not immediately followed by ' ')");
-
- metadata.put(entry[0], entry[1].substring(1));
- }
- }
- } catch (IOException e) {
- metadata.clear();
- throw e;
- } catch (AsdcCatalogException e) {
- metadata.clear();
- throw e;
- }
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.util.HashMap; +import java.util.Map; + +import org.onap.vid.asdc.AsdcCatalogException; + +/** + * The Class ToscaMeta. + */ +public class ToscaMeta { + + /** The metadata. */ + private final Map<String, String> metadata; + + /** + * Instantiates a new tosca meta. + * + * @param builder the builder + * @throws IOException Signals that an I/O exception has occurred. + * @throws AsdcCatalogException the asdc catalog exception + */ + private ToscaMeta(Builder builder) throws IOException, AsdcCatalogException { + metadata = new HashMap<String, String> (); + + read(builder.inputStream); + } + + /** + * The Class Builder. + */ + public static class Builder { + + /** The input stream. */ + private final InputStream inputStream; + + /** + * Instantiates a new builder. + * + * @param inputStream the input stream + */ + public Builder(InputStream inputStream) { + this.inputStream = inputStream; + } + + /** + * Builds the. + * + * @return the tosca meta + * @throws IOException Signals that an I/O exception has occurred. + * @throws AsdcCatalogException the asdc catalog exception + */ + public ToscaMeta build() throws IOException, AsdcCatalogException { + return new ToscaMeta(this); + } + } + + /** + * Gets the. + * + * @param property the property + * @return the string + */ + public String get(String property) { + return metadata.get(property); + } + + /** + * Read. + * + * @param inputStream the input stream + * @throws IOException Signals that an I/O exception has occurred. + * @throws AsdcCatalogException the asdc catalog exception + */ + private void read(InputStream inputStream) throws IOException, AsdcCatalogException { + + final BufferedReader br = new BufferedReader(new InputStreamReader(inputStream)); + + String line; + + try { + while ((line = br.readLine()) != null) { + if ( line.length() > 0 ) { + final String[] entry = line.split(":"); + + if (entry.length != 2) throw new AsdcCatalogException("TOSCA.meta file cannot be parsed (more than 1 colon found on a single line"); + if (!entry[1].startsWith(" ")) throw new AsdcCatalogException("TOSCA.meta file cannot be parsed (: not immediately followed by ' ')"); + + metadata.put(entry[0], entry[1].substring(1)); + } + } + } catch (IOException e) { + metadata.clear(); + throw e; + } catch (AsdcCatalogException e) { + metadata.clear(); + throw e; + } + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/ToscaMetadata.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/ToscaMetadata.java index d42c1f150..32e9fbac6 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/ToscaMetadata.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/ToscaMetadata.java @@ -1,461 +1,461 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-/**
- * The Class ToscaMetadata.
- */
-public class ToscaMetadata {
-
- /** The template name. */
- private String template_name;
-
- /** The invariant UUID. */
- private String invariantUUID;
-
- /** The customization UUID. */
- private String customizationUUID;
-
- /** The uuid. */
- private String uuid;
-
- /** The version. */
- private String version;
-
- /** The name. */
- private String name;
-
- /** The description. */
- private String description;
-
- /** The category. */
- private String category;
-
- /** The subcategory. */
- private String subcategory;
-
- /** The type. */
- private String type;
-
- /** The resource vendor. */
- private String resourceVendor;
-
- /** The resource vendor release. */
- private String resourceVendorRelease;
-
- /** The service ecomp naming. */
- private String serviceEcompNaming;
-
- /** The ecomp generated naming - duplicate for serviceEcompNaming */
- private boolean ecompGeneratedNaming;
-
- /** The naming policy */
- private String namingPolicy;
-
- /** The service homing. */
- private boolean serviceHoming;
-
- /** The vf module model name. */
- //ToscaMetadata for VF Modules
- private String vfModuleModelName;
-
- /** The vf module model invariant UUID. */
- private String vfModuleModelInvariantUUID;
-
- /** The vf module model customization UUID. */
- private String vfModuleModelCustomizationUUID;
-
- /** The vf module model UUID. */
- private String vfModuleModelUUID;
-
- /** The vf module model version. */
- private String vfModuleModelVersion;
-
- /**
- * Instantiates a new tosca metadata.
- */
- public ToscaMetadata() {}
-
- /**
- * Gets the type.
- *
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * Gets the invariant UUID.
- *
- * @return the invariant UUID
- */
- public String getInvariantUUID() {
- return invariantUUID;
- }
- /**
- * Gets the customization UUID.
- *
- * @return the customization UUID
- */
- public String getCustomizationUUID() {
- return customizationUUID;
- }
- /**
- * Gets the uuid.
- *
- * @return the uuid
- */
- public String getUUID() {
- return uuid;
- }
-
- /**
- * Gets the version.
- *
- * @return the version
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * Gets the name.
- *
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Gets the category.
- *
- * @return the category
- */
- public String getCategory() {
- return category;
- }
-
- /**
- * Gets the subcategory.
- *
- * @return the subcategory
- */
- public String getSubcategory() {
- return subcategory;
- }
-
- /**
- * Gets the resource vendor.
- *
- * @return the resource vendor
- */
- public String getResourceVendor() {
- return resourceVendor;
- }
-
- /**
- * Gets the resource vendor release.
- *
- * @return the resource vendor release
- */
- public String getResourceVendorRelease() {
- return resourceVendorRelease;
- }
-
- /**
- * Returns the value of service ecomp naming.
- *
- * @return serviceEcompNaming
- */
- public String getServiceEcompNaming() {
- return serviceEcompNaming;
- }
- /**
- * Returns the value of the naming policy.
- *
- * @return namingPolicy
- */
- public String getNamingPolicy() {
- return namingPolicy;
- }
- /**
- * Checks if is service homing.
- *
- * @return true, if is service homing
- */
- public boolean isServiceHoming() {
- return serviceHoming;
- }
- /**
- * Checks if is ecomp generated naming.
- *
- * @return true, if ecomp generated naming is true
- */
- public boolean isEcompGeneratedNaming() {
- return ecompGeneratedNaming;
- }
- /**
- * Sets the type.
- *
- * @param type the new type
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * Sets the invariant UUID.
- *
- * @param invariantUUID the new invariant UUID
- */
- public void setInvariantUUID(String invariantUUID) {
- this.invariantUUID = invariantUUID;
- }
- /**
- * Sets the naming policy.
- *
- * @param namingPolicy the new naming policy
- */
- public void setNamingPolicy(String namingPolicy) {
- this.namingPolicy = namingPolicy;
- }
- /**
- * Sets the uuid.
- *
- * @param uuid the new uuid
- */
- public void setUUID(String uuid) {
- this.uuid = uuid;
- }
- /**
- * Sets the customization uuid.
- *
- * @param u the new customization uuid
- */
- public void setCustomizationUUID(String u) {
- this.customizationUUID = u;
- }
- /**
- * Sets the version.
- *
- * @param version the new version
- */
- public void setVersion(String version) {
- this.version = version;
- }
-
- /**
- * Sets the name.
- *
- * @param name the new name
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Sets the category.
- *
- * @param category the new category
- */
- public void setCategory(String category) {
- this.category = category;
- }
-
- /**
- * Sets the service ecomp naming.
- *
- * @param serviceEcompNaming the new service ecomp naming
- */
- public void setServiceEcompNaming(String serviceEcompNaming) {
- this.serviceEcompNaming = serviceEcompNaming;
- }
-
- /**
- * Sets the service homing.
- *
- * @param serviceHoming the new service homing
- */
- public void setServiceHoming(boolean serviceHoming) {
- this.serviceHoming = serviceHoming;
- }
- /**
- * Sets the ecomp generated naming.
- *
- * @param ecompGeneratedNaming the new ecomp generated naming
- */
- public void setEcompGeneratedNaming(boolean ecompGeneratedNaming) {
- this.ecompGeneratedNaming = ecompGeneratedNaming;
- }
- /**
- * Gets the template name.
- *
- * @return the template name
- */
- public String gettemplate_name() {
- return template_name;
- }
-
- /**
- * Sets the template name.
- *
- * @param template_name the new template name
- */
- public void settemplate_name(String template_name) {
- this.template_name = template_name;
- }
-
- /**
- * Sets the subcategory.
- *
- * @param subcategory the new subcategory
- */
- public void setSubcategory(String subcategory) {
- this.subcategory = subcategory;
- }
-
- /**
- * Sets the resource vendor.
- *
- * @param resourceVendor the new resource vendor
- */
- public void setResourceVendor(String resourceVendor) {
- this.resourceVendor = resourceVendor;
- }
-
- /**
- * Sets the resource vendor release.
- *
- * @param resourceVendorRelease the new resource vendor release
- */
- public void setResourceVendorRelease(String resourceVendorRelease) {
- this.resourceVendorRelease = resourceVendorRelease;
- }
-
- /**
- * Gets the vf module model name.
- *
- * @return the vf module model name
- */
- public String getVfModuleModelName() {
- return vfModuleModelName;
- }
-
- /**
- * Sets the vf module model name.
- *
- * @param vfModuleModelName the new vf module model name
- */
- public void setVfModuleModelName(String vfModuleModelName) {
- this.vfModuleModelName = vfModuleModelName;
- }
-
- /**
- * Gets the vf module model invariant UUID.
- *
- * @return the vf module model invariant UUID
- */
- public String getVfModuleModelInvariantUUID() {
- return vfModuleModelInvariantUUID;
- }
-
- /**
- * Sets the vf module model invariant UUID.
- *
- * @param vfModuleModelInvariantUUID the new vf module model invariant UUID
- */
- public void setVfModuleModelInvariantUUID(String vfModuleModelInvariantUUID) {
- this.vfModuleModelInvariantUUID = vfModuleModelInvariantUUID;
- }
-
- /**
- * Gets the vf module model UUID.
- *
- * @return the vf module model UUID
- */
- public String getVfModuleModelUUID() {
- return vfModuleModelUUID;
- }
-
- /**
- * Sets the vf module model UUID.
- *
- * @param vfModuleModelUUID the new vf module model UUID
- */
- public void setVfModuleModelUUID(String vfModuleModelUUID) {
- this.vfModuleModelUUID = vfModuleModelUUID;
- }
-
- /**
- * Gets the vf module model version.
- *
- * @return the vf module model version
- */
- public String getVfModuleModelVersion() {
- return vfModuleModelVersion;
- }
-
- /**
- * Sets the vf module model version.
- *
- * @param vfModuleModelVersion the new vf module model version
- */
- public void setVfModuleModelVersion(String vfModuleModelVersion) {
- this.vfModuleModelVersion = vfModuleModelVersion;
- }
- /**
- * Sets the vf module customization uuid.
- *
- * @param u the new vf module model customization uuid
- */
- public void setVfModuleModelCustomizationUUID(String u) {
- this.vfModuleModelCustomizationUUID = u;
- }
- /**
- * Gets the vf module model customization uuid.
- *
- * @return the vf module model customization uuid
- */
- public String getVfModuleModelCustomizationUUID() {
-
- return vfModuleModelCustomizationUUID;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +/** + * The Class ToscaMetadata. + */ +public class ToscaMetadata { + + /** The template name. */ + private String template_name; + + /** The invariant UUID. */ + private String invariantUUID; + + /** The customization UUID. */ + private String customizationUUID; + + /** The uuid. */ + private String uuid; + + /** The version. */ + private String version; + + /** The name. */ + private String name; + + /** The description. */ + private String description; + + /** The category. */ + private String category; + + /** The subcategory. */ + private String subcategory; + + /** The type. */ + private String type; + + /** The resource vendor. */ + private String resourceVendor; + + /** The resource vendor release. */ + private String resourceVendorRelease; + + /** The service ecomp naming. */ + private String serviceEcompNaming; + + /** The ecomp generated naming - duplicate for serviceEcompNaming */ + private boolean ecompGeneratedNaming; + + /** The naming policy */ + private String namingPolicy; + + /** The service homing. */ + private boolean serviceHoming; + + /** The vf module model name. */ + //ToscaMetadata for VF Modules + private String vfModuleModelName; + + /** The vf module model invariant UUID. */ + private String vfModuleModelInvariantUUID; + + /** The vf module model customization UUID. */ + private String vfModuleModelCustomizationUUID; + + /** The vf module model UUID. */ + private String vfModuleModelUUID; + + /** The vf module model version. */ + private String vfModuleModelVersion; + + /** + * Instantiates a new tosca metadata. + */ + public ToscaMetadata() {} + + /** + * Gets the type. + * + * @return the type + */ + public String getType() { + return type; + } + + /** + * Gets the invariant UUID. + * + * @return the invariant UUID + */ + public String getInvariantUUID() { + return invariantUUID; + } + /** + * Gets the customization UUID. + * + * @return the customization UUID + */ + public String getCustomizationUUID() { + return customizationUUID; + } + /** + * Gets the uuid. + * + * @return the uuid + */ + public String getUUID() { + return uuid; + } + + /** + * Gets the version. + * + * @return the version + */ + public String getVersion() { + return version; + } + + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Gets the category. + * + * @return the category + */ + public String getCategory() { + return category; + } + + /** + * Gets the subcategory. + * + * @return the subcategory + */ + public String getSubcategory() { + return subcategory; + } + + /** + * Gets the resource vendor. + * + * @return the resource vendor + */ + public String getResourceVendor() { + return resourceVendor; + } + + /** + * Gets the resource vendor release. + * + * @return the resource vendor release + */ + public String getResourceVendorRelease() { + return resourceVendorRelease; + } + + /** + * Returns the value of service ecomp naming. + * + * @return serviceEcompNaming + */ + public String getServiceEcompNaming() { + return serviceEcompNaming; + } + /** + * Returns the value of the naming policy. + * + * @return namingPolicy + */ + public String getNamingPolicy() { + return namingPolicy; + } + /** + * Checks if is service homing. + * + * @return true, if is service homing + */ + public boolean isServiceHoming() { + return serviceHoming; + } + /** + * Checks if is ecomp generated naming. + * + * @return true, if ecomp generated naming is true + */ + public boolean isEcompGeneratedNaming() { + return ecompGeneratedNaming; + } + /** + * Sets the type. + * + * @param type the new type + */ + public void setType(String type) { + this.type = type; + } + + /** + * Sets the invariant UUID. + * + * @param invariantUUID the new invariant UUID + */ + public void setInvariantUUID(String invariantUUID) { + this.invariantUUID = invariantUUID; + } + /** + * Sets the naming policy. + * + * @param namingPolicy the new naming policy + */ + public void setNamingPolicy(String namingPolicy) { + this.namingPolicy = namingPolicy; + } + /** + * Sets the uuid. + * + * @param uuid the new uuid + */ + public void setUUID(String uuid) { + this.uuid = uuid; + } + /** + * Sets the customization uuid. + * + * @param u the new customization uuid + */ + public void setCustomizationUUID(String u) { + this.customizationUUID = u; + } + /** + * Sets the version. + * + * @param version the new version + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * Sets the name. + * + * @param name the new name + */ + public void setName(String name) { + this.name = name; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Sets the category. + * + * @param category the new category + */ + public void setCategory(String category) { + this.category = category; + } + + /** + * Sets the service ecomp naming. + * + * @param serviceEcompNaming the new service ecomp naming + */ + public void setServiceEcompNaming(String serviceEcompNaming) { + this.serviceEcompNaming = serviceEcompNaming; + } + + /** + * Sets the service homing. + * + * @param serviceHoming the new service homing + */ + public void setServiceHoming(boolean serviceHoming) { + this.serviceHoming = serviceHoming; + } + /** + * Sets the ecomp generated naming. + * + * @param ecompGeneratedNaming the new ecomp generated naming + */ + public void setEcompGeneratedNaming(boolean ecompGeneratedNaming) { + this.ecompGeneratedNaming = ecompGeneratedNaming; + } + /** + * Gets the template name. + * + * @return the template name + */ + public String gettemplate_name() { + return template_name; + } + + /** + * Sets the template name. + * + * @param template_name the new template name + */ + public void settemplate_name(String template_name) { + this.template_name = template_name; + } + + /** + * Sets the subcategory. + * + * @param subcategory the new subcategory + */ + public void setSubcategory(String subcategory) { + this.subcategory = subcategory; + } + + /** + * Sets the resource vendor. + * + * @param resourceVendor the new resource vendor + */ + public void setResourceVendor(String resourceVendor) { + this.resourceVendor = resourceVendor; + } + + /** + * Sets the resource vendor release. + * + * @param resourceVendorRelease the new resource vendor release + */ + public void setResourceVendorRelease(String resourceVendorRelease) { + this.resourceVendorRelease = resourceVendorRelease; + } + + /** + * Gets the vf module model name. + * + * @return the vf module model name + */ + public String getVfModuleModelName() { + return vfModuleModelName; + } + + /** + * Sets the vf module model name. + * + * @param vfModuleModelName the new vf module model name + */ + public void setVfModuleModelName(String vfModuleModelName) { + this.vfModuleModelName = vfModuleModelName; + } + + /** + * Gets the vf module model invariant UUID. + * + * @return the vf module model invariant UUID + */ + public String getVfModuleModelInvariantUUID() { + return vfModuleModelInvariantUUID; + } + + /** + * Sets the vf module model invariant UUID. + * + * @param vfModuleModelInvariantUUID the new vf module model invariant UUID + */ + public void setVfModuleModelInvariantUUID(String vfModuleModelInvariantUUID) { + this.vfModuleModelInvariantUUID = vfModuleModelInvariantUUID; + } + + /** + * Gets the vf module model UUID. + * + * @return the vf module model UUID + */ + public String getVfModuleModelUUID() { + return vfModuleModelUUID; + } + + /** + * Sets the vf module model UUID. + * + * @param vfModuleModelUUID the new vf module model UUID + */ + public void setVfModuleModelUUID(String vfModuleModelUUID) { + this.vfModuleModelUUID = vfModuleModelUUID; + } + + /** + * Gets the vf module model version. + * + * @return the vf module model version + */ + public String getVfModuleModelVersion() { + return vfModuleModelVersion; + } + + /** + * Sets the vf module model version. + * + * @param vfModuleModelVersion the new vf module model version + */ + public void setVfModuleModelVersion(String vfModuleModelVersion) { + this.vfModuleModelVersion = vfModuleModelVersion; + } + /** + * Sets the vf module customization uuid. + * + * @param u the new vf module model customization uuid + */ + public void setVfModuleModelCustomizationUUID(String u) { + this.vfModuleModelCustomizationUUID = u; + } + /** + * Gets the vf module model customization uuid. + * + * @return the vf module model customization uuid + */ + public String getVfModuleModelCustomizationUUID() { + + return vfModuleModelCustomizationUUID; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/ToscaModel.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/ToscaModel.java index 77fbe9135..972d366cf 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/beans/tosca/ToscaModel.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/ToscaModel.java @@ -1,166 +1,166 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.beans.tosca;
-
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.Map;
-
-/**
- * The Class ToscaModel.
- */
-public class ToscaModel {
-
- /** The tosca definitions version. */
- private String tosca_definitions_version;
-
- /** The description. */
- private String description;
-
- /** The metadata. */
- private ToscaMetadata metadata;
-
- /** The topology template. */
- private TopologyTemplate topology_template;
-
- /** The imports. */
- private Collection<Map<String, Map<String, String>>> imports;
-
- /** The node types. */
- private Map<String, Object> node_types;
-
- /**
- * Instantiates a new tosca model.
- */
- public ToscaModel() {
- metadata = new ToscaMetadata();
- topology_template = new TopologyTemplate();
- imports = new LinkedList<Map<String, Map<String, String>>> ();
- }
-
- /**
- * Gets the metadata.
- *
- * @return the metadata
- */
- public ToscaMetadata getMetadata() {
- return metadata;
- }
-
- /**
- * Sets the metadata.
- *
- * @param metadata the new metadata
- */
- public void setMetadata(ToscaMetadata metadata) {
- this.metadata = metadata;
- }
-
- /**
- * Gets the tosca definitions version.
- *
- * @return the tosca definitions version
- */
- public String gettosca_definitions_version() {
- return tosca_definitions_version;
- }
-
- /**
- * Sets the tosca definitions version.
- *
- * @param tosca_definitions_version the new tosca definitions version
- */
- public void settosca_definitions_version(String tosca_definitions_version) {
- this.tosca_definitions_version = tosca_definitions_version;
- }
-
- /**
- * Gets the topology template.
- *
- * @return the topology template
- */
- public TopologyTemplate gettopology_template() {
- return topology_template;
- }
-
- /**
- * Sets the topology template.
- *
- * @param topology_template the new topology template
- */
- public void settopology_template(TopologyTemplate topology_template) {
- this.topology_template = topology_template;
- }
-
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Gets the imports.
- *
- * @return the imports
- */
- public Collection<Map<String, Map<String, String>>> getImports() {
- return imports;
- }
-
- /**
- * Sets the imports.
- *
- * @param imports the imports
- */
- public void setImports(Collection<Map<String, Map<String, String>>> imports) {
- this.imports = imports;
- }
-
- /**
- * Gets the node types.
- *
- * @return the node types
- */
- public Map<String, Object> getnode_types() {
- return node_types;
- }
-
- /**
- * Setnode types.
- *
- * @param node_types the node types
- */
- public void setnode_types(Map<String, Object> node_types) {
- this.node_types = node_types;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.beans.tosca; + +import java.util.Collection; +import java.util.LinkedList; +import java.util.Map; + +/** + * The Class ToscaModel. + */ +public class ToscaModel { + + /** The tosca definitions version. */ + private String tosca_definitions_version; + + /** The description. */ + private String description; + + /** The metadata. */ + private ToscaMetadata metadata; + + /** The topology template. */ + private TopologyTemplate topology_template; + + /** The imports. */ + private Collection<Map<String, Map<String, String>>> imports; + + /** The node types. */ + private Map<String, Object> node_types; + + /** + * Instantiates a new tosca model. + */ + public ToscaModel() { + metadata = new ToscaMetadata(); + topology_template = new TopologyTemplate(); + imports = new LinkedList<Map<String, Map<String, String>>> (); + } + + /** + * Gets the metadata. + * + * @return the metadata + */ + public ToscaMetadata getMetadata() { + return metadata; + } + + /** + * Sets the metadata. + * + * @param metadata the new metadata + */ + public void setMetadata(ToscaMetadata metadata) { + this.metadata = metadata; + } + + /** + * Gets the tosca definitions version. + * + * @return the tosca definitions version + */ + public String gettosca_definitions_version() { + return tosca_definitions_version; + } + + /** + * Sets the tosca definitions version. + * + * @param tosca_definitions_version the new tosca definitions version + */ + public void settosca_definitions_version(String tosca_definitions_version) { + this.tosca_definitions_version = tosca_definitions_version; + } + + /** + * Gets the topology template. + * + * @return the topology template + */ + public TopologyTemplate gettopology_template() { + return topology_template; + } + + /** + * Sets the topology template. + * + * @param topology_template the new topology template + */ + public void settopology_template(TopologyTemplate topology_template) { + this.topology_template = topology_template; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Gets the imports. + * + * @return the imports + */ + public Collection<Map<String, Map<String, String>>> getImports() { + return imports; + } + + /** + * Sets the imports. + * + * @param imports the imports + */ + public void setImports(Collection<Map<String, Map<String, String>>> imports) { + this.imports = imports; + } + + /** + * Gets the node types. + * + * @return the node types + */ + public Map<String, Object> getnode_types() { + return node_types; + } + + /** + * Setnode types. + * + * @param node_types the node types + */ + public void setnode_types(Map<String, Object> node_types) { + this.node_types = node_types; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/local/LocalAsdcClient.java b/vid-app-common/src/main/java/org/onap/vid/asdc/local/LocalAsdcClient.java index 696e18904..3c04e5ce8 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/local/LocalAsdcClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/local/LocalAsdcClient.java @@ -1,18 +1,18 @@ -package org.openecomp.vid.asdc.local; +package org.onap.vid.asdc.local; import org.codehaus.jackson.JsonParseException; import org.codehaus.jackson.map.JsonMappingException; import org.codehaus.jackson.map.ObjectMapper; import org.json.JSONArray; import org.json.JSONObject; -import org.openecomp.vid.asdc.AsdcCatalogException; -import org.openecomp.vid.asdc.AsdcClient; -import org.openecomp.vid.asdc.beans.Artifact; -import org.openecomp.vid.asdc.beans.Resource; -import org.openecomp.vid.asdc.beans.Service; -import org.openecomp.vid.asdc.beans.tosca.ToscaCsar; -import org.openecomp.vid.asdc.beans.tosca.ToscaMeta; -import org.openecomp.vid.asdc.beans.tosca.ToscaModel; +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.AsdcClient; +import org.onap.vid.asdc.beans.Artifact; +import org.onap.vid.asdc.beans.Resource; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.asdc.beans.tosca.ToscaCsar; +import org.onap.vid.asdc.beans.tosca.ToscaMeta; +import org.onap.vid.asdc.beans.tosca.ToscaModel; import org.yaml.snakeyaml.Yaml; import java.io.File; @@ -22,7 +22,10 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; -import java.util.*; +import java.util.Collection; +import java.util.LinkedList; +import java.util.Map; +import java.util.UUID; import java.util.zip.ZipFile; /** @@ -42,66 +45,11 @@ public class LocalAsdcClient implements AsdcClient { private final ObjectMapper mapper; /** - * The Class Builder. - */ - public static class Builder { - - /** - * The catalog. - */ - private JSONObject catalog = new JSONObject() - .put("resources", new JSONObject()) - .put("services", new JSONObject()); - - /** - * The mapper. - */ - private ObjectMapper mapper = new ObjectMapper(); - - /** - * Instantiates a new builder. - */ - public Builder() { - } - - /** - * Catalog. - * - * @param catalog the catalog - * @return the builder - */ - public org.openecomp.vid.asdc.local.LocalAsdcClient.Builder catalog(JSONObject catalog) { - this.catalog = catalog; - return this; - } - - /** - * Mapper. - * - * @param mapper the mapper - * @return the builder - */ - public org.openecomp.vid.asdc.local.LocalAsdcClient.Builder mapper(ObjectMapper mapper) { - this.mapper = mapper; - return this; - } - - /** - * Builds the. - * - * @return the in local sdc client - */ - public org.openecomp.vid.asdc.local.LocalAsdcClient build() { - return new org.openecomp.vid.asdc.local.LocalAsdcClient(this); - } - } - - /** * Instantiates a new in local sdc client. * * @param builder the builder */ - private LocalAsdcClient(org.openecomp.vid.asdc.local.LocalAsdcClient.Builder builder) { + public LocalAsdcClient(org.onap.vid.asdc.local.LocalAsdcClient.Builder builder) { catalog = builder.catalog; mapper = builder.mapper; } @@ -203,7 +151,7 @@ public class LocalAsdcClient implements AsdcClient { JSONObject serviceJsonObject = null; final JSONArray categoryJsonArray = getCatalog().getJSONArray("services"); - for (int i = 0; i < categoryJsonArray.length() ; i++) { + for (int i = 0; i < categoryJsonArray.length(); i++) { JSONObject jsonServiceObject = categoryJsonArray.getJSONObject(i); if (jsonServiceObject.get("uuid").equals(uuid.toString())) { serviceJsonObject = jsonServiceObject; @@ -264,7 +212,7 @@ public class LocalAsdcClient implements AsdcClient { * @see org.openecomp.vid.asdc.AsdcClient#getResourceArtifact(java.util.UUID, java.util.UUID) */ public Artifact getResourceArtifact(UUID resourceUuid, UUID artifactUuid) throws AsdcCatalogException { - final JSONArray artifacts = getCatalog().getJSONObject("resources") + final JSONArray artifacts = getCatalog().getJSONObject("resources") .getJSONObject(resourceUuid.toString()) .getJSONArray("artifacts"); @@ -323,7 +271,7 @@ public class LocalAsdcClient implements AsdcClient { final JSONArray categoryJsonArray = getCatalog().getJSONArray("services"); - for (int i = 0; i < categoryJsonArray.length() ; i++) { + for (int i = 0; i < categoryJsonArray.length(); i++) { JSONObject jsonServiceObject = categoryJsonArray.getJSONObject(i); if (jsonServiceObject.get("uuid").equals(serviceUuid.toString())) { @@ -331,11 +279,9 @@ public class LocalAsdcClient implements AsdcClient { break; } } - - if (toscaModelURL==null){ + if (toscaModelURL == null) { return null; } - final InputStream toscaModelStream = getClass().getClassLoader().getResourceAsStream(toscaModelURL); ClassLoader classLoader = getClass().getClassLoader(); @@ -390,4 +336,59 @@ public class LocalAsdcClient implements AsdcClient { } } + /** + * The Class Builder. + */ + public static class Builder { + + /** + * The catalog. + */ + private JSONObject catalog = new JSONObject() + .put("resources", new JSONObject()) + .put("services", new JSONObject()); + + /** + * The mapper. + */ + private ObjectMapper mapper = new ObjectMapper(); + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Catalog. + * + * @param catalog the catalog + * @return the builder + */ + public org.onap.vid.asdc.local.LocalAsdcClient.Builder catalog(JSONObject catalog) { + this.catalog = catalog; + return this; + } + + /** + * Mapper. + * + * @param mapper the mapper + * @return the builder + */ + public org.onap.vid.asdc.local.LocalAsdcClient.Builder mapper(ObjectMapper mapper) { + this.mapper = mapper; + return this; + } + + /** + * Builds the. + * + * @return the in local sdc client + */ + public org.onap.vid.asdc.local.LocalAsdcClient build() { + return new org.onap.vid.asdc.local.LocalAsdcClient(this); + } + } + } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/memory/InMemoryAsdcClient.java b/vid-app-common/src/main/java/org/onap/vid/asdc/memory/InMemoryAsdcClient.java index 2b783d45a..a7b934e99 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/memory/InMemoryAsdcClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/memory/InMemoryAsdcClient.java @@ -1,372 +1,372 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.memory;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.StandardCopyOption;
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.UUID;
-import java.util.zip.ZipFile;
-
-import org.codehaus.jackson.JsonParseException;
-import org.codehaus.jackson.map.JsonMappingException;
-import org.codehaus.jackson.map.ObjectMapper;
-import org.json.JSONArray;
-import org.json.JSONObject;
-import org.yaml.snakeyaml.Yaml;
-
-import org.openecomp.vid.asdc.AsdcCatalogException;
-import org.openecomp.vid.asdc.AsdcClient;
-import org.openecomp.vid.asdc.beans.Artifact;
-import org.openecomp.vid.asdc.beans.Resource;
-import org.openecomp.vid.asdc.beans.Service;
-import org.openecomp.vid.asdc.beans.tosca.ToscaCsar;
-import org.openecomp.vid.asdc.beans.tosca.ToscaMeta;
-import org.openecomp.vid.asdc.beans.tosca.ToscaModel;
-
-/**
- * The Class InMemoryAsdcClient.
- */
-public class InMemoryAsdcClient implements AsdcClient {
-
- /** The catalog. */
- private final JSONObject catalog;
-
- /** The mapper. */
- private final ObjectMapper mapper;
-
- /**
- * The Class Builder.
- */
- public static class Builder {
-
- /** The catalog. */
- private JSONObject catalog = new JSONObject()
- .put("resources", new JSONObject())
- .put("services", new JSONObject());
-
- /** The mapper. */
- private ObjectMapper mapper = new ObjectMapper();
-
- /**
- * Instantiates a new builder.
- */
- public Builder() {}
-
- /**
- * Catalog.
- *
- * @param catalog the catalog
- * @return the builder
- */
- public Builder catalog(JSONObject catalog) {
- this.catalog = catalog;
- return this;
- }
-
- /**
- * Mapper.
- *
- * @param mapper the mapper
- * @return the builder
- */
- public Builder mapper(ObjectMapper mapper) {
- this.mapper = mapper;
- return this;
- }
-
- /**
- * Builds the.
- *
- * @return the in memory sdc client
- */
- public InMemoryAsdcClient build() {
- return new InMemoryAsdcClient(this);
- }
- }
-
- /**
- * Instantiates a new in memory sdc client.
- *
- * @param builder the builder
- */
- InMemoryAsdcClient(Builder builder) {
- catalog = builder.catalog;
- mapper = builder.mapper;
- }
-
- /**
- * Gets the catalog.
- *
- * @return the catalog
- */
- private JSONObject getCatalog() {
- return catalog;
- }
-
- /**
- * Gets the mapper.
- *
- * @return the mapper
- */
- private ObjectMapper getMapper() {
- return mapper;
- }
-
- /**
- * Convert.
- *
- * @param <T> the generic type
- * @param json the json
- * @param clazz the clazz
- * @return the t
- * @throws AsdcCatalogException the sdc catalog exception
- */
- private <T> T convert(JSONObject json, Class<T> clazz) throws AsdcCatalogException {
- try {
- return getMapper().readValue(json.toString(), clazz);
- } catch (JsonParseException e) {
- throw new AsdcCatalogException("Failed to parse SDC response (bad data)", e);
- } catch (JsonMappingException e) {
- throw new AsdcCatalogException("Failed to map SDC response to internal VID data structure(s)", e);
- } catch (IOException e) {
- throw new AsdcCatalogException("Failed to get a response from SDC", e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResource(java.util.UUID)
- */
- public Resource getResource(UUID uuid) throws AsdcCatalogException {
- final JSONObject resource = getCatalog().getJSONObject("resources")
- .getJSONObject(uuid.toString());
- return convert(resource, Resource.class);
- }
-
- /* (non-Javadoc)
- */
- public Collection<Resource> getResources() throws AsdcCatalogException {
- final Collection<Resource> resources = new LinkedList<Resource> ();
-
- for (String key : getCatalog().getJSONObject("resources").keySet()) {
- final JSONObject json = getCatalog().getJSONObject("resources").getJSONObject(key);
- final Resource resource = convert(json, Resource.class);
- resources.add(resource);
- }
-
- return resources;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResources(java.util.Map)
- */
- public Collection<Resource> getResources(Map<String, String[]> filter) throws AsdcCatalogException {
- final Collection<Resource> resources = new LinkedList<Resource> ();
-
- for (String key : getCatalog().getJSONObject("resources").keySet()) {
- final JSONObject json = getCatalog().getJSONObject("resources").getJSONObject(key);
-
- boolean filterMatch = true;
-
- for (Entry<String, String[]> entry : filter.entrySet()) {
- for (int i = 0; i < entry.getValue().length; i++) {
- if (!json.getString(entry.getKey()).equals(entry.getValue()[i])) {
- filterMatch = false;
- break;
- }
- }
- }
-
- if (filterMatch) resources.add(convert(json, Resource.class));
- }
-
- return resources;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getService(java.util.UUID)
- */
- public Service getService(UUID uuid) throws AsdcCatalogException {
- final JSONObject service = getCatalog().getJSONObject("services")
- .getJSONObject(uuid.toString());
- return convert(service, Service.class);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getServices()
- */
- public Collection<Service> getServices() throws AsdcCatalogException {
- final Collection<Service> services = new LinkedList<Service> ();
-
- for (String key : getCatalog().getJSONObject("services").keySet()) {
- final JSONObject json = getCatalog().getJSONObject("services").getJSONObject(key);
- final Service service = convert(json, Service.class);
- services.add(service);
- }
-
- return services;
- }
-
- /* (non-Javadoc)
- * @see org.openecompt.vid.asdc.AsdcClient#getServices(java.util.Map)
- */
- public Collection<Service> getServices(Map<String, String[]> filter) throws AsdcCatalogException {
- final Collection<Service> services = new LinkedList<Service> ();
-
- for (String key : getCatalog().getJSONObject("services").keySet()) {
- final JSONObject json = getCatalog().getJSONObject("services").getJSONObject(key);
-
- boolean filterMatch = true;
-
- for (Entry<String, String[]> entry : filter.entrySet()) {
- for (int i = 0; i < entry.getValue().length; i++) {
- if (!json.getString(entry.getKey()).equals(entry.getValue()[i])) {
- filterMatch = false;
- break;
- }
- }
- }
-
- if (filterMatch) services.add(convert(json, Service.class));
- }
-
- return services;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResourceArtifact(java.util.UUID, java.util.UUID)
- */
- public Artifact getResourceArtifact(UUID resourceUuid, UUID artifactUuid) throws AsdcCatalogException {
- final JSONArray artifacts = getCatalog().getJSONObject("resources")
- .getJSONObject(resourceUuid.toString())
- .getJSONArray("artifacts");
-
- for (int i = 0; i < artifacts.length(); i++) {
- final JSONObject artifact = artifacts.getJSONObject(i);
-
- if (artifact.getString("artifactUUID").equals(artifactUuid.toString())) {
- return convert(artifact, Artifact.class);
- }
- }
-
- return null;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getServiceArtifact(java.util.UUID, java.util.UUID)
- */
- public Artifact getServiceArtifact(UUID serviceUuid, UUID artifactUuid) throws AsdcCatalogException {
- final JSONArray artifacts = getCatalog().getJSONObject("services")
- .getJSONObject(serviceUuid.toString())
- .getJSONArray("artifacts");
-
- for (int i = 0; i < artifacts.length(); i++) {
- final JSONObject artifact = artifacts.getJSONObject(i);
-
- if (artifact.getString("artifactUUID").equals(artifactUuid.toString())) {
- return convert(artifact, Artifact.class);
- }
- }
-
- return null;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResourceToscaModel(java.util.UUID)
- */
- public Path getResourceToscaModel(UUID resourceUuid) throws AsdcCatalogException {
- final String toscaModelURL = getCatalog().getJSONObject("resources")
- .getJSONObject(resourceUuid.toString())
- .getString("toscaModelURL");
-
-
- final InputStream toscaModelStream = getClass().getClassLoader().getResourceAsStream(toscaModelURL);
-
- if (toscaModelStream == null) return null;
-
- return null;//getToscaModel(toscaModelStream);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getServiceToscaModel(java.util.UUID)
- */
- public Path getServiceToscaModel(UUID serviceUuid) throws AsdcCatalogException {
- final String toscaModelURL = getCatalog().getJSONObject("services")
- .getJSONObject(serviceUuid.toString())
- .getString("toscaModelURL");
-
- final InputStream toscaModelStream = getClass().getClassLoader().getResourceAsStream(toscaModelURL);
-
- if (toscaModelStream == null) return null;
-
- return null;//getToscaModel(toscaModelStream);
- }
-
- /**
- * Gets the tosca model.
- *
- * @param csarInputStream the csar input stream
- * @return the tosca model
- * @throws AsdcCatalogException the asdc catalog exception
- */
- private ToscaCsar getToscaModel(InputStream csarInputStream) throws AsdcCatalogException {
- final Path csarFile;
-
- try {
- csarFile = Files.createTempFile("csar", ".zip");
- Files.copy(csarInputStream, csarFile, StandardCopyOption.REPLACE_EXISTING);
- } catch (IOException e) {
- throw new AsdcCatalogException("Caught IOException while creating CSAR", e);
- }
-
- try (final ZipFile csar = new ZipFile(csarFile.toFile())) {
-
- final InputStream toscaMetaStream = csar.getInputStream(csar.getEntry("TOSCA-Metadata/TOSCA.meta"));
- final ToscaMeta toscaMeta = new ToscaMeta.Builder(toscaMetaStream).build();
- final String entryDefinitions = toscaMeta.get("Entry-Definitions");
- final InputStream toscaParentEntryYamlStream = csar.getInputStream(csar.getEntry(entryDefinitions));
-
- final Yaml yaml = new Yaml();
- final ToscaModel parentModel = yaml.loadAs(toscaParentEntryYamlStream, ToscaModel.class);
-
- final ToscaCsar.Builder csarBuilder = new ToscaCsar.Builder(parentModel);
-
- for (Map<String, Map<String, String>> imports : parentModel.getImports()) {
- for (Entry<String, Map<String, String>> entry : imports.entrySet()) {
- final InputStream toscaChildEntryYamlStream = csar.getInputStream(csar.getEntry("Definitions/" + entry.getValue().get("file")));
- final ToscaModel childModel = yaml.loadAs(toscaChildEntryYamlStream, ToscaModel.class);
- csarBuilder.addVnf(childModel);
- }
- }
-
- return csarBuilder.build();
- } catch (IOException e) {
- throw new AsdcCatalogException("Caught IOException while processing CSAR", e);
- }
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.memory; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.StandardCopyOption; +import java.util.Collection; +import java.util.LinkedList; +import java.util.Map; +import java.util.Map.Entry; +import java.util.UUID; +import java.util.zip.ZipFile; + +import org.codehaus.jackson.JsonParseException; +import org.codehaus.jackson.map.JsonMappingException; +import org.codehaus.jackson.map.ObjectMapper; +import org.json.JSONArray; +import org.json.JSONObject; +import org.yaml.snakeyaml.Yaml; + +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.AsdcClient; +import org.onap.vid.asdc.beans.Artifact; +import org.onap.vid.asdc.beans.Resource; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.asdc.beans.tosca.ToscaCsar; +import org.onap.vid.asdc.beans.tosca.ToscaMeta; +import org.onap.vid.asdc.beans.tosca.ToscaModel; + +/** + * The Class InMemoryAsdcClient. + */ +public class InMemoryAsdcClient implements AsdcClient { + + /** The catalog. */ + private final JSONObject catalog; + + /** The mapper. */ + private final ObjectMapper mapper; + + /** + * The Class Builder. + */ + public static class Builder { + + /** The catalog. */ + private JSONObject catalog = new JSONObject() + .put("resources", new JSONObject()) + .put("services", new JSONObject()); + + /** The mapper. */ + private ObjectMapper mapper = new ObjectMapper(); + + /** + * Instantiates a new builder. + */ + public Builder() {} + + /** + * Catalog. + * + * @param catalog the catalog + * @return the builder + */ + public Builder catalog(JSONObject catalog) { + this.catalog = catalog; + return this; + } + + /** + * Mapper. + * + * @param mapper the mapper + * @return the builder + */ + public Builder mapper(ObjectMapper mapper) { + this.mapper = mapper; + return this; + } + + /** + * Builds the. + * + * @return the in memory sdc client + */ + public InMemoryAsdcClient build() { + return new InMemoryAsdcClient(this); + } + } + + /** + * Instantiates a new in memory sdc client. + * + * @param builder the builder + */ + private InMemoryAsdcClient(Builder builder) { + catalog = builder.catalog; + mapper = builder.mapper; + } + + /** + * Gets the catalog. + * + * @return the catalog + */ + private JSONObject getCatalog() { + return catalog; + } + + /** + * Gets the mapper. + * + * @return the mapper + */ + private ObjectMapper getMapper() { + return mapper; + } + + /** + * Convert. + * + * @param <T> the generic type + * @param json the json + * @param clazz the clazz + * @return the t + * @throws AsdcCatalogException the sdc catalog exception + */ + private <T> T convert(JSONObject json, Class<T> clazz) throws AsdcCatalogException { + try { + return getMapper().readValue(json.toString(), clazz); + } catch (JsonParseException e) { + throw new AsdcCatalogException("Failed to parse SDC response (bad data)", e); + } catch (JsonMappingException e) { + throw new AsdcCatalogException("Failed to map SDC response to internal VID data structure(s)", e); + } catch (IOException e) { + throw new AsdcCatalogException("Failed to get a response from SDC", e); + } + } + + /* (non-Javadoc) + * @see org.openecomp.vid.asdc.AsdcClient#getResource(java.util.UUID) + */ + public Resource getResource(UUID uuid) throws AsdcCatalogException { + final JSONObject resource = getCatalog().getJSONObject("resources") + .getJSONObject(uuid.toString()); + return convert(resource, Resource.class); + } + + /* (non-Javadoc) + */ + public Collection<Resource> getResources() throws AsdcCatalogException { + final Collection<Resource> resources = new LinkedList<Resource> (); + + for (String key : getCatalog().getJSONObject("resources").keySet()) { + final JSONObject json = getCatalog().getJSONObject("resources").getJSONObject(key); + final Resource resource = convert(json, Resource.class); + resources.add(resource); + } + + return resources; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.asdc.AsdcClient#getResources(java.util.Map) + */ + public Collection<Resource> getResources(Map<String, String[]> filter) throws AsdcCatalogException { + final Collection<Resource> resources = new LinkedList<Resource> (); + + for (String key : getCatalog().getJSONObject("resources").keySet()) { + final JSONObject json = getCatalog().getJSONObject("resources").getJSONObject(key); + + boolean filterMatch = true; + + for (Entry<String, String[]> entry : filter.entrySet()) { + for (int i = 0; i < entry.getValue().length; i++) { + if (!json.getString(entry.getKey()).equals(entry.getValue()[i])) { + filterMatch = false; + break; + } + } + } + + if (filterMatch) resources.add(convert(json, Resource.class)); + } + + return resources; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.asdc.AsdcClient#getService(java.util.UUID) + */ + public Service getService(UUID uuid) throws AsdcCatalogException { + final JSONObject service = getCatalog().getJSONObject("services") + .getJSONObject(uuid.toString()); + return convert(service, Service.class); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.asdc.AsdcClient#getServices() + */ + public Collection<Service> getServices() throws AsdcCatalogException { + final Collection<Service> services = new LinkedList<Service> (); + + for (String key : getCatalog().getJSONObject("services").keySet()) { + final JSONObject json = getCatalog().getJSONObject("services").getJSONObject(key); + final Service service = convert(json, Service.class); + services.add(service); + } + + return services; + } + + /* (non-Javadoc) + * @see org.openecompt.vid.asdc.AsdcClient#getServices(java.util.Map) + */ + public Collection<Service> getServices(Map<String, String[]> filter) throws AsdcCatalogException { + final Collection<Service> services = new LinkedList<Service> (); + + for (String key : getCatalog().getJSONObject("services").keySet()) { + final JSONObject json = getCatalog().getJSONObject("services").getJSONObject(key); + + boolean filterMatch = true; + + for (Entry<String, String[]> entry : filter.entrySet()) { + for (int i = 0; i < entry.getValue().length; i++) { + if (!json.getString(entry.getKey()).equals(entry.getValue()[i])) { + filterMatch = false; + break; + } + } + } + + if (filterMatch) services.add(convert(json, Service.class)); + } + + return services; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.asdc.AsdcClient#getResourceArtifact(java.util.UUID, java.util.UUID) + */ + public Artifact getResourceArtifact(UUID resourceUuid, UUID artifactUuid) throws AsdcCatalogException { + final JSONArray artifacts = getCatalog().getJSONObject("resources") + .getJSONObject(resourceUuid.toString()) + .getJSONArray("artifacts"); + + for (int i = 0; i < artifacts.length(); i++) { + final JSONObject artifact = artifacts.getJSONObject(i); + + if (artifact.getString("artifactUUID").equals(artifactUuid.toString())) { + return convert(artifact, Artifact.class); + } + } + + return null; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.asdc.AsdcClient#getServiceArtifact(java.util.UUID, java.util.UUID) + */ + public Artifact getServiceArtifact(UUID serviceUuid, UUID artifactUuid) throws AsdcCatalogException { + final JSONArray artifacts = getCatalog().getJSONObject("services") + .getJSONObject(serviceUuid.toString()) + .getJSONArray("artifacts"); + + for (int i = 0; i < artifacts.length(); i++) { + final JSONObject artifact = artifacts.getJSONObject(i); + + if (artifact.getString("artifactUUID").equals(artifactUuid.toString())) { + return convert(artifact, Artifact.class); + } + } + + return null; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.asdc.AsdcClient#getResourceToscaModel(java.util.UUID) + */ + public Path getResourceToscaModel(UUID resourceUuid) throws AsdcCatalogException { + final String toscaModelURL = getCatalog().getJSONObject("resources") + .getJSONObject(resourceUuid.toString()) + .getString("toscaModelURL"); + + + final InputStream toscaModelStream = getClass().getClassLoader().getResourceAsStream(toscaModelURL); + + if (toscaModelStream == null) return null; + + return null;//getToscaModel(toscaModelStream); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.asdc.AsdcClient#getServiceToscaModel(java.util.UUID) + */ + public Path getServiceToscaModel(UUID serviceUuid) throws AsdcCatalogException { + final String toscaModelURL = getCatalog().getJSONObject("services") + .getJSONObject(serviceUuid.toString()) + .getString("toscaModelURL"); + + final InputStream toscaModelStream = getClass().getClassLoader().getResourceAsStream(toscaModelURL); + + if (toscaModelStream == null) return null; + + return null;//getToscaModel(toscaModelStream); + } + + /** + * Gets the tosca model. + * + * @param csarInputStream the csar input stream + * @return the tosca model + * @throws AsdcCatalogException the asdc catalog exception + */ + private ToscaCsar getToscaModel(InputStream csarInputStream) throws AsdcCatalogException { + final Path csarFile; + + try { + csarFile = Files.createTempFile("csar", ".zip"); + Files.copy(csarInputStream, csarFile, StandardCopyOption.REPLACE_EXISTING); + } catch (IOException e) { + throw new AsdcCatalogException("Caught IOException while creating CSAR", e); + } + + try (final ZipFile csar = new ZipFile(csarFile.toFile())) { + + final InputStream toscaMetaStream = csar.getInputStream(csar.getEntry("TOSCA-Metadata/TOSCA.meta")); + final ToscaMeta toscaMeta = new ToscaMeta.Builder(toscaMetaStream).build(); + final String entryDefinitions = toscaMeta.get("Entry-Definitions"); + final InputStream toscaParentEntryYamlStream = csar.getInputStream(csar.getEntry(entryDefinitions)); + + final Yaml yaml = new Yaml(); + final ToscaModel parentModel = yaml.loadAs(toscaParentEntryYamlStream, ToscaModel.class); + + final ToscaCsar.Builder csarBuilder = new ToscaCsar.Builder(parentModel); + + for (Map<String, Map<String, String>> imports : parentModel.getImports()) { + for (Entry<String, Map<String, String>> entry : imports.entrySet()) { + final InputStream toscaChildEntryYamlStream = csar.getInputStream(csar.getEntry("Definitions/" + entry.getValue().get("file"))); + final ToscaModel childModel = yaml.loadAs(toscaChildEntryYamlStream, ToscaModel.class); + csarBuilder.addVnf(childModel); + } + } + + return csarBuilder.build(); + } catch (IOException e) { + throw new AsdcCatalogException("Caught IOException while processing CSAR", e); + } + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/parser/ToscaParser.java b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParser.java index eb1669846..890752afe 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/parser/ToscaParser.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParser.java @@ -1,12 +1,12 @@ -package org.openecomp.vid.asdc.parser; +package org.onap.vid.asdc.parser; import java.nio.file.Path; import org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException; -import org.openecomp.vid.asdc.AsdcCatalogException; -import org.openecomp.vid.asdc.beans.tosca.ToscaCsar; -import org.openecomp.vid.asdc.beans.Service; -import org.openecomp.vid.model.ServiceModel; +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.beans.tosca.ToscaCsar; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.model.ServiceModel; public interface ToscaParser{ ToscaCsar parse(Path path) throws AsdcCatalogException; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/parser/ToscaParserImpl.java b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParserImpl.java index bea5da877..12881b64f 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/parser/ToscaParserImpl.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParserImpl.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.parser; +package org.onap.vid.asdc.parser; import java.io.IOException; import java.io.InputStream; @@ -13,20 +13,21 @@ import java.util.UUID; import java.util.Map.Entry; import java.util.zip.ZipFile; +import org.apache.commons.lang3.mutable.MutableBoolean; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; import org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException; -import org.openecomp.vid.asdc.AsdcCatalogException; -import org.openecomp.vid.asdc.beans.Service; -import org.openecomp.vid.asdc.beans.tosca.NodeTemplate; -import org.openecomp.vid.asdc.beans.tosca.ToscaCsar; -import org.openecomp.vid.asdc.beans.tosca.ToscaMeta; -import org.openecomp.vid.asdc.beans.tosca.ToscaModel; -import org.openecomp.vid.model.ModelConstants; -import org.openecomp.vid.model.Network; -import org.openecomp.vid.model.Node; -import org.openecomp.vid.model.ServiceModel; -import org.openecomp.vid.model.VNF; -import org.openecomp.vid.properties.VidProperties; +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.asdc.beans.tosca.NodeTemplate; +import org.onap.vid.asdc.beans.tosca.ToscaCsar; +import org.onap.vid.asdc.beans.tosca.ToscaMeta; +import org.onap.vid.asdc.beans.tosca.ToscaModel; +import org.onap.vid.model.ModelConstants; +import org.onap.vid.model.Network; +import org.onap.vid.model.Node; +import org.onap.vid.model.ServiceModel; +import org.onap.vid.model.VNF; +import org.onap.vid.properties.VidProperties; import org.springframework.beans.factory.annotation.Autowired; import org.yaml.snakeyaml.Yaml; import org.yaml.snakeyaml.error.YAMLException; @@ -44,7 +45,7 @@ public class ToscaParserImpl implements ToscaParser { private static final String networkTag = asdcModelNamespace + ModelConstants.NETWORK; private static final String vfModuleTag = asdcModelNamespace + ModelConstants.VF_MODULE; - + @Override public ToscaCsar parse(Path path) throws AsdcCatalogException { return getToscaCsar(path); @@ -73,7 +74,7 @@ public class ToscaParserImpl implements ToscaParser { LOG.debug("fname = " + fname); final InputStream toscaChildEntryYamlStream = csar .getInputStream(csar.getEntry("Definitions/" + fname)); - + final ToscaModel childModel = yaml.loadAs(toscaChildEntryYamlStream, ToscaModel.class); csarBuilder.addVnf(childModel); } @@ -89,15 +90,15 @@ public class ToscaParserImpl implements ToscaParser { throw new AsdcCatalogException("Caught IOException while processing CSAR", e); } } - + public ServiceModel makeServiceModel(String uuid, final Path serviceCsar,Service service ) throws AsdcCatalogException, SdcToscaParserException { - - + + final ServiceModel serviceModel = new ServiceModel(); ToscaCsar toscaCsar = getToscaCsar(serviceCsar); String methodName = "getServices"; LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " start"); - Boolean isNewFlow = false; + MutableBoolean isNewFlow = new MutableBoolean(false); final Map<String, VNF> vnfs = new HashMap<String, VNF>(); final Map<String, Network> networks = new HashMap<String, Network>(); final ToscaModel asdcServiceToscaModel = toscaCsar.getParent(); @@ -107,7 +108,7 @@ public class ToscaParserImpl implements ToscaParser { populateVnfsAndNetwork(methodName, isNewFlow, vnfs, networks, asdcServiceToscaModel, serviceModel); // If we see customization uuid under vnf or network, follow 1702 flow - if (isNewFlow) { + if (isNewFlow.getValue()) { return (getCustomizedServices(asdcServiceToscaModel, serviceModel)); } else { VNF vnf = null; @@ -145,9 +146,9 @@ public class ToscaParserImpl implements ToscaParser { vnf.setInputs(vnfModel.gettopology_template().getInputs()); } - private static void populateVnfsAndNetwork(String methodName, Boolean isNewFlow, final Map<String, VNF> vnfs, - final Map<String, Network> networks, final ToscaModel asdcServiceToscaModel, ServiceModel serviceModel) - throws AsdcCatalogException, SdcToscaParserException { + private static void populateVnfsAndNetwork(String methodName, MutableBoolean isNewFlow, final Map<String, VNF> vnfs, + final Map<String, Network> networks, final ToscaModel asdcServiceToscaModel, ServiceModel serviceModel) + throws AsdcCatalogException, SdcToscaParserException { for (Entry<String, NodeTemplate> component : extractNodeTemplates(asdcServiceToscaModel)) { final String modelCustomizationName = component.getKey(); LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName @@ -164,7 +165,7 @@ public class ToscaParserImpl implements ToscaParser { LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " VNF commands: " + vnf.getCommands()); vnfs.put(modelCustomizationName, vnf); - isNewFlow = isNewFlow(vnf); + isNewFlow.setValue(isNewFlow(vnf)); } // Networks if (type.startsWith(networkTag)) { @@ -173,7 +174,7 @@ public class ToscaParserImpl implements ToscaParser { final Network network = new Network(); network.extractNetwork(modelCustomizationName, nodeTemplate); // populateNodeVersionIfMissing(nodeTemplate, network, service); - isNewFlow = isNewFlow(network); + isNewFlow.setValue(isNewFlow(network)); networks.put(modelCustomizationName, network); } @@ -201,7 +202,7 @@ public class ToscaParserImpl implements ToscaParser { node.setVersion(service.getVersion()); } } - + private ServiceModel getCustomizedServices(ToscaModel asdcServiceToscaModel, ServiceModel serviceModel) { String methodName = "asdcServiceToscaModel"; LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " start"); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/parser/ToscaParserImpl2.java b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParserImpl2.java index f364d0b3d..4a5ab3af3 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/parser/ToscaParserImpl2.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/parser/ToscaParserImpl2.java @@ -1,20 +1,20 @@ -package org.openecomp.vid.asdc.parser; +package org.onap.vid.asdc.parser; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.model.*; import org.openecomp.sdc.tosca.parser.api.ISdcCsarHelper; import org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException; import org.openecomp.sdc.tosca.parser.impl.FilterType; import org.openecomp.sdc.tosca.parser.impl.SdcToscaParserFactory; -import org.openecomp.sdc.toscaparser.api.Group; -import org.openecomp.sdc.toscaparser.api.NodeTemplate; -import org.openecomp.sdc.toscaparser.api.Property; +import org.openecomp.sdc.tosca.parser.impl.SdcTypes; +import org.openecomp.sdc.toscaparser.api.*; import org.openecomp.sdc.toscaparser.api.parameters.Input; -import org.openecomp.vid.asdc.beans.Service; -import org.openecomp.vid.model.*; import java.nio.file.Path; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; +import java.util.stream.Collectors; + +import static java.util.stream.Collectors.toMap; public class ToscaParserImpl2 { @@ -38,26 +38,39 @@ public class ToscaParserImpl2 { public final static String category = "category"; public final static String vfModuleModelName = "vfModuleModelName"; public final static String getInput = "get_input"; + + public final static String instantiationType = "instantiationType"; + //Instantiation Types + public final static String both = "Both"; + public final static String macro = "Macro"; + public final static String aLaCarte = "A-La-Carte"; + public final static String clientConfig = "ClientConfig"; + + } public ToscaParserImpl2() { } - public ServiceModel makeServiceModel(Path path, Service asdcServiceMetadata) throws Exception { + public ServiceModel makeServiceModel(Path path, Service asdcServiceMetadata) throws Exception { ServiceModel serviceModel = new ServiceModel(); SdcToscaParserFactory factory = SdcToscaParserFactory.getInstance(); - ISdcCsarHelper sdcCsarHelper = factory.getSdcCsarHelper(path.toFile().getAbsolutePath()); //, false); + ISdcCsarHelper sdcCsarHelper = factory.getSdcCsarHelper(path.toFile().getAbsolutePath(),false); serviceModel.setService(extractServiceFromCsar(asdcServiceMetadata, sdcCsarHelper)); + serviceModel.setVolumeGroups(extractVolumeGroups(sdcCsarHelper)); serviceModel.setVfModules(extractVfModuleFromCsar(sdcCsarHelper)); serviceModel.setVnfs(extractVnfsFromCsar(serviceModel,sdcCsarHelper)); + serviceModel.setConfigurations(extractPortMirroringConfigFromCsar(sdcCsarHelper)); + serviceModel.setServiceProxies(extractServiceProxyFromCsar(sdcCsarHelper)); serviceModel.setNetworks(extractNetworksFromCsar(sdcCsarHelper)); + serviceModel.setPnfs(extractPnfsFromCsar(sdcCsarHelper)); return serviceModel; } - private org.openecomp.vid.model.Service extractServiceFromCsar(Service asdcServiceMetadata, ISdcCsarHelper csarHelper) throws SdcToscaParserException { - org.openecomp.vid.model.Service service = new org.openecomp.vid.model.Service(); + private org.onap.vid.model.Service extractServiceFromCsar(Service asdcServiceMetadata, ISdcCsarHelper csarHelper) throws SdcToscaParserException { + org.onap.vid.model.Service service = new org.onap.vid.model.Service(); service.setName(csarHelper.getServiceMetadata().getValue(Constants.name)); service.setCategory(csarHelper.getServiceMetadata().getValue(Constants.category)); @@ -69,9 +82,10 @@ public class ToscaParserImpl2 { service.setServiceEcompNaming(csarHelper.getServiceMetadata().getValue(Constants.ecompGeneratedNaming)); service.setServiceType(csarHelper.getServiceMetadata().getValue(Constants.serviceType)); service.setServiceRole(csarHelper.getServiceMetadata().getValue(Constants.serviceRole)); - + service.setInstantiationType(validateInstantiationType(csarHelper)); return service; } + private Map<String, VNF> extractVnfsFromCsar(ServiceModel serviceModel,ISdcCsarHelper csarHelper) { List<NodeTemplate> nodeTemplates = csarHelper.getServiceVfList(); @@ -93,24 +107,85 @@ public class ToscaParserImpl2 { return vnfsMaps; } - private Map<String, VfModule> getVfModulesFromVF(ISdcCsarHelper csarHelper, String vfUuid) { - Map<String,VfModule> vfModuleHashMap = new HashMap<String,VfModule>(); - for (Group group : csarHelper.getVfModulesByVf(vfUuid)) { - vfModuleHashMap.put(group.getName(), populateVfModuleFromGroup(group)); + private Map<String, PortMirroringConfig> extractPortMirroringConfigFromCsar(ISdcCsarHelper csarHelper) { + List<NodeTemplate> nodeTemplates = csarHelper.getServiceNodeTemplateBySdcType(SdcTypes.CONFIGURATION); + Map<String, PortMirroringConfig> configMaps = new HashMap<>(); + + for (NodeTemplate nodeTemplate : nodeTemplates) { + PortMirroringConfig pmConfig = new PortMirroringConfig(); + populateNodeFromNodeTemplate(nodeTemplate, csarHelper, pmConfig); + + pmConfig.setModelCustomizationName(nodeTemplate.getName()); + pmConfig.setRequirementAssignments(nodeTemplate.getRequirements()); + setSourceAndCollectorProxyNodes(csarHelper, pmConfig, nodeTemplate); + + configMaps.put(nodeTemplate.getName(), pmConfig); } - return vfModuleHashMap; + + return configMaps; + } + + private Map<String, ServiceProxy> extractServiceProxyFromCsar(ISdcCsarHelper csarHelper) { + List<NodeTemplate> nodeTemplates = csarHelper.getServiceNodeTemplateBySdcType(SdcTypes.SERVICE_PROXY); + Map<String, ServiceProxy> serviceProxies = new HashMap<>(); + for (NodeTemplate nodeTemplate: nodeTemplates) { + ServiceProxy serviceProxy = new ServiceProxy(); + populateNodeFromNodeTemplate(nodeTemplate, csarHelper, serviceProxy); + + Map<String, String> metadata = nodeTemplate.getMetaData().getAllProperties(); + serviceProxy.setSourceModelUuid(metadata.get("sourceModelUuid")); + serviceProxy.setSourceModelInvariant(metadata.get("sourceModelInvariant")); + serviceProxy.setSourceModelName(metadata.get("sourceModelName")); + + serviceProxies.put(nodeTemplate.getName(), serviceProxy); + } + + return serviceProxies; } - private Map<String, VolumeGroup> getVolumeGroupsFromVF(ISdcCsarHelper csarHelper, String vfCustomizationUuid) { - Map<String,VolumeGroup> volumeGroupMap = new HashMap<String,VolumeGroup>(); - List<Group> groups = csarHelper.getVfModulesByVf(vfCustomizationUuid); - for (Group group : groups) { - boolean isVolumeGroup = Boolean.valueOf(group.getPropertyValue(Constants.volume_group).toString()); - if (isVolumeGroup) { - volumeGroupMap.put(group.getName(), populateVolumeGroupFromGroup(group)); + private void setSourceAndCollectorProxyNodes(ISdcCsarHelper csarHelper, PortMirroringConfig portMirroringConfig, NodeTemplate nodeTemplate) { + RequirementAssignments requirementAssignments = nodeTemplate.getRequirements(); + + List<String> sourceNodes = getRequirementsNodesNames(requirementAssignments.getRequirementsByName("source").getAll()); + portMirroringConfig.setSourceNodes(sourceNodes); + + List<String> collectorNodes = getRequirementsNodesNames(requirementAssignments.getRequirementsByName("collector").getAll()); + if (!collectorNodes.isEmpty()) { // vprobe + portMirroringConfig.setCollectorNodes(collectorNodes); + } else { // pprobe - configuration by policy + String collectorNodeName = csarHelper.getNodeTemplatePropertyLeafValue(nodeTemplate, "collector_node"); + if (collectorNodeName != null) { + portMirroringConfig.setCollectorNodes(Arrays.asList(collectorNodeName)); + portMirroringConfig.setConfigurationByPolicy(true); } } - return volumeGroupMap; + } + + private List<String> getRequirementsNodesNames(List<RequirementAssignment> requirements) { + + List<String> requirementsNodes = new ArrayList<>(); + if (requirements != null && requirements.size() > 0) { + requirementsNodes = requirements.stream().map(RequirementAssignment::getNodeTemplateName).collect(Collectors.toList()); + } + + return requirementsNodes; + } + + Map<String, VfModule> getVfModulesFromVF(ISdcCsarHelper csarHelper, String vfUuid) { + List<Group> vfModulesByVf = csarHelper.getVfModulesByVf(vfUuid); + return vfModulesByVf.stream() + .collect(toMap(Group::getName, this::populateVfModuleFromGroup)); + } + + Map<String, VolumeGroup> getVolumeGroupsFromVF(ISdcCsarHelper csarHelper, String vfCustomizationUuid) { + List<Group> vfModulesByVf = csarHelper.getVfModulesByVf(vfCustomizationUuid); + return vfModulesByVf.stream() + .filter((group -> isVolumeGroup(group))) + .collect(toMap(Group::getName, this::populateVolumeGroupFromGroup)); + } + + private static Boolean isVolumeGroup(Group group) { + return Boolean.valueOf(group.getPropertyValue(Constants.volume_group).toString()); } private Map<String, Network> extractNetworksFromCsar(ISdcCsarHelper csarHelper) { @@ -124,6 +199,18 @@ public class ToscaParserImpl2 { networksMap.put(nodeTemplate.getName(), newNetwork); } return networksMap; + } + + private Map<String,Node> extractPnfsFromCsar(ISdcCsarHelper csarHelper) { + List<NodeTemplate> nodeTemplates = csarHelper.getServiceNodeTemplateBySdcType(SdcTypes.PNF); + HashMap<String, Node> pnfHashMap = new HashMap<>(); + + for (NodeTemplate nodeTemplate : nodeTemplates) { + Node pnf = new Node(); + populateNodeFromNodeTemplate(nodeTemplate, csarHelper, pnf); + pnfHashMap.put(nodeTemplate.getName(), pnf); + } + return pnfHashMap; } private Map<String, VfModule> extractVfModuleFromCsar(ISdcCsarHelper csarHelper) { @@ -148,10 +235,10 @@ public class ToscaParserImpl2 { return volumeGroupHashMap; } - private Map<String, org.openecomp.vid.asdc.beans.tosca.Input> inputsListToInputsMap(List<org.openecomp.sdc.toscaparser.api.parameters.Input> inputList) { - Map<String, org.openecomp.vid.asdc.beans.tosca.Input> inputs = new HashMap<>(); + private Map<String, org.onap.vid.asdc.beans.tosca.Input> inputsListToInputsMap(List<org.openecomp.sdc.toscaparser.api.parameters.Input> inputList) { + Map<String, org.onap.vid.asdc.beans.tosca.Input> inputs = new HashMap<>(); for (org.openecomp.sdc.toscaparser.api.parameters.Input input : inputList) { - inputs.put(input.getName(), convertInput(input, new org.openecomp.vid.asdc.beans.tosca.Input())); + inputs.put(input.getName(), convertInput(input, new org.onap.vid.asdc.beans.tosca.Input())); } return inputs; } @@ -164,6 +251,7 @@ public class ToscaParserImpl2 { newNode.setName(nodeTemplate.getMetaData().getValue(Constants.name)); newNode.setVersion(nodeTemplate.getMetaData().getValue(Constants.version)); newNode.setInputs(extractInputsAndCommandsForNodeTemplate(nodeTemplate, csarHelper, newNode)); + newNode.setType(nodeTemplate.getMetaData().getValue("type")); Map<String, String> propertiesMap = setPropertiesOfVnf(nodeTemplate.getPropertiesObjects()); newNode.setProperties(propertiesMap); return newNode; @@ -176,7 +264,7 @@ public class ToscaParserImpl2 { vfModule.setCustomizationUuid(group.getMetadata().getValue(Constants.vfModuleModelCustomizationUUID)); vfModule.setModelCustomizationName(group.getMetadata().getValue(Constants.vfModuleModelName)); vfModule.setName(group.getMetadata().getValue(Constants.vfModuleModelName)); - vfModule.setVolumeGroupAllowed(Boolean.valueOf((group.getPropertyValue(Constants.volume_group)).toString())); + vfModule.setVolumeGroupAllowed(isVolumeGroup(group)); vfModule.setDescription(group.getDescription()); vfModule.setInvariantUuid(group.getMetadata().getValue(Constants.vfModuleModelInvariantUUID)); vfModule.setUuid(group.getMetadata().getValue(Constants.vfModuleModelUUID)); @@ -197,8 +285,8 @@ public class ToscaParserImpl2 { } - private Map<String, org.openecomp.vid.asdc.beans.tosca.Input> extractInputsAndCommandsForNodeTemplate(NodeTemplate nodeTemplate, ISdcCsarHelper csarHelper, Node newNode){ - Map<String, org.openecomp.vid.asdc.beans.tosca.Input> inputMap = new HashMap<>(); + private Map<String, org.onap.vid.asdc.beans.tosca.Input> extractInputsAndCommandsForNodeTemplate(NodeTemplate nodeTemplate, ISdcCsarHelper csarHelper, Node newNode){ + Map<String, org.onap.vid.asdc.beans.tosca.Input> inputMap = new HashMap<>(); Map<String, CommandProperty> commandPropertyMap = new HashMap<>(); List<Input> inputs = csarHelper.getServiceInputs(); @@ -208,7 +296,7 @@ public class ToscaParserImpl2 { String key = extractInputValue(inputKey); for (Input input: inputs){ if(input.getName().equals(key)){ - org.openecomp.vid.asdc.beans.tosca.Input localInput = new org.openecomp.vid.asdc.beans.tosca.Input(); + org.onap.vid.asdc.beans.tosca.Input localInput = new org.onap.vid.asdc.beans.tosca.Input(); localInput = convertInput(input, localInput); String name = property.getKey(); commandPropertyMap.put(name, extractCommands(name, key)); @@ -224,7 +312,7 @@ public class ToscaParserImpl2 { return inputKey.substring(inputKey.indexOf(":") + 1); } - private org.openecomp.vid.asdc.beans.tosca.Input convertInput(Input parserInput, org.openecomp.vid.asdc.beans.tosca.Input localInput){ + private org.onap.vid.asdc.beans.tosca.Input convertInput(Input parserInput, org.onap.vid.asdc.beans.tosca.Input localInput){ localInput.setDefault(parserInput.getDefault()); localInput.setDescription(parserInput.getDescription()); localInput.setRequired(parserInput.isRequired()); @@ -250,5 +338,17 @@ public class ToscaParserImpl2 { return propertiesMap; } + private String validateInstantiationType(ISdcCsarHelper csarHelper){ + String instantiationType = csarHelper.getServiceMetadata().getValue(Constants.instantiationType); + String validatedInstantiationType = Constants.clientConfig; + if(instantiationType != null && !instantiationType.isEmpty()){ + if(instantiationType.equalsIgnoreCase(Constants.macro) || instantiationType.equalsIgnoreCase(Constants.both)) + validatedInstantiationType = Constants.macro; + else if(instantiationType.equalsIgnoreCase(Constants.aLaCarte)) + validatedInstantiationType = Constants.aLaCarte; + } + return validatedInstantiationType; + } + }
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/openecomp/vid/asdc/rest/RestfulAsdcClient.java b/vid-app-common/src/main/java/org/onap/vid/asdc/rest/RestfulAsdcClient.java index 67375aa6c..a8dc28716 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/asdc/rest/RestfulAsdcClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/rest/RestfulAsdcClient.java @@ -1,467 +1,480 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.asdc.rest;
-
-import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.vid.asdc.AsdcCatalogException;
-import org.openecomp.vid.asdc.AsdcClient;
-import org.openecomp.vid.asdc.beans.Artifact;
-import org.openecomp.vid.asdc.beans.Resource;
-import org.openecomp.vid.asdc.beans.Service;
-import org.openecomp.vid.asdc.parser.ToscaParserImpl;
-import org.openecomp.vid.model.ModelConstants;
-import org.openecomp.vid.properties.VidProperties;
-
-import javax.ws.rs.NotFoundException;
-import javax.ws.rs.ProcessingException;
-import javax.ws.rs.WebApplicationException;
-import javax.ws.rs.client.Client;
-import javax.ws.rs.client.ResponseProcessingException;
-import javax.ws.rs.client.WebTarget;
-import javax.ws.rs.core.GenericType;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.MultivaluedHashMap;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URI;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.StandardCopyOption;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.UUID;
-
-/**
- * The Class RestfulAsdcClient.
- */
-@SuppressWarnings("Duplicates")
-public class RestfulAsdcClient implements AsdcClient {
-
- /**
- * The Class Builder.
- */
- public static class Builder {
-
- /**
- * The client.
- */
- private final Client client;
-
- /**
- * The uri.
- */
- private final URI uri;
-
- /**
- * The auth.
- */
- private String auth = null;
-
- /**
- * Instantiates a new builder.
- *
- * @param client the client
- * @param uri the uri
- */
- public Builder(Client client, URI uri) {
- this.client = client;
- this.client.register(JacksonJsonProvider.class);
- this.uri = uri;
- }
-
- /**
- * Auth.
- *
- * @param auth the auth
- * @return the builder
- */
- public Builder auth(String auth) {
- this.auth = auth;
- return this;
- }
-
- /**
- * Builds the.
- *
- * @return the restful asdc client
- */
- public RestfulAsdcClient build() {
- return new RestfulAsdcClient(this);
- }
- }
-
- /**
- * The Constant LOG.
- */
- static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(RestfulAsdcClient.class);
-
- /**
- * The Constant dateFormat.
- */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /**
- * The client.
- */
- private final Client client;
-
- /**
- * The uri.
- */
- private final URI uri;
-
- /**
- * The common headers.
- */
- private final MultivaluedHashMap<String, Object> commonHeaders;
-
- /**
- * The auth.
- */
- private final String auth;
-
- ToscaParserImpl p = new ToscaParserImpl();
-
- /**
- * Instantiates a new restful asdc client.
- *
- * @param builder the builder
- */
- private RestfulAsdcClient(Builder builder) {
- client = builder.client;
- uri = builder.uri;
- auth = builder.auth;
-
- commonHeaders = new MultivaluedHashMap<String, Object>();
- commonHeaders.put("X-ECOMP-InstanceID", Collections.singletonList((Object) "VID"));
- commonHeaders.put("Authorization", Collections.singletonList((Object) (auth)));
- }
-
- private Path createTmpFile(InputStream csarInputStream) throws AsdcCatalogException {
- final Path csarFile;
- try {
- csarFile = Files.createTempFile("csar", ".zip");
- Files.copy(csarInputStream, csarFile, StandardCopyOption.REPLACE_EXISTING);
- } catch (IOException e) {
- throw new AsdcCatalogException("Caught IOException while creating CSAR", e);
- }
- return csarFile;
- }
-
- /**
- * Gets the client.
- *
- * @return the client
- */
- private Client getClient() {
- return client;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResource(java.util.UUID)
- */
- public Resource getResource(UUID uuid) throws AsdcCatalogException {
-
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH);
- try {
- return getClient()
- .target(uri)
- .path(path + "/" + uuid.toString() + "/metadata")
- .request(MediaType.APPLICATION_JSON_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_JSON)
- .get(Resource.class);
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResourceArtifact(java.util.UUID, java.util.UUID)
- */
- public Artifact getResourceArtifact(UUID resourceUuid, UUID artifactUuid) throws AsdcCatalogException {
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH);
- try {
- return getClient()
- .target(uri)
- .path(path + "/" + resourceUuid + "/artifacts/" + artifactUuid)
- .request(MediaType.APPLICATION_JSON_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_JSON)
- .get(Artifact.class);
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResources()
- */
- public Collection<Resource> getResources() throws AsdcCatalogException {
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH);
- try {
- return getClient()
- .target(uri)
- .path(path)
- .request(MediaType.APPLICATION_JSON_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_JSON)
- .get(new GenericType<Collection<Resource>>() {
- });
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResources(java.util.Map)
- */
- public Collection<Resource> getResources(Map<String, String[]> filter) throws AsdcCatalogException {
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH);
- WebTarget target = getClient()
- .target(uri)
- .path(path);
-
- for (Entry<String, String[]> filterEntry : filter.entrySet()) {
- target = target.queryParam(filterEntry.getKey(), (Object[]) filterEntry.getValue());
- }
-
- try {
- return target.request()
- .accept(MediaType.APPLICATION_JSON_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_JSON)
- .get(new GenericType<Collection<Resource>>() {
- });
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (NotFoundException e) {
- throw e;
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getResourceToscaModel(java.util.UUID)
- */
- public Path getResourceToscaModel(UUID resourceUuid) throws AsdcCatalogException {
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH);
- try (final InputStream csarInputStream = (InputStream) getClient()
- .target(uri)
- .path(path + "/" + resourceUuid + "/toscaModel")
- .request(MediaType.APPLICATION_OCTET_STREAM_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_OCTET_STREAM)
- .get(InputStream.class)) {
-
- return getToscaCsar(csarInputStream);
- } catch (IOException e) {
- throw new AsdcCatalogException("Failed to retrieve resource TOSCA model from ASDC", e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getService(java.util.UUID)
- */
- public Service getService(UUID uuid) throws AsdcCatalogException {
-
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH);
- try {
- return getClient()
- .target(uri)
- .path(path + "/" + uuid.toString() + "/metadata")
- .request(MediaType.APPLICATION_JSON)
- .headers(commonHeaders)
- .get(Service.class);
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getServiceArtifact(java.util.UUID, java.util.UUID)
- */
- public Artifact getServiceArtifact(UUID serviceUuid, UUID artifactUuid) throws AsdcCatalogException {
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH);
-
- try {
- return getClient()
- .target(uri)
- .path(path + "/" + serviceUuid + "/artifacts/" + artifactUuid)
- .request(MediaType.APPLICATION_JSON_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_JSON)
- .get(Artifact.class);
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getServices()
- */
- public Collection<Service> getServices() throws AsdcCatalogException {
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH);
- try {
- return getClient()
- .target(uri)
- .path(path)
- .request()
- .accept(MediaType.APPLICATION_JSON_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_JSON)
- .get(new GenericType<Collection<Service>>() {
- });
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getServices(java.util.Map)
- */
- public Collection<Service> getServices(Map<String, String[]> filter) throws AsdcCatalogException {
-
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH);
- WebTarget target = getClient()
- .target(uri)
- .path(path);
-
-
- for (Entry<String, String[]> filterEntry : filter.entrySet()) {
- target = target.queryParam(filterEntry.getKey(), (Object[]) filterEntry.getValue());
- }
-
- try {
- return target.request()
- .accept(MediaType.APPLICATION_JSON_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_JSON)
- .get(new GenericType<Collection<Service>>() {
- });
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (NotFoundException e) {
- throw e;
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.asdc.AsdcClient#getServiceToscaModel(java.util.UUID)
- */
- public Path getServiceToscaModel(UUID serviceUuid) throws AsdcCatalogException {
- String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH);
- try {
- final InputStream csarInputStream = (InputStream) getClient()
- .target(uri)
- .path(path + "/" + serviceUuid + "/toscaModel")
- .request(MediaType.APPLICATION_OCTET_STREAM_TYPE)
- .headers(commonHeaders)
- .header("Content-Type", MediaType.APPLICATION_OCTET_STREAM)
- .get(InputStream.class);
-
-
- return getToscaCsar(csarInputStream);
- } catch (ResponseProcessingException e) {
- //Couldn't convert response to Java type
- throw new AsdcCatalogException("ASDC response could not be processed", e);
- } catch (ProcessingException e) {
- //IO problems during request
- throw new AsdcCatalogException("Failed to get a response from ASDC service", e);
- } catch (WebApplicationException e) {
- //Web service returned data, but the response status wasn't a good one (i.e. non 2xx)
- throw new AsdcCatalogException(e);
- }
- }
-
-
- /**
- * Gets the tosca model.
- *
- * @param csarInputStream the csar input stream
- * @return the tosca model
- * @throws AsdcCatalogException the asdc catalog exception
- */
- private Path getToscaCsar(InputStream csarInputStream) throws AsdcCatalogException {
- return createTmpFile(csarInputStream);
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.asdc.rest; + +import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.AsdcClient; +import org.onap.vid.asdc.beans.Artifact; +import org.onap.vid.asdc.beans.Resource; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.asdc.parser.ToscaParserImpl; +import org.onap.vid.model.ModelConstants; +import org.onap.vid.properties.VidProperties; + +import javax.ws.rs.NotFoundException; +import javax.ws.rs.ProcessingException; +import javax.ws.rs.WebApplicationException; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ResponseProcessingException; +import javax.ws.rs.client.WebTarget; +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.MultivaluedHashMap; +import java.io.IOException; +import java.io.InputStream; +import java.net.URI; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.StandardCopyOption; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Collection; +import java.util.Collections; +import java.util.Map; +import java.util.Map.Entry; +import java.util.UUID; + +import static org.onap.vid.utils.Logging.getHttpServletRequest; +import static org.onap.vid.utils.Logging.requestIdHeaderKey; +/** + * The Class RestfulAsdcClient. + */ +@SuppressWarnings("Duplicates") +public class RestfulAsdcClient implements AsdcClient { + + + /** + * The Class Builder. + */ + public static class Builder { + + /** + * The client. + */ + private final Client client; + + /** + * The uri. + */ + private final URI uri; + + /** + * The auth. + */ + private String auth = null; + + /** + * Instantiates a new builder. + * + * @param client the client + * @param uri the uri + */ + public Builder(Client client, URI uri) { + this.client = client; + this.client.register(JacksonJsonProvider.class); + this.uri = uri; + } + + /** + * Auth. + * + * @param auth the auth + * @return the builder + */ + public Builder auth(String auth) { + this.auth = auth; + return this; + } + + /** + * Builds the. + * + * @return the restful asdc client + */ + public RestfulAsdcClient build() { + return new RestfulAsdcClient(this); + } + } + + /** + * The Constant LOG. + */ + static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(RestfulAsdcClient.class); + + /** + * The Constant dateFormat. + */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** + * The client. + */ + private final Client client; + + /** + * The uri. + */ + private final URI uri; + + /** + * The common headers. + */ + private final MultivaluedHashMap<String, Object> commonHeaders; + + /** + * The auth. + */ + private final String auth; + + ToscaParserImpl p = new ToscaParserImpl(); + + /** + * Instantiates a new restful asdc client. + * + * @param builder the builder + */ + private RestfulAsdcClient(Builder builder) { + client = builder.client; + uri = builder.uri; + auth = builder.auth; + + commonHeaders = new MultivaluedHashMap<String, Object>(); + commonHeaders.put("Authorization", Collections.singletonList((Object) (auth))); + } + + private Path createTmpFile(InputStream csarInputStream) throws AsdcCatalogException { + final Path csarFile; + try { + csarFile = Files.createTempFile("csar", ".zip"); + Files.copy(csarInputStream, csarFile, StandardCopyOption.REPLACE_EXISTING); + } catch (IOException e) { + throw new AsdcCatalogException("Caught IOException while creating CSAR", e); + } + return csarFile; + } + + /** + * Gets the client. + * + * @return the client + */ + private Client getClient() { + return client; + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getResource(java.util.UUID) + */ + public Resource getResource(UUID uuid) throws AsdcCatalogException { + + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH); + try { + return getClient() + .target(uri) + .path(path + "/" + uuid.toString() + "/metadata") + .request(MediaType.APPLICATION_JSON_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_JSON) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(Resource.class); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getResourceArtifact(java.util.UUID, java.util.UUID) + */ + public Artifact getResourceArtifact(UUID resourceUuid, UUID artifactUuid) throws AsdcCatalogException { + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH); + try { + return getClient() + .target(uri) + .path(path + "/" + resourceUuid + "/artifacts/" + artifactUuid) + .request(MediaType.APPLICATION_JSON_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_JSON) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(Artifact.class); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getResources() + */ + public Collection<Resource> getResources() throws AsdcCatalogException { + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH); + try { + return getClient() + .target(uri) + .path(path) + .request(MediaType.APPLICATION_JSON_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_JSON) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(new GenericType<Collection<Resource>>() { + }); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getResources(java.util.Map) + */ + public Collection<Resource> getResources(Map<String, String[]> filter) throws AsdcCatalogException { + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH); + WebTarget target = getClient() + .target(uri) + .path(path); + + for (Entry<String, String[]> filterEntry : filter.entrySet()) { + target = target.queryParam(filterEntry.getKey(), (Object[]) filterEntry.getValue()); + } + + try { + return target.request() + .accept(MediaType.APPLICATION_JSON_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_JSON) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(new GenericType<Collection<Resource>>() { + }); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (NotFoundException e) { + throw e; + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getResourceToscaModel(java.util.UUID) + */ + public Path getResourceToscaModel(UUID resourceUuid) throws AsdcCatalogException { + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_RESOURCE_API_PATH, ModelConstants.DEFAULT_ASDC_RESOURCE_API_PATH); + try (final InputStream csarInputStream = (InputStream) getClient() + .target(uri) + .path(path + "/" + resourceUuid + "/toscaModel") + .request(MediaType.APPLICATION_OCTET_STREAM_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_OCTET_STREAM) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(InputStream.class)) { + + return getToscaCsar(csarInputStream); + } catch (IOException e) { + throw new AsdcCatalogException("Failed to retrieve resource TOSCA model from ASDC", e); + } + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getService(java.util.UUID) + */ + public Service getService(UUID uuid) throws AsdcCatalogException { + + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH); + try { + return getClient() + .target(uri) + .path(path + "/" + uuid.toString() + "/metadata") + .request(MediaType.APPLICATION_JSON) + .headers(commonHeaders) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(Service.class); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getServiceArtifact(java.util.UUID, java.util.UUID) + */ + public Artifact getServiceArtifact(UUID serviceUuid, UUID artifactUuid) throws AsdcCatalogException { + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH); + + try { + return getClient() + .target(uri) + .path(path + "/" + serviceUuid + "/artifacts/" + artifactUuid) + .request(MediaType.APPLICATION_JSON_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_JSON) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(Artifact.class); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getServices() + */ + public Collection<Service> getServices() throws AsdcCatalogException { + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH); + try { + return getClient() + .target(uri) + .path(path) + .request() + .accept(MediaType.APPLICATION_JSON_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_JSON) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(new GenericType<Collection<Service>>() { + }); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getServices(java.util.Map) + */ + public Collection<Service> getServices(Map<String, String[]> filter) throws AsdcCatalogException { + + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH); + WebTarget target = getClient() + .target(uri) + .path(path); + + + for (Entry<String, String[]> filterEntry : filter.entrySet()) { + target = target.queryParam(filterEntry.getKey(), (Object[]) filterEntry.getValue()); + } + + try { + return target.request() + .accept(MediaType.APPLICATION_JSON_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_JSON) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(new GenericType<Collection<Service>>() { + }); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (NotFoundException e) { + throw e; + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + + /* (non-Javadoc) + * @see org.onap.vid.asdc.AsdcClient#getServiceToscaModel(java.util.UUID) + */ + public Path getServiceToscaModel(UUID serviceUuid) throws AsdcCatalogException { + String path = VidProperties.getPropertyWithDefault(ModelConstants.ASDC_SVC_API_PATH, ModelConstants.DEFAULT_ASDC_SVC_API_PATH); + try { + final InputStream csarInputStream = (InputStream) getClient() + .target(uri) + .path(path + "/" + serviceUuid + "/toscaModel") + .request(MediaType.APPLICATION_OCTET_STREAM_TYPE) + .headers(commonHeaders) + .header("Content-Type", MediaType.APPLICATION_OCTET_STREAM) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(InputStream.class); + + + return getToscaCsar(csarInputStream); + } catch (ResponseProcessingException e) { + //Couldn't convert response to Java type + throw new AsdcCatalogException("ASDC response could not be processed", e); + } catch (ProcessingException e) { + //IO problems during request + throw new AsdcCatalogException("Failed to get a response from ASDC service", e); + } catch (WebApplicationException e) { + //Web service returned data, but the response status wasn't a good one (i.e. non 2xx) + throw new AsdcCatalogException(e); + } + } + + + /** + * Gets the tosca model. + * + * @param csarInputStream the csar input stream + * @return the tosca model + * @throws AsdcCatalogException the asdc catalog exception + */ + private Path getToscaCsar(InputStream csarInputStream) throws AsdcCatalogException { + return createTmpFile(csarInputStream); + } +} + diff --git a/vid-app-common/src/main/java/org/onap/vid/category/AddCategoryOptionResponse.java b/vid-app-common/src/main/java/org/onap/vid/category/AddCategoryOptionResponse.java new file mode 100644 index 000000000..89d3963ac --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/category/AddCategoryOptionResponse.java @@ -0,0 +1,15 @@ +package org.onap.vid.category; + +import org.onap.vid.model.ListOfErrorsResponse; + +import java.util.List; + +public class AddCategoryOptionResponse extends ListOfErrorsResponse { + + public AddCategoryOptionResponse() { + } + + public AddCategoryOptionResponse(List<String> errors) { + super(errors); + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/category/AddCategoryOptionsRequest.java b/vid-app-common/src/main/java/org/onap/vid/category/AddCategoryOptionsRequest.java new file mode 100644 index 000000000..5db474627 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/category/AddCategoryOptionsRequest.java @@ -0,0 +1,13 @@ +package org.onap.vid.category; + +import java.util.ArrayList; +import java.util.List; + +public class AddCategoryOptionsRequest { + + public List<String> options; + + public AddCategoryOptionsRequest() { + options = new ArrayList<>(); + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/category/CategoryParameterOptionRep.java b/vid-app-common/src/main/java/org/onap/vid/category/CategoryParameterOptionRep.java new file mode 100644 index 000000000..355e54838 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/category/CategoryParameterOptionRep.java @@ -0,0 +1,31 @@ +package org.onap.vid.category; + +public class CategoryParameterOptionRep { + + private String id; + private String name; + + public CategoryParameterOptionRep() { + } + + public CategoryParameterOptionRep(String id, String name) { + this.id = id; + this.name = name; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/category/CategoryParametersResponse.java b/vid-app-common/src/main/java/org/onap/vid/category/CategoryParametersResponse.java new file mode 100644 index 000000000..be7886698 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/category/CategoryParametersResponse.java @@ -0,0 +1,27 @@ +package org.onap.vid.category; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; +import java.util.Map; + +public class CategoryParametersResponse { + + private Map<String, List<CategoryParameterOptionRep>> categoryParameters; + + public CategoryParametersResponse() { + } + + public CategoryParametersResponse(Map<String, List<CategoryParameterOptionRep>> categoryParameters) { + this.categoryParameters = categoryParameters; + } + + @JsonProperty("categoryParameters") + public Map<String, List<CategoryParameterOptionRep>> getCategoryParameters() { + return categoryParameters; + } + + public void setCategoryParameters(Map<String, List<CategoryParameterOptionRep>> categoryParameters) { + this.categoryParameters = categoryParameters; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/ChangeManagementRequest.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/ChangeManagementRequest.java index adcb54683..ec375b621 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/ChangeManagementRequest.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/ChangeManagementRequest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import java.util.List; import java.util.HashMap; @@ -15,8 +15,18 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; }) public class ChangeManagementRequest { - - public ChangeManagementRequest() {} + + public static class MsoChangeManagementRequest { + public final static String SOFTWARE_UPDATE = "inPlaceSoftwareUpdate"; + public static final String REPLACE = "replace"; + public final static String CONFIG_UPDATE = "applyUpdatedConfig"; + + } + + public final static String VNF_IN_PLACE_SOFTWARE_UPDATE = "vnf in place software update"; + public static final String UPDATE = "update"; + public static final String REPLACE = "replace"; + public final static String CONFIG_UPDATE = "vnf config update"; @JsonProperty("requestDetails") private List<RequestDetails> requestDetails; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/ChangeManagementResponse.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/ChangeManagementResponse.java index 10ba035d6..05d6e0496 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/ChangeManagementResponse.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/ChangeManagementResponse.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import java.util.ArrayList; import java.util.List; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/CloudConfiguration.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/CloudConfiguration.java index a5debc6db..43d6a6a0a 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/CloudConfiguration.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/CloudConfiguration.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import java.util.HashMap; import java.util.Map; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/CmResponse.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/CmResponse.java index 70e09d83c..8aba0124a 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/CmResponse.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/CmResponse.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; public class CmResponse { diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/GetVnfWorkflowRelationRequest.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/GetVnfWorkflowRelationRequest.java new file mode 100644 index 000000000..0412204f9 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/GetVnfWorkflowRelationRequest.java @@ -0,0 +1,28 @@ +package org.onap.vid.changeManagement; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public class GetVnfWorkflowRelationRequest { + + public GetVnfWorkflowRelationRequest() { + } + + public GetVnfWorkflowRelationRequest(List<VnfDetails> vnfsDetails) { + this.vnfsDetails = vnfsDetails; + } + + @JsonProperty("vnfsDetails") + private List<VnfDetails> vnfsDetails; + + @JsonProperty("vnfsDetails") + public List<VnfDetails> getVnfDetails() { + return vnfsDetails; + } + + @JsonProperty("vnfsDetails") + public void setVnfDetails(List<VnfDetails> vnfDetails) { + this.vnfsDetails = vnfDetails; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/GetWorkflowsResponse.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/GetWorkflowsResponse.java new file mode 100644 index 000000000..05295fbc6 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/GetWorkflowsResponse.java @@ -0,0 +1,24 @@ +package org.onap.vid.changeManagement; + +import java.util.List; + +public class GetWorkflowsResponse { + private List<String> workflows; + + public GetWorkflowsResponse() { + } + + public GetWorkflowsResponse(List<String> workflows) { + this.workflows = workflows; + } + + public List<String> getWorkflows() { + return workflows; + } + + public void setWorkflows(List<String> workflows) { + this.workflows = workflows; + } + + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/LeanCloudConfiguration.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/LeanCloudConfiguration.java index 663ff8c49..6011c7ebb 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/LeanCloudConfiguration.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/LeanCloudConfiguration.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; /** * Created by Oren on 9/5/17. @@ -8,7 +8,7 @@ public class LeanCloudConfiguration { public LeanCloudConfiguration() { } - public LeanCloudConfiguration(org.openecomp.vid.domain.mso.CloudConfiguration cloudConfiguration) { + public LeanCloudConfiguration(org.onap.vid.domain.mso.CloudConfiguration cloudConfiguration) { this.tenantId = cloudConfiguration.getTenantId(); this.lcpCloudRegionId = cloudConfiguration.getLcpCloudRegionId(); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/ModelInfo.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/ModelInfo.java index 517628ca0..8f44a4bf6 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/ModelInfo.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/ModelInfo.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -24,7 +24,7 @@ public class ModelInfo { } - public ModelInfo(org.openecomp.vid.domain.mso.ModelInfo modelInfo){ + public ModelInfo(org.onap.vid.domain.mso.ModelInfo modelInfo){ this.setModelType(modelInfo.getModelType().toString()); this.setModelInvariantId(modelInfo.getModelInvariantId()); this.setModelVersionId(modelInfo.getModelNameVersionId()); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/ModelInfoOfRelatedInstance.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/ModelInfoOfRelatedInstance.java index c60ed2f77..7e8760987 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/ModelInfoOfRelatedInstance.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/ModelInfoOfRelatedInstance.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import java.util.HashMap; import java.util.Map; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/MsoRequestDetails.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/MsoRequestDetails.java index 9e442f28b..913fa0787 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/MsoRequestDetails.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/MsoRequestDetails.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import java.util.ArrayList; @@ -17,13 +17,14 @@ public class MsoRequestDetails { public List<RelatedInstanceList> relatedInstanceList; - public RequestParameters requestParameters; + public Object requestParameters; public MsoRequestDetails(RequestDetails r) { this.modelInfo = new ModelInfo(r.getModelInfo()); this.cloudConfiguration = new LeanCloudConfiguration(r.getCloudConfiguration()); this.requestInfo = new UpdateRequestInfo(r.getRequestInfo()); this.relatedInstanceList = new ArrayList<>(); + this.requestParameters = r.getRequestParameters(); relatedInstanceList = r.getRelatedInstList(); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RelatedInstance.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RelatedInstance.java index 49368c20e..c29aee454 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RelatedInstance.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RelatedInstance.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import com.fasterxml.jackson.annotation.*; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RelatedInstanceList.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RelatedInstanceList.java index 21a41c3f7..b3e67a020 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RelatedInstanceList.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RelatedInstanceList.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import com.fasterxml.jackson.annotation.*; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestDetails.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RequestDetails.java index 94e4c4468..36452f67f 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestDetails.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RequestDetails.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import com.fasterxml.jackson.annotation.*; @@ -13,7 +13,7 @@ import java.util.List; "vnfName", "vnfInstanceId" }) -public class RequestDetails extends org.openecomp.vid.mso.rest.RequestDetails{ +public class RequestDetails extends org.onap.vid.mso.rest.RequestDetails{ @JsonProperty("vnfName") private String vnfName; diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/RequestDetailsWrapper.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RequestDetailsWrapper.java new file mode 100644 index 000000000..92fb57c2d --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RequestDetailsWrapper.java @@ -0,0 +1,16 @@ +package org.onap.vid.changeManagement; + +/** + * Created by Oren on 9/5/17. + */ +public class RequestDetailsWrapper<T> { + + public RequestDetailsWrapper(T requestDetails) { + this.requestDetails = requestDetails; + } + + public RequestDetailsWrapper() { + } + + public T requestDetails; +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestInfo.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RequestInfo.java index a7236c4b1..4aa3724af 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestInfo.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/RequestInfo.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; import java.util.HashMap; import java.util.Map; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/UpdateRequestInfo.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/UpdateRequestInfo.java index ab8189484..024e9c3c1 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/UpdateRequestInfo.java +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/UpdateRequestInfo.java @@ -1,6 +1,6 @@ -package org.openecomp.vid.changeManagement; +package org.onap.vid.changeManagement; -import org.openecomp.vid.domain.mso.*; +import org.onap.vid.domain.mso.*; /** * Created by Oren on 9/5/17. @@ -11,7 +11,7 @@ public class UpdateRequestInfo { } - public UpdateRequestInfo(org.openecomp.vid.domain.mso.RequestInfo requestInfo) { + public UpdateRequestInfo(org.onap.vid.domain.mso.RequestInfo requestInfo) { this.requestorId = requestInfo.getRequestorId(); this.suppressRollback = requestInfo.getSuppressRollback(); this.source = requestInfo.getSource(); diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfDetails.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfDetails.java new file mode 100644 index 000000000..5cc2f4d32 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfDetails.java @@ -0,0 +1,67 @@ +package org.onap.vid.changeManagement; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.google.common.base.MoreObjects; + +public class VnfDetails { + + public VnfDetails() { + } + + public VnfDetails(String UUID, String invariantUUID) { + this.UUID = UUID; + this.invariantUUID = invariantUUID; + } + + @JsonProperty("UUID") + private String UUID; + + @JsonProperty("invariantUUID") + private String invariantUUID; + + @JsonProperty("UUID") + public String getUUID() { + return UUID; + } + + @JsonProperty("UUID") + public void setUUID(String uUID) { + UUID = uUID; + } + + @JsonProperty("invariantUUID") + public String getInvariantUUID() { + return invariantUUID; + } + + @JsonProperty("invariantUUID") + public void setInvariantUUID(String invariantUUID) { + this.invariantUUID = invariantUUID; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + VnfDetails that = (VnfDetails) o; + + if (getUUID() != null ? !getUUID().equals(that.getUUID()) : that.getUUID() != null) return false; + return getInvariantUUID() != null ? getInvariantUUID().equals(that.getInvariantUUID()) : that.getInvariantUUID() == null; + } + + @Override + public int hashCode() { + int result = getUUID() != null ? getUUID().hashCode() : 0; + result = 31 * result + (getInvariantUUID() != null ? getInvariantUUID().hashCode() : 0); + return result; + } + + @Override + public String toString() { + return "VnfDetails{" + + "UUID='" + UUID + '\'' + + ", invariantUUID='" + invariantUUID + '\'' + + '}'; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfDetailsWithWorkflows.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfDetailsWithWorkflows.java new file mode 100644 index 000000000..db162999f --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfDetailsWithWorkflows.java @@ -0,0 +1,36 @@ +package org.onap.vid.changeManagement; + +import org.onap.vid.model.VNFDao; +import org.onap.vid.model.VidWorkflow; + +import java.util.List; +import java.util.stream.Collectors; + +public class VnfDetailsWithWorkflows extends VnfDetails { + + private List<String> workflows; + + public VnfDetailsWithWorkflows() { + } + + + @SuppressWarnings("WeakerAccess") + public VnfDetailsWithWorkflows(String UUID, String invariantUUID, List<String> workflows) { + super(UUID, invariantUUID); + this.workflows = workflows; + } + + public VnfDetailsWithWorkflows(VNFDao vnfDao) { + this(vnfDao.getVnfUUID(), + vnfDao.getVnfInvariantUUID(), + vnfDao.getWorkflows().stream().map(VidWorkflow::getWokflowName).collect(Collectors.toList())); + } + + public List<String> getWorkflows() { + return workflows; + } + + public void setWorkflows(List<String> workflows) { + this.workflows = workflows; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationAllResponse.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationAllResponse.java new file mode 100644 index 000000000..5c9af661e --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationAllResponse.java @@ -0,0 +1,23 @@ +package org.onap.vid.changeManagement; + +import java.util.List; + +public class VnfWorkflowRelationAllResponse { + + private List<VnfDetailsWithWorkflows> vnfs; + + public VnfWorkflowRelationAllResponse() { + } + + public VnfWorkflowRelationAllResponse(List<VnfDetailsWithWorkflows> vnfs) { + this.vnfs = vnfs; + } + + public List<VnfDetailsWithWorkflows> getVnfs() { + return vnfs; + } + + public void setVnfs(List<VnfDetailsWithWorkflows> vnfs) { + this.vnfs = vnfs; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationRequest.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationRequest.java new file mode 100644 index 000000000..cc9abae27 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationRequest.java @@ -0,0 +1,31 @@ +package org.onap.vid.changeManagement; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public class VnfWorkflowRelationRequest { + + public VnfWorkflowRelationRequest() { + } + + public VnfWorkflowRelationRequest(List<WorkflowsDetail> workflowsDetails) { + this.workflowsDetails = workflowsDetails; + } + + @JsonProperty("workflowsDetails") + private List<WorkflowsDetail> workflowsDetails; + + @JsonProperty("workflowsDetails") + public List<WorkflowsDetail> getWorkflowsDetails() { + return workflowsDetails; + } + + @JsonProperty("workflowsDetails") + public void setWorkflowsDetails(List<WorkflowsDetail> workflowsDetails) { + this.workflowsDetails = workflowsDetails; + } + + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationResponse.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationResponse.java new file mode 100644 index 000000000..98ebc89ea --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/VnfWorkflowRelationResponse.java @@ -0,0 +1,15 @@ +package org.onap.vid.changeManagement; + +import org.onap.vid.model.ListOfErrorsResponse; + +import java.util.List; + +public class VnfWorkflowRelationResponse extends ListOfErrorsResponse { + + public VnfWorkflowRelationResponse() { + } + + public VnfWorkflowRelationResponse(List<String> errors) { + super(errors); + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/changeManagement/WorkflowsDetail.java b/vid-app-common/src/main/java/org/onap/vid/changeManagement/WorkflowsDetail.java new file mode 100644 index 000000000..e833ecb28 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/changeManagement/WorkflowsDetail.java @@ -0,0 +1,44 @@ +package org.onap.vid.changeManagement; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.google.common.base.MoreObjects; + +public class WorkflowsDetail { + + public WorkflowsDetail() { + } + + public WorkflowsDetail(VnfDetails vnfDetails, String workflowName) { + this.vnfDetails = vnfDetails; + this.workflowName = workflowName; + } + + @JsonProperty("vnfDetails") + private VnfDetails vnfDetails; + + @JsonProperty("workflowName") + private String workflowName; + + @JsonProperty("vnfDetails") + public VnfDetails getVnfDetails() { + return vnfDetails; + } + @JsonProperty("vnfDetails") + public void setVnfDetails(VnfDetails vnfDetails) { + this.vnfDetails = vnfDetails; + } + @JsonProperty("workflowName") + public String getWorkflowName() { + return workflowName; + } + @JsonProperty("workflowName") + public void setWorkflowName(String workflowName) { + this.workflowName = workflowName; + } + + @Override + public String toString() { + return vnfDetails + + ", workflowName='" + workflowName; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/client/FakeHttpSession.java b/vid-app-common/src/main/java/org/onap/vid/client/FakeHttpSession.java index 226e6c4d2..69ce11f4b 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/client/FakeHttpSession.java +++ b/vid-app-common/src/main/java/org/onap/vid/client/FakeHttpSession.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.client; +package org.onap.vid.client; import org.apache.commons.io.IOUtils; import org.json.JSONArray; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/client/HttpBasicClient.java b/vid-app-common/src/main/java/org/onap/vid/client/HttpBasicClient.java index ef2ade914..d0a34ce38 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/client/HttpBasicClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/client/HttpBasicClient.java @@ -1,67 +1,67 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.client;
-
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-
-import javax.servlet.ServletContext;
-import javax.ws.rs.client.Client;
-import javax.ws.rs.client.ClientBuilder;
-
-import org.glassfish.jersey.client.ClientConfig;
-import org.glassfish.jersey.client.ClientProperties;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-
-/**
- * General HTTP client.
- */
-
-public class HttpBasicClient{
-
- /** The servlet context. */
- @Autowired
- private ServletContext servletContext;
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(HttpBasicClient.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /**
- * Obtain a basic HTTP client .
- *
- * @return Client client object
- * @throws Exception the exception
- */
- public static Client getClient() throws Exception {
-
- ClientConfig config = new ClientConfig();
- config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
-
- return ClientBuilder.newClient(config)
- .register(org.openecomp.aai.util.CustomJacksonJaxBJsonProvider.class);
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.client; + + +import java.text.DateFormat; +import java.text.SimpleDateFormat; + +import javax.servlet.ServletContext; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; + +import org.glassfish.jersey.client.ClientConfig; +import org.glassfish.jersey.client.ClientProperties; +import org.springframework.beans.factory.annotation.Autowired; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; + +/** + * General HTTP client. + */ + +public class HttpBasicClient{ + + /** The servlet context. */ + @Autowired + private ServletContext servletContext; + + /** The logger. */ + EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(HttpBasicClient.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** + * Obtain a basic HTTP client . + * + * @return Client client object + * @throws Exception the exception + */ + public static Client getClient() throws Exception { + + ClientConfig config = new ClientConfig(); + config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true); + + return ClientBuilder.newClient(config) + .register(org.onap.vid.aai.util.CustomJacksonJaxBJsonProvider.class); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/client/HttpsBasicClient.java b/vid-app-common/src/main/java/org/onap/vid/client/HttpsBasicClient.java index 676a7e798..28a4d0f9f 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/client/HttpsBasicClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/client/HttpsBasicClient.java @@ -1,143 +1,143 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.client;
-
-import java.io.File;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import javax.net.ssl.HostnameVerifier;
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSession;
-import javax.ws.rs.client.Client;
-import javax.ws.rs.client.ClientBuilder;
-
-import org.eclipse.jetty.util.security.Password;
-import org.glassfish.jersey.client.ClientConfig;
-import org.glassfish.jersey.client.ClientProperties;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.openecomp.vid.properties.VidProperties;
-
- /**
- * General SSL client using the VID tomcat keystore. It doesn't use client certificates.
- */
-
-public class HttpsBasicClient{
-
- /** The logger. */
- static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(HttpsBasicClient.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /**
- * Retrieve an SSL client.
- *
- * @return Client The SSL client
- * @throws Exception the exception
- */
- public static Client getClient() throws Exception {
- String methodName = "getClient";
- ClientConfig config = new ClientConfig();
- //config.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
- //config.getClasses().add(org.openecomp.aai.util.CustomJacksonJaxBJsonProvider.class);
-
- SSLContext ctx = null;
-
- try {
-
- config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
-
- String truststore_path = SystemProperties.getProperty(VidProperties.VID_TRUSTSTORE_FILENAME);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + " " + methodName + " truststore_path=" + truststore_path);
- String truststore_password = SystemProperties.getProperty(VidProperties.VID_TRUSTSTORE_PASSWD_X);
-
-
- String decrypted_truststore_password = Password.deobfuscate(truststore_password);
- //logger.debug(dateFormat.format(new Date()) + " " + methodName + " decrypted_truststore_password=" + decrypted_truststore_password);
-
- File tr = new File (truststore_path);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + " " + methodName + " absolute truststore path=" + tr.getAbsolutePath());
-
- //String keystore_path = certFilePath + AAIProperties.FILESEPARTOR + SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_FILENAME);
- //String keystore_password = SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_PASSWD_X);
- //String decrypted_keystore_password = EncryptedPropValue.decryptTriple(keystore_password);
-
- System.setProperty("javax.net.ssl.trustStore", truststore_path);
- System.setProperty("javax.net.ssl.trustStorePassword", decrypted_truststore_password);
- HttpsURLConnection.setDefaultHostnameVerifier( new HostnameVerifier(){
- public boolean verify(String string,SSLSession ssls) {
- return true;
- }
- });
-
- //May need to make the algorithm a parameter. MSO requires TLSv1.1 or TLSv1.2
- ctx = SSLContext.getInstance("TLSv1.2");
-
- /*
- KeyManagerFactory kmf = null;
- try {
- kmf = KeyManagerFactory.getInstance("SunX509");
- FileInputStream fin = new FileInputStream(keystore_path);
- KeyStore ks = KeyStore.getInstance("PKCS12");
- char[] pwd = decrypted_keystore_password.toCharArray();
- ks.load(fin, pwd);
- kmf.init(ks, pwd);
- } catch (Exception e) {
- System.out.println("Error setting up kmf: exiting");
- e.printStackTrace();
- System.exit(1);
- }
-
- ctx.init(kmf.getKeyManagers(), null, null);
- */
- ctx.init(null, null, null);
- //config.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES,
- // new HTTPSProperties( , ctx));
-
- return ClientBuilder.newBuilder()
- .sslContext(ctx)
- .hostnameVerifier(new HostnameVerifier() {
- @Override
- public boolean verify( String s, SSLSession sslSession ) {
- return true;
- }
- }).withConfig(config)
- .build()
- .register(org.openecomp.aai.util.CustomJacksonJaxBJsonProvider.class);
-
- } catch (Exception e) {
- logger.debug(EELFLoggerDelegate.debugLogger, "Error setting up config: exiting");
- //System.out.println("Error setting up config: exiting");
- e.printStackTrace();
- return null;
- }
-
- //Client client = ClientBuilder.newClient(config);
- // uncomment this line to get more logging for the request/response
- // client.addFilter(new LoggingFilter(System.out));
-
- //return client;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.client; + +import java.io.File; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + +import javax.net.ssl.HostnameVerifier; +import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSession; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; + +import org.eclipse.jetty.util.security.Password; +import org.glassfish.jersey.client.ClientConfig; +import org.glassfish.jersey.client.ClientProperties; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.properties.VidProperties; + + /** + * General SSL client using the VID tomcat keystore. It doesn't use client certificates. + */ + +public class HttpsBasicClient{ + + /** The logger. */ + static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(HttpsBasicClient.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** + * Retrieve an SSL client. + * + * @return Client The SSL client + * @throws Exception the exception + */ + public static Client getClient() throws Exception { + String methodName = "getClient"; + ClientConfig config = new ClientConfig(); + //config.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE); + //config.getClasses().add(org.openecomp.aai.util.CustomJacksonJaxBJsonProvider.class); + + SSLContext ctx = null; + + try { + + config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true); + + String truststore_path = SystemProperties.getProperty(VidProperties.VID_TRUSTSTORE_FILENAME); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + " " + methodName + " truststore_path=" + truststore_path); + String truststore_password = SystemProperties.getProperty(VidProperties.VID_TRUSTSTORE_PASSWD_X); + + + String decrypted_truststore_password = Password.deobfuscate(truststore_password); + //logger.debug(dateFormat.format(new Date()) + " " + methodName + " decrypted_truststore_password=" + decrypted_truststore_password); + + File tr = new File (truststore_path); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + " " + methodName + " absolute truststore path=" + tr.getAbsolutePath()); + + //String keystore_path = certFilePath + AAIProperties.FILESEPARTOR + SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_FILENAME); + //String keystore_password = SystemProperties.getProperty(AAIProperties.AAI_KEYSTORE_PASSWD_X); + //String decrypted_keystore_password = EncryptedPropValue.decryptTriple(keystore_password); + + System.setProperty("javax.net.ssl.trustStore", truststore_path); + System.setProperty("javax.net.ssl.trustStorePassword", decrypted_truststore_password); + HttpsURLConnection.setDefaultHostnameVerifier( new HostnameVerifier(){ + public boolean verify(String string,SSLSession ssls) { + return true; + } + }); + + //May need to make the algorithm a parameter. MSO requires TLSv1.1 or TLSv1.2 + ctx = SSLContext.getInstance("TLSv1.2"); + + /* + KeyManagerFactory kmf = null; + try { + kmf = KeyManagerFactory.getInstance("SunX509"); + FileInputStream fin = new FileInputStream(keystore_path); + KeyStore ks = KeyStore.getInstance("PKCS12"); + char[] pwd = decrypted_keystore_password.toCharArray(); + ks.load(fin, pwd); + kmf.init(ks, pwd); + } catch (Exception e) { + System.out.println("Error setting up kmf: exiting"); + e.printStackTrace(); + System.exit(1); + } + + ctx.init(kmf.getKeyManagers(), null, null); + */ + ctx.init(null, null, null); + //config.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES, + // new HTTPSProperties( , ctx)); + + return ClientBuilder.newBuilder() + .sslContext(ctx) + .hostnameVerifier(new HostnameVerifier() { + @Override + public boolean verify( String s, SSLSession sslSession ) { + return true; + } + }).withConfig(config) + .build() + .register(org.onap.vid.aai.util.CustomJacksonJaxBJsonProvider.class); + + } catch (Exception e) { + logger.debug(EELFLoggerDelegate.debugLogger, "Error setting up config: exiting"); + //System.out.println("Error setting up config: exiting"); + e.printStackTrace(); + return null; + } + + //Client client = ClientBuilder.newClient(config); + // uncomment this line to get more logging for the request/response + // client.addFilter(new LoggingFilter(System.out)); + + //return client; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/AaiController.java b/vid-app-common/src/main/java/org/onap/vid/controller/AaiController.java index a8bdf39bb..1719ff6d4 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/AaiController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/AaiController.java @@ -1,952 +1,750 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller;
-
-import org.codehaus.jackson.JsonGenerationException;
-import org.codehaus.jackson.map.JsonMappingException;
-import org.codehaus.jackson.map.ObjectMapper;
-import org.json.simple.JSONArray;
-import org.json.simple.JSONObject;
-import org.json.simple.parser.JSONParser;
-import org.openecomp.aai.util.AAIRestInterface;
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-import org.openecomp.portalsdk.core.domain.User;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.openecomp.vid.aai.AaiResponse;
-import org.openecomp.vid.aai.SubscriberData;
-import org.openecomp.vid.aai.SubscriberFilteredResults;
-import org.openecomp.vid.aai.model.AaiGetTenatns.GetTenantsResponse;
-import org.openecomp.vid.model.VersionByInvariantIdsRequest;
-import org.openecomp.vid.roles.Role;
-import org.openecomp.vid.roles.RoleProvider;
-import org.openecomp.vid.roles.RoleValidator;
-import org.openecomp.vid.services.AaiService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.MediaType;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.*;
-import org.springframework.web.servlet.ModelAndView;
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpSession;
-import javax.ws.rs.BadRequestException;
-import javax.ws.rs.DefaultValue;
-import javax.ws.rs.QueryParam;
-import javax.ws.rs.WebApplicationException;
-import javax.ws.rs.core.Response;
-import java.io.File;
-import java.io.IOException;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.*;
-
-/**
- * Controller to handle a&ai requests.
- */
-
-@RestController
-public class AaiController extends RestrictedBaseController {
-
- /**
- * The Constant dateFormat.
- */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
- /**
- * The from app id.
- */
- protected String fromAppId = "VidAaiController";
- /**
- * The view name.
- */
- String viewName;
- /**
- * The logger.
- */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(AaiController.class);
- /**
- * The model.
- */
- private Map<String, Object> model = new HashMap<String, Object>();
- /**
- * The servlet context.
- */
- @Autowired
- private ServletContext servletContext;
- /**
- * aai service
- */
- @Autowired
- private AaiService aaiService;
- public AaiController() {
-
- }
-
- public AaiController(ServletContext servletContext) {
- this.servletContext = servletContext;
-
- }
-
- /**
- * Return tenant details.
- *
- * @param jsonObject the json object
- * @return String The parsing results
- */
- public static String parseCustomerObjectForTenants(JSONObject jsonObject) {
-
- JSONArray tenantArray = new JSONArray();
- boolean bconvert = false;
-
- try {
-
- JSONObject serviceSubsObj = (JSONObject) jsonObject.get("service-subscriptions");
-
- if (serviceSubsObj != null) {
- JSONArray srvcSubArray = (JSONArray) serviceSubsObj.get("service-subscription");
-
- if (srvcSubArray != null) {
- Iterator i = srvcSubArray.iterator();
-
- while (i.hasNext()) {
-
- JSONObject innerObj = (JSONObject) i.next();
-
- if (innerObj == null)
- continue;
-
- JSONObject relationShipListsObj = (JSONObject) innerObj.get("relationship-list");
- if (relationShipListsObj != null) {
- JSONArray rShipArray = (JSONArray) relationShipListsObj.get("relationship");
- if (rShipArray != null) {
- Iterator i1 = rShipArray.iterator();
-
- while (i1.hasNext()) {
-
- JSONObject inner1Obj = (JSONObject) i1.next();
-
- if (inner1Obj == null)
- continue;
-
- String relatedTo = checkForNull((String) inner1Obj.get("related-to"));
- if (relatedTo.equalsIgnoreCase("tenant")) {
- JSONObject tenantNewObj = new JSONObject();
-
- String relatedLink = checkForNull((String) inner1Obj.get("related-link"));
- tenantNewObj.put("link", relatedLink);
-
- JSONArray rDataArray = (JSONArray) inner1Obj.get("relationship-data");
- if (rDataArray != null) {
- Iterator i2 = rDataArray.iterator();
-
- while (i2.hasNext()) {
- JSONObject inner2Obj = (JSONObject) i2.next();
-
- if (inner2Obj == null)
- continue;
-
- String rShipKey = checkForNull((String) inner2Obj.get("relationship-key"));
- String rShipVal = checkForNull((String) inner2Obj.get("relationship-value"));
- if (rShipKey.equalsIgnoreCase("cloud-region.cloud-owner")) {
- tenantNewObj.put("cloudOwner", rShipVal);
- } else if (rShipKey.equalsIgnoreCase("cloud-region.cloud-region-id")) {
- tenantNewObj.put("cloudRegionID", rShipVal);
- }
-
- if (rShipKey.equalsIgnoreCase("tenant.tenant-id")) {
- tenantNewObj.put("tenantID", rShipVal);
- }
- }
- }
-
- JSONArray relatedTPropArray = (JSONArray) inner1Obj.get("related-to-property");
- if (relatedTPropArray != null) {
- Iterator i3 = relatedTPropArray.iterator();
-
- while (i3.hasNext()) {
- JSONObject inner3Obj = (JSONObject) i3.next();
-
- if (inner3Obj == null)
- continue;
-
- String propKey = checkForNull((String) inner3Obj.get("property-key"));
- String propVal = checkForNull((String) inner3Obj.get("property-value"));
- if (propKey.equalsIgnoreCase("tenant.tenant-name")) {
- tenantNewObj.put("tenantName", propVal);
- }
- }
- }
- bconvert = true;
- tenantArray.add(tenantNewObj);
- }
- }
- }
- }
- }
- }
- }
- } catch (NullPointerException ex) {
-
-
- }
-
- if (bconvert)
- return tenantArray.toJSONString();
- else
- return "";
-
- }
-
-
- /**
- * Retrieve the service subscription from the jsonObject.
- *
- * @param jsonObject the json object
- * @return String
- */
- public static String parseServiceSubscriptionObjectForTenants(JSONObject jsonObject) {
-
- JSONArray tenantArray = new JSONArray();
- boolean bconvert = false;
-
- try {
- JSONObject relationShipListsObj = (JSONObject) jsonObject.get("relationship-list");
- if (relationShipListsObj != null) {
- JSONArray rShipArray = (JSONArray) relationShipListsObj.get("relationship");
- if (rShipArray != null) {
- Iterator i1 = rShipArray.iterator();
-
- while (i1.hasNext()) {
-
- JSONObject inner1Obj = (JSONObject) i1.next();
-
- if (inner1Obj == null)
- continue;
-
- String relatedTo = checkForNull((String) inner1Obj.get("related-to"));
- if (relatedTo.equalsIgnoreCase("tenant")) {
- JSONObject tenantNewObj = new JSONObject();
-
- String relatedLink = checkForNull((String) inner1Obj.get("related-link"));
- tenantNewObj.put("link", relatedLink);
-
- JSONArray rDataArray = (JSONArray) inner1Obj.get("relationship-data");
- if (rDataArray != null) {
- Iterator i2 = rDataArray.iterator();
-
- while (i2.hasNext()) {
- JSONObject inner2Obj = (JSONObject) i2.next();
-
- if (inner2Obj == null)
- continue;
-
- String rShipKey = checkForNull((String) inner2Obj.get("relationship-key"));
- String rShipVal = checkForNull((String) inner2Obj.get("relationship-value"));
- if (rShipKey.equalsIgnoreCase("cloud-region.cloud-owner")) {
- tenantNewObj.put("cloudOwner", rShipVal);
- } else if (rShipKey.equalsIgnoreCase("cloud-region.cloud-region-id")) {
- tenantNewObj.put("cloudRegionID", rShipVal);
- }
-
- if (rShipKey.equalsIgnoreCase("tenant.tenant-id")) {
- tenantNewObj.put("tenantID", rShipVal);
- }
- }
- }
-
- JSONArray relatedTPropArray = (JSONArray) inner1Obj.get("related-to-property");
- if (relatedTPropArray != null) {
- Iterator i3 = relatedTPropArray.iterator();
-
- while (i3.hasNext()) {
- JSONObject inner3Obj = (JSONObject) i3.next();
-
- if (inner3Obj == null)
- continue;
-
- String propKey = checkForNull((String) inner3Obj.get("property-key"));
- String propVal = checkForNull((String) inner3Obj.get("property-value"));
- if (propKey.equalsIgnoreCase("tenant.tenant-name")) {
- tenantNewObj.put("tenantName", propVal);
- }
- }
- }
- bconvert = true;
- tenantArray.add(tenantNewObj);
- }
- }
-
- }
- }
- } catch (NullPointerException ex) {
-
-
- }
-
- if (bconvert)
- return tenantArray.toJSONString();
- else
- return "";
-
- }
-
- /**
- * Check for null.
- *
- * @param local the local
- * @return the string
- */
- private static String checkForNull(String local) {
- if (local != null)
- return local;
- else
- return "";
-
- }
-
- /**
- * Welcome method.
- *
- * @param request the request
- * @return ModelAndView The view
- */
- @RequestMapping(value = {"/subscriberSearch"}, method = RequestMethod.GET)
- public ModelAndView welcome(HttpServletRequest request) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== AaiController welcome start");
- return new ModelAndView(getViewName());
- }
-
- @RequestMapping(value = {"/aai_get_aic_zones"}, method = RequestMethod.GET)
- public ResponseEntity<String> getAicZones(HttpServletRequest request) throws JsonGenerationException, JsonMappingException, IOException {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== getAicZones controller start");
- AaiResponse response = aaiService.getAaiZones();
- return aaiResponseToResponseEntity(response);
- }
-
- @RequestMapping(value = {"/aai_get_aic_zone_for_pnf/{globalCustomerId}/{serviceType}/{serviceId}"}, method = RequestMethod.GET)
- public ResponseEntity<String> getAicZoneForPnf(@PathVariable("globalCustomerId") String globalCustomerId ,@PathVariable("serviceType") String serviceType , @PathVariable("serviceId") String serviceId ,HttpServletRequest request) throws JsonGenerationException, JsonMappingException, IOException {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== getAicZoneForPnf controller start");
- AaiResponse response = aaiService.getAicZoneForPnf(globalCustomerId , serviceType , serviceId);
- return aaiResponseToResponseEntity(response);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#getViewName()
- */
- public String getViewName() {
- return viewName;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#setViewName(java.lang.String)
- */
- public void setViewName(String viewName) {
- this.viewName = viewName;
- }
-
- /**
- * Get services from a&ai.
- *
- * @return ResponseEntity<String> The response entity with the logged in user uuid.
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- */
- @RequestMapping(value = {"/getuserID"}, method = RequestMethod.GET)
- public ResponseEntity<String> getUserID(HttpServletRequest request) throws IOException, InterruptedException {
-
- String userId = "";
- HttpSession session = request.getSession();
- if (session != null) {
- User user = (User) session.getAttribute(SystemProperties.getProperty(SystemProperties.USER_ATTRIBUTE_NAME));
- if (user != null) {
- //userId = user.getHrid();
- userId = user.getLoginId();
- if (userId == null)
- userId = user.getOrgUserId();
- }
- }
-
- return new ResponseEntity<String>(userId, HttpStatus.OK);
- }
-
- /**
- * Get services from a&ai.
- *
- * @return ResponseEntity<String> The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- */
- @RequestMapping(value = "/aai_get_services", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> doGetServices(HttpServletRequest request) throws IOException, InterruptedException {
-
- RoleValidator roleValidator = new RoleValidator(new RoleProvider().getUserRoles(request));
-
- AaiResponse subscriberList = aaiService.getServices(roleValidator);
- ResponseEntity<String> responseEntity = aaiResponseToResponseEntity(subscriberList);
-
- return responseEntity;
- }
-
-
- @RequestMapping(value = {"/aai_get_version_by_invariant_id"}, method = RequestMethod.POST)
- public ResponseEntity<String> getVersionByInvariantId(HttpServletRequest request, @RequestBody VersionByInvariantIdsRequest versions) throws IOException {
- ResponseEntity<String> responseEntity;
- ObjectMapper objectMapper = new ObjectMapper();
-
- Response result = aaiService.getVersionByInvariantId(versions.versions);
-
- return new ResponseEntity<String>(result.readEntity(String.class), HttpStatus.OK);
- }
-
-
- private ResponseEntity<String> aaiResponseToResponseEntity(AaiResponse aaiResponseData)
- throws IOException, JsonGenerationException, JsonMappingException {
- ResponseEntity<String> responseEntity;
- ObjectMapper objectMapper = new ObjectMapper();
- if (aaiResponseData.getHttpCode() == 200) {
- responseEntity = new ResponseEntity<String>(objectMapper.writeValueAsString(aaiResponseData.getT()), HttpStatus.OK);
- } else {
- responseEntity = new ResponseEntity<String>(aaiResponseData.getErrorMessage(), HttpStatus.valueOf(aaiResponseData.getHttpCode()));
- }
- return responseEntity;
- }
-
- /**
- * Lookup single service instance in a&ai. Get the service-subscription and customer, too, i guess?
- *
- * @param serviceInstanceId the service instance Id
- * @return ResponseEntity The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- */
- @RequestMapping(value = "/aai_get_service_instance/{service-instance-id}/{service-instance-type}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> doGetServiceInstance(@PathVariable("service-instance-id") String serviceInstanceId, @PathVariable("service-instance-type") String serviceInstanceType) throws IOException, InterruptedException {
- File certiPath = GetCertificatesPath();
- Response resp = null;
-
- if (serviceInstanceType.equalsIgnoreCase("Service Instance Id")) {
- resp = doAaiGet(certiPath.getAbsolutePath(),
- "search/nodes-query?search-node-type=service-instance&filter=service-instance-id:EQUALS:"
- + serviceInstanceId, false);
- } else {
- resp = doAaiGet(certiPath.getAbsolutePath(),
- "search/nodes-query?search-node-type=service-instance&filter=service-instance-name:EQUALS:"
- + serviceInstanceId, false);
- }
- return convertResponseToResponseEntity(resp);
- }
-
- /**
- * Get services from a&ai.
- *
- * @param globalCustomerId the global customer id
- * @param serviceSubscriptionId the service subscription id
- * @return ResponseEntity The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- */
- @RequestMapping(value = "/aai_get_service_subscription/{global-customer-id}/{service-subscription-id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> doGetServices(@PathVariable("global-customer-id") String globalCustomerId,
- @PathVariable("service-subscription-id") String serviceSubscriptionId) throws IOException, InterruptedException {
- File certiPath = GetCertificatesPath();
- Response resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers/customer/" + globalCustomerId
- + "/service-subscriptions/service-subscription/" + serviceSubscriptionId + "?depth=0", false);
- return convertResponseToResponseEntity(resp);
- }
-
- /**
- * Obtain the subscriber list from a&ai.
- *
- * @param fullSet the full set
- * @return ResponseEntity The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- */
- @RequestMapping(value = "/aai_get_subscribers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> doGetSubscriberList(HttpServletRequest request, @DefaultValue("n") @QueryParam("fullSet") String fullSet) throws IOException, InterruptedException {
- return getFullSubscriberList(request);
- }
-
- /**
- * Obtain the Target Prov Status from the System.Properties file.
- *
- * @return ResponseEntity The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- */
- @RequestMapping(value = "/get_system_prop_vnf_prov_status", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> getTargetProvStatus() throws IOException, InterruptedException {
- String p = SystemProperties.getProperty("aai.vnf.provstatus");
- return new ResponseEntity<String>(p, HttpStatus.OK);
- }
-
- /**
- * Obtain the full subscriber list from a&ai.
- * <p>
- * g @return ResponseEntity The response entity
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- */
- @RequestMapping(value = "/aai_get_full_subscribers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> getFullSubscriberList(HttpServletRequest request) throws IOException, InterruptedException {
- ObjectMapper objectMapper = new ObjectMapper();
- ResponseEntity<String> responseEntity;
- RoleValidator roleValidator = new RoleValidator(new RoleProvider().getUserRoles(request));
- SubscriberFilteredResults subscriberList = aaiService.getFullSubscriberList(roleValidator);
- if (subscriberList.getHttpCode() == 200) {
- responseEntity = new ResponseEntity<String>(objectMapper.writeValueAsString(subscriberList.getSubscriberList()), HttpStatus.OK);
- } else {
- responseEntity = new ResponseEntity<String>(subscriberList.getErrorMessage(), HttpStatus.valueOf(subscriberList.getHttpCode()));
- }
-
-
- return responseEntity;
- }
-
-
- @RequestMapping(value = "/get_vnf_data_by_globalid_and_service_type/{globalCustomerId}/{serviceType}",
- method = RequestMethod.GET,
- produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> getVnfDataByGlobalIdAndServiceType(HttpServletRequest request,
- @PathVariable("globalCustomerId") String globalCustomerId,
- @PathVariable("serviceType") String serviceType) throws IOException {
-
- Response resp = aaiService.getVNFData(globalCustomerId, serviceType);
- return convertResponseToResponseEntity(resp);
- }
-
-
- /**
- * Refresh the subscriber list from a&ai.
- *
- * @return ResponseEntity The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- */
- @RequestMapping(value = "/aai_refresh_subscribers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> doRefreshSubscriberList() throws IOException {
- Response resp = getSubscribers(false);
- return convertResponseToResponseEntity(resp);
- }
-
- /**
- * Refresh the full subscriber list from a&ai.
- *
- * @return ResponseEntity The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- */
- @RequestMapping(value = "/aai_refresh_full_subscribers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity<String> doRefreshFullSubscriberList() throws IOException {
- Response resp = getSubscribers(false);
- return convertResponseToResponseEntity(resp);
- }
-
- /**
- * Get subscriber details from a&ai.
- *
- * @param subscriberId the subscriber id
- * @return ResponseEntity The response entity
- */
- @RequestMapping(value = "/aai_sub_details/{subscriberId}", method = RequestMethod.GET)
- public ResponseEntity<String> GetSubscriberDetails(HttpServletRequest request, @PathVariable("subscriberId") String subscriberId) throws IOException {
- ObjectMapper objectMapper = new ObjectMapper();
- ResponseEntity responseEntity;
- List<Role> roles = new RoleProvider().getUserRoles(request);
- RoleValidator roleValidator = new RoleValidator(roles);
- AaiResponse<SubscriberData> subscriberData = aaiService.getSubscriberData(subscriberId, roleValidator);
- String httpMessage = subscriberData.getT() != null ?
- objectMapper.writeValueAsString(subscriberData.getT()) :
- subscriberData.getErrorMessage();
-
- responseEntity = new ResponseEntity<String>(httpMessage, HttpStatus.valueOf(subscriberData.getHttpCode()));
- return responseEntity;
- }
-
- /**
- * Issue a named query to a&ai.
- *
- * @param namedQueryId the named query id
- * @param globalCustomerId the global customer id
- * @param serviceType the service type
- * @param serviceInstance the service instance
- * @return ResponseEntity The response entity
- */
- @RequestMapping(value = "/aai_sub_viewedit/{namedQueryId}/{globalCustomerId}/{serviceType}/{serviceInstance}", method = RequestMethod.GET)
- public ResponseEntity<String> viewEditGetComponentList(
- @PathVariable("namedQueryId") String namedQueryId,
- @PathVariable("globalCustomerId") String globalCustomerId,
- @PathVariable("serviceType") String serviceType,
- @PathVariable("serviceInstance") String serviceInstance) {
-
- String componentListPayload = getComponentListPutPayload(namedQueryId, globalCustomerId, serviceType, serviceInstance);
- File certiPath = GetCertificatesPath();
-
- Response resp = doAaiPost(certiPath.getAbsolutePath(), "search/named-query", componentListPayload, false);
- return convertResponseToResponseEntity(resp);
- }
-
-
- @RequestMapping(value = "/aai_get_vnf_data/{globalCustomerId}/{serviceType}/{serviceInstanceId}", method = RequestMethod.GET)
- public AaiResponse<String> getVnfData(
- @PathVariable("globalCustomerId") String globalCustomerId,
- @PathVariable("serviceType") String serviceType,
- @PathVariable("serviceInstanceId") String serviceInstanceId) {
-
- return aaiService.getVNFData(globalCustomerId, serviceType, serviceInstanceId);
-
- }
-
-
- // @RequestMapping(value="/aai_get_tenants/{global-customer-id}", method = RequestMethod.GET)
- // public ResponseEntity<String> viewEditGetComponentList(
- // @PathVariable("global-customer-id") String globalCustomerId) {
- // return new ResponseEntity<String>(getTenants(globalCustomerId), HttpStatus.OK);
- // }
-
- /**
- * Issue a named query to a&ai.
- *
- * @param namedQueryId the named query id
- * @param globalCustomerId the global customer id
- * @param serviceType the service type
- * @return ResponseEntity The response entity
- */
- @RequestMapping(value = "/aai_get_models_by_service_type/{namedQueryId}/{globalCustomerId}/{serviceType}", method = RequestMethod.GET)
- public ResponseEntity<String> viewEditGetComponentList(
- @PathVariable("namedQueryId") String namedQueryId,
- @PathVariable("globalCustomerId") String globalCustomerId,
- @PathVariable("serviceType") String serviceType) {
-
- String componentListPayload = getModelsByServiceTypePayload(namedQueryId, globalCustomerId, serviceType);
- File certiPath = GetCertificatesPath();
-
- Response resp = doAaiPost(certiPath.getAbsolutePath(), "search/named-query", componentListPayload, false);
- return convertResponseToResponseEntity(resp);
- }
-
- /**
- * Parses the for tenants.
- *
- * @param resp the resp
- * @return the string
- */
- private String parseForTenants(String resp) {
- String tenantList = "";
-
- try {
- JSONParser jsonParser = new JSONParser();
-
- JSONObject jsonObject = (JSONObject) jsonParser.parse(resp);
-
- return parseCustomerObjectForTenants(jsonObject);
- } catch (Exception ex) {
-
- }
-
- return tenantList;
- }
-
- /**
- * Parses the for tenants by service subscription.
- *
- * @param resp the resp
- * @return the string
- */
- private String parseForTenantsByServiceSubscription(String resp) {
- String tenantList = "";
-
- try {
- JSONParser jsonParser = new JSONParser();
-
- JSONObject jsonObject = (JSONObject) jsonParser.parse(resp);
-
- return parseServiceSubscriptionObjectForTenants(jsonObject);
- } catch (Exception ex) {
-
- }
-
- return tenantList;
- }
-
- /**
- * Obtain tenants for a given service type.
- *
- * @param globalCustomerId the global customer id
- * @param serviceType the service type
- * @return ResponseEntity The response entity
- */
- @RequestMapping(value = "/aai_get_tenants/{global-customer-id}/{service-type}", method = RequestMethod.GET)
- public ResponseEntity<String> viewEditGetTenantsFromServiceType(HttpServletRequest request,
- @PathVariable("global-customer-id") String globalCustomerId, @PathVariable("service-type") String serviceType) {
-
- ResponseEntity responseEntity;
- try {
- ObjectMapper objectMapper = new ObjectMapper();
- List<Role> roles = new RoleProvider().getUserRoles(request);
- RoleValidator roleValidator = new RoleValidator(roles);
- AaiResponse<GetTenantsResponse[]> response = aaiService.getTenants(globalCustomerId, serviceType, roleValidator);
- if (response.getHttpCode() == 200) {
- responseEntity = new ResponseEntity<String>(objectMapper.writeValueAsString(response.getT()), HttpStatus.OK);
- } else {
- responseEntity = new ResponseEntity<String>(response.getErrorMessage(), HttpStatus.valueOf(response.getHttpCode()));
- }
- } catch (Exception e) {
- responseEntity = new ResponseEntity<String>("Unable to proccess getTenants reponse", HttpStatus.INTERNAL_SERVER_ERROR);
- }
- return responseEntity;
- }
-
-
- private ResponseEntity<String> convertResponseToResponseEntity(Response resp) {
- ResponseEntity<String> respEnt;
- ObjectMapper objectMapper = new ObjectMapper();
- if (resp == null) {
- respEnt = new ResponseEntity<String>("Failed to fetch data from A&AI, check server logs for details.", HttpStatus.INTERNAL_SERVER_ERROR);
- } else {
- respEnt = new ResponseEntity<String>(resp.readEntity(String.class), HttpStatus.valueOf(resp.getStatus()));
- }
- return respEnt;
- }
-
- /**
- * Gets the tenants.
- *
- * @param globalCustomerId the global customer id
- * @return the tenants
- */
- private ResponseEntity<String> getTenants(String globalCustomerId) {
- File certiPath = GetCertificatesPath();
- Response resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers/customer/" + globalCustomerId, false);
-
- ResponseEntity<String> respEnt;
- if (resp.getStatus() >= 200 && resp.getStatus() <= 299) {
- respEnt = new ResponseEntity<String>(parseForTenants((String) resp.readEntity(String.class)), HttpStatus.OK);
- } else {
- respEnt = new ResponseEntity<String>((String) resp.readEntity(String.class), HttpStatus.valueOf(resp.getStatus()));
- }
- return respEnt;
-
- }
-
- /**
- * Gets the tenants from service type.
- *
- * @param globalCustomerId the global customer id
- * @param serviceType the service type
- * @return the tenants from service type
- */
- private ResponseEntity<String> getTenantsFromServiceType(String globalCustomerId, String serviceType) {
-
-
- File certiPath = GetCertificatesPath();
- String url = "business/customers/customer/" + globalCustomerId + "/service-subscriptions/service-subscription/" + serviceType;
-
- Response resp = doAaiGet(certiPath.getAbsolutePath(), url, false);
-
- ResponseEntity<String> respEnt;
- if (resp.getStatus() >= 200 && resp.getStatus() <= 299) {
- respEnt = new ResponseEntity<String>(parseForTenantsByServiceSubscription((String) resp.readEntity(String.class)), HttpStatus.OK);
- } else {
- respEnt = new ResponseEntity<String>((String) resp.readEntity(String.class), HttpStatus.valueOf(resp.getStatus()));
- }
- return respEnt;
-
- }
-
- /**
- * Gets the services.
- *
- * @return the services
- */
- private Response getServices() {
- File certiPath = GetCertificatesPath();
- Response resp = doAaiGet(certiPath.getAbsolutePath(), "service-design-and-creation/services", false);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "getServices() resp=" + resp.getStatusInfo());
-
- //model.put("aai_get_services", resp);
- return resp;
- }
-
- /**
- * Gets the subscribers.
- *
- * @param isFullSet the is full set
- * @return the subscribers
- */
- private Response getSubscribers(boolean isFullSet) {
-
- File certiPath = GetCertificatesPath();
- String depth = "0";
-
- Response resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers?subscriber-type=INFRA&depth=" + depth, false);
- if (resp != null) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "getSubscribers() resp=" + resp.getStatusInfo().toString());
- }
- return resp;
- }
-
- /**
- * Gets the subscriber details.
- *
- * @param subscriberId the subscriber id
- * @return the subscriber details
- */
- private Response getSubscriberDetails(String subscriberId) {
- File certiPath = GetCertificatesPath();
- Response resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers/customer/" + subscriberId + "?depth=2", false);
- //String resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers/customer/" + subscriberId, false);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "getSubscriberDetails() resp=" + resp.getStatusInfo().toString());
- return resp;
- }
-
- /**
- * Gets the certificates path.
- *
- * @return the file
- */
- private File GetCertificatesPath() {
- if (servletContext != null)
- return new File(servletContext.getRealPath("/WEB-INF/cert/"));
- return null;
- }
-
- /**
- * Send a GET request to a&ai.
- *
- * @param certiPath the certi path
- * @param uri the uri
- * @param xml the xml
- * @return String The response
- */
- protected Response doAaiGet(String certiPath, String uri, boolean xml) {
- String methodName = "getSubscriberList";
- String transId = UUID.randomUUID().toString();
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- Response resp = null;
- try {
-
- AAIRestInterface restContrller = new AAIRestInterface(certiPath);
- resp = restContrller.RestGet(fromAppId, transId, uri, xml);
-
- } catch (WebApplicationException e) {
- final String message = ((BadRequestException) e).getResponse().readEntity(String.class);
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + message);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + message);
- } catch (Exception e) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- }
-
- return resp;
- }
-
- /**
- * Send a POST request to a&ai.
- *
- * @param certiPath the certi path
- * @param uri the uri
- * @param payload the payload
- * @param xml the xml
- * @return String The response
- */
- protected Response doAaiPost(String certiPath, String uri, String payload, boolean xml) {
- String methodName = "getSubscriberList";
- String transId = UUID.randomUUID().toString();
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- Response resp = null;
- try {
-
- AAIRestInterface restContrller = new AAIRestInterface(certiPath);
- resp = restContrller.RestPost(fromAppId, transId, uri, payload, xml);
-
- } catch (Exception e) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- }
-
- return resp;
- }
-
- /**
- * Gets the component list put payload.
- *
- * @param namedQueryId the named query id
- * @param globalCustomerId the global customer id
- * @param serviceType the service type
- * @param serviceInstance the service instance
- * @return the component list put payload
- */
- private String getComponentListPutPayload(String namedQueryId, String globalCustomerId, String serviceType, String serviceInstance) {
- return
- " {" +
- " \"instance-filters\": {" +
- " \"instance-filter\": [" +
- " {" +
- " \"customer\": {" +
- " \"global-customer-id\": \"" + globalCustomerId + "\"" +
- " }," +
- " \"service-instance\": {" +
- " \"service-instance-id\": \"" + serviceInstance + "\"" +
- " }," +
- " \"service-subscription\": {" +
- " \"service-type\": \"" + serviceType + "\"" +
- " }" +
- " }" +
- " ]" +
- " }," +
- " \"query-parameters\": {" +
- " \"named-query\": {" +
- " \"named-query-uuid\": \"" + namedQueryId + "\"" +
- " }" +
- " }" +
- "}";
-
- }
-
- private String getModelsByServiceTypePayload(String namedQueryId, String globalCustomerId, String serviceType) {
- // TODO Auto-generated method stub
- return " {" +
- " \"instance-filters\": {" +
- " \"instance-filter\": [" +
- " {" +
- " \"customer\": {" +
- " \"global-customer-id\": \"" + globalCustomerId + "\"" +
- " }," +
- " \"service-subscription\": {" +
- " \"service-type\": \"" + serviceType + "\"" +
- " }" +
- " }" +
- " ]" +
- " }," +
- " \"query-parameters\": {" +
- " \"named-query\": {" +
- " \"named-query-uuid\": \"" + namedQueryId + "\"" +
- " }" +
- " }" +
- "}";
-
- }
-}
-
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller; + +import org.codehaus.jackson.JsonGenerationException; +import org.codehaus.jackson.map.JsonMappingException; +import org.codehaus.jackson.map.ObjectMapper; +import org.onap.vid.aai.AaiResponse; +import org.onap.vid.aai.ServiceInstancesSearchResults; +import org.onap.vid.aai.SubscriberData; +import org.onap.vid.aai.SubscriberFilteredResults; +import org.onap.vid.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList; +import org.onap.vid.aai.model.AaiGetPnfs.Pnf; +import org.onap.vid.aai.model.AaiGetTenatns.GetTenantsResponse; +import org.onap.vid.aai.util.AAIRestInterface; +import org.onap.vid.model.VersionByInvariantIdsRequest; +import org.onap.vid.roles.Role; +import org.onap.vid.roles.RoleProvider; +import org.onap.vid.roles.RoleValidator; +import org.onap.vid.services.AaiService; +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.servlet.HandlerMapping; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.ServletContext; +import javax.servlet.http.HttpServletRequest; +import javax.ws.rs.BadRequestException; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.QueryParam; +import javax.ws.rs.WebApplicationException; +import javax.ws.rs.core.Response; +import java.io.File; +import java.io.IOException; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.*; + +import static org.onap.vid.utils.Logging.getMethodName; + +/** + * Controller to handle a&ai requests. + */ + +@RestController +public class +AaiController extends RestrictedBaseController { + /** + * The Constant dateFormat. + */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + /** + * The from app id. + */ + protected String fromAppId = "VidAaiController"; + /** + * The logger. + */ + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(AaiController.class); + /** + * The model. + */ + private Map<String, Object> model = new HashMap<String, Object>(); + /** + * The servlet context. + */ + @Autowired + private ServletContext servletContext; + /** + * aai service + */ + @Autowired + private AaiService aaiService; + @Autowired + private RoleProvider roleProvider; + + public AaiController() { + + } + + public AaiController(ServletContext servletContext) { + this.servletContext = servletContext; + + } + + /** + * Welcome method. + * + * @param request the request + * @return ModelAndView The view + */ + @RequestMapping(value = {"/subscriberSearch"}, method = RequestMethod.GET) + public ModelAndView welcome(HttpServletRequest request) { + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== AaiController welcome start"); + return new ModelAndView(getViewName()); + } + + @RequestMapping(value = {"/aai_get_aic_zones"}, method = RequestMethod.GET) + public ResponseEntity<String> getAicZones(HttpServletRequest request) throws JsonGenerationException, JsonMappingException, IOException { + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== getAicZones controller start"); + AaiResponse response = aaiService.getAaiZones(); + return aaiResponseToResponseEntity(response); + } + + @RequestMapping(value = {"/aai_get_aic_zone_for_pnf/{globalCustomerId}/{serviceType}/{serviceId}"}, method = RequestMethod.GET) + public ResponseEntity<String> getAicZoneForPnf(@PathVariable("globalCustomerId") String globalCustomerId ,@PathVariable("serviceType") String serviceType , @PathVariable("serviceId") String serviceId ,HttpServletRequest request) throws JsonGenerationException, JsonMappingException, IOException { + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== getAicZoneForPnf controller start"); + AaiResponse response = aaiService.getAicZoneForPnf(globalCustomerId , serviceType , serviceId); + return aaiResponseToResponseEntity(response); + } + + /** + * Get services from a&ai. + * + * @return ResponseEntity<String> The response entity with the logged in user uuid. + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value = {"/getuserID"}, method = RequestMethod.GET) + public ResponseEntity<String> getUserID(HttpServletRequest request) throws IOException, InterruptedException { + + String userId = ControllersUtils.extractUserId(request); + + return new ResponseEntity<String>(userId, HttpStatus.OK); + } + + /** + * Get services from a&ai. + * + * @return ResponseEntity<String> The response entity + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value = "/aai_get_services", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> doGetServices(HttpServletRequest request) throws IOException, InterruptedException { + RoleValidator roleValidator = new RoleValidator(roleProvider.getUserRoles(request)); + + AaiResponse subscriberList = aaiService.getServices(roleValidator); + ResponseEntity<String> responseEntity = aaiResponseToResponseEntity(subscriberList); + + return responseEntity; + } + + + @RequestMapping(value = {"/aai_get_version_by_invariant_id"}, method = RequestMethod.POST) + public ResponseEntity<String> getVersionByInvariantId(HttpServletRequest request, @RequestBody VersionByInvariantIdsRequest versions) throws IOException { + ResponseEntity<String> responseEntity; + ObjectMapper objectMapper = new ObjectMapper(); + + Response result = aaiService.getVersionByInvariantId(versions.versions); + + return new ResponseEntity<String>(result.readEntity(String.class), HttpStatus.OK); + } + + + private ResponseEntity<String> aaiResponseToResponseEntity(AaiResponse aaiResponseData) + throws IOException, JsonGenerationException, JsonMappingException { + ResponseEntity<String> responseEntity; + ObjectMapper objectMapper = new ObjectMapper(); + if (aaiResponseData.getHttpCode() == 200) { + responseEntity = new ResponseEntity<String>(objectMapper.writeValueAsString(aaiResponseData.getT()), HttpStatus.OK); + } else { + responseEntity = new ResponseEntity<String>(aaiResponseData.getErrorMessage(), HttpStatus.valueOf(aaiResponseData.getHttpCode())); + } + return responseEntity; + } + + /** + * Lookup single service instance in a&ai. Get the service-subscription and customer, too, i guess? + * + * @param serviceInstanceId the service instance Id + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value = "/aai_get_service_instance/{service-instance-id}/{service-instance-type}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> doGetServiceInstance(@PathVariable("service-instance-id") String serviceInstanceId, @PathVariable("service-instance-type") String serviceInstanceType) throws IOException, InterruptedException { + File certiPath = GetCertificatesPath(); + Response resp = null; + + if (serviceInstanceType.equalsIgnoreCase("Service Instance Id")) { + resp = doAaiGet(certiPath.getAbsolutePath(), + "search/nodes-query?search-node-type=service-instance&filter=service-instance-id:EQUALS:" + + serviceInstanceId, false); + } else { + resp = doAaiGet(certiPath.getAbsolutePath(), + "search/nodes-query?search-node-type=service-instance&filter=service-instance-name:EQUALS:" + + serviceInstanceId, false); + } + return convertResponseToResponseEntity(resp); + } + + /** + * Get services from a&ai. + * + * @param globalCustomerId the global customer id + * @param serviceSubscriptionId the service subscription id + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value = "/aai_get_service_subscription/{global-customer-id}/{service-subscription-id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> doGetServices(@PathVariable("global-customer-id") String globalCustomerId, + @PathVariable("service-subscription-id") String serviceSubscriptionId) throws IOException, InterruptedException { + File certiPath = GetCertificatesPath(); + Response resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers/customer/" + globalCustomerId + + "/service-subscriptions/service-subscription/" + serviceSubscriptionId + "?depth=0", false); + return convertResponseToResponseEntity(resp); + } + + /** + * Obtain the subscriber list from a&ai. + * + * @param fullSet the full set + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value = "/aai_get_subscribers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> doGetSubscriberList(HttpServletRequest request, @DefaultValue("n") @QueryParam("fullSet") String fullSet) throws IOException, InterruptedException { + return getFullSubscriberList(request); + } + + /** + * Obtain the Target Prov Status from the System.Properties file. + * + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value = "/get_system_prop_vnf_prov_status", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> getTargetProvStatus() throws IOException, InterruptedException { + String p = SystemProperties.getProperty("aai.vnf.provstatus"); + return new ResponseEntity<String>(p, HttpStatus.OK); + } + + + /** + * Obtain the Target Prov Status from the System.Properties file. + * + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value = "/get_operational_environments", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public AaiResponse<OperationalEnvironmentList> getOperationalEnvironments(@RequestParam(value="operationalEnvironmentType", required = false) String operationalEnvironmentType, + @RequestParam(value="operationalEnvironmentStatus", required = false) String operationalEnvironmentStatus) throws IOException, InterruptedException { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({}, {})", getMethodName(), operationalEnvironmentType, operationalEnvironmentStatus); + AaiResponse<OperationalEnvironmentList> response = aaiService.getOperationalEnvironments(operationalEnvironmentType,operationalEnvironmentStatus); + if (response.getHttpCode() != 200) { + String errorMessage = getAaiErrorMessage(response.getErrorMessage()); + if(errorMessage != null) { + response = new AaiResponse<OperationalEnvironmentList>(response.getT(), errorMessage, response.getHttpCode()); + } + } + + LOGGER.debug(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodName(), response); + return response; + } + + /** + * Obtain the full subscriber list from a&ai. + * <p> + * g @return ResponseEntity The response entity + * + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value = "/aai_get_full_subscribers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> getFullSubscriberList(HttpServletRequest request) throws IOException, InterruptedException { + ObjectMapper objectMapper = new ObjectMapper(); + ResponseEntity<String> responseEntity; + RoleValidator roleValidator = new RoleValidator(roleProvider.getUserRoles(request)); + SubscriberFilteredResults subscriberList = aaiService.getFullSubscriberList(roleValidator); + if (subscriberList.getHttpCode() == 200) { + responseEntity = new ResponseEntity<String>(objectMapper.writeValueAsString(subscriberList.getSubscriberList()), HttpStatus.OK); + } else { + responseEntity = new ResponseEntity<String>(subscriberList.getErrorMessage(), HttpStatus.valueOf(subscriberList.getHttpCode())); + } + + + return responseEntity; + } + + + @RequestMapping(value = "/get_vnf_data_by_globalid_and_service_type/{globalCustomerId}/{serviceType}", + method = RequestMethod.GET, + produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> getVnfDataByGlobalIdAndServiceType(HttpServletRequest request, + @PathVariable("globalCustomerId") String globalCustomerId, + @PathVariable("serviceType") String serviceType) throws IOException { + + Response resp = aaiService.getVNFData(globalCustomerId, serviceType); + return convertResponseToResponseEntity(resp); + } + + + /** + * Refresh the subscriber list from a&ai. + * + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + */ + @RequestMapping(value = "/aai_refresh_subscribers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> doRefreshSubscriberList() throws IOException { + Response resp = getSubscribers(false); + return convertResponseToResponseEntity(resp); + } + + /** + * Refresh the full subscriber list from a&ai. + * + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + */ + @RequestMapping(value = "/aai_refresh_full_subscribers", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public ResponseEntity<String> doRefreshFullSubscriberList() throws IOException { + Response resp = getSubscribers(false); + return convertResponseToResponseEntity(resp); + } + + /** + * Get subscriber details from a&ai. + * + * @param subscriberId the subscriber id + * @return ResponseEntity The response entity + */ + @RequestMapping(value = "/aai_sub_details/{subscriberId}", method = RequestMethod.GET) + public ResponseEntity<String> GetSubscriberDetails(HttpServletRequest request, @PathVariable("subscriberId") String subscriberId) throws IOException { + ObjectMapper objectMapper = new ObjectMapper(); + ResponseEntity responseEntity; + List<Role> roles = roleProvider.getUserRoles(request); + RoleValidator roleValidator = new RoleValidator(roles); + AaiResponse<SubscriberData> subscriberData = aaiService.getSubscriberData(subscriberId, roleValidator); + String httpMessage = subscriberData.getT() != null ? + objectMapper.writeValueAsString(subscriberData.getT()) : + subscriberData.getErrorMessage(); + + responseEntity = new ResponseEntity<String>(httpMessage, HttpStatus.valueOf(subscriberData.getHttpCode())); + return responseEntity; + } + + /** + * Get service instances that match the query from a&ai. + * + * @param subscriberId the subscriber id + * @param instanceIdentifier the service instance name or id. + * @param projects the projects that are related to the instance + * @param owningEntities the owningEntities that are related to the instance + * @return ResponseEntity The response entity + */ + @RequestMapping(value = "/search_service_instances", method = RequestMethod.GET) + public ResponseEntity<String> SearchServiceInstances(HttpServletRequest request, + @RequestParam(value="subscriberId", required = false) String subscriberId, + @RequestParam(value="serviceInstanceIdentifier", required = false) String instanceIdentifier, + @RequestParam(value="project", required = false) List<String> projects, + @RequestParam(value="owningEntity", required = false) List<String> owningEntities) throws IOException { + ObjectMapper objectMapper = new ObjectMapper(); + ResponseEntity responseEntity; + + List<Role> roles = roleProvider.getUserRoles(request); + RoleValidator roleValidator = new RoleValidator(roles); + + AaiResponse<ServiceInstancesSearchResults> searchResult = aaiService.getServiceInstanceSearchResults(subscriberId, instanceIdentifier, roleValidator, owningEntities, projects); + + String httpMessage = searchResult.getT() != null ? + objectMapper.writeValueAsString(searchResult.getT()) : + searchResult.getErrorMessage(); + + + if(searchResult.getT().serviceInstances.size() == 0){ + responseEntity = new ResponseEntity<String>(httpMessage, HttpStatus.NOT_FOUND); + + } else { + responseEntity = new ResponseEntity<String>(httpMessage, HttpStatus.valueOf(searchResult.getHttpCode())); + + } + return responseEntity; + } + + + + /** + * Issue a named query to a&ai. + * + * @param namedQueryId the named query id + * @param globalCustomerId the global customer id + * @param serviceType the service type + * @param serviceInstance the service instance + * @return ResponseEntity The response entity + */ + @RequestMapping(value = "/aai_sub_viewedit/{namedQueryId}/{globalCustomerId}/{serviceType}/{serviceInstance}", method = RequestMethod.GET) + public ResponseEntity<String> viewEditGetComponentList( + @PathVariable("namedQueryId") String namedQueryId, + @PathVariable("globalCustomerId") String globalCustomerId, + @PathVariable("serviceType") String serviceType, + @PathVariable("serviceInstance") String serviceInstance) { + + String componentListPayload = getComponentListPutPayload(namedQueryId, globalCustomerId, serviceType, serviceInstance); + File certiPath = GetCertificatesPath(); + + Response resp = doAaiPost(certiPath.getAbsolutePath(), "search/named-query", componentListPayload, false); + return convertResponseToResponseEntity(resp); + } + + @RequestMapping(value = "/aai_get_vnf_data/{globalCustomerId}/{serviceType}/{serviceInstanceId}", method = RequestMethod.GET) + public AaiResponse<String> getVnfData( + @PathVariable("globalCustomerId") String globalCustomerId, + @PathVariable("serviceType") String serviceType, + @PathVariable("serviceInstanceId") String serviceInstanceId) { + + return aaiService.getVNFData(globalCustomerId, serviceType, serviceInstanceId); + + } + + + /** + * Issue a named query to a&ai. + * + * @param namedQueryId the named query id + * @param globalCustomerId the global customer id + * @param serviceType the service type + * @return ResponseEntity The response entity + */ + @RequestMapping(value = "/aai_get_models_by_service_type/{namedQueryId}/{globalCustomerId}/{serviceType}", method = RequestMethod.GET) + public ResponseEntity<String> viewEditGetComponentList( + @PathVariable("namedQueryId") String namedQueryId, + @PathVariable("globalCustomerId") String globalCustomerId, + @PathVariable("serviceType") String serviceType) { + + String componentListPayload = getModelsByServiceTypePayload(namedQueryId, globalCustomerId, serviceType); + File certiPath = GetCertificatesPath(); + + Response resp = doAaiPost(certiPath.getAbsolutePath(), "search/named-query", componentListPayload, false); + return convertResponseToResponseEntity(resp); + } + + @RequestMapping(value = "/aai_get_vnf_instances/{globalCustomerId}/{serviceType}/{modelVersionId}/{modelInvariantId}/{cloudRegion}", method = RequestMethod.GET) + public ResponseEntity<String> getNodeTemplateInstances( + @PathVariable("globalCustomerId") String globalCustomerId, + @PathVariable("serviceType") String serviceType, + @PathVariable("modelVersionId") String modelVersionId, + @PathVariable("modelInvariantId") String modelInvariantId, + @PathVariable("cloudRegion") String cloudRegion) { + + AaiResponse<String> resp = aaiService.getNodeTemplateInstances(globalCustomerId, serviceType, modelVersionId, modelInvariantId, cloudRegion); + return new ResponseEntity<String>(resp.getT(), HttpStatus.valueOf(resp.getHttpCode())); + } + + @RequestMapping(value = "/aai_get_by_uri/**", method = RequestMethod.GET) + public ResponseEntity<String> getByUri(HttpServletRequest request) { + File certiPath = GetCertificatesPath(); + + String restOfTheUrl = (String) request.getAttribute( + HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE); + String formattedUri = restOfTheUrl.replaceFirst("/aai_get_by_uri/", "").replaceFirst("^aai/v[\\d]+/", ""); + + Response resp = doAaiGet(certiPath.getAbsolutePath(), formattedUri, false); + + return convertResponseToResponseEntity(resp); + } + + @RequestMapping(value = "/aai_get_configuration/{configuration_id}", method = RequestMethod.GET) + public ResponseEntity<String> getSpecificConfiguration(@PathVariable("configuration_id") String configurationId) { + File certiPath = GetCertificatesPath(); + + Response resp = doAaiGet(certiPath.getAbsolutePath(), "network/configurations/configuration/"+configurationId, false); + + return convertResponseToResponseEntity(resp); + } + + @RequestMapping(value = "/aai_get_service_instance_pnfs/{globalCustomerId}/{serviceType}/{serviceInstanceId}", method = RequestMethod.GET) + public List<String> getServiceInstanceAssociatedPnfs( + @PathVariable("globalCustomerId") String globalCustomerId, + @PathVariable("serviceType") String serviceType, + @PathVariable("serviceInstanceId") String serviceInstanceId) { + + return aaiService.getServiceInstanceAssociatedPnfs(globalCustomerId, serviceType, serviceInstanceId); + } + + /** + * PNF section + */ + @RequestMapping(value = "/aai_get_pnfs/pnf/{pnf_id}", method = RequestMethod.GET) + public ResponseEntity getSpecificPnf(@PathVariable("pnf_id") String pnfId) { + //logger.trace(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodName(), pnfId); + AaiResponse<Pnf> resp; + ResponseEntity<Pnf> re; + try { + resp = aaiService.getSpecificPnf(pnfId); + re = new ResponseEntity<Pnf>(resp.getT(), HttpStatus.valueOf(resp.getHttpCode())); + } catch (Exception e){ + return new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); + } + //logger.trace(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodName(), resp.getHttpCode()); + return re; + } + + + /** + * Obtain tenants for a given service type. + * + * @param globalCustomerId the global customer id + * @param serviceType the service type + * @return ResponseEntity The response entity + */ + @RequestMapping(value = "/aai_get_tenants/{global-customer-id}/{service-type}", method = RequestMethod.GET) + public ResponseEntity<String> viewEditGetTenantsFromServiceType(HttpServletRequest request, + @PathVariable("global-customer-id") String globalCustomerId, @PathVariable("service-type") String serviceType) { + + ResponseEntity responseEntity; + try { + ObjectMapper objectMapper = new ObjectMapper(); + List<Role> roles = roleProvider.getUserRoles(request); + RoleValidator roleValidator = new RoleValidator(roles); + AaiResponse<GetTenantsResponse[]> response = aaiService.getTenants(globalCustomerId, serviceType, roleValidator); + if (response.getHttpCode() == 200) { + responseEntity = new ResponseEntity<String>(objectMapper.writeValueAsString(response.getT()), HttpStatus.OK); + } else { + responseEntity = new ResponseEntity<String>(response.getErrorMessage(), HttpStatus.valueOf(response.getHttpCode())); + } + } catch (Exception e) { + responseEntity = new ResponseEntity<String>("Unable to proccess getTenants reponse", HttpStatus.INTERNAL_SERVER_ERROR); + } + return responseEntity; + } + + @RequestMapping(value = "/aai_get_pnf_instances/{globalCustomerId}/{serviceType}/{modelVersionId}/{modelInvariantId}/{cloudRegion}/{equipVendor}/{equipModel}", method = RequestMethod.GET) + public ResponseEntity<String> getPnfInstances( + @PathVariable("globalCustomerId") String globalCustomerId, + @PathVariable("serviceType") String serviceType, + @PathVariable("modelVersionId") String modelVersionId, + @PathVariable("modelInvariantId") String modelInvariantId, + @PathVariable("cloudRegion") String cloudRegion, + @PathVariable("equipVendor") String equipVendor, + @PathVariable("equipModel") String equipModel) { + + AaiResponse<String> resp = aaiService.getPNFData(globalCustomerId, serviceType, modelVersionId, modelInvariantId, cloudRegion, equipVendor, equipModel); + return new ResponseEntity<String>(resp.getT(), HttpStatus.valueOf(resp.getHttpCode())); + } + + private ResponseEntity<String> convertResponseToResponseEntity(Response resp) { + ResponseEntity<String> respEnt; + ObjectMapper objectMapper = new ObjectMapper(); + if (resp == null) { + respEnt = new ResponseEntity<String>("Failed to fetch data from A&AI, check server logs for details.", HttpStatus.INTERNAL_SERVER_ERROR); + } else { + respEnt = new ResponseEntity<String>(resp.readEntity(String.class), HttpStatus.valueOf(resp.getStatus())); + } + return respEnt; + } + + /** + * Gets the subscribers. + * + * @param isFullSet the is full set + * @return the subscribers + */ + private Response getSubscribers(boolean isFullSet) { + + File certiPath = GetCertificatesPath(); + String depth = "0"; + + Response resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers?subscriber-type=INFRA&depth=" + depth, false); + if (resp != null) { + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "getSubscribers() resp=" + resp.getStatusInfo().toString()); + } + return resp; + } + + /** + * Gets the subscriber details. + * + * @param subscriberId the subscriber id + * @return the subscriber details + */ + private Response getSubscriberDetails(String subscriberId) { + File certiPath = GetCertificatesPath(); + Response resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers/customer/" + subscriberId + "?depth=2", false); + //String resp = doAaiGet(certiPath.getAbsolutePath(), "business/customers/customer/" + subscriberId, false); + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "getSubscriberDetails() resp=" + resp.getStatusInfo().toString()); + return resp; + } + + /** + * Gets the certificates path. + * + * @return the file + */ + private File GetCertificatesPath() { + if (servletContext != null) + return new File(servletContext.getRealPath("/WEB-INF/cert/")); + return null; + } + + /** + * Send a GET request to a&ai. + * + * @param certiPath the certi path + * @param uri the uri + * @param xml the xml + * @return String The response + */ + protected Response doAaiGet(String certiPath, String uri, boolean xml) { + String methodName = "getSubscriberList"; + String transId = UUID.randomUUID().toString(); + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + Response resp = null; + try { + + AAIRestInterface restContrller = new AAIRestInterface(certiPath); + resp = restContrller.RestGet(fromAppId, transId, uri, xml); + + } catch (WebApplicationException e) { + final String message = ((BadRequestException) e).getResponse().readEntity(String.class); + LOGGER.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + message); + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + message); + } catch (Exception e) { + LOGGER.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + } + + return resp; + } + + /** + * Send a POST request to a&ai. + * + * @param certiPath the certi path + * @param uri the uri + * @param payload the payload + * @param xml the xml + * @return String The response + */ + protected Response doAaiPost(String certiPath, String uri, String payload, boolean xml) { + String methodName = "getSubscriberList"; + String transId = UUID.randomUUID().toString(); + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + Response resp = null; + try { + + AAIRestInterface restContrller = new AAIRestInterface(certiPath); + resp = restContrller.RestPost(fromAppId, transId, uri, payload, xml); + + } catch (Exception e) { + LOGGER.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + } + + return resp; + } + + /** + * Gets the component list put payload. + * + * @param namedQueryId the named query id + * @param globalCustomerId the global customer id + * @param serviceType the service type + * @param serviceInstance the service instance + * @return the component list put payload + */ + private String getComponentListPutPayload(String namedQueryId, String globalCustomerId, String serviceType, String serviceInstance) { + return + " {" + + " \"instance-filters\": {" + + " \"instance-filter\": [" + + " {" + + " \"customer\": {" + + " \"global-customer-id\": \"" + globalCustomerId + "\"" + + " }," + + " \"service-instance\": {" + + " \"service-instance-id\": \"" + serviceInstance + "\"" + + " }," + + " \"service-subscription\": {" + + " \"service-type\": \"" + serviceType + "\"" + + " }" + + " }" + + " ]" + + " }," + + " \"query-parameters\": {" + + " \"named-query\": {" + + " \"named-query-uuid\": \"" + namedQueryId + "\"" + + " }" + + " }" + + "}"; + + } + + private String getModelsByServiceTypePayload(String namedQueryId, String globalCustomerId, String serviceType) { + // TODO Auto-generated method stub + return " {" + + " \"instance-filters\": {" + + " \"instance-filter\": [" + + " {" + + " \"customer\": {" + + " \"global-customer-id\": \"" + globalCustomerId + "\"" + + " }," + + " \"service-subscription\": {" + + " \"service-type\": \"" + serviceType + "\"" + + " }" + + " }" + + " ]" + + " }," + + " \"query-parameters\": {" + + " \"named-query\": {" + + " \"named-query-uuid\": \"" + namedQueryId + "\"" + + " }" + + " }" + + "}"; + + } + + private String getAaiErrorMessage(String message) { + try { + org.json.JSONObject json = new org.json.JSONObject(message); + json = json.getJSONObject("requestError").getJSONObject("serviceException"); + + return json.getString("messageId") + ": " + json.getString("text"); + + } catch (Exception e) { + return null; + } + } +}
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/ChangeManagementController.java b/vid-app-common/src/main/java/org/onap/vid/controller/ChangeManagementController.java new file mode 100644 index 000000000..4f307ed96 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/controller/ChangeManagementController.java @@ -0,0 +1,193 @@ +package org.onap.vid.controller; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.commons.lang3.exception.ExceptionUtils; +import org.apache.commons.lang3.tuple.Pair; +import org.json.simple.JSONArray; +import org.openecomp.portalsdk.core.controller.UnRestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.changeManagement.*; +import org.onap.vid.exceptions.NotFoundException; +import org.onap.vid.model.ExceptionResponse; +import org.onap.vid.model.MsoExceptionResponse; +import org.onap.vid.mso.MsoResponseWrapper2; +import org.onap.vid.mso.MsoResponseWrapperInterface; +import org.onap.vid.mso.rest.Request; +import org.onap.vid.services.ChangeManagementService; +import org.onap.vid.services.WorkflowService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletRequest; +import javax.ws.rs.WebApplicationException; +import java.io.IOException; +import java.util.Collection; +import java.util.Collections; + +import static org.onap.vid.utils.Logging.getMethodName; +import static org.springframework.http.HttpStatus.*; + +/** + * Controller to handle ChangeManagement feature requests. + */ +@RestController +@RequestMapping(ChangeManagementController.CHANGE_MANAGEMENT) +public class ChangeManagementController extends UnRestrictedBaseController { + private static final String GetWorkflowsResponse = null; + public static final String VNF_WORKFLOW_RELATION = "vnf_workflow_relation"; + public static final String CHANGE_MANAGEMENT = "change-management"; + public static final String GET_VNF_WORKFLOW_RELATION = "get_vnf_workflow_relation"; + public static final String SCHEDULER_BY_SCHEDULE_ID = "/scheduler/schedules/{scheduleId}"; + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(ChangeManagementController.class); + private String fromAppId; + private final WorkflowService workflowService; + private final ChangeManagementService changeManagementService; + private final ObjectMapper objectMapper; + + + @Autowired + public ChangeManagementController(WorkflowService workflowService, ChangeManagementService changeManagementService, ObjectMapper objectMapper) { + this.fromAppId = "VidChangeManagementController"; + this.workflowService = workflowService; + this.changeManagementService = changeManagementService; + this.objectMapper = objectMapper; + } + + @RequestMapping(value = {"/workflow"}, method = RequestMethod.GET) + public ResponseEntity<Collection<String>> getWorkflow(@RequestParam("vnfs") Collection<String> vnfs) throws IOException, InterruptedException { + Collection<String> result = this.workflowService.getWorkflowsForVNFs(vnfs); + return new ResponseEntity<>(result, OK); + } + + @RequestMapping(value = {"/mso"}, method = RequestMethod.GET) + public ResponseEntity<Collection<Request>> getMSOChangeManagements() throws Exception, IOException, InterruptedException { + + Collection<Request> result = this.changeManagementService.getMSOChangeManagements(); + return new ResponseEntity<>(result, OK); + } + + @RequestMapping(value = "/workflow/{vnfName}", method = RequestMethod.POST) + public ResponseEntity<String> changeManagement(@PathVariable("vnfName") String vnfName, + HttpServletRequest request, + @RequestBody ChangeManagementRequest changeManagmentRequest) + throws Exception { + return this.changeManagementService.doChangeManagement(changeManagmentRequest, vnfName); + } + + @RequestMapping(value = "/uploadConfigUpdateFile", method = RequestMethod.POST) + public @ResponseBody ResponseEntity uploadConfigUpdateFile(@RequestPart("file") MultipartFile file) + throws Exception { + try { + String jsonString = this.changeManagementService.uploadConfigUpdateFile(file); + return new ResponseEntity<>(jsonString, HttpStatus.OK); + } + catch(WebApplicationException e){ + return new ResponseEntity<>(handleException(e), HttpStatus.valueOf(e.getResponse().getStatus())); + } + catch (Exception e) { + return new ResponseEntity<>(handleException(e), INTERNAL_SERVER_ERROR); + } + } + + + @RequestMapping(value = {"/scheduler"}, method = RequestMethod.GET) + public ResponseEntity<JSONArray> getSchedulerChangeManagements() throws IOException, InterruptedException { + JSONArray result = this.changeManagementService.getSchedulerChangeManagements(); + return new ResponseEntity<>(result, OK); + } + + @RequestMapping(value = {SCHEDULER_BY_SCHEDULE_ID}, method = RequestMethod.DELETE) + public ResponseEntity deleteSchedule(@PathVariable("scheduleId") String scheduleId) throws IOException, InterruptedException { + Pair<String, Integer> result = this.changeManagementService.deleteSchedule(scheduleId); + return ResponseEntity.status(result.getRight()).build(); + } + + + @RequestMapping(value = {GET_VNF_WORKFLOW_RELATION}, method = RequestMethod.POST) + public ResponseEntity getWorkflows(@RequestBody GetVnfWorkflowRelationRequest getVnfWorkflowRelationRequest) throws IOException, InterruptedException { + try { + GetWorkflowsResponse response = new GetWorkflowsResponse(changeManagementService.getWorkflowsForVnf(getVnfWorkflowRelationRequest)); + return ResponseEntity.status(OK).body(response); + } + catch (NotFoundException exception) { + LOGGER.error(exception.getMessage(), exception); + return new ResponseEntity<>(new VnfWorkflowRelationResponse(Collections.singletonList(exception.getMessage())),HttpStatus.NOT_FOUND); + } + catch (Exception exception) { + return handleException(exception, "Failed to get workflows for vnf"); + } + } + + @RequestMapping(value = {VNF_WORKFLOW_RELATION}, method = RequestMethod.POST) + public ResponseEntity createWorkflowRelation(@RequestBody VnfWorkflowRelationRequest vnfWorkflowRelationRequest) throws IOException, InterruptedException { + VnfWorkflowRelationResponse vnfWorkflowRelationResponse; + try { + vnfWorkflowRelationResponse = changeManagementService.addVnfWorkflowRelation(vnfWorkflowRelationRequest); + } + catch (Exception exception) { + return handleException(exception, "Failed to add vnf to workflow relation"); + } + + return new ResponseEntity<>(vnfWorkflowRelationResponse, OK); + } + + @RequestMapping(value = {VNF_WORKFLOW_RELATION}, method = RequestMethod.GET) + public ResponseEntity getAllWorkflowRelation() throws IOException, InterruptedException { + + try { + VnfWorkflowRelationAllResponse vnfWorkflowRelationAllResponse = changeManagementService.getAllVnfWorkflowRelations(); + return new ResponseEntity<>(vnfWorkflowRelationAllResponse, OK); + } + catch (Exception exception) { + return handleException(exception, "Failed to get all vnf to workflow relations"); + } + } + + @RequestMapping(value = {VNF_WORKFLOW_RELATION}, method = RequestMethod.DELETE) + public ResponseEntity deleteWorkflowRelation(@RequestBody VnfWorkflowRelationRequest vnfWorkflowRelationRequest) throws IOException, InterruptedException { + VnfWorkflowRelationResponse vnfWorkflowRelationResponse; + try { + vnfWorkflowRelationResponse = changeManagementService.deleteVnfWorkflowRelation(vnfWorkflowRelationRequest); + } + catch (Exception exception) { + return handleException(exception, "Failed to delete vnf from workflow relation"); + } + + return new ResponseEntity<>(vnfWorkflowRelationResponse, OK); + } + + private ResponseEntity handleException(Exception exception, String msg) { + LOGGER.error(msg, exception); + return new ResponseEntity<>(new VnfWorkflowRelationResponse(Collections.singletonList(msg)), HttpStatus.INTERNAL_SERVER_ERROR); + } + + + private ExceptionResponse handleException(Exception e) { + return ControllersUtils.handleException(e, LOGGER); + } + + @ExceptionHandler(Exception.class) + @ResponseStatus(value=OK) //return 200 for Backwards compatibility with the previous responses to scheduler + private MsoResponseWrapperInterface exceptionHandler(Exception e) { + return exceptionHandler(e, INTERNAL_SERVER_ERROR); + } + + @ExceptionHandler({ + javax.ws.rs.BadRequestException.class, + }) + @ResponseStatus(value = OK) //return 200 for Backwards compatibility with the previous responses to scheduler + public MsoResponseWrapperInterface clientDerivedExceptionAsBadRequest(Exception e) { + // same handler, different HTTP Code + return exceptionHandler(e, BAD_REQUEST); + } + + private MsoResponseWrapperInterface exceptionHandler(Exception e, HttpStatus httpStatus) { + LOGGER.error(EELFLoggerDelegate.errorLogger, "{}: {}", getMethodName(), ExceptionUtils.getMessage(e), e); + MsoResponseWrapper2<MsoExceptionResponse> responseWrapper2 = new MsoResponseWrapper2<>(httpStatus.value(), new MsoExceptionResponse(e)); + return responseWrapper2; + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/ControllersUtils.java b/vid-app-common/src/main/java/org/onap/vid/controller/ControllersUtils.java new file mode 100644 index 000000000..1df4f42bc --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/controller/ControllersUtils.java @@ -0,0 +1,40 @@ +package org.onap.vid.controller; + +import org.apache.commons.lang3.exception.ExceptionUtils; +import org.openecomp.portalsdk.core.domain.User; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.model.ExceptionResponse; +import org.slf4j.MDC; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpSession; + +import static com.att.eelf.configuration.Configuration.MDC_KEY_REQUEST_ID; +import static org.onap.vid.utils.Logging.getMethodName; + +public class ControllersUtils { + + + public static String extractUserId(HttpServletRequest request) { + String userId = ""; + HttpSession session = request.getSession(); + if (session != null) { + User user = (User) session.getAttribute(SystemProperties.getProperty(SystemProperties.USER_ATTRIBUTE_NAME)); + if (user != null) { + //userId = user.getHrid(); + userId = user.getLoginId(); + if (userId == null) + userId = user.getOrgUserId(); + } + } + return userId; + } + + public static ExceptionResponse handleException(Exception e, EELFLoggerDelegate logger) { + logger.error(EELFLoggerDelegate.errorLogger, "{}: {}", getMethodName(), ExceptionUtils.getMessage(e), e); + + ExceptionResponse exceptionResponse = new ExceptionResponse(e); + return exceptionResponse; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/HealthCheckController.java b/vid-app-common/src/main/java/org/onap/vid/controller/HealthCheckController.java index abef8d62b..2368649a4 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/HealthCheckController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/HealthCheckController.java @@ -1,196 +1,192 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller;
-
-import java.io.IOException;
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import org.springframework.http.MediaType;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-
-import org.openecomp.portalsdk.core.controller.UnRestrictedBaseController;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.openecomp.vid.dao.FnAppDoaImpl;
-
-/**
- * Controller for user profile view. The view is restricted to authenticated
- * users. The view name resolves to page user_profile.jsp which uses Angular.
- */
-
-@RestController
-@RequestMapping("/")
-public class HealthCheckController extends UnRestrictedBaseController {
-
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(HealthCheckController.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- private static final String HEALTH_CHECK_PATH = "/healthCheck";
-
- /**
- * Model for JSON response with health-check results.
- */
- public class HealthStatus {
- // Either 200 or 500
- public int statusCode;
-
- // Additional detail in case of error, empty in case of success.
- public String message;
-
- public String date;
-
- public HealthStatus(int code, String msg) {
- this.statusCode = code;
- this.message = msg;
- }
-
- public HealthStatus(int code,String date, String msg) {
- this.statusCode = code;
- this.message = msg;
- this.date=date;
- }
-
- public int getStatusCode() {
- return statusCode;
- }
-
- public void setStatusCode(int code) {
- this.statusCode = code;
- }
-
- public String getMessage() {
- return message;
- }
-
- public void setMessage(String msg) {
- this.message = msg;
- }
-
- public String getDate() {
- return date;
- }
-
- public void setDate(String date) {
- this.date = date;
- }
-
- }
-
- @SuppressWarnings("unchecked")
- public int getProfileCount(String driver, String URL, String username, String password) {
- FnAppDoaImpl doa= new FnAppDoaImpl();
- int count= doa.getProfileCount(driver,URL,username,password);
- return count;
- }
-
-
-
- /**
- * Obtain the HealthCheck Status from the System.Properties file.
- * Used by IDNS for redundancy
- * @return ResponseEntity The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- */
- @RequestMapping(value="/healthCheck",method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public HealthStatus gethealthCheckStatusforIDNS() throws IOException, InterruptedException {
-
- String driver = SystemProperties.getProperty("db.driver");
- String URL = SystemProperties.getProperty("db.connectionURL");
- String username = SystemProperties.getProperty("db.userName");
- String password = SystemProperties.getProperty("db.password");
-
- logger.debug(EELFLoggerDelegate.debugLogger, "driver ::" + driver);
- logger.debug(EELFLoggerDelegate.debugLogger, "URL::" + URL);
- logger.debug(EELFLoggerDelegate.debugLogger, "username::" + username);
- logger.debug(EELFLoggerDelegate.debugLogger,"password::" + password);
-
-
- HealthStatus healthStatus = null;
- try {
- logger.debug(EELFLoggerDelegate.debugLogger, "Performing health check");
- int count=getProfileCount(driver,URL,username,password);
- logger.debug(EELFLoggerDelegate.debugLogger,"count:::"+count);
- healthStatus = new HealthStatus(200, "health check succeeded");
- } catch (Exception ex) {
-
- logger.error(EELFLoggerDelegate.errorLogger, "Failed to perform health check", ex);
- healthStatus = new HealthStatus(500, "health check failed: " + ex.toString());
- }
- return healthStatus;
- }
-
- /**
- * Obtain the HealthCheck Status from the System.Properties file.
- *
- * @return ResponseEntity The response entity
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws InterruptedException the interrupted exception
- * Project :
- */
- @RequestMapping(value="rest/healthCheck/{User-Agent}/{X-ECOMP-RequestID}",method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
- public HealthStatus getHealthCheck(
- @PathVariable("User-Agent") String UserAgent,
- @PathVariable("X-ECOMP-RequestID") String ECOMPRequestID) throws IOException, InterruptedException {
-
- String driver = SystemProperties.getProperty("db.driver");
- String URL = SystemProperties.getProperty("db.connectionURL");
- String username = SystemProperties.getProperty("db.userName");
- String password = SystemProperties.getProperty("db.password");
-
- logger.debug(EELFLoggerDelegate.debugLogger, "driver ::" + driver);
- logger.debug(EELFLoggerDelegate.debugLogger, "URL::" + URL);
- logger.debug(EELFLoggerDelegate.debugLogger, "username::" + username);
- logger.debug(EELFLoggerDelegate.debugLogger,"password::" + password);
-
-
- HealthStatus healthStatus = null;
- try {
- logger.debug(EELFLoggerDelegate.debugLogger, "Performing health check");
- logger.debug(EELFLoggerDelegate.debugLogger, "User-Agent" + UserAgent);
- logger.debug(EELFLoggerDelegate.debugLogger, "X-ECOMP-RequestID" + ECOMPRequestID);
-
-
- int count=getProfileCount(driver,URL,username,password);
-
- logger.debug(EELFLoggerDelegate.debugLogger,"count:::"+count);
- healthStatus = new HealthStatus(200,dateFormat.format(new Date()) ,"health check succeeded");
- } catch (Exception ex) {
-
- logger.error(EELFLoggerDelegate.errorLogger, "Failed to perform health check", ex);
- healthStatus = new HealthStatus(500,dateFormat.format(new Date()),"health check failed: " + ex.toString());
- }
- return healthStatus;
- }
-}
-
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller; + +import org.openecomp.portalsdk.core.controller.UnRestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.dao.FnAppDoaImpl; +import org.springframework.http.MediaType; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import java.io.IOException; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + +/** + * Controller for user profile view. The view is restricted to authenticated + * users. The view name resolves to page user_profile.jsp which uses Angular. + */ + +@RestController +@RequestMapping("/") +public class HealthCheckController extends UnRestrictedBaseController { + + + /** The logger. */ + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(HealthCheckController.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + private static final String HEALTH_CHECK_PATH = "/healthCheck"; + + /** + * Model for JSON response with health-check results. + */ + public class HealthStatus { + // Either 200 or 500 + public int statusCode; + + // Additional detail in case of error, empty in case of success. + public String message; + + public String date; + + public HealthStatus(int code, String msg) { + this.statusCode = code; + this.message = msg; + } + + public HealthStatus(int code,String date, String msg) { + this.statusCode = code; + this.message = msg; + this.date=date; + } + + public int getStatusCode() { + return statusCode; + } + + public void setStatusCode(int code) { + this.statusCode = code; + } + + public String getMessage() { + return message; + } + + public void setMessage(String msg) { + this.message = msg; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + } + + @SuppressWarnings("unchecked") + public int getProfileCount(String driver, String URL, String username, String password) { + FnAppDoaImpl doa= new FnAppDoaImpl(); + int count= doa.getProfileCount(driver,URL,username,password); + return count; + } + + + + /** + * Obtain the HealthCheck Status from the System.Properties file. + * Used by IDNS for redundancy + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + */ + @RequestMapping(value="/healthCheck",method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public HealthStatus gethealthCheckStatusforIDNS() throws IOException, InterruptedException { + + String driver = SystemProperties.getProperty("db.driver"); + String URL = SystemProperties.getProperty("db.connectionURL"); + String username = SystemProperties.getProperty("db.userName"); + String password = SystemProperties.getProperty("db.password"); + + LOGGER.debug(EELFLoggerDelegate.debugLogger, "driver ::" + driver); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "URL::" + URL); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "username::" + username); + LOGGER.debug(EELFLoggerDelegate.debugLogger,"password::" + password); + + + HealthStatus healthStatus = null; + try { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "Performing health check"); + int count=getProfileCount(driver,URL,username,password); + LOGGER.debug(EELFLoggerDelegate.debugLogger,"count:::"+count); + healthStatus = new HealthStatus(200, "health check succeeded"); + } catch (Exception ex) { + + LOGGER.error(EELFLoggerDelegate.errorLogger, "Failed to perform health check", ex); + healthStatus = new HealthStatus(500, "health check failed: " + ex.toString()); + } + return healthStatus; + } + + /** + * Obtain the HealthCheck Status from the System.Properties file. + * + * @return ResponseEntity The response entity + * @throws IOException Signals that an I/O exception has occurred. + * @throws InterruptedException the interrupted exception + * Project : + */ + @RequestMapping(value="rest/healthCheck/{User-Agent}/{X-ECOMP-RequestID}",method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) + public HealthStatus getHealthCheck( + @PathVariable("User-Agent") String UserAgent, + @PathVariable("X-ECOMP-RequestID") String ECOMPRequestID) throws IOException, InterruptedException { + + String driver = SystemProperties.getProperty("db.driver"); + String URL = SystemProperties.getProperty("db.connectionURL"); + String username = SystemProperties.getProperty("db.userName"); + String password = SystemProperties.getProperty("db.password"); + + LOGGER.debug(EELFLoggerDelegate.debugLogger, "driver ::" + driver); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "URL::" + URL); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "username::" + username); + LOGGER.debug(EELFLoggerDelegate.debugLogger,"password::" + password); + + + HealthStatus healthStatus = null; + try { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "Performing health check"); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "User-Agent" + UserAgent); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "X-ECOMP-RequestID" + ECOMPRequestID); + + + int count=getProfileCount(driver,URL,username,password); + + LOGGER.debug(EELFLoggerDelegate.debugLogger,"count:::"+count); + healthStatus = new HealthStatus(200,dateFormat.format(new Date()) ,"health check succeeded"); + } catch (Exception ex) { + + LOGGER.error(EELFLoggerDelegate.errorLogger, "Failed to perform health check", ex); + healthStatus = new HealthStatus(500,dateFormat.format(new Date()),"health check failed: " + ex.toString()); + } + return healthStatus; + } +} + diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/LoggerController.java b/vid-app-common/src/main/java/org/onap/vid/controller/LoggerController.java new file mode 100644 index 000000000..e70c87115 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/controller/LoggerController.java @@ -0,0 +1,115 @@ +package org.onap.vid.controller; + +import ch.qos.logback.classic.LoggerContext; +import ch.qos.logback.core.Appender; +import ch.qos.logback.core.FileAppender; +import ch.qos.logback.core.spi.AppenderAttachable; +import org.apache.commons.io.input.ReversedLinesFileReader; +import org.apache.commons.lang3.StringUtils; +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.model.ExceptionResponse; +import org.onap.vid.roles.Role; +import org.onap.vid.roles.RoleProvider; +import org.onap.vid.utils.Streams; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import javax.ws.rs.InternalServerErrorException; +import javax.ws.rs.NotAuthorizedException; +import java.io.File; +import java.io.IOException; +import java.util.List; +import java.util.Objects; +import java.util.function.Supplier; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +import static com.att.eelf.configuration.Configuration.GENERAL_LOGGER_NAME; + + +@RestController +@RequestMapping("logger") +public class LoggerController extends RestrictedBaseController { + + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(LoggerController.class); + + @Autowired + RoleProvider roleProvider; + + @RequestMapping(value = "/{loggerName:audit|error|metrics}", method = RequestMethod.GET) + public String getLog(@PathVariable String loggerName, HttpServletRequest request, + @RequestParam(value="limit", defaultValue = "5000") Integer limit) throws IOException { + + List<Role> roles = roleProvider.getUserRoles(request); + boolean userPermitted = roleProvider.userPermissionIsReadLogs(roles); + if (!userPermitted) { + throw new NotAuthorizedException("User not authorized to get logs"); + } + + String logfilePath = getLogfilePath(loggerName); + + try (final ReversedLinesFileReader reader = new ReversedLinesFileReader(new File(logfilePath))) { + Supplier<String> reverseLinesSupplier = () -> { + try { + return reader.readLine(); + } catch (NullPointerException e) { + // EOF Reached + return null; + } catch (IOException e) { + throw new InternalServerErrorException("error while reading " + logfilePath, e); + } + }; + + return Streams.takeWhile( + Stream.generate(reverseLinesSupplier), + line -> !StringUtils.contains(line, "Logging is started")) + .limit(limit) + .limit(5_000) + .filter(Objects::nonNull) + .collect(Collectors.joining("\n")); + } + } + + private String getLogfilePath(String loggerName) { + /* + Find the requested logger, and pull all of it's appenders. + Find the first of the appenders that is a FileAppender, and return it's + write-out filename. + */ + LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory(); + return context.getLoggerList().stream() + .filter(logger -> logger.getName().equals(GENERAL_LOGGER_NAME + "." + loggerName)) + .flatMap(this::pullSubAppenders) + .flatMap(appender -> { + // Appender might be "attachable", if so - roll-up its sub-appenders + return (appender instanceof AppenderAttachable) ? + pullSubAppenders((AppenderAttachable<?>) appender) : Stream.of(appender); + }) + .filter(appender -> appender instanceof FileAppender) + .map(appender -> (FileAppender<?>) appender) + .map(FileAppender::getFile) + .findFirst() + .orElseThrow(() -> new InternalServerErrorException("logfile for " + loggerName + " not found")); + } + + private <T> Stream<Appender<T>> pullSubAppenders(AppenderAttachable<T> logger) { + return Streams.fromIterator(logger.iteratorForAppenders()); + } + + @ExceptionHandler({ NotAuthorizedException.class }) + @ResponseStatus(HttpStatus.UNAUTHORIZED) + public String notAuthorizedHandler(NotAuthorizedException e) { + return "UNAUTHORIZED"; + } + + @ExceptionHandler({ IOException.class, InternalServerErrorException.class }) + @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) + public ExceptionResponse ioExceptionHandler(Exception e) { + return org.onap.vid.controller.ControllersUtils.handleException(e, LOGGER); + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/MaintenanceController.java b/vid-app-common/src/main/java/org/onap/vid/controller/MaintenanceController.java new file mode 100644 index 000000000..df1e6e421 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/controller/MaintenanceController.java @@ -0,0 +1,135 @@ +package org.onap.vid.controller; + + +import org.openecomp.portalsdk.core.controller.UnRestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.category.AddCategoryOptionResponse; +import org.onap.vid.category.AddCategoryOptionsRequest; +import org.onap.vid.category.CategoryParameterOptionRep; +import org.onap.vid.category.CategoryParametersResponse; +import org.onap.vid.model.CategoryParameter.Family; +import org.onap.vid.model.CategoryParameterOption; +import org.onap.vid.services.CategoryParameterService; +import org.onap.vid.services.CategoryParameterServiceImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import javax.ws.rs.ForbiddenException; +import java.util.Arrays; +import java.util.Collections; + +import static org.onap.vid.utils.Logging.getMethodName; + +/** + * Controler for APIs that are used only by vid operators + */ + +@RestController +@RequestMapping(MaintenanceController.Maintenance) +public class MaintenanceController extends UnRestrictedBaseController { + + public static final String Maintenance = "maintenance"; + + @Autowired + protected CategoryParameterService categoryParameterService; + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(MaintenanceController.class); + + /** + * Add list of options to one category parameter + * @param request the request + * @return the new option + * @throws Exception the exception + */ + @RequestMapping(value = "/category_parameter/{categoryName}", method = RequestMethod.POST) + public ResponseEntity addCategoryOptions ( + HttpServletRequest request, @PathVariable String categoryName, @RequestBody AddCategoryOptionsRequest option) throws Exception { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodName()); + try { + AddCategoryOptionResponse response = categoryParameterService.createCategoryParameterOptions(categoryName, option); + HttpStatus httpStatus = response.getErrors().size()>0 ? HttpStatus.MULTI_STATUS : HttpStatus.OK; + LOGGER.debug(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodName(), response); + return new ResponseEntity<>(response, httpStatus); + } + catch (CategoryParameterServiceImpl.UnfoundedCategoryException exception) { + return new ResponseEntity<>(new AddCategoryOptionResponse(Collections.singletonList(exception.getMessage())), HttpStatus.NOT_FOUND); + } + catch (Exception exception) { + LOGGER.error("failed to add option to parameter category " + categoryName, exception); + return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); + } + } + + @RequestMapping(value = "/category_parameter/{categoryName}", method = RequestMethod.PUT) + public ResponseEntity updateNameForOption ( + HttpServletRequest request, @PathVariable String categoryName, @RequestBody CategoryParameterOptionRep option) throws Exception { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodName()); + try { + AddCategoryOptionResponse response = categoryParameterService.updateCategoryParameterOption(categoryName, option); + HttpStatus httpStatus = response.getErrors().size()>0 ? HttpStatus.MULTI_STATUS : HttpStatus.OK; + LOGGER.debug(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodName(), response); + return new ResponseEntity<>(response, httpStatus); + } + catch (ForbiddenException exception) { + return new ResponseEntity<>(new AddCategoryOptionResponse(Collections.singletonList(exception.getMessage())), HttpStatus.FORBIDDEN); + } + catch (CategoryParameterServiceImpl.UnfoundedCategoryException|CategoryParameterServiceImpl.UnfoundedCategoryOptionException exception) { + return new ResponseEntity<>(new AddCategoryOptionResponse(Collections.singletonList(exception.getMessage())), HttpStatus.NOT_FOUND); + } + catch (CategoryParameterServiceImpl.AlreadyExistOptionNameException exception) { + return new ResponseEntity<>(new AddCategoryOptionResponse(Collections.singletonList(exception.getMessage())), HttpStatus.CONFLICT); + } + catch (Exception exception) { + LOGGER.error("failed to update option to parameter category " + categoryName, exception); + return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); + } + } + + /** + * Gets the owning entity properties. + * @param request the request + * @return the property + * @throws Exception the exception + */ + @RequestMapping(value = "/category_parameter", method = RequestMethod.GET) + public ResponseEntity getCategoryParameter(HttpServletRequest request, @RequestParam(value="familyName", required = true) Family familyName) throws Exception { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodName()); + try { + CategoryParametersResponse response = categoryParameterService.getCategoryParameters(familyName); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodName(), response); + return new ResponseEntity<>(response, HttpStatus.OK); + } + catch (Exception exception) { + LOGGER.error("failed to retrieve category parameter list from DB.", exception); + return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); + } + } + + + /** + * Delete option of the category. + * @param request the request + * @throws Exception the exception + */ + @RequestMapping(value = "/delete_category_parameter/{categoryName}", method = RequestMethod.POST) + public ResponseEntity deleteCategoryOption ( + HttpServletRequest request, @PathVariable String categoryName, @RequestBody CategoryParameterOption option) throws Exception { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodName()); + + try { + categoryParameterService.deleteCategoryOption(categoryName, option); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodName(), HttpStatus.OK); + return new ResponseEntity<>(HttpStatus.OK); + } + catch (CategoryParameterServiceImpl.UnfoundedCategoryException exception) { + return new ResponseEntity<>(new AddCategoryOptionResponse(Arrays.asList(exception.getMessage())), HttpStatus.NOT_FOUND); + } + catch (Exception exception) { + LOGGER.error("failed to add/update owning entity option", exception); + return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); + } + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/MsoConfig.java b/vid-app-common/src/main/java/org/onap/vid/controller/MsoConfig.java index e0b59204a..2aa52b858 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/MsoConfig.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/MsoConfig.java @@ -1,7 +1,11 @@ -package org.openecomp.vid.controller; +package org.onap.vid.controller; import com.fasterxml.jackson.databind.ObjectMapper; -import org.openecomp.vid.factories.MsoRequestFactory; +import org.onap.vid.factories.MsoRequestFactory; +import org.onap.vid.mso.MsoBusinessLogic; +import org.onap.vid.mso.MsoBusinessLogicImpl; +import org.onap.vid.mso.MsoInterface; +import org.onap.vid.mso.rest.MsoRestClientNew; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -24,6 +28,15 @@ public class MsoConfig { return new MsoRequestFactory(); } + @Bean + public MsoInterface getMsoClient(){ + return new MsoRestClientNew(); + } + + @Bean + public MsoBusinessLogic getMsoBusinessLogic(){ + return new MsoBusinessLogicImpl(getMsoClient()); + } } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/MsoController.java b/vid-app-common/src/main/java/org/onap/vid/controller/MsoController.java index 451b19de7..1ce1d64c4 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/MsoController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/MsoController.java @@ -1,770 +1,655 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller;
-
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.ArrayList;
-//import java.util.UUID;
-import java.util.Date;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Scanner;
-import java.util.stream.Collectors;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.codehaus.jackson.JsonEncoding;
-import org.codehaus.jackson.JsonFactory;
-import org.codehaus.jackson.JsonGenerator;
-import org.codehaus.jackson.JsonParser;
-import org.codehaus.jackson.JsonToken;
-import org.glassfish.jersey.client.ClientResponse;
-import org.json.simple.JSONArray;
-import org.json.simple.JSONObject;
-import org.json.simple.parser.JSONParser;
-import org.openecomp.vid.model.ExceptionResponse;
-import org.openecomp.vid.mso.*;
-import org.openecomp.vid.mso.rest.*;
-import org.springframework.http.HttpStatus;
-//import org.springframework.http.ResponseEntity;
-//import org.springframework.http.RequestEntity;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.ExceptionHandler;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.servlet.ModelAndView;
-
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.ObjectReader;
-import com.fasterxml.jackson.databind.DeserializationFeature;
-
-/**
- * The Class MsoController.
- */
-@RestController
-@RequestMapping("mso")
-public class MsoController extends RestrictedBaseController {
-
- /**
- * The view name.
- */
- String viewName;
-
- /**
- * The logger.
- */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoController.class);
-
- /**
- * The Constant dateFormat.
- */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /**
- * The Constant SVC_INSTANCE_ID.
- */
- public final static String SVC_INSTANCE_ID = "<service_instance_id>";
- public final static String REQUEST_TYPE = "<request_type>";
-
- /**
- * The Constant VNF_INSTANCE_ID.
- */
- public final static String VNF_INSTANCE_ID = "<vnf_instance_id>";
-
- /**
- * Welcome.
- *
- * @param request the request
- * @return the model and view
-
- public ModelAndView welcome(HttpServletRequest request) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== MsoController welcome start");
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + " MSO_SERVER_URL=" +
- SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) );
- return new ModelAndView(getViewName());
- }
- */
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#getViewName()
-
- public String getViewName() {
- return viewName;
- }
- */
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#setViewName(java.lang.String)
-
- public void setViewName(String viewName) {
- this.viewName = viewName;
- }
- */
-
- /**
- * Creates the svc instance.
- *
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_create_svc_instance", method = RequestMethod.POST)
- public ResponseEntity<String> createSvcInstance(HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "createSvcInstance";
-
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
- // always return OK, the MSO status code is embedded in the body
-
- MsoResponseWrapper w = mbl.createSvcInstance(mso_request);
-
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
-
- /**
- * Creates the svc instance.
- *
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
-
- public ResponseEntity<String> createSvcInstanceNewRest(HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "createSvcInstance";
-
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogicNew mbln = new MsoBusinessLogicNew();
-
- // always return OK, the MSO status code is embedded in the body
-
- MsoResponseWrapper w = mbln.createSvcInstanceRest(mso_request);
-
- if (w == null) {
- return null;
- }
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
- /**
- * Creates the svc instance.
- *
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
-
- public ResponseEntity<String> createSvcInstanceNew(HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "createSvcInstance";
-
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogicNew mbln = new MsoBusinessLogicNew();
- // always return OK, the MSO status code is embedded in the body
-
- MsoResponseWrapper w = mbln.createSvcInstance(mso_request);
-
- if (w == null) {
- return null;
- }
-
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
- /**
- * Creates the vnf.
- *
- * @param serviceInstanceId the service instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_create_vnf_instance/{serviceInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> createVnf(@PathVariable("serviceInstanceId") String serviceInstanceId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.createVnf(mso_request, serviceInstanceId);
-
- // always return OK, the MSO status code is embedded in the body
-
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
- /**
- * Creates the nw instance.
- *
- * @param serviceInstanceId the service instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_create_nw_instance/{serviceInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> createNwInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "createNwInstance";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start, serviceInstanceId = " + serviceInstanceId);
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.createNwInstance(mso_request, serviceInstanceId);
-
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
- /**
- * Creates the volume group instance.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_create_volumegroup_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> createVolumeGroupInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, @PathVariable("vnfInstanceId") String vnfInstanceId,
- HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "createVolumeGroupInstance";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.createVolumeGroupInstance(mso_request, serviceInstanceId, vnfInstanceId);
-
- // always return OK, the MSO status code is embedded in the body
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
- }
-
- /**
- * Creates the vf module instance.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_create_vfmodule_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> createVfModuleInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- @PathVariable("vnfInstanceId") String vnfInstanceId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "createVfModuleInstance";
-
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.createVfModuleInstance(mso_request, serviceInstanceId, vnfInstanceId);
-
- // always return OK, the MSO status code is embedded in the body
-
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
- }
-
- /**
- * Creates the instance.
- *
- * @param request the request
- * @param path the path
- * @return the mso response wrapper
- * @throws ClientHandlerException the client handler exception
- * @throws Exception the exception
- */
- protected MsoResponseWrapper createInstance(RequestDetails request, String path) throws Exception {
- String methodName = "createInstance";
- logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- try {
- MsoRestInterfaceIfc restController = new MsoRestInterface();
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling Post, request = (" + request + ")");
-
- RestObject<String> restObjStr = new RestObject<String>();
- String str = new String();
- restObjStr.set(str);
- restController.<String>Post(str, request, "", path, restObjStr);
- MsoResponseWrapper w = MsoUtil.wrapResponse(restObjStr);
-
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " w=" + w.getResponse());
- return w;
- } catch (Exception e) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- throw e;
- }
- }
-
- /**
- * Delete svc instance.
- *
- * @param serviceInstanceId the service instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_delete_svc_instance/{serviceInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteSvcInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
-
- String methodName = "deleteSvcInstance";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.deleteSvcInstance(mso_request, serviceInstanceId);
-
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " w=" + w.getResponse());
- // always return OK, the MSO status code is embedded in the body
-
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
- /**
- * Delete vnf.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_delete_vnf_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST)
-
- public ResponseEntity<String> deleteVnf(@PathVariable("serviceInstanceId") String serviceInstanceId, @PathVariable("vnfInstanceId") String vnfInstanceId,
- HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "deleteVnf";
-
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mlb = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mlb.deleteVnf(mso_request, serviceInstanceId, vnfInstanceId);
-
- // always return OK, the MSO status code is embedded in the body
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
- /**
- * Delete vf module.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param vfModuleId the vf module id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- //mso_delete_vf_module/bc305d54-75b4-431b-adb2-eb6b9e546014/vnfs/fe9000-0009-9999/vfmodules/abeeee-abeeee-abeeee
- @RequestMapping(value = "/mso_delete_vfmodule_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfModuleId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteVfModule(
- @PathVariable("serviceInstanceId") String serviceInstanceId, @PathVariable("vnfInstanceId") String vnfInstanceId,
- @PathVariable("vfModuleId") String vfModuleId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
-
- String methodName = "deleteVfModule";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.deleteVfModule(mso_request, serviceInstanceId, vnfInstanceId, vfModuleId);
-
- // always return OK, the MSO status code is embedded in the body
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
- /**
- * Delete volume group instance.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param volumeGroupId the volume group id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_delete_volumegroup_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}/volumeGroups/{volumeGroupId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteVolumeGroupInstance(
- @PathVariable("serviceInstanceId") String serviceInstanceId, @PathVariable("vnfInstanceId") String vnfInstanceId, @PathVariable("volumeGroupId") String volumeGroupId,
- HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "deleteVolumeGroupInstance";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.deleteVolumeGroupInstance(mso_request, serviceInstanceId, vnfInstanceId, volumeGroupId);
-
- // always return OK, the MSO status code is embedded in the body
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
- }
-
- /**
- * Delete nw instance.
- *
- * @param serviceInstanceId the service instance id
- * @param networkInstanceId the network instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_delete_nw_instance/{serviceInstanceId}/networks/{networkInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteNwInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- @PathVariable("networkInstanceId") String networkInstanceId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
- String methodName = "deleteNwInstance";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.deleteNwInstance(mso_request, serviceInstanceId, networkInstanceId);
-
- // always return OK, the MSO status code is embedded in the body
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
-
- }
-
- /**
- * Gets the orchestration request.
- *
- * @param requestId the request id
- * @param request the request
- * @return the orchestration request
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_get_orch_req/{requestId}", method = RequestMethod.GET)
- public ResponseEntity<String> getOrchestrationRequest(@PathVariable("requestId") String requestId,
- HttpServletRequest request) throws Exception {
-
- String methodName = "getOrchestrationRequest";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.getOrchestrationRequest(requestId);
-
- // always return OK, the MSO status code is embedded in the body
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
- }
-
-
- /**
- * Gets the orchestration requests.
- *
- * @param filterString the filter string
- * @param request the request
- * @return the orchestration requests
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_get_orch_reqs/{filterString}", method = RequestMethod.GET)
- public ResponseEntity<String> getOrchestrationRequests(@PathVariable("filterString") String filterString,
- HttpServletRequest request) throws Exception {
-
- String methodName = "getOrchestrationRequests";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.getOrchestrationRequests(filterString);
-
- // always return OK, the MSO status code is embedded in the body
- return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK));
- }
-
-
- /**
- * activate to a pnf instance.
- *
- * @param serviceInstanceId the id of the service.
- * @param requestDetails the body of the request.
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_activate_service_instance/{serviceInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> activateServiceInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, @RequestBody RequestDetails requestDetails) throws Exception {
- String methodName = "activateServiceInstance";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.activateServiceInstance(requestDetails, serviceInstanceId);
- return new ResponseEntity<>(w.getResponse(), HttpStatus.OK);
- }
-
-
- /**
- * Gets the orchestration requests for the dashboard.
- * currently its all the orchestration requests with RequestType updateInstance or replaceInstance.
- * @return the orchestration requests
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_get_orch_reqs/dashboard", method = RequestMethod.GET)
- public List<Request> getOrchestrationRequestsForDashboard() throws Exception {
-
- String methodName = "getOrchestrationRequestsForDashboard";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- return mbl.getOrchestrationRequestsForDashboard();
- }
-
- /**
- * Gets the Manual Tasks for the given request id.
- *
- * @param originalRequestId the id of the original request.
- * @return the tasks
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_get_man_task/{originalRequestId}", method = RequestMethod.GET)
- public List<Task> getManualTasksByRequestId(@PathVariable("originalRequestId") String originalRequestId) throws Exception {
-
- String methodName = "getManualTasksByRequestId";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- return mbl.getManualTasksByRequestId(originalRequestId);
- }
-
-
-
- /**
- * Complete the manual task.
- *
- * @param taskId the id of the task to complete.
- * @param requestDetails the body of the request.
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_post_man_task/{taskId}", method = RequestMethod.POST)
- public ResponseEntity<String> manualTaskComplete(@PathVariable("taskId") String taskId , @RequestBody RequestDetails requestDetails) throws Exception {
-
- String methodName = "manualTaskComplete";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- MsoBusinessLogic mbl = new MsoBusinessLogic();
-
- MsoResponseWrapper w = mbl.completeManualTask(requestDetails, taskId);
- return new ResponseEntity<String>(w.getResponse(), HttpStatus.OK);
- }
-
-
-
-
-
- /**
- * Gets the orchestration requests for svc instance.
- *
- * @param svc_instance_id the svc instance id
- * @return the orchestration requests for svc instance
- * @throws Exception the exception
- */
-// public MsoResponseWrapper getOrchestrationRequestsForSvcInstance(String svc_instance_id) throws Exception {
-
-// String methodName = "getOrchestrationRequestsForSvcInstance";
-// logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-// MsoResponseWrapper w = null;
-//
-// try {
-// MsoRestInterfaceIfc restController = MsoRestInterfaceFactory.getInstance();
-// String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_ORC_REQS);
-// String path = p + svc_instance_id;
-//
-// RestObject<String> restObjStr = new RestObject<String>();
-// String str = new String();
-// restObjStr.set(str);
-//
-// restController.<String>Get(str, "", path, restObjStr);
-// w = MsoUtil.wrapResponse(restObjStr);
-// logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " w=" + w.getResponse());
-//
-// } catch (Exception e) {
-// logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
-// logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
-// throw e;
-// }
-// return w;
-// }
-
- /**
- * Exception handler.
- *
- * @param e the e
- * @param response the response
- * @throws IOException Signals that an I/O exception has occurred.
- */
- @ExceptionHandler(Exception.class)
- private void exceptionHandler(Exception e, HttpServletResponse response) throws IOException {
-
- /*
- * The following "logger.error" lines "should" be sufficient for logging the exception.
- * However, the console output in my Eclipse environment is NOT showing ANY of the
- * logger statements in this class. Thus the temporary "e.printStackTrace" statement
- * is also included.
- */
-
- String methodName = "exceptionHandler";
- logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- StringWriter sw = new StringWriter();
- e.printStackTrace(new PrintWriter(sw));
- logger.error(EELFLoggerDelegate.errorLogger, sw.toString());
-
- /*
- * Temporary - IF the above mentioned "logger.error" glitch is resolved ...
- * this statement could be removed since it would then likely result in duplicate
- * trace output.
- */
- e.printStackTrace(System.err);
-
- response.setContentType("application/json; charset=UTF-8");
- response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
-
- ExceptionResponse exceptionResponse = new ExceptionResponse();
- exceptionResponse.setException(e.getClass().toString().replaceFirst("^.*\\.", ""));
- exceptionResponse.setMessage(e.getMessage());
-
- response.getWriter().write(new ObjectMapper().writeValueAsString(exceptionResponse));
-
- response.flushBuffer();
-
- }
-
- /**
- * Parses the orchestration requests for svc instance.
- *
- * @param resp the resp
- * @return the list
- * @throws ParseException the parse exception
- * @throws Exception the exception
- */
- @SuppressWarnings("unchecked")
- public List<JSONObject> parseOrchestrationRequestsForSvcInstance(ClientResponse resp) throws org.json.simple.parser.ParseException, Exception {
-
- String methodName = "parseOrchestrationRequestsForSvcInstance";
-
- ArrayList<JSONObject> json_list = new ArrayList<JSONObject>();
-
- String rlist_str = resp.readEntity(String.class);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + " Response string: " + rlist_str);
-
- JSONParser parser = new JSONParser();
- try {
- Object obj = parser.parse(rlist_str);
-
- JSONObject jsonObject = (JSONObject) obj;
-
- JSONArray requestList = (JSONArray) jsonObject.get("requestList");
-
- if (requestList != null && !(requestList.isEmpty()))
- for (Object container : requestList) {
-
- JSONObject containerJsonObj = (JSONObject) container;
- //logger.debug(dateFormat.format(new Date()) + "<== " + "." + methodName + " reqJsonObj: " + containerJsonObj.toJSONString());
- JSONObject reqJsonObj = (JSONObject) containerJsonObj.get("request");
-
- //logger.debug(dateFormat.format(new Date()) + "<== " + "." + methodName + " reqJsonObj.requestId: " +
- // reqJsonObj.get("requestId") );
- JSONObject result = new JSONObject();
-
- result.put("requestId", reqJsonObj.get("requestId"));
- if (reqJsonObj.get("requestType") != null) {
- result.put("requestType", (reqJsonObj.get("requestType").toString()));
- }
- JSONObject req_status = (JSONObject) reqJsonObj.get("requestStatus");
- if (req_status != null) {
- result.put("timestamp", (req_status.get("timestamp")));
- result.put("requestState", (req_status.get("requestState")));
- result.put("statusMessage", (req_status.get("statusMessage")));
- result.put("percentProgress", (req_status.get("percentProgress")));
- }
- json_list.add(result);
- }
- } catch (org.json.simple.parser.ParseException pe) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + " Parse exception: " + pe.toString());
- throw pe;
- } catch (Exception e) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + " Exception: " + e.toString());
- throw e;
- }
- return (json_list);
- }
-
- /**
- * Retrieve request object.
- *
- * @param request the request
- * @return the request details
- * @throws Exception the exception
- */
- public RequestDetails retrieveRequestObject(HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception {
-
- String methodName = "retrieveRequestObject";
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- ObjectMapper mapper = new ObjectMapper();
- //JSON from String to Object
- //RequestDetails mso_request;
-
- try {
- //mso_request = new RequestDetails();
- //mso_request = mapper.readValue(request.getInputStream(), RequestDetails.class);
- } catch (Exception e) {
- logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " Unable to read json object RequestDetails e=" + e.getMessage());
- throw e;
- }
- if (mso_request == null) {
- logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " mso_request is null");
- throw new Exception("RequestDetails is missing");
- }
- try {
- String json_req = mapper.writeValueAsString(mso_request);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " request=[" + json_req + "]");
- } catch (Exception e) {
- logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " Unable to convert RequestDetails to json string e=" + e.getMessage());
- throw e;
- }
- return (mso_request);
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller; + + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.onap.vid.model.ExceptionResponse; +import org.onap.vid.mso.MsoBusinessLogic; +import org.onap.vid.mso.MsoResponseWrapper; +import org.onap.vid.mso.rest.Request; +import org.onap.vid.mso.rest.RequestDetails; +import org.onap.vid.mso.rest.Task; +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.io.PrintWriter; +import java.io.StringWriter; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +//import java.util.UUID; +//import org.springframework.http.ResponseEntity; +//import org.springframework.http.RequestEntity; + +/** + * The Class MsoController. + */ +@RestController +@RequestMapping("mso") +public class MsoController extends RestrictedBaseController { + + /** + * The logger. + */ + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(MsoController.class); + + /** + * The Constant dateFormat. + */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** + * The Constant SVC_INSTANCE_ID. + */ + public final static String SVC_INSTANCE_ID = "<service_instance_id>"; + public final static String REQUEST_TYPE = "<request_type>"; + + /** + * The Constant CONFIGURATION_ID + */ + public final static String CONFIGURATION_ID = "<configuration_id>"; + + /** + * The Constant VNF_INSTANCE_ID. + */ + public final static String VNF_INSTANCE_ID = "<vnf_instance_id>"; + + private final MsoBusinessLogic msoBusinessLogic; + + @Autowired + public MsoController(MsoBusinessLogic msoBusinessLogic) { + this.msoBusinessLogic = msoBusinessLogic; + } + + /** + * Creates the svc instance. + * + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_svc_instance", method = RequestMethod.POST) + public ResponseEntity<String> createSvcInstance(HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + String methodName = "createSvcInstance"; + + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + // always return OK, the MSO status code is embedded in the body + + MsoResponseWrapper w = msoBusinessLogic.createSvcInstance(mso_request); + + return (new ResponseEntity<>(w.getResponse(), HttpStatus.OK)); + + } + + /** + * Creates the vnf. + * + * @param serviceInstanceId the service instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_vnf_instance/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> createVnf(@PathVariable("serviceInstanceId") String serviceInstanceId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + + MsoResponseWrapper w = msoBusinessLogic.createVnf(mso_request, serviceInstanceId); + + // always return OK, the MSO status code is embedded in the body + + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + + } + + /** + * Creates the nw instance. + * + * @param serviceInstanceId the service instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_nw_instance/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> createNwInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + String methodName = "createNwInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start, serviceInstanceId = " + serviceInstanceId); + + MsoResponseWrapper w = msoBusinessLogic.createNwInstance(mso_request, serviceInstanceId); + + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + + } + + /** + * Creates the volume group instance. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_volumegroup_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> createVolumeGroupInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, @PathVariable("vnfInstanceId") String vnfInstanceId, + HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + String methodName = "createVolumeGroupInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.createVolumeGroupInstance(mso_request, serviceInstanceId, vnfInstanceId); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Creates the vf module instance. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_vfmodule_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> createVfModuleInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("vnfInstanceId") String vnfInstanceId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + String methodName = "createVfModuleInstance"; + + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.createVfModuleInstance(mso_request, serviceInstanceId, vnfInstanceId); + + // always return OK, the MSO status code is embedded in the body + + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Creates a configuration instance. + * + * @param serviceInstanceId the service instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_configuration_instance/{serviceInstanceId}/configurations/", method = RequestMethod.POST) + public ResponseEntity<String> createConfigurationInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + String methodName = "createConfigurationInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.createConfigurationInstance(mso_request, serviceInstanceId); + + // always return OK, the MSO status code is embedded in the body + + return (new ResponseEntity<>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Delete svc instance. + * + * @param serviceInstanceId the service instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_delete_svc_instance/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteSvcInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + + String methodName = "deleteSvcInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.deleteSvcInstance(mso_request, serviceInstanceId); + + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " w=" + w.getResponse()); + // always return OK, the MSO status code is embedded in the body + + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + + } + + /** + * Delete vnf. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_delete_vnf_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST) + + public ResponseEntity<String> deleteVnf(@PathVariable("serviceInstanceId") String serviceInstanceId, @PathVariable("vnfInstanceId") String vnfInstanceId, + HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + String methodName = "deleteVnf"; + + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.deleteVnf(mso_request, serviceInstanceId, vnfInstanceId); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + + } + + /** + * Delete configuration instance + * @param serviceInstanceId the service instance id + * @param configurationId the configuration id + * @param mso_request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "mso_delete_configuration/{serviceInstanceId}/configurations/{configurationId}", + method = RequestMethod.POST) + public ResponseEntity<String> deleteConfiguration( + @PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable ("configurationId") String configurationId, + @RequestBody RequestDetails mso_request) throws Exception { + + String methodName = "deleteConfiguration"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, + dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.deleteConfiguration(mso_request, serviceInstanceId, configurationId); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Activate configuration instance + * @param serviceInstanceId the service instace id + * @param configurationId the configuration id + * @param mso_request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "mso_activate_configuration/{serviceInstanceId}/configurations/{configurationId}", + method = RequestMethod.POST) + public ResponseEntity<String> activateConfiguration( + @PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("configurationId") String configurationId, + @RequestBody RequestDetails mso_request) throws Exception { + + MsoResponseWrapper w = msoBusinessLogic.setConfigurationActiveStatus(mso_request, serviceInstanceId, configurationId, true); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Deactivate configuration instance + * @param serviceInstanceId the service instace id + * @param configurationId the configuration id + * @param mso_request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "mso_deactivate_configuration/{serviceInstanceId}/configurations/{configurationId}", + method = RequestMethod.POST) + public ResponseEntity<String> deactivateConfiguration( + @PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("configurationId") String configurationId, + @RequestBody RequestDetails mso_request) throws Exception { + + MsoResponseWrapper w = msoBusinessLogic.setConfigurationActiveStatus(mso_request, serviceInstanceId, configurationId, false); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Disable port on configuration instance + * @param serviceInstanceId the service instance id + * @param configurationId the configuration instance id + * @param mso_request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "mso_disable_port_configuration/{serviceInstanceId}/configurations/{configurationId}", + method = RequestMethod.POST) + public ResponseEntity<String> disablePortOnConfiguration( + @PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("configurationId") String configurationId, + @RequestBody RequestDetails mso_request) throws Exception { + + MsoResponseWrapper w = msoBusinessLogic.setPortOnConfigurationStatus(mso_request, serviceInstanceId, configurationId, false); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Enable port on configuration instance + * @param serviceInstanceId the service instance id + * @param configurationId the configuration instance id + * @param mso_request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "mso_enable_port_configuration/{serviceInstanceId}/configurations/{configurationId}", + method = RequestMethod.POST) + public ResponseEntity<String> enablePortOnConfiguration( + @PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("configurationId") String configurationId, + @RequestBody RequestDetails mso_request) throws Exception { + + MsoResponseWrapper w = msoBusinessLogic.setPortOnConfigurationStatus(mso_request, serviceInstanceId, configurationId, true); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Delete vf module. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param vfModuleId the vf module id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + //mso_delete_vf_module/bc305d54-75b4-431b-adb2-eb6b9e546014/vnfs/fe9000-0009-9999/vfmodules/abeeee-abeeee-abeeee + @RequestMapping(value = "/mso_delete_vfmodule_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfModuleId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteVfModule( + @PathVariable("serviceInstanceId") String serviceInstanceId, @PathVariable("vnfInstanceId") String vnfInstanceId, + @PathVariable("vfModuleId") String vfModuleId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + + String methodName = "deleteVfModule"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.deleteVfModule(mso_request, serviceInstanceId, vnfInstanceId, vfModuleId); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + + } + + /** + * Delete volume group instance. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param volumeGroupId the volume group id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_delete_volumegroup_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}/volumeGroups/{volumeGroupId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteVolumeGroupInstance( + @PathVariable("serviceInstanceId") String serviceInstanceId, @PathVariable("vnfInstanceId") String vnfInstanceId, @PathVariable("volumeGroupId") String volumeGroupId, + HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + String methodName = "deleteVolumeGroupInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.deleteVolumeGroupInstance(mso_request, serviceInstanceId, vnfInstanceId, volumeGroupId); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + /** + * Delete nw instance. + * + * @param serviceInstanceId the service instance id + * @param networkInstanceId the network instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_delete_nw_instance/{serviceInstanceId}/networks/{networkInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteNwInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("networkInstanceId") String networkInstanceId, HttpServletRequest request, @RequestBody RequestDetails mso_request) throws Exception { + String methodName = "deleteNwInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.deleteNwInstance(mso_request, serviceInstanceId, networkInstanceId); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + + } + + /** + * Gets the orchestration request. + * + * @param requestId the request id + * @param request the request + * @return the orchestration request + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_get_orch_req/{requestId}", method = RequestMethod.GET) + public ResponseEntity<String> getOrchestrationRequest(@PathVariable("requestId") String requestId, + HttpServletRequest request) throws Exception { + + String methodName = "getOrchestrationRequest"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + + MsoResponseWrapper w = msoBusinessLogic.getOrchestrationRequest(requestId); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + + /** + * Gets the orchestration requests. + * + * @param filterString the filter string + * @param request the request + * @return the orchestration requests + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_get_orch_reqs/{filterString}", method = RequestMethod.GET) + public ResponseEntity<String> getOrchestrationRequests(@PathVariable("filterString") String filterString, + HttpServletRequest request) throws Exception { + + String methodName = "getOrchestrationRequests"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + + MsoResponseWrapper w = msoBusinessLogic.getOrchestrationRequests(filterString); + + // always return OK, the MSO status code is embedded in the body + return (new ResponseEntity<String>(w.getResponse(), HttpStatus.OK)); + } + + + /** + * activate to a pnf instance. + * + * @param serviceInstanceId the id of the service. + * @param requestDetails the body of the request. + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_activate_service_instance/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> activateServiceInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, @RequestBody RequestDetails requestDetails) throws Exception { + String methodName = "activateServiceInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.setServiceInstanceStatus(requestDetails, serviceInstanceId, true); + return new ResponseEntity<>(w.getResponse(), HttpStatus.OK); + } + + /** + * deactivate a service instance. + * + * @param serviceInstanceId the id of the service. + * @param requestDetails the body of the request. + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_deactivate_service_instance/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> deactivateServiceInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, @RequestBody RequestDetails requestDetails) throws Exception { + String methodName = "deactivateServiceInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.setServiceInstanceStatus(requestDetails, serviceInstanceId, false); + return new ResponseEntity<>(w.getResponse(), HttpStatus.OK); + } + + + /** + * Gets the orchestration requests for the dashboard. + * currently its all the orchestration requests with RequestType updateInstance or replaceInstance. + * @return the orchestration requests + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_get_orch_reqs/dashboard", method = RequestMethod.GET) + public List<Request> getOrchestrationRequestsForDashboard() throws Exception { + + String methodName = "getOrchestrationRequestsForDashboard"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + + return msoBusinessLogic.getOrchestrationRequestsForDashboard(); + } + + /** + * Gets the Manual Tasks for the given request id. + * + * @param originalRequestId the id of the original request. + * @return the tasks + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_get_man_task/{originalRequestId}", method = RequestMethod.GET) + public List<Task> getManualTasksByRequestId(@PathVariable("originalRequestId") String originalRequestId) throws Exception { + + String methodName = "getManualTasksByRequestId"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + return msoBusinessLogic.getManualTasksByRequestId(originalRequestId); + } + + + + /** + * Complete the manual task. + * + * @param taskId the id of the task to complete. + * @param requestDetails the body of the request. + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_post_man_task/{taskId}", method = RequestMethod.POST) + public ResponseEntity<String> manualTaskComplete(@PathVariable("taskId") String taskId , @RequestBody RequestDetails requestDetails) throws Exception { + + String methodName = "manualTaskComplete"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w = msoBusinessLogic.completeManualTask(requestDetails, taskId); + return new ResponseEntity<String>(w.getResponse(), HttpStatus.OK); + } + + @RequestMapping(value = "/mso_remove_relationship/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> removeRelationshipFromServiceInstance(@PathVariable("serviceInstanceId") String serviceInstanceId , + @RequestBody RequestDetails requestDetails) throws Exception { + + String methodName = "removeRelationshipFromServiceInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w; + try { + w = msoBusinessLogic.removeRelationshipFromServiceInstance(requestDetails, serviceInstanceId); + } catch (Exception e){ + LOGGER.error("Internal error when calling MSO controller logic for {}", methodName, e); + return new ResponseEntity<>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); + } + return new ResponseEntity<>(w.getResponse(), HttpStatus.OK); + } + + @RequestMapping(value = "/mso_add_relationship/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> addRelationshipToServiceInstance(@PathVariable("serviceInstanceId") String serviceInstanceId , + @RequestBody RequestDetails requestDetails) throws Exception { + + String methodName = "addRelationshipToServiceInstance"; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + MsoResponseWrapper w; + try { + w = msoBusinessLogic.addRelationshipToServiceInstance(requestDetails, serviceInstanceId); + } catch (Exception e){ + LOGGER.error("Internal error when calling MSO controller logic for {}", methodName, e); + return new ResponseEntity<>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); + } + return new ResponseEntity<>(w.getResponse(), HttpStatus.OK); + } + + + /** + * Exception handler. + * + * @param e the e + * @param response the response + * @throws IOException Signals that an I/O exception has occurred. + */ + @ExceptionHandler(Exception.class) + private void exceptionHandler(Exception e, HttpServletResponse response) throws IOException { + + /* + * The following "logger.error" lines "should" be sufficient for logging the exception. + * However, the console output in my Eclipse environment is NOT showing ANY of the + * logger statements in this class. Thus the temporary "e.printStackTrace" statement + * is also included. + */ + + String methodName = "exceptionHandler"; + LOGGER.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + StringWriter sw = new StringWriter(); + e.printStackTrace(new PrintWriter(sw)); + LOGGER.error(EELFLoggerDelegate.errorLogger, sw.toString()); + + /* + * Temporary - IF the above mentioned "logger.error" glitch is resolved ... + * this statement could be removed since it would then likely result in duplicate + * trace output. + */ + e.printStackTrace(System.err); + + response.setContentType("application/json; charset=UTF-8"); + response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); + + ExceptionResponse exceptionResponse = new ExceptionResponse(); + exceptionResponse.setException(e.getClass().toString().replaceFirst("^.*\\.", "")); + exceptionResponse.setMessage(e.getMessage()); + + response.getWriter().write(new ObjectMapper().writeValueAsString(exceptionResponse)); + + response.flushBuffer(); + + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/OperationalEnvironmentController.java b/vid-app-common/src/main/java/org/onap/vid/controller/OperationalEnvironmentController.java new file mode 100644 index 000000000..e57aab392 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/controller/OperationalEnvironmentController.java @@ -0,0 +1,354 @@ +package org.onap.vid.controller; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.google.common.base.MoreObjects; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.exception.ExceptionUtils; +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.changeManagement.RequestDetailsWrapper; +import org.onap.vid.model.ExceptionResponse; +import org.onap.vid.model.RequestReferencesContainer; +import org.onap.vid.mso.MsoBusinessLogic; +import org.onap.vid.mso.MsoResponseWrapper2; +import org.onap.vid.mso.RestMsoImplementation; +import org.onap.vid.mso.RestObject; +import org.onap.vid.mso.model.OperationalEnvironmentActivateInfo; +import org.onap.vid.mso.model.OperationalEnvironmentDeactivateInfo; +import org.onap.vid.mso.rest.MsoRestClientNew; +import org.onap.vid.mso.rest.OperationalEnvironment.OperationEnvironmentRequestDetails; +import org.onap.vid.mso.rest.RequestDetails; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.MissingServletRequestParameterException; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +import static org.onap.vid.utils.Logging.getMethodCallerName; +import static org.onap.vid.utils.Logging.getMethodName; +import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR; + +@RestController +@RequestMapping("operationalEnvironment") +public class OperationalEnvironmentController extends RestrictedBaseController { + + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(OperationalEnvironmentController.class); + private final RestMsoImplementation restMso; + private final MsoBusinessLogic msoBusinessLogic; + + private static final Pattern RECOVERY_ACTION_MESSAGE_PATTERN = Pattern.compile("String value \'(.*)\': value not"); + + + @Autowired + public OperationalEnvironmentController(MsoBusinessLogic msoBusinessLogic, MsoRestClientNew msoClientInterface) { + this.restMso = msoClientInterface; + this.msoBusinessLogic = msoBusinessLogic; + } + + @RequestMapping(value = "/create", method = RequestMethod.POST) + public MsoResponseWrapper2 createOperationalEnvironment(HttpServletRequest request, @RequestBody OperationalEnvironmentCreateBody operationalEnvironment) throws Exception { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodName(), operationalEnvironment); + String userId = ControllersUtils.extractUserId(request); + RequestDetailsWrapper<OperationEnvironmentRequestDetails> requestDetailsWrapper = msoBusinessLogic.convertParametersToRequestDetails(operationalEnvironment, userId); + String path = msoBusinessLogic.getOperationalEnvironmentCreationPath(); + RestObject<RequestReferencesContainer> msoResponse = restMso.PostForObject(requestDetailsWrapper, "", + path, RequestReferencesContainer.class); + debugEnd(msoResponse); + return new MsoResponseWrapper2<>(msoResponse); + } + + @RequestMapping(value = "/activate", method = RequestMethod.POST) + public MsoResponseWrapper2 activate(HttpServletRequest request, + @RequestParam("operationalEnvironment") String operationalEnvironmentId, + @RequestBody OperationalEnvironmentActivateBody activateRequest) throws Exception { + + verifyIsNotEmpty(operationalEnvironmentId, "operationalEnvironment"); + + //manifest is null in case of wrong manifest structure (deserialization failure of the manifest) + if (activateRequest.getManifest()==null || activateRequest.getManifest().getServiceModelList()==null) { + throw new BadManifestException("Manifest structure is wrong"); + } + + String userId = ControllersUtils.extractUserId(request); + + OperationalEnvironmentActivateInfo activateInfo = new OperationalEnvironmentActivateInfo(activateRequest, userId, operationalEnvironmentId); + debugStart(activateInfo); + + String path = msoBusinessLogic.getOperationalEnvironmentActivationPath(activateInfo); + RequestDetailsWrapper<RequestDetails> requestDetailsWrapper = msoBusinessLogic.createOperationalEnvironmentActivationRequestDetails(activateInfo); + + RestObject<RequestReferencesContainer> msoResponse = restMso.PostForObject(requestDetailsWrapper, "", + path, RequestReferencesContainer.class); + + debugEnd(msoResponse); + return new MsoResponseWrapper2<>(msoResponse); + } + + @RequestMapping(value = "/deactivate", method = RequestMethod.POST) + public MsoResponseWrapper2 deactivate(HttpServletRequest request, + @RequestParam("operationalEnvironment") String operationalEnvironmentId, + @RequestBody Map deactivationRequest) throws Exception { + + verifyIsNotEmpty(operationalEnvironmentId, "operationalEnvironment"); + + String userId = ControllersUtils.extractUserId(request); + + OperationalEnvironmentDeactivateInfo deactivateInfo = new OperationalEnvironmentDeactivateInfo(userId, operationalEnvironmentId); + debugStart(deactivateInfo); + + String path = msoBusinessLogic.getOperationalEnvironmentDeactivationPath(deactivateInfo); + RequestDetailsWrapper<RequestDetails> requestDetailsWrapper = msoBusinessLogic.createOperationalEnvironmentDeactivationRequestDetails(deactivateInfo); + + RestObject<RequestReferencesContainer> msoResponse = restMso.PostForObject(requestDetailsWrapper, "", + path, RequestReferencesContainer.class); + + debugEnd(msoResponse); + return new MsoResponseWrapper2<>(msoResponse); + } + + @RequestMapping(value = "/requestStatus", method = RequestMethod.GET) + public MsoResponseWrapper2 status(HttpServletRequest request, @RequestParam("requestId") String requestId) throws Exception { + + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodName(), requestId); + + verifyIsNotEmpty(requestId, "requestId"); + String path = msoBusinessLogic.getCloudResourcesRequestsStatusPath(requestId); + + final RestObject<HashMap> msoResponse = restMso.GetForObject("", path, HashMap.class); + + LOGGER.debug(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodName(), msoResponse); + return new MsoResponseWrapper2<>(msoResponse); + } + + @ExceptionHandler(Exception.class) + @ResponseStatus(value=INTERNAL_SERVER_ERROR) + private ExceptionResponse exceptionHandler(Exception e) { + return ControllersUtils.handleException(e, LOGGER); + } + + @ExceptionHandler({ + org.springframework.web.bind.MissingServletRequestParameterException.class, + BadManifestException.class + }) + @ResponseStatus(value = HttpStatus.BAD_REQUEST) + public ExceptionResponse clientDerivedExceptionAsBadRequest(Exception e) { + // same handler, different HTTP Code + return exceptionHandler(e); + } + + @ExceptionHandler({ + org.springframework.http.converter.HttpMessageNotReadableException.class, + }) + @ResponseStatus(value = HttpStatus.BAD_REQUEST) + public ExceptionResponse handlingHttpMessageNotReadableException(Exception e) { + //in case of wrong value in manifest for RecoveryAction the message contains the class name. + //The wrong value is in also part of this messages + //within the pattern of: String value '<WRONG_VALUE>': value not + //so we use regex to find the wrong value + if (e.getMessage().contains(OperationalEnvironmentRecoveryAction.class.getName())) { + LOGGER.error(EELFLoggerDelegate.errorLogger, "{}: {}", getMethodName(), ExceptionUtils.getMessage(e), e); + String message = "Wrong value for RecoveryAction in manifest. Allowed options are: "+OperationalEnvironmentRecoveryAction.options; + + Matcher matcher = RECOVERY_ACTION_MESSAGE_PATTERN.matcher(e.getMessage()); + if (matcher.find()) { + String wrongValue = matcher.group(1); + message = message+". Wrong value is: "+wrongValue; + } + return new ExceptionResponse(new BadManifestException(message)); + } + return exceptionHandler(e); + } + + + public enum OperationalEnvironmentRecoveryAction { + abort, + retry, + skip; + + public static final String options = Stream.of(OperationalEnvironmentRecoveryAction.values()).map(OperationalEnvironmentRecoveryAction::name).collect(Collectors.joining(", ")); + } + + public static class ActivateServiceModel { + private String serviceModelVersionId; + private OperationalEnvironmentRecoveryAction recoveryAction; + + public ActivateServiceModel() { + } + + public ActivateServiceModel(String serviceModelVersionId, OperationalEnvironmentRecoveryAction recoveryAction) { + this.serviceModelVersionId = serviceModelVersionId; + this.recoveryAction = recoveryAction; + } + + public String getServiceModelVersionId() { + return serviceModelVersionId; + } + + public void setServiceModelVersionId(String serviceModelVersionId) { + this.serviceModelVersionId = serviceModelVersionId; + } + + public OperationalEnvironmentRecoveryAction getRecoveryAction() { + return recoveryAction; + } + + public void setRecoveryAction(OperationalEnvironmentRecoveryAction recoveryAction) { + this.recoveryAction = recoveryAction; + } + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class OperationalEnvironmentManifest { + + + private List<ActivateServiceModel> serviceModelList; + + public OperationalEnvironmentManifest() { + } + + public OperationalEnvironmentManifest(List<ActivateServiceModel> serviceModelList) { + this.serviceModelList = serviceModelList; + } + + public List<ActivateServiceModel> getServiceModelList() { + return serviceModelList; + } + + public void setServiceModelList(List<ActivateServiceModel> serviceModelList) { + this.serviceModelList = serviceModelList; + } + } + + public static class OperationalEnvironmentActivateBody { + private final String relatedInstanceId; + private final String relatedInstanceName; + private final String workloadContext; + private final OperationalEnvironmentManifest manifest; + + public OperationalEnvironmentActivateBody(@JsonProperty(value = "relatedInstanceId", required = true) String relatedInstanceId, + @JsonProperty(value = "relatedInstanceName", required = true) String relatedInstanceName, + @JsonProperty(value = "workloadContext", required = true) String workloadContext, + @JsonProperty(value = "manifest", required = true) OperationalEnvironmentManifest manifest) { + this.relatedInstanceId = relatedInstanceId; + this.relatedInstanceName = relatedInstanceName; + this.workloadContext = workloadContext; + this.manifest = manifest; + } + + + public String getRelatedInstanceId() { + return relatedInstanceId; + } + + public String getRelatedInstanceName() { + return relatedInstanceName; + } + + public String getWorkloadContext() { + return workloadContext; + } + + public OperationalEnvironmentManifest getManifest() { + return manifest; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("relatedInstanceId", relatedInstanceId) + .add("relatedInstanceName", relatedInstanceName) + .add("workloadContext", workloadContext) + .add("manifest", manifest) + .toString(); + } + } + + public static class OperationalEnvironmentCreateBody { + private final String instanceName; + private final String ecompInstanceId; + private final String ecompInstanceName; + private final String operationalEnvironmentType; + private final String tenantContext; + private final String workloadContext; + + public OperationalEnvironmentCreateBody(@JsonProperty(value = "instanceName", required = true) String instanceName, + @JsonProperty(value = "ecompInstanceId", required = true) String ecompInstanceId, + @JsonProperty(value = "ecompInstanceName", required = true) String ecompInstanceName, + @JsonProperty(value = "operationalEnvironmentType", required = true) String operationalEnvironmentType, + @JsonProperty(value = "tenantContext", required = true) String tenantContext, + @JsonProperty(value = "workloadContext", required = true) String workloadContext) { + this.instanceName = instanceName; + this.ecompInstanceId = ecompInstanceId; + this.ecompInstanceName = ecompInstanceName; + this.operationalEnvironmentType = operationalEnvironmentType; + this.tenantContext = tenantContext; + this.workloadContext = workloadContext; + } + + public String getInstanceName() { + return instanceName; + } + + public String getEcompInstanceId() { + return ecompInstanceId; + } + + public String getEcompInstanceName() { + return ecompInstanceName; + } + + public String getOperationalEnvironmentType() { + return operationalEnvironmentType; + } + + public String getTenantContext() { + return tenantContext; + } + + public String getWorkloadContext() { + return workloadContext; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("instanceName", instanceName) + .add("ecompInstanceId", ecompInstanceId) + .add("ecompInstanceName", ecompInstanceName) + .add("operationalEnvironmentType", operationalEnvironmentType) + .add("tenantContext", tenantContext) + .add("workloadContext", workloadContext) + .toString(); + } + } + + private void debugEnd(RestObject<RequestReferencesContainer> msoResponse) { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodCallerName(), msoResponse); + } + + private void debugStart(Object requestInfo) { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodCallerName(), requestInfo); + } + + private void verifyIsNotEmpty(String fieldValue, String fieldName) throws MissingServletRequestParameterException { + if (StringUtils.isEmpty(fieldValue)) { + throw new MissingServletRequestParameterException(fieldName, "String"); + } + } + + public static class BadManifestException extends RuntimeException { + public BadManifestException(String message) { + super(message); + } + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/PolicyController.java b/vid-app-common/src/main/java/org/onap/vid/controller/PolicyController.java index 83e177a61..4e9ec2539 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/PolicyController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/PolicyController.java @@ -18,21 +18,12 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.controller; - -import java.util.UUID; - -import javax.servlet.http.HttpServletRequest; +package org.onap.vid.controller; import org.json.simple.JSONObject; import org.openecomp.portalsdk.core.controller.RestrictedBaseController; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.policy.PolicyProperties; -import org.openecomp.vid.policy.PolicyResponseWrapper; -import org.openecomp.vid.policy.PolicyRestInterfaceFactory; -import org.openecomp.vid.policy.PolicyRestInterfaceIfc; -import org.openecomp.vid.policy.PolicyUtil; -import org.openecomp.vid.policy.RestObject; +import org.onap.vid.policy.*; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestBody; @@ -40,6 +31,9 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; +import javax.servlet.http.HttpServletRequest; +import java.util.UUID; + /** * Controller to handle Policy requests. */ @@ -48,18 +42,18 @@ import org.springframework.web.bind.annotation.RestController; public class PolicyController extends RestrictedBaseController{ /** The logger. */ - static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(PolicyController.class); + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(PolicyController.class); @RequestMapping(value="/get_policy",method = RequestMethod.POST) public ResponseEntity<String> getPolicyInfo( HttpServletRequest request, @RequestBody JSONObject policy_request) throws Exception { - logger.debug("#####################POLICY API CALL STARTED ###############"+ PolicyProperties.POLICY_GET_CONFIG_VAL); - logger.debug("#####################Policy Request ###############"+policy_request.toString()); + LOGGER.debug("#####################POLICY API CALL STARTED ###############"+ PolicyProperties.POLICY_GET_CONFIG_VAL); + LOGGER.debug("#####################Policy Request ###############"+policy_request.toString()); String path = PolicyProperties.getProperty(PolicyProperties.POLICY_GET_CONFIG_VAL); PolicyResponseWrapper policyResWrapper = getPolicyConfig(policy_request,path); - logger.debug("$$$$$$$$$$$$$$$$$$$$$$ " + new ResponseEntity<String>(policyResWrapper.getResponse(), HttpStatus.OK).toString()); + LOGGER.debug("$$$$$$$$$$$$$$$$$$$$$$ " + new ResponseEntity<String>(policyResWrapper.getResponse(), HttpStatus.OK).toString()); return ( new ResponseEntity<String>(policyResWrapper.getResponse(), HttpStatus.valueOf(policyResWrapper.getStatus())) ); } @@ -67,7 +61,7 @@ public class PolicyController extends RestrictedBaseController{ protected static PolicyResponseWrapper getPolicyConfig(JSONObject request, String path) throws Exception { String methodName = "getPolicyConfig"; String uuid = UUID.randomUUID().toString(); - logger.debug( "starting getPolicyConfig "); + LOGGER.debug( "starting getPolicyConfig "); try { //STARTING REST API CALL AS AN FACTORY INSTACE @@ -79,10 +73,10 @@ public class PolicyController extends RestrictedBaseController{ restController.<String>Post(str, request, uuid, path, restObjStr ); PolicyResponseWrapper policyRespWrapper = PolicyUtil.wrapResponse (restObjStr); - logger.debug( "<== " + methodName + " w=" + policyRespWrapper.getResponse()); + LOGGER.debug( "<== " + methodName + " w=" + policyRespWrapper.getResponse()); return policyRespWrapper; } catch (Exception e) { - logger.debug( "EXCEPTION in getPolicyConfig <== " + "." + methodName + e.toString()); + LOGGER.debug( "EXCEPTION in getPolicyConfig <== " + "." + methodName + e.toString()); throw e; } } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/PropertyController.java b/vid-app-common/src/main/java/org/onap/vid/controller/PropertyController.java index 90080769b..2d282edb8 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/PropertyController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/PropertyController.java @@ -1,122 +1,132 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.springframework.http.HttpStatus;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.servlet.ModelAndView;
-
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-
-/**
- * The Class PropertyController.
- */
-@RestController
-public class PropertyController extends RestrictedBaseController{
-
- /** The view name. */
- String viewName;
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(PropertyController.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /**
- * Welcome.
- *
- * @param request the request
- * @return the model and view
- */
- @RequestMapping(value = {"/propertyhome" }, method = RequestMethod.GET)
- public ModelAndView welcome(HttpServletRequest request) {
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== PropertyController welcome start");
- return new ModelAndView(getViewName());
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#getViewName()
- */
- public String getViewName() {
- return viewName;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#setViewName(java.lang.String)
- */
- public void setViewName(String _viewName) {
- this.viewName = _viewName;
- }
-
- /**
- * Gets the property.
- *
- * @param name the name
- * @param defaultvalue the defaultvalue
- * @param request the request
- * @return the property
- * @throws Exception the exception
- */
- @RequestMapping(value = "/get_property/{name}/{defaultvalue}", method = RequestMethod.GET)
- public ResponseEntity<String> getProperty (@PathVariable("name") String name, @PathVariable("defaultvalue") String defaultvalue,
- HttpServletRequest request) throws Exception {
-
- String methodName = "getProperty";
- ResponseEntity<String> resp = null;
- String pvalue = null;
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- try {
- // convert "_" to "." in the property name
- if (name == null || name.length() == 0 ) {
- return ( new ResponseEntity<String> (defaultvalue, HttpStatus.OK));
- }
- // convert "_" to "." in the property name
- String propertyName = name.replace('_', '.');
- pvalue = SystemProperties.getProperty(propertyName);
- if ( ( pvalue == null ) || ( pvalue.length() == 0 ) ) {
- pvalue = defaultvalue;
- }
- resp = new ResponseEntity<String>(pvalue, HttpStatus.OK);
- }
- catch (Exception e) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString());
- throw e;
- }
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " returning " + pvalue);
- return ( resp );
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller; + +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.category.CategoryParametersResponse; +import org.onap.vid.model.CategoryParameter.Family; +import org.onap.vid.services.CategoryParameterService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + +import static org.onap.vid.utils.Logging.getMethodName; + +/** + * The Class PropertyController. + */ +@RestController +public class PropertyController extends RestrictedBaseController{ + + + /** The logger. */ + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(PropertyController.class); + + /** The Constant dateFormat. */ + final protected static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + @Autowired + protected CategoryParameterService categoryParameterService; + + + /** + * Welcome. + * + * @param request the request + * @return the model and view + */ + @RequestMapping(value = {"/propertyhome" }, method = RequestMethod.GET) + public ModelAndView welcome(HttpServletRequest request) { + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== PropertyController welcome start"); + return new ModelAndView(getViewName()); + } + + /** + * Gets the property. + * + * @param name the name + * @param defaultvalue the defaultvalue + * @param request the request + * @return the property + * @throws Exception the exception + */ + @RequestMapping(value = "/get_property/{name}/{defaultvalue}", method = RequestMethod.GET) + public ResponseEntity<String> getProperty (@PathVariable("name") String name, @PathVariable("defaultvalue") String defaultvalue, + HttpServletRequest request) throws Exception { + + String methodName = "getProperty"; + ResponseEntity<String> resp = null; + String pvalue = null; + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + try { + // convert "_" to "." in the property name + if (name == null || name.length() == 0 ) { + return ( new ResponseEntity<String> (defaultvalue, HttpStatus.OK)); + } + // convert "_" to "." in the property name + String propertyName = name.replace('_', '.'); + pvalue = SystemProperties.getProperty(propertyName); + if ( ( pvalue == null ) || ( pvalue.length() == 0 ) ) { + pvalue = defaultvalue; + } + resp = new ResponseEntity<String>(pvalue, HttpStatus.OK); + } + catch (Exception e) { + LOGGER.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + LOGGER.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " returning " + pvalue); + return ( resp ); + } + + /** + * Gets the owning entity properties. + * @param request the request + * @return the property + * @throws Exception the exception + */ + @RequestMapping(value = "/category_parameter", method = RequestMethod.GET) + public ResponseEntity getCategoryParameter(HttpServletRequest request, @RequestParam(value="familyName", required = true) Family familyName) throws Exception { + LOGGER.debug(EELFLoggerDelegate.debugLogger, "start {}({})", getMethodName()); + try { + CategoryParametersResponse response = categoryParameterService.getCategoryParameters(familyName); + LOGGER.debug(EELFLoggerDelegate.debugLogger, "end {}() => {}", getMethodName(), response); + return new ResponseEntity<>(response, HttpStatus.OK); + } + catch (Exception exception) { + LOGGER.error("failed to retrieve category parameter list from DB.", exception); + return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); + } + } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/RoleGeneratorController.java b/vid-app-common/src/main/java/org/onap/vid/controller/RoleGeneratorController.java new file mode 100644 index 000000000..3e15153ac --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/controller/RoleGeneratorController.java @@ -0,0 +1,31 @@ +package org.onap.vid.controller; + +import fj.test.Bool; +import org.json.JSONObject; +import org.openecomp.portalsdk.core.controller.UnRestrictedBaseController; +import org.onap.vid.services.RoleGeneratorService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.servlet.http.HttpServletRequest; + +@RestController +public class RoleGeneratorController extends UnRestrictedBaseController { + @Autowired + private RoleGeneratorService roleGeneratorService; + public static final String GENERATE_ROLE_SCRIPT = "generateRoleScript"; + @RequestMapping(value = GENERATE_ROLE_SCRIPT +"/{firstRun}", method = RequestMethod.GET ) + public ResponseEntity<String> generateRoleScript (@PathVariable("firstRun") boolean firstRun) throws Exception { + ResponseEntity<String> response = null; + String query = roleGeneratorService.generateRoleScript(firstRun); + response = new ResponseEntity<String>(query, HttpStatus.OK); + return response; + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/VidController.java b/vid-app-common/src/main/java/org/onap/vid/controller/VidController.java index f21036eb3..c93d8027f 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/VidController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/VidController.java @@ -1,119 +1,149 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller;
-
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException;
-import org.openecomp.vid.asdc.AsdcCatalogException;
-import org.openecomp.vid.asdc.beans.SecureServices;
-import org.openecomp.vid.exceptions.VidServiceUnavailableException;
-import org.openecomp.vid.model.ServiceModel;
-import org.openecomp.vid.roles.Role;
-import org.openecomp.vid.roles.RoleProvider;
-import org.openecomp.vid.roles.RoleValidator;
-import org.openecomp.vid.services.VidService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.servlet.ModelAndView;
-
-import javax.servlet.http.HttpServletRequest;
-import java.util.List;
-import java.util.Map;
-
-//import org.openecomp.vid.model.Service;
-
-@RestController
-public class VidController extends RestrictedBaseController {
-
- private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(VidController.class);
-
- private final VidService service;
-
- @Autowired
- public VidController(VidService vidService) throws SdcToscaParserException{
-
- service = vidService;
- }
-//
- /**
- * Gets the services.
- *
- * @param request the request
- * @return the services
- * @throws VidServiceUnavailableException the vid service unavailable exception
- */
- @RequestMapping(value={"/rest/models/services"}, method = RequestMethod.GET)
- public SecureServices getServices(HttpServletRequest request) throws VidServiceUnavailableException {
- try {
- LOG.info("Start API for browse ASDC was called");
- SecureServices secureServices = new SecureServices();
- RoleProvider roleProvider = new RoleProvider();
- Map<String, String[]> requestParams = request.getParameterMap();
- List<Role> roles = new RoleProvider().getUserRoles(request);
- secureServices.setServices(service.getServices(requestParams));
- //Disable roles until AAF integration finishes
- //secureServices.setReadOnly(roleProvider.userPermissionIsReadOnly(roles));
- return secureServices;
- } catch (AsdcCatalogException e) {
- LOG.error("Failed to retrieve service definitions from SDC", e);
- throw new VidServiceUnavailableException("Failed to retrieve service definitions from SDC", e);
- } catch (Throwable t) {
- LOG.debug("Unexpected error while retrieving service definitions from SDC: " + t.getMessage() + ":", t);
- t.printStackTrace();
- throw new VidServiceUnavailableException("Unexpected error while retrieving service definitions from SDC: " + t.getMessage(), t);
- }
- }
-
- /**
- * Gets the services.
- *
- * @param uuid the uuid
- * @return the services
- * @throws VidServiceUnavailableException the vid service unavailable exception
- */
- @RequestMapping(value={"/rest/models/services/{uuid}"}, method = RequestMethod.GET)
- public ServiceModel getServices(@PathVariable("uuid") String uuid, HttpServletRequest request) throws VidServiceUnavailableException {
- try {
-// RoleValidator roleValidator = new RoleValidator(new RoleProvider().getUserRoles(request));
- return service.getService(uuid);
- } catch (AsdcCatalogException e) {
- LOG.error("Failed to retrieve service definitions from SDC", e);
- throw new VidServiceUnavailableException("Failed to retrieve service definitions from SDC", e);
- }
- }
-
-
- /**
- * Gets the services view.
- *
- * @param request the request
- * @return the services view
- * @throws VidServiceUnavailableException the vid service unavailable exception
- */
- @RequestMapping(value={"/serviceModels"}, method=RequestMethod.GET)
- public ModelAndView getServicesView(HttpServletRequest request) throws VidServiceUnavailableException {
- return new ModelAndView("serviceModels");
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller; + +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException; +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.beans.SecureServices; +import org.onap.vid.exceptions.VidServiceUnavailableException; +import org.onap.vid.model.ServiceModel; +import org.onap.vid.roles.Role; +import org.onap.vid.roles.RoleProvider; +import org.onap.vid.services.AaiService; +import org.onap.vid.services.VidService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; +import java.util.List; + +//import org.onap.vid.model.Service; + +@RestController +public class VidController extends RestrictedBaseController { + + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(VidController.class); + + private final VidService service; + + @Autowired + public VidController(VidService vidService) throws SdcToscaParserException{ + + service = vidService; + } + + @Autowired + private AaiService aaiService; + + @Autowired + RoleProvider roleProvider; + +// /** +// * Gets the services. +// * +// * @param request the request +// * @return the services +// * @throws VidServiceUnavailableException the vid service unavailable exception +// */ +// @RequestMapping(value={"/rest/models/services"}, method = RequestMethod.GET) +// public SecureServices getServices(HttpServletRequest request) throws VidServiceUnavailableException { +// try { +// AaiService aaiService = new AaiServiceImpl(); +// LOG.info("Start API for browse ASDC was called"); +// SecureServices secureServices = new SecureServices(); +// Map<String, String[]> requestParams = request.getParameterMap(); +// List<Role> roles = roleProvider.getUserRoles(request); +// secureServices.setServices(aaiService.getServicesByDistributionStatus()); +// secureServices.setServices(service.getServices(requestParams)); +// secureServices.setReadOnly(roleProvider.userPermissionIsReadOnly(roles)); +// return secureServices; +// } catch (AsdcCatalogException e) { +// LOG.error("Failed to retrieve service definitions from SDC", e); +// throw new VidServiceUnavailableException("Failed to retrieve service definitions from SDC", e); +// } catch (Throwable t) { +// LOG.debug("Unexpected error while retrieving service definitions from SDC: " + t.getMessage() + ":", t); +// t.printStackTrace(); +// throw new VidServiceUnavailableException("Unexpected error while retrieving service definitions from SDC: " + t.getMessage(), t); +// } +// } + + /** + * Gets the services. + * + * @param request the request + * @return the services + * @throws VidServiceUnavailableException the vid service unavailable exception + */ + @RequestMapping(value={"/rest/models/services"}, method = RequestMethod.GET) + public SecureServices getServices(HttpServletRequest request) throws VidServiceUnavailableException { + try { + LOG.info("Start API for browse ASDC was called"); + SecureServices secureServices = new SecureServices(); + List<Role> roles = roleProvider.getUserRoles(request); + secureServices.setServices(aaiService.getServicesByDistributionStatus()); + secureServices.setReadOnly(roleProvider.userPermissionIsReadOnly(roles)); + return secureServices; + } + catch (Exception t) { + LOG.debug("Unexpected error while retrieving service definitions from A&AI: " + t.getMessage() + ":", t); + t.printStackTrace(); + throw new VidServiceUnavailableException("Unexpected error while retrieving service definitions from A&AI: " + t.getMessage(), t); + } + } + + + + /** + * Gets the services. + * + * @param uuid the uuid + * @return the services + * @throws VidServiceUnavailableException the vid service unavailable exception + */ + @RequestMapping(value={"/rest/models/services/{uuid}"}, method = RequestMethod.GET) + public ServiceModel getServices(@PathVariable("uuid") String uuid, HttpServletRequest request) throws VidServiceUnavailableException { + try { + return service.getService(uuid); + } catch (AsdcCatalogException e) { + LOG.error("Failed to retrieve service definitions from SDC", e); + throw new VidServiceUnavailableException("Failed to retrieve service definitions from SDC", e); + } + } + + + /** + * Gets the services view. + * + * @param request the request + * @return the services view + * @throws VidServiceUnavailableException the vid service unavailable exception + */ + @RequestMapping(value={"/serviceModels"}, method=RequestMethod.GET) + public ModelAndView getServicesView(HttpServletRequest request) throws VidServiceUnavailableException { + return new ModelAndView("serviceModels"); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/ViewLogController.java b/vid-app-common/src/main/java/org/onap/vid/controller/ViewLogController.java index 31e64983e..4a87df10d 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/ViewLogController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/ViewLogController.java @@ -1,84 +1,65 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.servlet.ModelAndView;
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-
-
-/**
- * The Class ViewLogController.
- */
-@RestController
-public class ViewLogController extends RestrictedBaseController{
-
- /** The view name. */
- String viewName;
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(ViewLogController.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /** The servlet context. */
- private @Autowired ServletContext servletContext;
-
- /**
- * Welcome.
- *
- * @param request the request
- * @return the model and view
- */
- @RequestMapping(value = {"/viewlog" }, method = RequestMethod.GET)
- public ModelAndView welcome(HttpServletRequest request) {
-
- return new ModelAndView(getViewName());
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#getViewName()
- */
- public String getViewName() {
- return viewName;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#setViewName(java.lang.String)
- */
- public void setViewName(String viewName) {
- this.viewName = viewName;
- }
-
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller; + +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.ServletContext; +import javax.servlet.http.HttpServletRequest; +import java.text.DateFormat; +import java.text.SimpleDateFormat; + + +/** + * The Class ViewLogController. + */ +@RestController +public class ViewLogController extends RestrictedBaseController{ + + /** The logger. */ + private static final EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(ViewLogController.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** The servlet context. */ + private @Autowired ServletContext servletContext; + + /** + * Welcome. + * + * @param request the request + * @return the model and view + */ + @RequestMapping(value = {"/viewlog" }, method = RequestMethod.GET) + public ModelAndView welcome(HttpServletRequest request) { + + return new ModelAndView(getViewName()); + } + + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/WebConfig.java b/vid-app-common/src/main/java/org/onap/vid/controller/WebConfig.java index 1e13d0eb6..2838e7f3c 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/WebConfig.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/WebConfig.java @@ -1,22 +1,22 @@ -package org.openecomp.vid.controller; +package org.onap.vid.controller; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.commons.io.IOUtils; import org.json.JSONObject; import org.json.JSONTokener; -import org.openecomp.vid.aai.AaiClient; -import org.openecomp.vid.aai.AaiClientInterface; -import org.openecomp.vid.asdc.AsdcClient; -import org.openecomp.vid.asdc.local.LocalAsdcClient; -import org.openecomp.vid.asdc.memory.InMemoryAsdcClient; -import org.openecomp.vid.asdc.parser.ToscaParserImpl2; -import org.openecomp.vid.asdc.rest.RestfulAsdcClient; -import org.openecomp.vid.properties.AsdcClientConfiguration; -import org.openecomp.vid.properties.AsdcClientConfiguration.AsdcClientType; -import org.openecomp.vid.services.AaiService; -import org.openecomp.vid.services.AaiServiceImpl; -import org.openecomp.vid.services.VidService; -import org.openecomp.vid.services.VidServiceImpl; +import org.onap.vid.aai.AaiClient; +import org.onap.vid.aai.AaiClientInterface; +import org.onap.vid.asdc.AsdcClient; +import org.onap.vid.asdc.local.LocalAsdcClient; +import org.onap.vid.asdc.memory.InMemoryAsdcClient; +import org.onap.vid.asdc.parser.ToscaParserImpl2; +import org.onap.vid.asdc.rest.RestfulAsdcClient; +import org.onap.vid.properties.AsdcClientConfiguration; +import org.onap.vid.properties.AsdcClientConfiguration.AsdcClientType; +import org.onap.vid.services.AaiService; +import org.onap.vid.services.AaiServiceImpl; +import org.onap.vid.services.VidService; +import org.onap.vid.services.VidServiceImpl; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -46,6 +46,7 @@ public class WebConfig { + @Bean public VidService vidService(AsdcClient asdcClient) { return new VidServiceImpl(asdcClient); diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/filter/PromiseEcompRequestIdFilter.java b/vid-app-common/src/main/java/org/onap/vid/controller/filter/PromiseEcompRequestIdFilter.java new file mode 100644 index 000000000..a83fa281b --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/controller/filter/PromiseEcompRequestIdFilter.java @@ -0,0 +1,94 @@ +package org.onap.vid.controller.filter; + + +import com.google.common.collect.ImmutableList; +import org.apache.commons.lang3.StringUtils; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.springframework.web.filter.GenericFilterBean; + +import javax.servlet.FilterChain; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.annotation.WebFilter; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletRequestWrapper; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.Collections; +import java.util.Enumeration; +import java.util.UUID; + +import static org.openecomp.portalsdk.core.util.SystemProperties.ECOMP_REQUEST_ID; + +@WebFilter(urlPatterns = "/*") +public class PromiseEcompRequestIdFilter extends GenericFilterBean { + + private final static EELFLoggerDelegate LOGGER = EELFLoggerDelegate.getLogger(PromiseEcompRequestIdFilter.class); + private final static String REQUEST_ID_RESPONSE_HEADER = ECOMP_REQUEST_ID + "-echo"; + + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException { + + if (request instanceof HttpServletRequest) { + request = wrapIfNeeded(request); + + if (response instanceof HttpServletResponse) { + final String actualRequestId = ((HttpServletRequest) request).getHeader(ECOMP_REQUEST_ID); + ((HttpServletResponse) response).addHeader(REQUEST_ID_RESPONSE_HEADER, actualRequestId); + } + } + + chain.doFilter(request, response); + } + + public static ServletRequest wrapIfNeeded(ServletRequest request) { + final HttpServletRequest httpRequest = (HttpServletRequest) request; + final String originalRequestId = httpRequest.getHeader(ECOMP_REQUEST_ID); + + if (StringUtils.isEmpty(originalRequestId)) { + request = new PromiseEcompRequestIdRequestWrapper(httpRequest); + } + + return request; + } + + private static class PromiseEcompRequestIdRequestWrapper extends HttpServletRequestWrapper { + + private final UUID requestId; + + PromiseEcompRequestIdRequestWrapper(HttpServletRequest request) { + super(request); + requestId = UUID.randomUUID(); + } + + @Override + public String getHeader(String name) { + return isRequestIdHeaderName(name) ? + requestId.toString() : super.getHeader(name); + } + + @Override + public Enumeration<String> getHeaders(String name) { + if (isRequestIdHeaderName(name)) { + return Collections.enumeration(Collections.singleton(requestId.toString())); + } else { + return super.getHeaders(name); + } + } + + @Override + public Enumeration<String> getHeaderNames() { + return Collections.enumeration(ImmutableList.<String>builder() + .add(ECOMP_REQUEST_ID) + .addAll(Collections.list(super.getHeaderNames())) + .build()); + } + + private boolean isRequestIdHeaderName(String name) { + return ECOMP_REQUEST_ID.equalsIgnoreCase(name); + } + } +}
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/filter/TempFilterForCORS.java b/vid-app-common/src/main/java/org/onap/vid/controller/filter/TempFilterForCORS.java new file mode 100644 index 000000000..02dcde095 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/controller/filter/TempFilterForCORS.java @@ -0,0 +1,48 @@ +package org.onap.vid.controller.filter; + +import org.apache.commons.lang3.StringUtils; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.springframework.web.filter.GenericFilterBean; + +import javax.servlet.FilterChain; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.annotation.WebFilter; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebFilter(urlPatterns = "/*") +public class TempFilterForCORS extends GenericFilterBean { + + private static final String ENV_MODE = "env.mode"; + private Boolean devMode = null; + + //dev mode is initialized here since @WebFilter doesn't support @Autowired + //So we are sure that SystemProperties bean was initialed only after the first call to doFilter + private boolean isDevMode() { + if (devMode!=null) { + return devMode; + } + else { + if (!SystemProperties.containsProperty(ENV_MODE)) { + devMode = Boolean.FALSE; + return devMode; + } + + String envMode = SystemProperties.getProperty(ENV_MODE); + devMode = StringUtils.equalsIgnoreCase(envMode, "dev") ; + } + return devMode; + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + + if (isDevMode() && response instanceof HttpServletResponse) { + ((HttpServletResponse) response).addHeader("Access-Control-Allow-Origin", "http://localhost:3000"); + ((HttpServletResponse) response).addHeader("Access-Control-Allow-Credentials", "true"); + } + chain.doFilter(request, response); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/test/TestAaiController.java b/vid-app-common/src/main/java/org/onap/vid/controller/test/TestAaiController.java index 79017410c..29e7a4d7d 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/test/TestAaiController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/test/TestAaiController.java @@ -1,93 +1,87 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller.test;
-
-import java.io.IOException;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.codehaus.jackson.map.ObjectMapper;
-import org.openecomp.vid.model.ExceptionResponse;
-import org.springframework.web.bind.annotation.ExceptionHandler;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-
-/**
- * The Class TestAaiController.
- */
-@RestController
-@RequestMapping("testaai")
-public class TestAaiController extends RestrictedBaseController {
-
- /**
- * Gets the subscription service type list.
- *
- * @param globalCustomerId the global customer id
- * @param request the request
- * @return the subscription service type list
- * @throws Exception the exception
- */
- @RequestMapping(value = "/getSubscriptionServiceTypeList/{globalCustomerId}", method = RequestMethod.GET)
- public String getSubscriptionServiceTypeList(@PathVariable("globalCustomerId") String globalCustomerId, HttpServletRequest request)
- throws Exception {
-
- System.err.println("GET SUBSCRIPTION SERVICE TYPE LIST: globalCustomerId: " + globalCustomerId);
-
- return "[\"vMOG\", \"sevice type 2\", \"sevice type 3\", \"sevice type 4\"]";
- }
-
- /**
- * Exception.
- *
- * @param e the e
- * @param response the response
- * @throws IOException Signals that an I/O exception has occurred.
- */
- @ExceptionHandler(Exception.class)
- private void exception(Exception e, HttpServletResponse response) throws IOException {
-
- /*
- * This logging step should preferably be replaced with an appropriate
- * logging method consistent whatever logging mechanism the rest of the
- * application code uses.
- */
-
- e.printStackTrace(System.err);
-
- response.setContentType("application/json; charset=UTF-8");
- response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
-
- ExceptionResponse exceptionResponse = new ExceptionResponse();
- exceptionResponse.setException(e.getClass().toString().replaceFirst("^.*\\.", ""));
- exceptionResponse.setMessage(e.getMessage());
-
- response.getWriter().write(new ObjectMapper().writeValueAsString(exceptionResponse));
-
- response.flushBuffer();
-
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller.test; + +import org.codehaus.jackson.map.ObjectMapper; +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.onap.vid.model.ExceptionResponse; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +/** + * The Class TestAaiController. + */ +@RestController +@RequestMapping("testaai") +public class TestAaiController extends RestrictedBaseController { + + /** + * Gets the subscription service type list. + * + * @param globalCustomerId the global customer id + * @param request the request + * @return the subscription service type list + * @throws Exception the exception + */ + @RequestMapping(value = "/getSubscriptionServiceTypeList/{globalCustomerId}", method = RequestMethod.GET) + public String getSubscriptionServiceTypeList(@PathVariable("globalCustomerId") String globalCustomerId, HttpServletRequest request) + throws Exception { + + System.err.println("GET SUBSCRIPTION SERVICE TYPE LIST: globalCustomerId: " + globalCustomerId); + + return "[\"vMOG\", \"sevice type 2\", \"sevice type 3\", \"sevice type 4\"]"; + } + + /** + * Exception. + * + * @param e the e + * @param response the response + * @throws IOException Signals that an I/O exception has occurred. + */ + @ExceptionHandler(Exception.class) + private void exception(Exception e, HttpServletResponse response) throws IOException { + + /* + * This logging step should preferably be replaced with an appropriate + * logging method consistent whatever logging mechanism the rest of the + * application code uses. + */ + + e.printStackTrace(System.err); + + response.setContentType("application/json; charset=UTF-8"); + response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); + + ExceptionResponse exceptionResponse = new ExceptionResponse(); + exceptionResponse.setException(e.getClass().toString().replaceFirst("^.*\\.", "")); + exceptionResponse.setMessage(e.getMessage()); + + response.getWriter().write(new ObjectMapper().writeValueAsString(exceptionResponse)); + + response.flushBuffer(); + + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/test/TestAsdcController.java b/vid-app-common/src/main/java/org/onap/vid/controller/test/TestAsdcController.java index 84a56b3b2..2b289b91a 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/test/TestAsdcController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/test/TestAsdcController.java @@ -1,112 +1,106 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller.test;
-
-import java.io.IOException;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.codehaus.jackson.map.ObjectMapper;
-import org.openecomp.vid.model.ExceptionResponse;
-import org.springframework.web.bind.annotation.ExceptionHandler;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-
-/**
- * The Class TestAsdcController.
- */
-@RestController
-@RequestMapping("testasdc")
-public class TestAsdcController extends RestrictedBaseController {
-
- /**
- * Gets the model.
- *
- * @param modelId the model id
- * @param request the request
- * @return the model
- * @throws Exception the exception
- */
- @RequestMapping(value = "/getModel/{modelId}", method = RequestMethod.GET)
- public String getModel(@PathVariable("modelId") String modelId, HttpServletRequest request) throws Exception {
-
- System.err.println("SDC: GET MODEL: modelId: " + modelId);
-
- // @formatter:off
- return
- "{" +
- "\"uuid\": \"5be686dc-fdca-4d54-8548-5d0ed23e962b\"," +
- "\"invariantUUID\": \"e5962da9-fe4f-433a-bc99-b43e0d88a9a1\"," +
- "\"name\": \"DE220127\"," +
- "\"version\": \"0.1\"," +
- "\"inputs\": {" +
- "\"defaultGateway\": {" +
- "\"type\": \"String\"," +
- "\"default\": \"192.168.1.1\"," +
- "\"description\": \"Router default gateway - use any valid IPv4 address\"" +
- "}," +
- "\"subnetMask\": {" +
- "\"type\": \"String\"," +
- "\"default\": \"255.255.255.0\"," +
- "\"description\": \"Router subnet mask - example (255.255.255.0)\"" +
- "}" +
- "}" +
- "}";
- // @formatter:on
- }
-
- /**
- * Exception.
- *
- * @param e the e
- * @param response the response
- * @throws IOException Signals that an I/O exception has occurred.
- */
- @ExceptionHandler(Exception.class)
- private void exception(Exception e, HttpServletResponse response) throws IOException {
-
- /*
- * This logging step should preferably be replaced with an appropriate
- * logging method consistent whatever logging mechanism the rest of the
- * application code uses.
- */
-
- e.printStackTrace(System.err);
-
- response.setContentType("application/json; charset=UTF-8");
- response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
-
- ExceptionResponse exceptionResponse = new ExceptionResponse();
- exceptionResponse.setException(e.getClass().toString().replaceFirst("^.*\\.", ""));
- exceptionResponse.setMessage(e.getMessage());
-
- response.getWriter().write(new ObjectMapper().writeValueAsString(exceptionResponse));
-
- response.flushBuffer();
-
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller.test; + +import org.codehaus.jackson.map.ObjectMapper; +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.onap.vid.model.ExceptionResponse; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +/** + * The Class TestAsdcController. + */ +@RestController +@RequestMapping("testasdc") +public class TestAsdcController extends RestrictedBaseController { + + /** + * Gets the model. + * + * @param modelId the model id + * @param request the request + * @return the model + * @throws Exception the exception + */ + @RequestMapping(value = "/getModel/{modelId}", method = RequestMethod.GET) + public String getModel(@PathVariable("modelId") String modelId, HttpServletRequest request) throws Exception { + + System.err.println("SDC: GET MODEL: modelId: " + modelId); + + // @formatter:off + return + "{" + + "\"uuid\": \"5be686dc-fdca-4d54-8548-5d0ed23e962b\"," + + "\"invariantUUID\": \"e5962da9-fe4f-433a-bc99-b43e0d88a9a1\"," + + "\"name\": \"DE220127\"," + + "\"version\": \"0.1\"," + + "\"inputs\": {" + + "\"defaultGateway\": {" + + "\"type\": \"String\"," + + "\"default\": \"192.168.1.1\"," + + "\"description\": \"Router default gateway - use any valid IPv4 address\"" + + "}," + + "\"subnetMask\": {" + + "\"type\": \"String\"," + + "\"default\": \"255.255.255.0\"," + + "\"description\": \"Router subnet mask - example (255.255.255.0)\"" + + "}" + + "}" + + "}"; + // @formatter:on + } + + /** + * Exception. + * + * @param e the e + * @param response the response + * @throws IOException Signals that an I/O exception has occurred. + */ + @ExceptionHandler(Exception.class) + private void exception(Exception e, HttpServletResponse response) throws IOException { + + /* + * This logging step should preferably be replaced with an appropriate + * logging method consistent whatever logging mechanism the rest of the + * application code uses. + */ + + e.printStackTrace(System.err); + + response.setContentType("application/json; charset=UTF-8"); + response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); + + ExceptionResponse exceptionResponse = new ExceptionResponse(); + exceptionResponse.setException(e.getClass().toString().replaceFirst("^.*\\.", "")); + exceptionResponse.setMessage(e.getMessage()); + + response.getWriter().write(new ObjectMapper().writeValueAsString(exceptionResponse)); + + response.flushBuffer(); + + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/test/TestMsoController.java b/vid-app-common/src/main/java/org/onap/vid/controller/test/TestMsoController.java index 02c29f678..9d6a3de9c 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/test/TestMsoController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/test/TestMsoController.java @@ -1,729 +1,723 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller.test;
-
-import java.io.IOException;
-import java.util.stream.Collectors;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.codehaus.jackson.map.ObjectMapper;
-import org.openecomp.vid.model.ExceptionResponse;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.ExceptionHandler;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-
-/*
- * The "TestMsoController" class is primarily designed to help test "msoCommitController.js"
- *
- * This class expects and receives JSON data in the same format as expected
- * in the "real" application version of this code. However, string versions of JSON are
- * maintained internally here instead of marshalled / unmarshalled JSON objects.
- * The primary reasons for this were to encapsulate all the test code in this single file and
- * minimize the time required to support initial test cases.
- *
- * The non-test equivalent of this controller could alternatively incorporate POJO objects
- * instead of strings. However, the same data format sent to / received from the browser
- * JavaScript code would still be expected.
- *
- * Two specific mechanisms used in this test class may be useful to the application version:
- *
- * 1) The use of "{variable}" elements in @RequestMappings along with the corresponding
- * @PathVariable declarations.
- *
- * 2) The use of @ExceptionHandler for general purpose exception handler.
- * (See @ExceptionHandler comments)
- *
- * This class is intended to be used in either:
- *
- * A) Eclipse environments
- * OR
- * B) Linux environments with ONLY a single user running tests.
- * The "quick and dirty" error simulation approach used here makes use of static states for some
- * scenarios. Thus multiple users simultaneously testing in Linux environments
- * may have contention issues.
- */
-
-/**
- * The Class TestMsoController.
- */
-@RestController
-@RequestMapping("testmso")
-public class TestMsoController extends RestrictedBaseController {
-
- /*
- * Artificial delay (in milliseconds) added before responding to create /
- * delete requests
- */
-
- /** The Constant TEST_DELAY_SHORT_MSEC. */
- private final static int TEST_DELAY_SHORT_MSEC = 1000;
-
- /*
- * Long delay to simulate non-responsive server test
- */
-
- /** The Constant TEST_DELAY_LONG_MSEC. */
- private final static int TEST_DELAY_LONG_MSEC = 15000;
-
- /*
- * Default number of polls expected before transaction complete.
- */
-
- /** The Constant MAXIMUM_POLLS_DEFAULT. */
- private final static int MAXIMUM_POLLS_DEFAULT = 4;
-
- /*
- * Number of polls to simulate "maximum polls exceeded" test.
- */
-
- /** The Constant MAXIMUM_POLLS_LARGE. */
- private final static int MAXIMUM_POLLS_LARGE = 10;
-
- /*
- * Simulated error types. The GUI front end is expected to set these values
- * in the "modelName" field of the "mso_create_svc_instance" request.
- */
-
- /** The Constant ERROR_POLICY_EXCEPTION. */
- private final static String ERROR_POLICY_EXCEPTION = "ERROR_POLICY_EXCEPTION";
-
- /** The Constant ERROR_SERVICE_EXCEPTION. */
- private final static String ERROR_SERVICE_EXCEPTION = "ERROR_SERVICE_EXCEPTION";
-
- /** The Constant ERROR_POLL_FAILURE. */
- private final static String ERROR_POLL_FAILURE = "ERROR_POLL_FAILURE";
-
- /** The Constant ERROR_INVALID_FIELD_INITIAL. */
- private final static String ERROR_INVALID_FIELD_INITIAL = "ERROR_INVALID_FIELD_INITIAL";
-
- /** The Constant ERROR_INVALID_FIELD_POLL. */
- private final static String ERROR_INVALID_FIELD_POLL = "ERROR_INVALID_FIELD_POLL";
-
- /** The Constant ERROR_GENERAL_SERVER_EXCEPTION. */
- private final static String ERROR_GENERAL_SERVER_EXCEPTION = "ERROR_GENERAL_SERVER_EXCEPTION";
-
- /** The Constant ERROR_MAX_POLLS. */
- private final static String ERROR_MAX_POLLS = "ERROR_MAX_POLLS";
-
- /** The Constant ERROR_SERVER_TIMEOUT_INITIAL. */
- private final static String ERROR_SERVER_TIMEOUT_INITIAL = "ERROR_SERVER_TIMEOUT_INITIAL";
-
- /** The Constant ERROR_SERVER_TIMEOUT_POLL. */
- private final static String ERROR_SERVER_TIMEOUT_POLL = "ERROR_SERVER_TIMEOUT_POLL";
-
- /** The simulated error. */
- private String simulatedError = "";
-
- /** The maximum polls. */
- private int maximumPolls = 0;
-
- /** The attempt count. */
- private int attemptCount = 0;
-
- /**
- * Creates the svc instance.
- *
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_create_svc_instance", method = RequestMethod.POST)
- public ResponseEntity<String> createSvcInstance(HttpServletRequest request) throws Exception {
- readAndLogRequest("CREATE SERVICE INSTANCE", request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
-
- /*
- * This block of code simulates various errors and would NOT be expected
- * in a non-test method
- */
- System.err.println("simulatedError: " + simulatedError);
-
- if (simulatedError.equals(ERROR_POLICY_EXCEPTION)) {
- return new ResponseEntity<String>(policyExceptionResponse, HttpStatus.OK);
- }
- if (simulatedError.equals(ERROR_SERVICE_EXCEPTION)) {
- return new ResponseEntity<String>(serviceExceptionResponse, HttpStatus.OK);
- }
- if (simulatedError.equals(ERROR_INVALID_FIELD_INITIAL)) {
- /*
- * Force invalid response field name. Return
- * "XXXXXrequestReferences" instead of "requestReferences"
- */
- return new ResponseEntity<String>(acceptResponse.replace("requestReferences", "XXXXXrequestReferences"),
- HttpStatus.OK);
- }
-
- if (simulatedError.equals(ERROR_GENERAL_SERVER_EXCEPTION)) {
- throw new IOException("an example of an IO exception");
- }
-
- if (simulatedError.equals(ERROR_SERVER_TIMEOUT_INITIAL)) {
- Thread.sleep(TEST_DELAY_LONG_MSEC);
- }
-
- if (simulatedError.equals(ERROR_MAX_POLLS)) {
- maximumPolls = MAXIMUM_POLLS_LARGE;
- }
-
- /*
- * End of block of simulated error code.
- */
-
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Delete svc instance.
- *
- * @param serviceInstanceId the service instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_delete_svc_instance/{serviceInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteSvcInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- HttpServletRequest request) throws Exception {
- readAndLogRequest("DELETE SERVICE INSTANCE: serviceInstanceId: " + serviceInstanceId, request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Creates the vnf instance.
- *
- * @param serviceInstanceId the service instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_create_vnf_instance/{serviceInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> createVnfInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- HttpServletRequest request) throws Exception {
- readAndLogRequest("CREATE VNF INSTANCE: serviceInstanceId: " + serviceInstanceId, request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Delete vnf instance.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_delete_vnf_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteVnfInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- @PathVariable("vnfInstanceId") String vnfInstanceId, HttpServletRequest request) throws Exception {
- readAndLogRequest(
- "DELETE VNF INSTANCE: serviceInstanceId: " + serviceInstanceId + " vnfInstanceId: " + vnfInstanceId,
- request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Creates the vf module instance.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- // /serviceInstances/v2/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/ff305d54-75b4-ff1b-adb2-eb6b9e5460ff/vfModules
- @RequestMapping(value = "/mso_create_vfmodule_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> createVfModuleInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- @PathVariable("vnfInstanceId") String vnfInstanceId, HttpServletRequest request) throws Exception {
- readAndLogRequest("CREATE VF MODULE INSTANCE: serviceInstanceId: " + serviceInstanceId + " vnfInstanceId: "
- + vnfInstanceId, request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Delete vf module instance.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param vfModuleInstanceId the vf module instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- // /serviceInstances/v2/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/ff305d54-75b4-ff1b-adb2-eb6b9e5460ff/vfModules/ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff
- @RequestMapping(value = "/mso_delete_vfmodule_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfModuleInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteVfModuleInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- @PathVariable("vnfInstanceId") String vnfInstanceId,
- @PathVariable("vfModuleInstanceId") String vfModuleInstanceId, HttpServletRequest request)
- throws Exception {
- readAndLogRequest("DELETE VF MODULE INSTANCE: serviceInstanceId: " + serviceInstanceId + " vnfInstanceId: "
- + vnfInstanceId + " vfModuleInstanceId: " + vfModuleInstanceId, request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- // POST
- /**
- * Creates the volume group instance.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- // /serviceInstances/v2/ff305d54-75b4-431b-adb2-eb6b9e5ff000/volumeGroups
- @RequestMapping(value = "/mso_create_volumegroup_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> createVolumeGroupInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- @PathVariable("vnfInstanceId") String vnfInstanceId, HttpServletRequest request) throws Exception {
- readAndLogRequest("CREATE VOLUME GROUP INSTANCE: seviceInstanceId: " + serviceInstanceId + " vnfInstanceId: "
- + vnfInstanceId, request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Delete volume group instance.
- *
- * @param serviceInstanceId the service instance id
- * @param vnfInstanceId the vnf instance id
- * @param volumeGroupInstanceId the volume group instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- // /serviceInstances/v2/ff305d54-75b4-431b-adb2-eb6b9e5ff000/volumeGroups/ff305d54-75b4-ff1b-cdb2-eb6b9e5460ff
- @RequestMapping(value = "/mso_delete_volumegroup_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}/volumeGroups/{volumeGroupInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteVolumeGroupInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- @PathVariable("vnfInstanceId") String vnfInstanceId,
- @PathVariable("volumeGroupInstanceId") String volumeGroupInstanceId, HttpServletRequest request)
- throws Exception {
- readAndLogRequest("DELETE NW INSTANCE: serviceInstanceId: " + serviceInstanceId + " vnfInstanceId: "
- + vnfInstanceId + " volumeGroupInstanceId: " + volumeGroupInstanceId, request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Creates the nw instance.
- *
- * @param serviceInstanceId the service instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_create_nw_instance/{serviceInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> createNwInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- HttpServletRequest request) throws Exception {
- readAndLogRequest("CREATE NW INSTANCE: serviceInstanceId: " + serviceInstanceId, request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Delete nw instance.
- *
- * @param serviceInstanceId the service instance id
- * @param networkInstanceId the network instance id
- * @param request the request
- * @return the response entity
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_delete_nw_instance/{serviceInstanceId}/networks/{networkInstanceId}", method = RequestMethod.POST)
- public ResponseEntity<String> deleteNwInstance(@PathVariable("serviceInstanceId") String serviceInstanceId,
- @PathVariable("networkInstanceId") String networkInstanceId, HttpServletRequest request) throws Exception {
- readAndLogRequest("DELETE NW INSTANCE: serviceInstanceId: " + serviceInstanceId + " networkInstanceId: "
- + networkInstanceId, request);
- Thread.sleep(TEST_DELAY_SHORT_MSEC);
- maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior
- attemptCount = 0;
- return new ResponseEntity<String>(acceptResponse, HttpStatus.OK);
- }
-
- /**
- * Gets the orchestration request.
- *
- * @param requestId the request id
- * @param request the request
- * @return the orchestration request
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_get_orch_req/{requestId}", method = RequestMethod.GET)
- public ResponseEntity<String> getOrchestrationRequest(@PathVariable("requestId") String requestId,
- HttpServletRequest request) throws Exception {
-
- System.err.println("GET ORCHESTRATION REQUEST: requestId: " + requestId);
-
- /*
- * This block of code simulates various errors and would NOT be expected
- * in a non-test method
- */
-
- if (simulatedError.equals(ERROR_INVALID_FIELD_POLL)) {
- /*
- * Force invalid response field name. Return "XXXXXrequestStatus"
- * instead of "requestStatus"
- */
- return new ResponseEntity<String>(inProgressResponse.replace("requestStatus", "XXXXXrequestStatus"),
- HttpStatus.OK);
- }
-
- if (simulatedError.equals(ERROR_POLL_FAILURE)) {
- /*
- * Force status field with "Failure"
- */
- return new ResponseEntity<String>(inProgressResponse.replace("InProgress", "Failure"), HttpStatus.OK);
- }
-
- if (simulatedError.equals(ERROR_SERVER_TIMEOUT_POLL)) {
- Thread.sleep(TEST_DELAY_LONG_MSEC);
- }
-
- /*
- * End of block of simulated error code.
- */
-
- /*
- * This logic simulates how MSO might behave ... i.e. return different
- * results depending on the value of 'maximumPolls'.
- *
- */
- int percentProgress = (++attemptCount * 100) / maximumPolls;
-
- System.err.println("attempts: " + attemptCount + " max: " + maximumPolls + " percent: " + percentProgress);
-
- String response = inProgressResponse.replace("\"50\"", "\"" + Integer.toString(percentProgress) + "\"");
-
- if (attemptCount < maximumPolls) {
- if (attemptCount > 1) {
- response = response.replace("vLan setup", "setup step " + Integer.toString(attemptCount));
- }
- return new ResponseEntity<String>(response, HttpStatus.OK);
- } else {
- return new ResponseEntity<String>(
- response.replace("InProgress", "Complete").replace("vLan setup complete", ""), HttpStatus.OK);
- }
- }
-
- /**
- * Gets the orchestration requests.
- *
- * @param filterString the filter string
- * @param request the request
- * @return the orchestration requests
- * @throws Exception the exception
- */
- @RequestMapping(value = "/mso_get_orch_reqs/{filterString}", method = RequestMethod.GET)
- public ResponseEntity<String> getOrchestrationRequests(@PathVariable("filterString") String filterString,
- HttpServletRequest request) throws Exception {
-
- System.err.println("GET ORCHESTRATION REQUESTS: filterString: " + filterString);
-
- return new ResponseEntity<String>(getOrchestrationRequestsResponse, HttpStatus.OK);
-
- }
-
- /*
- * General purpose exception handler that could be used in application code.
- *
- * The method returns exceptions as error code 500. Both the exception type
- * and message are written as a JSON object.
- *
- * See the following references:
- *
- * 1) The ExceptionResponse POJO.
- *
- * 2) The "getHttpErrorMessage" function in "utilityService.js" - an example
- * of how the browser JavaScript code can interpret this response.
- */
-
- /**
- * Exception.
- *
- * @param e the e
- * @param response the response
- * @throws IOException Signals that an I/O exception has occurred.
- */
- @ExceptionHandler(Exception.class)
- private void exception(Exception e, HttpServletResponse response) throws IOException {
-
- /*
- * This logging step should preferably be replaced with an appropriate
- * logging method consistent whatever logging mechanism the rest of the
- * application code uses.
- */
-
- e.printStackTrace(System.err);
-
- response.setContentType("application/json; charset=UTF-8");
- response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
-
- ExceptionResponse exceptionResponse = new ExceptionResponse();
- exceptionResponse.setException(e.getClass().toString().replaceFirst("^.*\\.", ""));
- exceptionResponse.setMessage(e.getMessage());
-
- response.getWriter().write(new ObjectMapper().writeValueAsString(exceptionResponse));
-
- response.flushBuffer();
-
- }
-
- /*
- * 'readAndLogRequest' only intended to be used for testing.
- *
- * The method reads JSON from the input stream and thus prevents other
- * mechanisms from reading the input.
- */
-
- /**
- * Read and log request.
- *
- * @param label the label
- * @param request the request
- * @throws Exception the exception
- */
- private void readAndLogRequest(String label, HttpServletRequest request) throws Exception {
- String input = request.getReader().lines().collect(Collectors.joining(System.lineSeparator()));
-
- ObjectMapper mapper = new ObjectMapper();
- Object json = mapper.readValue(input, Object.class);
-
- System.err.println(label + "\n" + mapper.writerWithDefaultPrettyPrinter().writeValueAsString(json));
-
- /*
- * Only needed for error simulation ...
- */
- if (input.matches("^.*modelName.*$")) {
- simulatedError = input.replaceAll("^.*\"modelName\":\"", "").replaceAll("\".*$", "");
- }
- }
-
- /*
- * Various test responses:
- */
-
- // @formatter:off
-
- /** The accept response. */
- /*
- * Sample responses to initial create / delete transaction
- */
- private String acceptResponse =
- "{" +
- " \"status\": 202," +
- " \"entity\": {" +
- " \"requestReferences\": {" +
- " \"instanceId\": \"bc305d54-75b4-431b-adb2-eb6b9e546014\"," +
- " \"requestId\": \"rq1234d1-5a33-55df-13ab-12abad84e331\"" +
- " }" +
- " }" +
- "}";
-
- /** The policy exception response. */
- private String policyExceptionResponse =
- "{" +
- " \"status\": 400," +
- " \"entity\": { " +
- " \"requestError\": {" +
- " \"policyException\": {" +
- " \"messageId\": \"POL9003\"," +
- " \"text\": \"Message content size exceeds the allowable limit\"" +
- " }" +
- " }" +
- " }" +
- "}";
-
- /** The service exception response. */
- private String serviceExceptionResponse =
- "{" +
- " \"status\": 400," +
- " \"entity\": { " +
- " \"requestError\": {" +
- " \"serviceException\": {" +
- " \"messageId\": \"SVC2000\"," +
- " \"text\": \"Missing Parameter: %1. Error code is %2\"," +
- " \"variables\": [" +
- " \"severity\"," +
- " \"400\"" +
- " ]" +
- " }" +
- " }" +
- " }" +
- "}" +
- "";
-
- /** The in progress response. */
- /*
- * Sample response to subsequent getOrchestrationRequest
- */
- private String inProgressResponse =
- "{" +
- " \"status\": 200," +
- " \"entity\": {" +
- " \"request\": {" +
- " \"requestId\": \"rq1234d1-5a33-55df-13ab-12abad84e333\"," +
- " \"startTime\": \"Thu, 04 Jun 2009 02:51:59 GMT\"," +
- " \"instanceIds\": {" +
- " \"serviceInstanceId\": \"bc305d54-75b4-431b-adb2-eb6b9e546014\"" +
- " }," +
- " \"requestScope\": \"service\"," +
- " \"requestType\": \"createInstance\"," +
- " \"requestDetails\": {" +
- " \"modelInfo\": {" +
- " \"modelType\": \"service\"," +
- " \"modelId\": \"sn5256d1-5a33-55df-13ab-12abad84e764\"," +
- " \"modelNameVersionId\": \"ab6478e4-ea33-3346-ac12-ab121484a333\"," +
- " \"modelName\": \"WanBonding\"," +
- " \"modelVersion\": \"1\"" +
- " }," +
- " \"subscriberInfo\": {" +
- " \"globalSubscriberId\": \"C12345\"," +
- " \"subscriberName\": \"General Electric Division 12\"" +
- " }," +
- " \"requestParameters\": {" +
- " \"vpnId\": \"1a2b3c4d5e6f\"," +
- " \"productName\": \"Trinity\"," +
- " \"customerId\": \"icore9883749\"" +
- " }" +
- " }," +
- " \"requestStatus\": {" +
- " \"timestamp\": \"Thu, 04 Jun 2009 02:53:39 GMT\"," +
- " \"requestState\": \"InProgress\"," +
- " \"statusMessage\": \"vLan setup complete\"," +
- " \"percentProgress\": \"50\"" +
- " }" +
- " }" +
- " }" +
- "}";
-
- /*
- * Sample response to subsequent getOrchestrationRequests
- */
-
- /** The get orchestration requests response. */
- private String getOrchestrationRequestsResponse =
- "{" +
- " \"status\": 200," +
- " \"entity\": {" +
- " \"requestList\": [" +
- " {" +
- " \"request\": {" +
- " \"requestId\": \"rq1234d1-5a33-55df-13ab-12abad84e333\"," +
- " \"startTime\": \"Thu, 04 Jun 2009 02:51:59 GMT\"," +
- " \"finishTime\": \"Thu, 04 Jun 2009 02:55:59 GMT\"," +
- " \"instanceReferences\": {" +
- " \"serviceInstanceId\": \"bc305d54-75b4-431b-adb2-eb6b9e546014\"" +
- " }," +
- " \"requestScope\": \"service\"," +
- " \"requestType\": \"createInstance\"," +
- " \"requestDetails\": {" +
- " \"modelInfo\": {" +
- " \"modelType\": \"service\"," +
- " \"modelId\": \"sn5256d1-5a33-55df-13ab-12abad84e764\"," +
- " \"modelNameVersionId\": \"ab6478e4-ea33-3346-ac12-ab121484a333\"," +
- " \"modelName\": \"WanBonding\"," +
- " \"modelVersion\": \"1\"" +
- " }," +
- " \"subscriberInfo\": {" +
- " \"globalSubscriberId\": \"C12345\"," +
- " \"subscriberName\": \"General Electric Division 12\"" +
- " }," +
- " \"requestParameters\": {" +
- " \"vpnId\": \"1a2b3c4d5e6f\"," +
- " \"productName\": \"Trinity\"," +
- " \"customerId\": \"icore9883749\"" +
- " }" +
- " }," +
- " \"requestStatus\": {" +
- " \"timestamp\": \"Thu, 04 Jun 2009 02:54:49 GMT\"," +
- " \"requestState\": \"complete\"," +
- " \"statusMessage\": \"Resource Created\"," +
- " \"percentProgress\": \"100\"" +
- " }" +
- " }" +
- " }," +
- " {" +
- " \"request\": {" +
- " \"requestId\": \"rq1234d1-5a33-55df-13ab-12abad84e334\"," +
- " \"startTime\": \"Thu, 04 Jun 2009 03:52:59 GMT\"," +
- " \"instanceReferences\": {" +
- " \"serviceInstanceId\": \"bc305d54-75b4-431b-adb2-eb6b9e546014\"" +
- " }," +
- " \"requestScope\": \"service\"," +
- " \"requestType\": \"updateInstance\"," +
- " \"requestDetails\": {" +
- " \"modelInfo\": {" +
- " \"modelType\": \"service\"," +
- " \"modelId\": \"sn5256d1-5a33-55df-13ab-12abad84e764\"," +
- " \"modelNameVersionId\": \"ab6478e4-ea33-3346-ac12-ab121484a333\"," +
- " \"modelName\": \"WanBonding\"," +
- " \"modelVersion\": \"1\"" +
- " }," +
- " \"subscriberInfo\": {" +
- " \"globalSubscriberId\": \"C12345\"," +
- " \"subscriberName\": \"General Electric Division 12\"" +
- " }," +
- " \"requestParameters\": {" +
- " \"vpnId\": \"1a2b3c4d5e70\"," +
- " \"productName\": \"Trinity\"," +
- " \"customerId\": \"icore9883749\"" +
- " }" +
- " }," +
- " \"requestStatus\": {" +
- " \"timestamp\": \"Thu, 04 Jun 2009 03:53:39 GMT\"," +
- " \"requestState\": \"InProgress\"," +
- " \"statusMessage\": \"vLan setup complete\"," +
- " \"percentProgress\": \"50\"" +
- " }" +
- " }" +
- " }" +
- " ]" +
- " }" +
- "}";
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller.test; + +import org.codehaus.jackson.map.ObjectMapper; +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.onap.vid.model.ExceptionResponse; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.stream.Collectors; + +/* + * The "TestMsoController" class is primarily designed to help test "msoCommitController.js" + * + * This class expects and receives JSON data in the same format as expected + * in the "real" application version of this code. However, string versions of JSON are + * maintained internally here instead of marshalled / unmarshalled JSON objects. + * The primary reasons for this were to encapsulate all the test code in this single file and + * minimize the time required to support initial test cases. + * + * The non-test equivalent of this controller could alternatively incorporate POJO objects + * instead of strings. However, the same data format sent to / received from the browser + * JavaScript code would still be expected. + * + * Two specific mechanisms used in this test class may be useful to the application version: + * + * 1) The use of "{variable}" elements in @RequestMappings along with the corresponding + * @PathVariable declarations. + * + * 2) The use of @ExceptionHandler for general purpose exception handler. + * (See @ExceptionHandler comments) + * + * This class is intended to be used in either: + * + * A) Eclipse environments + * OR + * B) Linux environments with ONLY a single user running tests. + * The "quick and dirty" error simulation approach used here makes use of static states for some + * scenarios. Thus multiple users simultaneously testing in Linux environments + * may have contention issues. + */ + +/** + * The Class TestMsoController. + */ +@RestController +@RequestMapping("testmso") +public class TestMsoController extends RestrictedBaseController { + + /* + * Artificial delay (in milliseconds) added before responding to create / + * delete requests + */ + + /** The Constant TEST_DELAY_SHORT_MSEC. */ + private final static int TEST_DELAY_SHORT_MSEC = 1000; + + /* + * Long delay to simulate non-responsive server test + */ + + /** The Constant TEST_DELAY_LONG_MSEC. */ + private final static int TEST_DELAY_LONG_MSEC = 15000; + + /* + * Default number of polls expected before transaction complete. + */ + + /** The Constant MAXIMUM_POLLS_DEFAULT. */ + private final static int MAXIMUM_POLLS_DEFAULT = 4; + + /* + * Number of polls to simulate "maximum polls exceeded" test. + */ + + /** The Constant MAXIMUM_POLLS_LARGE. */ + private final static int MAXIMUM_POLLS_LARGE = 10; + + /* + * Simulated error types. The GUI front end is expected to set these values + * in the "modelName" field of the "mso_create_svc_instance" request. + */ + + /** The Constant ERROR_POLICY_EXCEPTION. */ + private final static String ERROR_POLICY_EXCEPTION = "ERROR_POLICY_EXCEPTION"; + + /** The Constant ERROR_SERVICE_EXCEPTION. */ + private final static String ERROR_SERVICE_EXCEPTION = "ERROR_SERVICE_EXCEPTION"; + + /** The Constant ERROR_POLL_FAILURE. */ + private final static String ERROR_POLL_FAILURE = "ERROR_POLL_FAILURE"; + + /** The Constant ERROR_INVALID_FIELD_INITIAL. */ + private final static String ERROR_INVALID_FIELD_INITIAL = "ERROR_INVALID_FIELD_INITIAL"; + + /** The Constant ERROR_INVALID_FIELD_POLL. */ + private final static String ERROR_INVALID_FIELD_POLL = "ERROR_INVALID_FIELD_POLL"; + + /** The Constant ERROR_GENERAL_SERVER_EXCEPTION. */ + private final static String ERROR_GENERAL_SERVER_EXCEPTION = "ERROR_GENERAL_SERVER_EXCEPTION"; + + /** The Constant ERROR_MAX_POLLS. */ + private final static String ERROR_MAX_POLLS = "ERROR_MAX_POLLS"; + + /** The Constant ERROR_SERVER_TIMEOUT_INITIAL. */ + private final static String ERROR_SERVER_TIMEOUT_INITIAL = "ERROR_SERVER_TIMEOUT_INITIAL"; + + /** The Constant ERROR_SERVER_TIMEOUT_POLL. */ + private final static String ERROR_SERVER_TIMEOUT_POLL = "ERROR_SERVER_TIMEOUT_POLL"; + + /** The simulated error. */ + private String simulatedError = ""; + + /** The maximum polls. */ + private int maximumPolls = 0; + + /** The attempt count. */ + private int attemptCount = 0; + + /** + * Creates the svc instance. + * + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_svc_instance", method = RequestMethod.POST) + public ResponseEntity<String> createSvcInstance(HttpServletRequest request) throws Exception { + readAndLogRequest("CREATE SERVICE INSTANCE", request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + + /* + * This block of code simulates various errors and would NOT be expected + * in a non-test method + */ + System.err.println("simulatedError: " + simulatedError); + + if (simulatedError.equals(ERROR_POLICY_EXCEPTION)) { + return new ResponseEntity<String>(policyExceptionResponse, HttpStatus.OK); + } + if (simulatedError.equals(ERROR_SERVICE_EXCEPTION)) { + return new ResponseEntity<String>(serviceExceptionResponse, HttpStatus.OK); + } + if (simulatedError.equals(ERROR_INVALID_FIELD_INITIAL)) { + /* + * Force invalid response field name. Return + * "XXXXXrequestReferences" instead of "requestReferences" + */ + return new ResponseEntity<String>(acceptResponse.replace("requestReferences", "XXXXXrequestReferences"), + HttpStatus.OK); + } + + if (simulatedError.equals(ERROR_GENERAL_SERVER_EXCEPTION)) { + throw new IOException("an example of an IO exception"); + } + + if (simulatedError.equals(ERROR_SERVER_TIMEOUT_INITIAL)) { + Thread.sleep(TEST_DELAY_LONG_MSEC); + } + + if (simulatedError.equals(ERROR_MAX_POLLS)) { + maximumPolls = MAXIMUM_POLLS_LARGE; + } + + /* + * End of block of simulated error code. + */ + + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Delete svc instance. + * + * @param serviceInstanceId the service instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_delete_svc_instance/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteSvcInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + HttpServletRequest request) throws Exception { + readAndLogRequest("DELETE SERVICE INSTANCE: serviceInstanceId: " + serviceInstanceId, request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Creates the vnf instance. + * + * @param serviceInstanceId the service instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_vnf_instance/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> createVnfInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + HttpServletRequest request) throws Exception { + readAndLogRequest("CREATE VNF INSTANCE: serviceInstanceId: " + serviceInstanceId, request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Delete vnf instance. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_delete_vnf_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteVnfInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("vnfInstanceId") String vnfInstanceId, HttpServletRequest request) throws Exception { + readAndLogRequest( + "DELETE VNF INSTANCE: serviceInstanceId: " + serviceInstanceId + " vnfInstanceId: " + vnfInstanceId, + request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Creates the vf module instance. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + // /serviceInstances/v2/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/ff305d54-75b4-ff1b-adb2-eb6b9e5460ff/vfModules + @RequestMapping(value = "/mso_create_vfmodule_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> createVfModuleInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("vnfInstanceId") String vnfInstanceId, HttpServletRequest request) throws Exception { + readAndLogRequest("CREATE VF MODULE INSTANCE: serviceInstanceId: " + serviceInstanceId + " vnfInstanceId: " + + vnfInstanceId, request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Delete vf module instance. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param vfModuleInstanceId the vf module instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + // /serviceInstances/v2/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/ff305d54-75b4-ff1b-adb2-eb6b9e5460ff/vfModules/ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff + @RequestMapping(value = "/mso_delete_vfmodule_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfModuleInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteVfModuleInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("vnfInstanceId") String vnfInstanceId, + @PathVariable("vfModuleInstanceId") String vfModuleInstanceId, HttpServletRequest request) + throws Exception { + readAndLogRequest("DELETE VF MODULE INSTANCE: serviceInstanceId: " + serviceInstanceId + " vnfInstanceId: " + + vnfInstanceId + " vfModuleInstanceId: " + vfModuleInstanceId, request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + // POST + /** + * Creates the volume group instance. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + // /serviceInstances/v2/ff305d54-75b4-431b-adb2-eb6b9e5ff000/volumeGroups + @RequestMapping(value = "/mso_create_volumegroup_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> createVolumeGroupInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("vnfInstanceId") String vnfInstanceId, HttpServletRequest request) throws Exception { + readAndLogRequest("CREATE VOLUME GROUP INSTANCE: seviceInstanceId: " + serviceInstanceId + " vnfInstanceId: " + + vnfInstanceId, request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Delete volume group instance. + * + * @param serviceInstanceId the service instance id + * @param vnfInstanceId the vnf instance id + * @param volumeGroupInstanceId the volume group instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + // /serviceInstances/v2/ff305d54-75b4-431b-adb2-eb6b9e5ff000/volumeGroups/ff305d54-75b4-ff1b-cdb2-eb6b9e5460ff + @RequestMapping(value = "/mso_delete_volumegroup_instance/{serviceInstanceId}/vnfs/{vnfInstanceId}/volumeGroups/{volumeGroupInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteVolumeGroupInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("vnfInstanceId") String vnfInstanceId, + @PathVariable("volumeGroupInstanceId") String volumeGroupInstanceId, HttpServletRequest request) + throws Exception { + readAndLogRequest("DELETE NW INSTANCE: serviceInstanceId: " + serviceInstanceId + " vnfInstanceId: " + + vnfInstanceId + " volumeGroupInstanceId: " + volumeGroupInstanceId, request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Creates the nw instance. + * + * @param serviceInstanceId the service instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_create_nw_instance/{serviceInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> createNwInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + HttpServletRequest request) throws Exception { + readAndLogRequest("CREATE NW INSTANCE: serviceInstanceId: " + serviceInstanceId, request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Delete nw instance. + * + * @param serviceInstanceId the service instance id + * @param networkInstanceId the network instance id + * @param request the request + * @return the response entity + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_delete_nw_instance/{serviceInstanceId}/networks/{networkInstanceId}", method = RequestMethod.POST) + public ResponseEntity<String> deleteNwInstance(@PathVariable("serviceInstanceId") String serviceInstanceId, + @PathVariable("networkInstanceId") String networkInstanceId, HttpServletRequest request) throws Exception { + readAndLogRequest("DELETE NW INSTANCE: serviceInstanceId: " + serviceInstanceId + " networkInstanceId: " + + networkInstanceId, request); + Thread.sleep(TEST_DELAY_SHORT_MSEC); + maximumPolls = MAXIMUM_POLLS_DEFAULT; // Simulates MSO polling behavior + attemptCount = 0; + return new ResponseEntity<String>(acceptResponse, HttpStatus.OK); + } + + /** + * Gets the orchestration request. + * + * @param requestId the request id + * @param request the request + * @return the orchestration request + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_get_orch_req/{requestId}", method = RequestMethod.GET) + public ResponseEntity<String> getOrchestrationRequest(@PathVariable("requestId") String requestId, + HttpServletRequest request) throws Exception { + + System.err.println("GET ORCHESTRATION REQUEST: requestId: " + requestId); + + /* + * This block of code simulates various errors and would NOT be expected + * in a non-test method + */ + + if (simulatedError.equals(ERROR_INVALID_FIELD_POLL)) { + /* + * Force invalid response field name. Return "XXXXXrequestStatus" + * instead of "requestStatus" + */ + return new ResponseEntity<String>(inProgressResponse.replace("requestStatus", "XXXXXrequestStatus"), + HttpStatus.OK); + } + + if (simulatedError.equals(ERROR_POLL_FAILURE)) { + /* + * Force status field with "Failure" + */ + return new ResponseEntity<String>(inProgressResponse.replace("InProgress", "Failure"), HttpStatus.OK); + } + + if (simulatedError.equals(ERROR_SERVER_TIMEOUT_POLL)) { + Thread.sleep(TEST_DELAY_LONG_MSEC); + } + + /* + * End of block of simulated error code. + */ + + /* + * This logic simulates how MSO might behave ... i.e. return different + * results depending on the value of 'maximumPolls'. + * + */ + int percentProgress = (++attemptCount * 100) / maximumPolls; + + System.err.println("attempts: " + attemptCount + " max: " + maximumPolls + " percent: " + percentProgress); + + String response = inProgressResponse.replace("\"50\"", "\"" + Integer.toString(percentProgress) + "\""); + + if (attemptCount < maximumPolls) { + if (attemptCount > 1) { + response = response.replace("vLan setup", "setup step " + Integer.toString(attemptCount)); + } + return new ResponseEntity<String>(response, HttpStatus.OK); + } else { + return new ResponseEntity<String>( + response.replace("InProgress", "Complete").replace("vLan setup complete", ""), HttpStatus.OK); + } + } + + /** + * Gets the orchestration requests. + * + * @param filterString the filter string + * @param request the request + * @return the orchestration requests + * @throws Exception the exception + */ + @RequestMapping(value = "/mso_get_orch_reqs/{filterString}", method = RequestMethod.GET) + public ResponseEntity<String> getOrchestrationRequests(@PathVariable("filterString") String filterString, + HttpServletRequest request) throws Exception { + + System.err.println("GET ORCHESTRATION REQUESTS: filterString: " + filterString); + + return new ResponseEntity<String>(getOrchestrationRequestsResponse, HttpStatus.OK); + + } + + /* + * General purpose exception handler that could be used in application code. + * + * The method returns exceptions as error code 500. Both the exception type + * and message are written as a JSON object. + * + * See the following references: + * + * 1) The ExceptionResponse POJO. + * + * 2) The "getHttpErrorMessage" function in "utilityService.js" - an example + * of how the browser JavaScript code can interpret this response. + */ + + /** + * Exception. + * + * @param e the e + * @param response the response + * @throws IOException Signals that an I/O exception has occurred. + */ + @ExceptionHandler(Exception.class) + private void exception(Exception e, HttpServletResponse response) throws IOException { + + /* + * This logging step should preferably be replaced with an appropriate + * logging method consistent whatever logging mechanism the rest of the + * application code uses. + */ + + e.printStackTrace(System.err); + + response.setContentType("application/json; charset=UTF-8"); + response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); + + ExceptionResponse exceptionResponse = new ExceptionResponse(); + exceptionResponse.setException(e.getClass().toString().replaceFirst("^.*\\.", "")); + exceptionResponse.setMessage(e.getMessage()); + + response.getWriter().write(new ObjectMapper().writeValueAsString(exceptionResponse)); + + response.flushBuffer(); + + } + + /* + * 'readAndLogRequest' only intended to be used for testing. + * + * The method reads JSON from the input stream and thus prevents other + * mechanisms from reading the input. + */ + + /** + * Read and log request. + * + * @param label the label + * @param request the request + * @throws Exception the exception + */ + private void readAndLogRequest(String label, HttpServletRequest request) throws Exception { + String input = request.getReader().lines().collect(Collectors.joining(System.lineSeparator())); + + ObjectMapper mapper = new ObjectMapper(); + Object json = mapper.readValue(input, Object.class); + + System.err.println(label + "\n" + mapper.writerWithDefaultPrettyPrinter().writeValueAsString(json)); + + /* + * Only needed for error simulation ... + */ + if (input.matches("^.*modelName.*$")) { + simulatedError = input.replaceAll("^.*\"modelName\":\"", "").replaceAll("\".*$", ""); + } + } + + /* + * Various test responses: + */ + + // @formatter:off + + /** The accept response. */ + /* + * Sample responses to initial create / delete transaction + */ + private String acceptResponse = + "{" + + " \"status\": 202," + + " \"entity\": {" + + " \"requestReferences\": {" + + " \"instanceId\": \"bc305d54-75b4-431b-adb2-eb6b9e546014\"," + + " \"requestId\": \"rq1234d1-5a33-55df-13ab-12abad84e331\"" + + " }" + + " }" + + "}"; + + /** The policy exception response. */ + private String policyExceptionResponse = + "{" + + " \"status\": 400," + + " \"entity\": { " + + " \"requestError\": {" + + " \"policyException\": {" + + " \"messageId\": \"POL9003\"," + + " \"text\": \"Message content size exceeds the allowable limit\"" + + " }" + + " }" + + " }" + + "}"; + + /** The service exception response. */ + private String serviceExceptionResponse = + "{" + + " \"status\": 400," + + " \"entity\": { " + + " \"requestError\": {" + + " \"serviceException\": {" + + " \"messageId\": \"SVC2000\"," + + " \"text\": \"Missing Parameter: %1. Error code is %2\"," + + " \"variables\": [" + + " \"severity\"," + + " \"400\"" + + " ]" + + " }" + + " }" + + " }" + + "}" + + ""; + + /** The in progress response. */ + /* + * Sample response to subsequent getOrchestrationRequest + */ + private String inProgressResponse = + "{" + + " \"status\": 200," + + " \"entity\": {" + + " \"request\": {" + + " \"requestId\": \"rq1234d1-5a33-55df-13ab-12abad84e333\"," + + " \"startTime\": \"Thu, 04 Jun 2009 02:51:59 GMT\"," + + " \"instanceIds\": {" + + " \"serviceInstanceId\": \"bc305d54-75b4-431b-adb2-eb6b9e546014\"" + + " }," + + " \"requestScope\": \"service\"," + + " \"requestType\": \"createInstance\"," + + " \"requestDetails\": {" + + " \"modelInfo\": {" + + " \"modelType\": \"service\"," + + " \"modelId\": \"sn5256d1-5a33-55df-13ab-12abad84e764\"," + + " \"modelNameVersionId\": \"ab6478e4-ea33-3346-ac12-ab121484a333\"," + + " \"modelName\": \"WanBonding\"," + + " \"modelVersion\": \"1\"" + + " }," + + " \"subscriberInfo\": {" + + " \"globalSubscriberId\": \"C12345\"," + + " \"subscriberName\": \"General Electric Division 12\"" + + " }," + + " \"requestParameters\": {" + + " \"vpnId\": \"1a2b3c4d5e6f\"," + + " \"productName\": \"Trinity\"," + + " \"customerId\": \"icore9883749\"" + + " }" + + " }," + + " \"requestStatus\": {" + + " \"timestamp\": \"Thu, 04 Jun 2009 02:53:39 GMT\"," + + " \"requestState\": \"InProgress\"," + + " \"statusMessage\": \"vLan setup complete\"," + + " \"percentProgress\": \"50\"" + + " }" + + " }" + + " }" + + "}"; + + /* + * Sample response to subsequent getOrchestrationRequests + */ + + /** The get orchestration requests response. */ + private String getOrchestrationRequestsResponse = + "{" + + " \"status\": 200," + + " \"entity\": {" + + " \"requestList\": [" + + " {" + + " \"request\": {" + + " \"requestId\": \"rq1234d1-5a33-55df-13ab-12abad84e333\"," + + " \"startTime\": \"Thu, 04 Jun 2009 02:51:59 GMT\"," + + " \"finishTime\": \"Thu, 04 Jun 2009 02:55:59 GMT\"," + + " \"instanceReferences\": {" + + " \"serviceInstanceId\": \"bc305d54-75b4-431b-adb2-eb6b9e546014\"" + + " }," + + " \"requestScope\": \"service\"," + + " \"requestType\": \"createInstance\"," + + " \"requestDetails\": {" + + " \"modelInfo\": {" + + " \"modelType\": \"service\"," + + " \"modelId\": \"sn5256d1-5a33-55df-13ab-12abad84e764\"," + + " \"modelNameVersionId\": \"ab6478e4-ea33-3346-ac12-ab121484a333\"," + + " \"modelName\": \"WanBonding\"," + + " \"modelVersion\": \"1\"" + + " }," + + " \"subscriberInfo\": {" + + " \"globalSubscriberId\": \"C12345\"," + + " \"subscriberName\": \"General Electric Division 12\"" + + " }," + + " \"requestParameters\": {" + + " \"vpnId\": \"1a2b3c4d5e6f\"," + + " \"productName\": \"Trinity\"," + + " \"customerId\": \"icore9883749\"" + + " }" + + " }," + + " \"requestStatus\": {" + + " \"timestamp\": \"Thu, 04 Jun 2009 02:54:49 GMT\"," + + " \"requestState\": \"complete\"," + + " \"statusMessage\": \"Resource Created\"," + + " \"percentProgress\": \"100\"" + + " }" + + " }" + + " }," + + " {" + + " \"request\": {" + + " \"requestId\": \"rq1234d1-5a33-55df-13ab-12abad84e334\"," + + " \"startTime\": \"Thu, 04 Jun 2009 03:52:59 GMT\"," + + " \"instanceReferences\": {" + + " \"serviceInstanceId\": \"bc305d54-75b4-431b-adb2-eb6b9e546014\"" + + " }," + + " \"requestScope\": \"service\"," + + " \"requestType\": \"updateInstance\"," + + " \"requestDetails\": {" + + " \"modelInfo\": {" + + " \"modelType\": \"service\"," + + " \"modelId\": \"sn5256d1-5a33-55df-13ab-12abad84e764\"," + + " \"modelNameVersionId\": \"ab6478e4-ea33-3346-ac12-ab121484a333\"," + + " \"modelName\": \"WanBonding\"," + + " \"modelVersion\": \"1\"" + + " }," + + " \"subscriberInfo\": {" + + " \"globalSubscriberId\": \"C12345\"," + + " \"subscriberName\": \"General Electric Division 12\"" + + " }," + + " \"requestParameters\": {" + + " \"vpnId\": \"1a2b3c4d5e70\"," + + " \"productName\": \"Trinity\"," + + " \"customerId\": \"icore9883749\"" + + " }" + + " }," + + " \"requestStatus\": {" + + " \"timestamp\": \"Thu, 04 Jun 2009 03:53:39 GMT\"," + + " \"requestState\": \"InProgress\"," + + " \"statusMessage\": \"vLan setup complete\"," + + " \"percentProgress\": \"50\"" + + " }" + + " }" + + " }" + + " ]" + + " }" + + "}"; +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/test/TestPageController.java b/vid-app-common/src/main/java/org/onap/vid/controller/test/TestPageController.java index 92f86f0bd..48ccdf8d8 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/test/TestPageController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/test/TestPageController.java @@ -1,57 +1,55 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller.test;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.servlet.ModelAndView;
-
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-
-/**
- * The Class TestPageController.
- */
-@Controller
-public class TestPageController extends RestrictedBaseController {
-
- /**
- * Test mso page.
- *
- * @return the model and view
- */
- @RequestMapping(value = { "testMso.htm" }, method = RequestMethod.GET)
- public ModelAndView testMsoPage() {
- return new ModelAndView(getViewName());
- }
-
- /**
- * Test view edit page.
- *
- * @return the model and view
- */
- @RequestMapping(value = { "testViewEdit" }, method = RequestMethod.GET)
- public ModelAndView testViewEditPage() {
- return new ModelAndView(getViewName());
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.controller.test; + +import org.openecomp.portalsdk.core.controller.RestrictedBaseController; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.servlet.ModelAndView; + +/** + * The Class TestPageController. + */ +@Controller +public class TestPageController extends RestrictedBaseController { + + /** + * Test mso page. + * + * @return the model and view + */ + @RequestMapping(value = { "testMso.htm" }, method = RequestMethod.GET) + public ModelAndView testMsoPage() { + return new ModelAndView(getViewName()); + } + + /** + * Test view edit page. + * + * @return the model and view + */ + @RequestMapping(value = { "testViewEdit" }, method = RequestMethod.GET) + public ModelAndView testViewEditPage() { + return new ModelAndView(getViewName()); + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/dao/FnAppDoaImpl.java b/vid-app-common/src/main/java/org/onap/vid/dao/FnAppDoaImpl.java index 6d2810aa0..c27d17e1e 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/dao/FnAppDoaImpl.java +++ b/vid-app-common/src/main/java/org/onap/vid/dao/FnAppDoaImpl.java @@ -1,112 +1,112 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.dao;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URI;
-import java.net.URL;
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.Properties;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-
-
-public class FnAppDoaImpl {
-
- /** The logger. */
- static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(FnAppDoaImpl.class);
-
- public int getProfileCount(String driver, String URL, String username, String password) {
- Connection dbc = null;
- PreparedStatement pst = null;
- ResultSet rs = null;
- String q = null;
- int count = 0;
- try {
- dbc = getConnection(driver,URL,username,password);
- logger.debug(EELFLoggerDelegate.debugLogger, "getConnection:::"+ dbc);
- q = "select count(*) from fn_app";
- pst = dbc.prepareStatement(q);
- rs = pst.executeQuery();
-
- if (rs.next())
- count = rs.getInt(1);
- } catch(Exception ex) {
- logger.error(EELFLoggerDelegate.errorLogger, "Failed to perform health check", ex);
- } finally {
- cleanup(rs,pst,dbc);
- }
- logger.debug(EELFLoggerDelegate.debugLogger, "count:::"+ count);
- return count;
- }
-
- public static Connection getConnection(String driver2, String url, String username, String password) throws IOException, SQLException, ClassNotFoundException{
- java.sql.Connection con=null;
-
- if( url!=null && username!=null && password!=null ){
- con = DriverManager.getConnection(url, username, password);
- }
-
- System.out.println("Connection Successful");
- return con;
-
- }
-
- public static void cleanup(ResultSet rs, PreparedStatement st, Connection c) {
- if (rs != null) {
- try {
- rs.close();
- } catch (Exception e) {
- if (logger != null)
- logger.error("Error when trying to close result set", e);
- }
- }
- if (st != null) {
- try {
- st.close();
- } catch (Exception e) {
- if (logger != null)
- logger.error("Error when trying to close statement", e);
- }
- }
- if (c != null) {
- try {
- c.rollback();
- } catch (Exception e) {
- if (logger != null)
- logger.error("Error when trying to rollback connection", e);
- }
- try {
- c.close();
- } catch (Exception e) {
- if (logger != null)
- logger.error("Error when trying to close connection", e);
- }
- }
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.dao; + +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.URI; +import java.net.URL; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.Properties; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; + + +public class FnAppDoaImpl { + + /** The logger. */ + static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(FnAppDoaImpl.class); + + public int getProfileCount(String driver, String URL, String username, String password) { + Connection dbc = null; + PreparedStatement pst = null; + ResultSet rs = null; + String q = null; + int count = 0; + try { + dbc = getConnection(driver,URL,username,password); + logger.debug(EELFLoggerDelegate.debugLogger, "getConnection:::"+ dbc); + q = "select count(*) from fn_app"; + pst = dbc.prepareStatement(q); + rs = pst.executeQuery(); + + if (rs.next()) + count = rs.getInt(1); + } catch(Exception ex) { + logger.error(EELFLoggerDelegate.errorLogger, "Failed to perform health check", ex); + } finally { + cleanup(rs,pst,dbc); + } + logger.debug(EELFLoggerDelegate.debugLogger, "count:::"+ count); + return count; + } + + public static Connection getConnection(String driver2, String url, String username, String password) throws IOException, SQLException, ClassNotFoundException{ + java.sql.Connection con=null; + + if( url!=null && username!=null && password!=null ){ + con = DriverManager.getConnection(url, username, password); + } + + System.out.println("Connection Successful"); + return con; + + } + + public static void cleanup(ResultSet rs, PreparedStatement st, Connection c) { + if (rs != null) { + try { + rs.close(); + } catch (Exception e) { + if (logger != null) + logger.error("Error when trying to close result set", e); + } + } + if (st != null) { + try { + st.close(); + } catch (Exception e) { + if (logger != null) + logger.error("Error when trying to close statement", e); + } + } + if (c != null) { + try { + c.rollback(); + } catch (Exception e) { + if (logger != null) + logger.error("Error when trying to rollback connection", e); + } + try { + c.close(); + } catch (Exception e) { + if (logger != null) + logger.error("Error when trying to close connection", e); + } + } + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/dao/ProfileDao.java b/vid-app-common/src/main/java/org/onap/vid/dao/ProfileDao.java index 256a4bd8d..e6a8a4e54 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/dao/ProfileDao.java +++ b/vid-app-common/src/main/java/org/onap/vid/dao/ProfileDao.java @@ -1,45 +1,45 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.dao;
-
-import java.util.List;
-import org.openecomp.portalsdk.core.domain.Profile;
-
-/**
- * The Interface ProfileDao.
- */
-public interface ProfileDao {
-
- /**
- * Find all.
- *
- * @return the list
- */
- List<Profile> findAll();
-
- /**
- * Gets the profile.
- *
- * @param id the id
- * @return the profile
- */
- Profile getProfile(int id);
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.dao; + +import java.util.List; +import org.openecomp.portalsdk.core.domain.Profile; + +/** + * The Interface ProfileDao. + */ +public interface ProfileDao { + + /** + * Find all. + * + * @return the list + */ + List<Profile> findAll(); + + /** + * Gets the profile. + * + * @param id the id + * @return the profile + */ + Profile getProfile(int id); +} diff --git a/vid-app-common/src/main/java/org/onap/vid/exceptions/NotFoundException.java b/vid-app-common/src/main/java/org/onap/vid/exceptions/NotFoundException.java new file mode 100644 index 000000000..0616aa1f1 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/exceptions/NotFoundException.java @@ -0,0 +1,12 @@ +package org.onap.vid.exceptions; + +public class NotFoundException extends RuntimeException { + + public NotFoundException(String message) { + super(message); + } + + public NotFoundException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/exceptions/VidServiceUnavailableException.java b/vid-app-common/src/main/java/org/onap/vid/exceptions/VidServiceUnavailableException.java index fcd897f78..622b34c22 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/exceptions/VidServiceUnavailableException.java +++ b/vid-app-common/src/main/java/org/onap/vid/exceptions/VidServiceUnavailableException.java @@ -1,69 +1,69 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.exceptions;
-
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.ResponseStatus;
-
-/**
- * The Class VidServiceUnavailableException.
- */
-@ResponseStatus(value=HttpStatus.SERVICE_UNAVAILABLE)
-public class VidServiceUnavailableException extends Exception {
-
- /** The Constant serialVersionUID. */
- private static final long serialVersionUID = 1L;
-
- /**
- * Instantiates a new vid service unavailable exception.
- */
- public VidServiceUnavailableException() {
- super();
- }
-
- /**
- * Instantiates a new vid service unavailable exception.
- *
- * @param msg the msg
- */
- public VidServiceUnavailableException(String msg) {
- super(msg);
- }
-
- /**
- * Instantiates a new vid service unavailable exception.
- *
- * @param t the t
- */
- public VidServiceUnavailableException(Throwable t) {
- super(t);
- }
-
- /**
- * Instantiates a new vid service unavailable exception.
- *
- * @param msg the msg
- * @param t the t
- */
- public VidServiceUnavailableException(String msg, Throwable t) {
- super(msg, t);
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.exceptions; + +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.ResponseStatus; + +/** + * The Class VidServiceUnavailableException. + */ +@ResponseStatus(value=HttpStatus.SERVICE_UNAVAILABLE) +public class VidServiceUnavailableException extends Exception { + + /** The Constant serialVersionUID. */ + private static final long serialVersionUID = 1L; + + /** + * Instantiates a new vid service unavailable exception. + */ + public VidServiceUnavailableException() { + super(); + } + + /** + * Instantiates a new vid service unavailable exception. + * + * @param msg the msg + */ + public VidServiceUnavailableException(String msg) { + super(msg); + } + + /** + * Instantiates a new vid service unavailable exception. + * + * @param t the t + */ + public VidServiceUnavailableException(Throwable t) { + super(t); + } + + /** + * Instantiates a new vid service unavailable exception. + * + * @param msg the msg + * @param t the t + */ + public VidServiceUnavailableException(String msg, Throwable t) { + super(msg, t); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/factories/MsoRequestFactory.java b/vid-app-common/src/main/java/org/onap/vid/factories/MsoRequestFactory.java index 9cc9c5f66..22bfa47bc 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/factories/MsoRequestFactory.java +++ b/vid-app-common/src/main/java/org/onap/vid/factories/MsoRequestFactory.java @@ -1,6 +1,6 @@ -package org.openecomp.vid.factories; +package org.onap.vid.factories; -import org.openecomp.vid.mso.rest.RequestDetails; +import org.onap.vid.mso.rest.RequestDetails; /** * Created by pickjonathan on 19/06/2017. diff --git a/vid-app-common/src/main/java/org/onap/vid/logging/VidLoggerAspect.java b/vid-app-common/src/main/java/org/onap/vid/logging/VidLoggerAspect.java new file mode 100644 index 000000000..e4e0edb8c --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/logging/VidLoggerAspect.java @@ -0,0 +1,85 @@ +package org.onap.vid.logging; + +import org.apache.commons.lang3.StringUtils; +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; +import org.openecomp.portalsdk.core.logging.aspect.EELFLoggerAdvice; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.springframework.beans.factory.annotation.Autowired; + +import java.net.InetAddress; +import java.net.UnknownHostException; + +import static com.att.eelf.configuration.Configuration.MDC_SERVER_FQDN; + + +@Aspect +@org.springframework.context.annotation.Configuration +public class VidLoggerAspect { + + private String canonicalHostName; + @Autowired + EELFLoggerAdvice advice; + + public VidLoggerAspect() { + try { + final InetAddress localHost = InetAddress.getLocalHost(); + canonicalHostName = localHost.getCanonicalHostName(); + } catch (UnknownHostException e) { + // YOLO + canonicalHostName = null; + } + } + + @Pointcut("execution(public * org.onap.vid.controller.*Controller.*(..))") + public void vidControllers() {} + + @Around("vidControllers() && (" + + " @within(org.openecomp.portalsdk.core.logging.aspect.AuditLog)" + + " || @annotation(org.openecomp.portalsdk.core.logging.aspect.AuditLog)" + + " || @annotation(org.springframework.web.bind.annotation.RequestMapping)" + + ")") + public Object logAuditMethodClassAround(ProceedingJoinPoint joinPoint) throws Throwable { + return logAroundMethod(joinPoint, SystemProperties.SecurityEventTypeEnum.INCOMING_REST_MESSAGE); + } + + private Object logAroundMethod(ProceedingJoinPoint joinPoint, SystemProperties.SecurityEventTypeEnum securityEventType) throws Throwable { + //Before + Object[] passOnArgs = new Object[] {joinPoint.getSignature().getDeclaringType().getName(),joinPoint.getSignature().getName()}; + Object[] returnArgs = advice.before(securityEventType, joinPoint.getArgs(), passOnArgs); + + fixServerFqdnInMDC(); + + //Execute the actual method + Object result; + String restStatus = "COMPLETE"; + try { + result = joinPoint.proceed(); + } catch(Exception e) { + restStatus = "ERROR"; + throw e; + } finally { + fixStatusCodeInMDC(restStatus); + advice.after(securityEventType, restStatus, joinPoint.getArgs(), returnArgs, passOnArgs); + } + + return result; + } + + // Set the status code into MDC *before* the metrics log is written by advice.after() + private void fixStatusCodeInMDC(String restStatus) { + EELFLoggerDelegate.mdcPut(SystemProperties.STATUS_CODE, restStatus); + } + + // Override the non-canonical hostname set by EELFLoggerDelegate::setGlobalLoggingContext() + // that was invoked by advice.before() (and some other SDK cases) + private void fixServerFqdnInMDC() { + if (!StringUtils.isBlank(canonicalHostName)) { + EELFLoggerDelegate.mdcPut(MDC_SERVER_FQDN, canonicalHostName); + } + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/CategoryParameter.java b/vid-app-common/src/main/java/org/onap/vid/model/CategoryParameter.java new file mode 100644 index 000000000..e2939996f --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/CategoryParameter.java @@ -0,0 +1,120 @@ +package org.onap.vid.model; + +//import org.hibernate.annotations.Table; +import org.openecomp.portalsdk.core.domain.support.DomainVo; +import org.onap.vid.controller.MaintenanceController; + +//import javax.persistence.*; +import javax.persistence.*; +import java.io.Serializable; +import java.util.Date; +import java.util.HashSet; +import java.util.Set; + +@Entity +@Table(name = "vid_category_parameter", uniqueConstraints = @UniqueConstraint(columnNames = "name")) +public class CategoryParameter extends DomainVo { + + public enum Family { + PARAMETER_STANDARDIZATION, + TENANT_ISOLATION + } + + private String name; + private boolean idSupported; + + @Column(name = "FAMILY") + @Enumerated(EnumType.STRING) + private String family; + + public String getFamily() { + return family; + } + + public void setFamily(String family) { + this.family = family; + } + + private Set<CategoryParameterOption> options = new HashSet<>(0); + + @Override + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "CATEGORY_ID") + public Long getId() { + return super.getId(); + } + + @Override + @Column(name = "CREATED_DATE") + public Date getCreated() { + return super.getCreated(); + } + + @Override + @Column(name = "MODIFIED_DATE") + public Date getModified() { + return super.getModified(); + } + + @Override + @Transient + public Long getCreatedId() { + return super.getCreatedId(); + } + + @Override + @Transient + public Long getModifiedId() { + return super.getModifiedId(); + } + + @Column(name = "NAME", unique = true, nullable = false, length=50) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + @Transient + public Serializable getAuditUserId() { + return super.getAuditUserId(); + } + + @Override + @Transient + public Long getRowNum() { + return super.getRowNum(); + } + + @Override + @Transient + public Set getAuditTrail() { + return super.getAuditTrail(); + } + + @OneToMany(fetch = FetchType.EAGER, mappedBy = "categoryParameter") + public Set<CategoryParameterOption> getOptions() { + return options; + } + + public void setOptions(Set<CategoryParameterOption> options) { + this.options = options; + } + + public boolean addOption(CategoryParameterOption option) { + return options.add(option); + } + + @Column(name = "ID_SUPPORTED") + public boolean isIdSupported() { + return idSupported; + } + + public void setIdSupported(boolean idSupported) { + this.idSupported = idSupported; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/CategoryParameterOption.java b/vid-app-common/src/main/java/org/onap/vid/model/CategoryParameterOption.java new file mode 100644 index 000000000..39efb2c57 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/CategoryParameterOption.java @@ -0,0 +1,139 @@ +package org.onap.vid.model; + +import org.openecomp.portalsdk.core.domain.support.DomainVo; + +import javax.persistence.*; +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +@Entity +@Table(name = "vid_category_parameter_option") +public class CategoryParameterOption extends DomainVo { + + private Long id; + private String appId; + private String name; + + private CategoryParameter categoryParameter; + + public CategoryParameterOption() { + } + + public CategoryParameterOption(String appId, String name, CategoryParameter categoryParameter) { + setAppId(appId); + setName(name); + setCategoryParameter(categoryParameter); + } + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "CATEGORY_OPT_DB_ID") + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + @Column(name = "CATEGORY_OPT_APP_ID") + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + @Column(name = "NAME") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @ManyToOne + @JoinColumn(name="CATEGORY_ID", nullable=false) + public CategoryParameter getCategoryParameter() { + return categoryParameter; + } + + public void setCategoryParameter(CategoryParameter categoryParameter) { + this.categoryParameter = categoryParameter; + } + + @Override + @Column(name = "CREATED_DATE") + public Date getCreated() { + return super.getCreated(); + } + + @Override + @Column(name = "MODIFIED_DATE") + public Date getModified() { + return super.getModified(); + } + + @Override + @Transient + public Long getCreatedId() { + return super.getCreatedId(); + } + + @Override + @Transient + public Long getModifiedId() { + return super.getModifiedId(); + } + + @Override + @Transient + public Serializable getAuditUserId() { + return super.getAuditUserId(); + } + + @Override + @Transient + public Long getRowNum() { + return super.getRowNum(); + } + + @Override + @Transient + public Set getAuditTrail() { + return super.getAuditTrail(); + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + CategoryParameterOption that = (CategoryParameterOption) o; + + if (getAppId() != null ? !getAppId().equals(that.getAppId()) : that.getAppId() != null) return false; + if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) return false; + return getCategoryParameter() != null ? getCategoryParameter().equals(that.getCategoryParameter()) : that.getCategoryParameter() == null; + } + + @Override + public int hashCode() { + int result = getAppId() != null ? getAppId().hashCode() : 0; + result = 31 * result + (getName() != null ? getName().hashCode() : 0); + result = 31 * result + (getCategoryParameter() != null ? getCategoryParameter().hashCode() : 0); + return result; + } + + @Override + public String toString() { + return "CategoryParameterOption{" + + "id=" + id + + ", key='" + appId + '\'' + + ", value='" + name + '\'' + + ", categoryParameterId=" + categoryParameter.getId() + + '}'; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/CommandProperty.java b/vid-app-common/src/main/java/org/onap/vid/model/CommandProperty.java index 740f9d781..4f5ee173f 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/CommandProperty.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/CommandProperty.java @@ -1,93 +1,93 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-import java.util.Map;
-
-/**
- * The Class Command Property.
- */
-public class CommandProperty {
-
- /** The display name for this input */
- private String displayName;
-
- /** The command, "get_input" */
- private String command;
-
- /** The input name we refer to back under the inputs section */
- private String inputName;
-
- /**
- * Gets the display name.
- *
- * @return the displayName
- */
- public String getDisplayName() {
- return displayName;
- }
- /**
- * Gets the command.
- *
- * @return the command
- */
- public String getCommand() {
- return command;
- }
- /**
- * Gets the inputName.
- *
- * @return the inputName
- */
- public String getInputName() {
- return inputName;
- }
- /**
- * Sets the display name value.
- *
- * @param i the new get_input value
- */
- public void setDisplayName(String i) {
- this.displayName = i;
- }
- /**
- * Sets the command value.
- *
- * @param i the new command value
- */
- public void setCommand(String i) {
- this.command = i;
- }
-
- /**
- * Sets the input name value.
- *
- * @param i the new input name value
- */
- public void setInputName(String i) {
- this.inputName=i;
- }
-
- public String toString () {
- String result = "displayName=" + displayName + " command=" + command + " inputName" + inputName;
- return result;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import java.util.Map; + +/** + * The Class Command Property. + */ +public class CommandProperty { + + /** The display name for this input */ + private String displayName; + + /** The command, "get_input" */ + private String command; + + /** The input name we refer to back under the inputs section */ + private String inputName; + + /** + * Gets the display name. + * + * @return the displayName + */ + public String getDisplayName() { + return displayName; + } + /** + * Gets the command. + * + * @return the command + */ + public String getCommand() { + return command; + } + /** + * Gets the inputName. + * + * @return the inputName + */ + public String getInputName() { + return inputName; + } + /** + * Sets the display name value. + * + * @param i the new get_input value + */ + public void setDisplayName(String i) { + this.displayName = i; + } + /** + * Sets the command value. + * + * @param i the new command value + */ + public void setCommand(String i) { + this.command = i; + } + + /** + * Sets the input name value. + * + * @param i the new input name value + */ + public void setInputName(String i) { + this.inputName=i; + } + + public String toString () { + String result = "displayName=" + displayName + " command=" + command + " inputName" + inputName; + return result; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/ExceptionResponse.java b/vid-app-common/src/main/java/org/onap/vid/model/ExceptionResponse.java index 686971d76..444a4ba11 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/ExceptionResponse.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/ExceptionResponse.java @@ -1,70 +1,91 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-/**
- * The Class ExceptionResponse.
- */
-public class ExceptionResponse {
-
- /** The exception. */
- private String exception;
-
- /** The message. */
- private String message;
-
- /**
- * Gets the exception.
- *
- * @return the exception
- */
- public String getException() {
- return exception;
- }
-
- /**
- * Sets the exception.
- *
- * @param exception the new exception
- */
- public void setException(String exception) {
- this.exception = exception;
- }
-
- /**
- * Gets the message.
- *
- * @return the message
- */
- public String getMessage() {
- return message;
- }
-
- /**
- * Sets the message.
- *
- * @param message the new message
- */
- public void setMessage(String message) {
- this.message = message;
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import org.slf4j.MDC; + +import static com.att.eelf.configuration.Configuration.MDC_KEY_REQUEST_ID; + +/** + * The Class ExceptionResponse. + */ +public class ExceptionResponse { + + public ExceptionResponse() { + } + + /** The exception. */ + private String exception; + + /** The message. */ + private String message; + + public ExceptionResponse(String exception, String message) { + this.exception = exception; + this.message = message; + } + + public ExceptionResponse(Exception exception) { + setException(exception); + } + + /** + * Gets the exception. + * + * @return the exception + */ + public String getException() { + return exception; + } + + /** + * Sets the exception. + * + * @param exception the new exception + */ + public void setException(String exception) { + this.exception = exception; + } + + public void setException(Exception exception) { + setException(exception.getClass().toString().replaceFirst("^.*[\\.$]", "")); + setMessage(exception.getMessage() + " (Request id: " + MDC.get(MDC_KEY_REQUEST_ID) + ")"); + } + + /** + * Gets the message. + * + * @return the message + */ + public String getMessage() { + return message; + } + + /** + * Sets the message. + * + * @param message the new message + */ + public void setMessage(String message) { + this.message = message; + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/ExceptionTranslator.java b/vid-app-common/src/main/java/org/onap/vid/model/ExceptionTranslator.java new file mode 100644 index 000000000..c600243a8 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/ExceptionTranslator.java @@ -0,0 +1,39 @@ +package org.onap.vid.model; + +import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.exception.ExceptionUtils; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException; + +import static org.onap.vid.utils.Logging.getMethodCallerName; + +@ControllerAdvice +public class ExceptionTranslator { + + /** The logger. */ + EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(ExceptionTranslator.class); + + @ExceptionHandler(MethodArgumentTypeMismatchException.class) + @ResponseBody + public ExceptionResponse handleMethodArgumentTypeMismatchException(MethodArgumentTypeMismatchException e) { + logger.error(EELFLoggerDelegate.errorLogger, "{}: {}", getMethodCallerName(), ExceptionUtils.getMessage(e), e); + Class<?> type = e.getRequiredType(); + String message; + if (type.isEnum()) { + message = "The parameter " + e.getName() + " must have a value among : " + StringUtils.join(type.getEnumConstants(), ", "); + } + else { + message = "The parameter " + e.getName() + " must be of type " + type.getTypeName(); + } + return new ExceptionResponse(new ArgumentTypeMismatchException(message)); + } + + public static class ArgumentTypeMismatchException extends RuntimeException { + public ArgumentTypeMismatchException(String message) { + super(message); + } + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/ListOfErrorsResponse.java b/vid-app-common/src/main/java/org/onap/vid/model/ListOfErrorsResponse.java new file mode 100644 index 000000000..9339d7cd8 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/ListOfErrorsResponse.java @@ -0,0 +1,24 @@ +package org.onap.vid.model; + +import java.util.ArrayList; +import java.util.List; + +public class ListOfErrorsResponse { + protected List<String> errors; + + public ListOfErrorsResponse() { + this.errors = new ArrayList<>(); + } + + public ListOfErrorsResponse(List<String> errors) { + this.errors = errors; + } + + public List<String> getErrors() { + return errors; + } + + public void setErrors(List<String> errors) { + this.errors = errors; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/ModelConstants.java b/vid-app-common/src/main/java/org/onap/vid/model/ModelConstants.java index af5f0db91..cb1a5f9a0 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/ModelConstants.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/ModelConstants.java @@ -1,42 +1,44 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-/**
- * The Class ModelConstants
- */
-public class ModelConstants {
-
- /** The Constant GET_INPUT_TAG. */
- public final static String GET_INPUT_TAG = "get_input";
-
- public static final String ASDC_MODEL_NAMESPACE = "asdc.model.namespace";
- public static final String ASDC_SVC_API_PATH = "sdc.svc.api.path";
- public static final String ASDC_RESOURCE_API_PATH = "sdc.resource.api.path";
-
- public static final String DEFAULT_ASDC_MODEL_NAMESPACE = "org.openecomp.";
- public static final String DEFAULT_ASDC_SVC_API_PATH = "sdc/v1/catalog/services";
- public static final String DEFAULT_ASDC_RESOURCE_API_PATH = "sdc/v1/catalog/resources";
-
- public final static String VF_MODULE = "groups.VfModule";
- public final static String VNF = "resource.vf";
- public final static String NETWORK = "resource.vl";
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; +/** + * The Class ModelConstants + */ +public class ModelConstants { + + /** The Constant GET_INPUT_TAG. */ + public final static String GET_INPUT_TAG = "get_input"; + + public static final String ASDC_MODEL_NAMESPACE = "asdc.model.namespace"; + public static final String ASDC_SVC_API_PATH = "sdc.svc.api.path"; + public static final String ASDC_RESOURCE_API_PATH = "sdc.resource.api.path"; + + public static final String DEFAULT_ASDC_MODEL_NAMESPACE = "org.openecomp."; + public static final String DEFAULT_ASDC_SVC_API_PATH = "sdc/v1/catalog/services"; + public static final String DEFAULT_ASDC_RESOURCE_API_PATH = "sdc/v1/catalog/resources"; + + public final static String VF_MODULE = "groups.VfModule"; + public final static String VNF = "resource.vf"; + public final static String NETWORK = "resource.vl"; + + public final static String ROLE_DELIMITER = "___"; + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/ModelUtil.java b/vid-app-common/src/main/java/org/onap/vid/model/ModelUtil.java index f0208185a..897c6e76c 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/ModelUtil.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/ModelUtil.java @@ -1,7 +1,7 @@ /** * */ -package org.openecomp.vid.model; +package org.onap.vid.model; /** * The Class ModelUtil. diff --git a/vid-app-common/src/main/java/org/onap/vid/model/MsoExceptionResponse.java b/vid-app-common/src/main/java/org/onap/vid/model/MsoExceptionResponse.java new file mode 100644 index 000000000..0fe49d604 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/MsoExceptionResponse.java @@ -0,0 +1,32 @@ +package org.onap.vid.model; + +public class MsoExceptionResponse { + + public static class ServiceException { + + public ServiceException(String messageId, String text) { + this.messageId = messageId; + this.text = text; + } + + public ServiceException() { + } + + public String messageId; + public String text; + } + + public ServiceException serviceException; + + public MsoExceptionResponse() { + } + + public MsoExceptionResponse(String messageId, String text) { + this.serviceException = new ServiceException(messageId, text); + } + + public MsoExceptionResponse(Exception exception) { + ExceptionResponse exceptionResponse = new ExceptionResponse(exception); + this.serviceException = new ServiceException(exceptionResponse.getException(), exceptionResponse.getMessage()); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/Network.java b/vid-app-common/src/main/java/org/onap/vid/model/Network.java index e763496fc..ef342e407 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/Network.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/Network.java @@ -1,62 +1,62 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-import org.openecomp.vid.asdc.beans.tosca.NodeTemplate;
-
-/**
- * The Class Network.
- */
-public class Network extends Node {
-
- /** The model customization name. */
- private String modelCustomizationName;
-
- /**
- * Instantiates a new network.
- */
- public Network() {
- super();
- }
- /**
- * Gets the model customization name.
- *
- * @return the model customization name
- */
- public String getModelCustomizationName() {
- return modelCustomizationName;
- }
- /**
- * Sets the model customization name.
- *
- * @param modelCustomizationName the new model customization name
- */
- public void setModelCustomizationName(String modelCustomizationName) {
- this.modelCustomizationName = modelCustomizationName;
- }
-
- public void extractNetwork(String modelCustomizationName, NodeTemplate nodeTemplate) {
-
- super.extractNode(nodeTemplate);
- setModelCustomizationName(modelCustomizationName);
-
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import org.onap.vid.asdc.beans.tosca.NodeTemplate; + +/** + * The Class Network. + */ +public class Network extends Node { + + /** The model customization name. */ + private String modelCustomizationName; + + /** + * Instantiates a new network. + */ + public Network() { + super(); + } + /** + * Gets the model customization name. + * + * @return the model customization name + */ + public String getModelCustomizationName() { + return modelCustomizationName; + } + /** + * Sets the model customization name. + * + * @param modelCustomizationName the new model customization name + */ + public void setModelCustomizationName(String modelCustomizationName) { + this.modelCustomizationName = modelCustomizationName; + } + + public void extractNetwork(String modelCustomizationName, NodeTemplate nodeTemplate) { + + super.extractNode(nodeTemplate); + setModelCustomizationName(modelCustomizationName); + + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/NewNetwork.java b/vid-app-common/src/main/java/org/onap/vid/model/NewNetwork.java index 48e3a55fd..9f1ffd356 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/NewNetwork.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/NewNetwork.java @@ -18,9 +18,9 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.model; +package org.onap.vid.model; -import org.openecomp.vid.asdc.beans.tosca.NodeTemplate; +import org.onap.vid.asdc.beans.tosca.NodeTemplate; /** * The Class Network. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/NewNode.java b/vid-app-common/src/main/java/org/onap/vid/model/NewNode.java index 681131fc9..89a808b19 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/NewNode.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/NewNode.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.text.DateFormat; import java.text.SimpleDateFormat; @@ -6,7 +6,7 @@ import java.util.HashMap; import java.util.Map; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.asdc.beans.tosca.Input; +import org.onap.vid.asdc.beans.tosca.Input; public class NewNode { diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/NewService.java b/vid-app-common/src/main/java/org/onap/vid/model/NewService.java index 1dcf0224e..1346c0d95 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/NewService.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/NewService.java @@ -18,12 +18,12 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.util.Map; import java.util.UUID; -import org.openecomp.vid.asdc.beans.tosca.Input; +import org.onap.vid.asdc.beans.tosca.Input; /** * The Class Service. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/NewServiceModel.java b/vid-app-common/src/main/java/org/onap/vid/model/NewServiceModel.java index 6fda979c1..e343b6de0 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/NewServiceModel.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/NewServiceModel.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.text.DateFormat; import java.text.SimpleDateFormat; @@ -26,13 +26,14 @@ import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; -import org.openecomp.vid.asdc.beans.tosca.Group; -import org.openecomp.vid.asdc.beans.tosca.ToscaModel; +import org.onap.vid.asdc.beans.tosca.Group; +import org.onap.vid.asdc.beans.tosca.ToscaModel; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.properties.VidProperties; +import org.onap.vid.properties.VidProperties; /** * The Class ServiceModel. */ + public class NewServiceModel { /** The Constant LOG. */ @@ -59,6 +60,13 @@ public class NewServiceModel { * for newer models */ private Map<String, VolumeGroup> volumeGroups; + + private Map<String, PortMirroringConfig> configurations; + + private Map<String, ServiceProxy> serviceProxies; + + private Map<String, Node> pnfs; + /** * Instantiates a new service model. */ @@ -133,11 +141,22 @@ public class NewServiceModel { public Map<String, VolumeGroup> getVolumeGroups() { return volumeGroups; } + + public Map<String, PortMirroringConfig> getConfigurations() { + return configurations; + } + + public Map<String, ServiceProxy> getServiceProxies() { + return serviceProxies; + } + /** * Sets the vf modules. * * @param vfModules the vf modules */ + + public void setVfModules(Map<String, VfModule> vfModules) { this.vfModules = vfModules; } @@ -149,6 +168,16 @@ public class NewServiceModel { public void setVolumeGroups(Map<String, VolumeGroup> volumeGroups) { this.volumeGroups = volumeGroups; } + + + public Map<String, Node> getPnfs() { + return pnfs; + } + + public void setPnfs(Map<String, Node> pnfs) { + this.pnfs = pnfs; + } + /** * Extract service. * @@ -156,7 +185,7 @@ public class NewServiceModel { * @param asdcServiceMetadata the asdc service metadata * @return the service */ - public static Service extractService(ToscaModel serviceToscaModel, org.openecomp.vid.asdc.beans.Service asdcServiceMetadata) { + public static Service extractService(ToscaModel serviceToscaModel, org.onap.vid.asdc.beans.Service asdcServiceMetadata) { final Service service = new Service(); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/NewVNF.java b/vid-app-common/src/main/java/org/onap/vid/model/NewVNF.java index e84f963c5..8e8c89f51 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/NewVNF.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/NewVNF.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.text.DateFormat; import java.text.SimpleDateFormat; @@ -7,7 +7,7 @@ import java.util.Map; import java.util.regex.Pattern; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.asdc.beans.tosca.NodeTemplate; +import org.onap.vid.asdc.beans.tosca.NodeTemplate; public class NewVNF extends NewNode { diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/Node.java b/vid-app-common/src/main/java/org/onap/vid/model/Node.java index 1352653e1..7623a3869 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/Node.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/Node.java @@ -1,301 +1,322 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Map.Entry;
-
-import org.openecomp.vid.asdc.beans.tosca.Input;
-import org.openecomp.vid.asdc.beans.tosca.NodeTemplate;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-/**
- * The Class Node.
- */
-public class Node {
- /** The Constant LOG. */
- private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(Node.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /** The uuid. */
- private String uuid;
-
- /** The invariant uuid. */
- private String invariantUuid;
-
- /** The description. */
- private String description;
-
- /** The name. */
- private String name;
-
- /** The version. */
- private String version;
-
- /** The model customization uuid. */
- private String customizationUuid;
-
- /** The inputs. */
- private Map<String, Input> inputs;
-
- /** The get_input or other constructs from node template properties. */
- private Map<String, CommandProperty> commands;
-
- /** The get_input or other constructs from node template properties. */
- private Map<String, String> properties;
- /**
- * Instantiates a new node.
- */
- public Node() {
- this.commands = new HashMap<String, CommandProperty>();
- this.properties = new HashMap<String, String>();
- }
-
- /**
- * Gets the uuid.
- *
- * @return the uuid
- */
- public String getUuid() {
- return uuid;
- }
-
- /**
- * Gets the invariant uuid.
- *
- * @return the invariant uuid
- */
- public String getInvariantUuid() {
- return invariantUuid;
- }
-
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Gets the name.
- *
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * Gets the version.
- *
- * @return the version
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * Gets the customization uuid.
- *
- * @return the model customization uuid
- */
- public String getCustomizationUuid() {
- return customizationUuid;
- }
- /**
- * Gets the inputs.
- *
- * @return the inputs
- */
- public Map<String, Input> getInputs() {
- return inputs;
- }
- /**
- * Gets the commands.
- *
- * @return the commands
- */
- public Map<String, CommandProperty> getCommands() {
- return commands;
- }
- /**
- * Gets the properties.
- *
- * @return the properties
- */
- public Map<String, String> getProperties() {
- return properties;
- }
- /**
- * Sets the uuid.
- *
- * @param uuid the new uuid
- */
- public void setUuid(String uuid) {
- this.uuid = uuid;
- }
-
- /**
- * Sets the invariant uuid.
- *
- * @param invariantUuid the new invariant uuid
- */
- public void setInvariantUuid(String invariantUuid) {
- this.invariantUuid = invariantUuid;
- }
-
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Sets the name.
- *
- * @param name the new name
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * Sets the version.
- *
- * @param version the new version
- */
- public void setVersion(String version) {
- this.version = version;
- }
- /**
- * Sets the customization uuid.
- *
- * @param u the new customization uuid
- */
- public void setCustomizationUuid(String u) {
- this.customizationUuid = u;
- }
-
- /**
- * Sets the inputs.
- *
- * @param inputs the inputs
- */
- public void setInputs(Map<String, Input> inputs) {
- this.inputs = inputs;
- }
- /**
- * Sets the commands.
- *
- * @param m the commands
- */
- public void setCommands( Map<String, CommandProperty>m ) {
- commands = m;
- }
- /**
- * Sets the properties.
- *
- * @param p the properties
- */
- public void setProperties( Map<String, String>p) {
- properties = p;
- }
- /**
- * Extract node.
- *
- * @param modelCustomizationName the model customization name
- * @param nodeTemplate the node template
- * @return the node
- */
- public void extractNode (NodeTemplate nodeTemplate) {
-
- String methodName = "extractNode";
-
- setUuid(nodeTemplate.getMetadata().getUUID());
- setInvariantUuid(nodeTemplate.getMetadata().getInvariantUUID());
- setDescription(nodeTemplate.getMetadata().getDescription());
- setName(nodeTemplate.getMetadata().getName());
- setVersion(nodeTemplate.getMetadata().getVersion());
- // add customizationUUID
- setCustomizationUuid(nodeTemplate.getMetadata().getCustomizationUUID());
-
- try {
- // nodeTemplate.getProperties() map of String->Object
- for (Entry<String, Object> e : nodeTemplate.getProperties().entrySet()) {
-
- String k = e.getKey();
-
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " node template property: " + k );
-
- if ( e.getValue() != null ) {
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " property: " +
- k + "=" + e.getValue());
- //LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " V class name: " +
- // e.getValue().getClass().getName());
- Class<?> c = e.getValue().getClass();
- if ( c.getName().equalsIgnoreCase(java.lang.String.class.getName())) {
- getProperties().put (k, (String)e.getValue());
- }
- else {
- Class<?>[] interfaces = e.getValue().getClass().getInterfaces();
-
- for(Class<?> ifc: interfaces ) {
- //LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " ifc name: " +
- // ifc.getName());
- if ( ifc.getName().equalsIgnoreCase(java.util.Map.class.getName()) ) {
- // only extract get_input for now
- @SuppressWarnings("unchecked")
- HashMap<String,String> v = (HashMap<String,String>)e.getValue();
- for (Entry<String, String> entry : v.entrySet()) {
- // only include get_input for now
- if ( ModelConstants.GET_INPUT_TAG.equalsIgnoreCase ( entry.getKey() ) ) {
- CommandProperty cp = new CommandProperty();
- cp.setCommand(entry.getKey());
- cp.setInputName(entry.getValue());
- cp.setDisplayName(k);
- getCommands().put(k,cp);
- }
- }
- }
- }
-
- }
- }
- }
- }
- catch ( Exception e ) {
- LOG.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + " Unable to parse node properties: e=" +
- e.toString());
- }
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; + +import org.onap.vid.asdc.beans.tosca.Input; +import org.onap.vid.asdc.beans.tosca.NodeTemplate; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +/** + * The Class Node. + */ +public class Node { + /** The Constant LOG. */ + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(Node.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** The uuid. */ + private String uuid; + + /** The invariant uuid. */ + private String invariantUuid; + + /** The description. */ + private String description; + + /** The name. */ + private String name; + + /** The version. */ + private String version; + + /** The model customization uuid. */ + private String customizationUuid; + + /** The inputs. */ + private Map<String, Input> inputs; + + /** The get_input or other constructs from node template properties. */ + private Map<String, CommandProperty> commands; + + /** The get_input or other constructs from node template properties. */ + private Map<String, String> properties; + + /** Type from Metadata */ + private String type; + /** + * Instantiates a new node. + */ + public Node() { + this.commands = new HashMap<String, CommandProperty>(); + this.properties = new HashMap<String, String>(); + } + + /** + * Gets the uuid. + * + * @return the uuid + */ + public String getUuid() { + return uuid; + } + + /** + * Gets the invariant uuid. + * + * @return the invariant uuid + */ + public String getInvariantUuid() { + return invariantUuid; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Gets the version. + * + * @return the version + */ + public String getVersion() { + return version; + } + + /** + * Gets the customization uuid. + * + * @return the model customization uuid + */ + public String getCustomizationUuid() { + return customizationUuid; + } + /** + * Gets the inputs. + * + * @return the inputs + */ + public Map<String, Input> getInputs() { + return inputs; + } + /** + * Gets the commands. + * + * @return the commands + */ + public Map<String, CommandProperty> getCommands() { + return commands; + } + /** + * Gets the properties. + * + * @return the properties + */ + public Map<String, String> getProperties() { + return properties; + } + /** + * Sets the uuid. + * + * @param uuid the new uuid + */ + public void setUuid(String uuid) { + this.uuid = uuid; + } + + /** + * Sets the invariant uuid. + * + * @param invariantUuid the new invariant uuid + */ + public void setInvariantUuid(String invariantUuid) { + this.invariantUuid = invariantUuid; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Sets the name. + * + * @param name the new name + */ + public void setName(String name) { + this.name = name; + } + + /** + * Sets the version. + * + * @param version the new version + */ + public void setVersion(String version) { + this.version = version; + } + /** + * Sets the customization uuid. + * + * @param u the new customization uuid + */ + public void setCustomizationUuid(String u) { + this.customizationUuid = u; + } + + /** + * Sets the inputs. + * + * @param inputs the inputs + */ + public void setInputs(Map<String, Input> inputs) { + this.inputs = inputs; + } + /** + * Sets the commands. + * + * @param m the commands + */ + public void setCommands( Map<String, CommandProperty>m ) { + commands = m; + } + /** + * Sets the properties. + * + * @param p the properties + */ + public void setProperties( Map<String, String>p) { + properties = p; + } + + + /** + * @return metadata type + */ + public String getType() { + return type; + } + + /** + * Set metadata type + * + * @param type e.g. VF/CP/SERVICE_PROXY + */ + public void setType(String type) { + this.type = type; + } + + /** + * Extract node. + * + * @param modelCustomizationName the model customization name + * @param nodeTemplate the node template + * @return the node + */ + public void extractNode (NodeTemplate nodeTemplate) { + + String methodName = "extractNode"; + + setUuid(nodeTemplate.getMetadata().getUUID()); + setInvariantUuid(nodeTemplate.getMetadata().getInvariantUUID()); + setDescription(nodeTemplate.getMetadata().getDescription()); + setName(nodeTemplate.getMetadata().getName()); + setVersion(nodeTemplate.getMetadata().getVersion()); + // add customizationUUID + setCustomizationUuid(nodeTemplate.getMetadata().getCustomizationUUID()); + + try { + // nodeTemplate.getProperties() map of String->Object + for (Entry<String, Object> e : nodeTemplate.getProperties().entrySet()) { + + String k = e.getKey(); + + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " node template property: " + k ); + + if ( e.getValue() != null ) { + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " property: " + + k + "=" + e.getValue()); + //LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " V class name: " + + // e.getValue().getClass().getName()); + Class<?> c = e.getValue().getClass(); + if ( c.getName().equalsIgnoreCase(java.lang.String.class.getName())) { + getProperties().put (k, (String)e.getValue()); + } + else { + Class<?>[] interfaces = e.getValue().getClass().getInterfaces(); + + for(Class<?> ifc: interfaces ) { + //LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " ifc name: " + + // ifc.getName()); + if ( ifc.getName().equalsIgnoreCase(java.util.Map.class.getName()) ) { + // only extract get_input for now + @SuppressWarnings("unchecked") + HashMap<String,String> v = (HashMap<String,String>)e.getValue(); + for (Entry<String, String> entry : v.entrySet()) { + // only include get_input for now + if ( ModelConstants.GET_INPUT_TAG.equalsIgnoreCase ( entry.getKey() ) ) { + CommandProperty cp = new CommandProperty(); + cp.setCommand(entry.getKey()); + cp.setInputName(entry.getValue()); + cp.setDisplayName(k); + getCommands().put(k,cp); + } + } + } + } + + } + } + } + } + catch ( Exception e ) { + LOG.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + " Unable to parse node properties: e=" + + e.toString()); + } + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/PortMirroringConfig.java b/vid-app-common/src/main/java/org/onap/vid/model/PortMirroringConfig.java new file mode 100644 index 000000000..dd3d5db72 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/PortMirroringConfig.java @@ -0,0 +1,77 @@ +package org.onap.vid.model; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.sdc.toscaparser.api.NodeTemplate; +import org.openecomp.sdc.toscaparser.api.RequirementAssignments; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.List; + +public class PortMirroringConfig extends Node { + + /** The Constant LOG. */ + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(PortMirroringConfig.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** The model customization name. */ + private String modelCustomizationName; + + /** The port miroring requirements for source/collector */ + @JsonIgnore + private RequirementAssignments requirementAssignments; + + private List<String> sourceNodes; + + private List<String> collectorNodes; + + private boolean configurationByPolicy; + + public PortMirroringConfig() { + super(); + this.configurationByPolicy = false; + } + + public String getModelCustomizationName() { + return modelCustomizationName; + } + + public void setModelCustomizationName(String modelCustomizationName) { + this.modelCustomizationName = modelCustomizationName; + } + + public RequirementAssignments getRequirementAssignments() { + return requirementAssignments; + } + + public void setRequirementAssignments(RequirementAssignments requirementAssignments) { + this.requirementAssignments = requirementAssignments; + } + + public List<String> getSourceNodes() { + return sourceNodes; + } + + public void setSourceNodes(List<String> sourceNodes) { + this.sourceNodes = sourceNodes; + } + + public List<String> getCollectorNodes() { + return collectorNodes; + } + + public void setCollectorNodes(List<String> collectorNodes) { + this.collectorNodes = collectorNodes; + } + + public void setConfigurationByPolicy(boolean configurationByPolicy) { + this.configurationByPolicy = configurationByPolicy; + } + + public boolean isConfigurationByPolicy() { + return configurationByPolicy; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/ProxyResponse.java b/vid-app-common/src/main/java/org/onap/vid/model/ProxyResponse.java new file mode 100644 index 000000000..1931fa39e --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/ProxyResponse.java @@ -0,0 +1,30 @@ +package org.onap.vid.model; + +import com.google.common.base.MoreObjects; + +/** + * Created by Oren on 7/10/17. + */ +public class ProxyResponse { + + protected String errorMessage; + + protected int httpCode; + + public String getErrorMessage() { + return errorMessage; + } + + + public int getHttpCode() { + return httpCode; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("httpCode", httpCode) + .add("errorMessage", errorMessage) + .toString(); + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/RequestReferencesContainer.java b/vid-app-common/src/main/java/org/onap/vid/model/RequestReferencesContainer.java new file mode 100644 index 000000000..9c12a52a6 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/RequestReferencesContainer.java @@ -0,0 +1,42 @@ +package org.onap.vid.model; + +import com.fasterxml.jackson.annotation.*; +import com.google.common.base.MoreObjects; +import org.onap.vid.domain.mso.RequestReferences; + +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public class RequestReferencesContainer { + private final RequestReferences requestReferences; + + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + public RequestReferencesContainer(@JsonProperty("requestReferences") RequestReferences requestReferences) { + this.requestReferences = requestReferences; + } + + public RequestReferences getRequestReferences() { + return requestReferences; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("requestReferences", requestReferences) + .add("additionalProperties", additionalProperties) + .toString(); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/Resource.java b/vid-app-common/src/main/java/org/onap/vid/model/Resource.java index 4dcc975b1..184f9ee6e 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/Resource.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/Resource.java @@ -1,28 +1,28 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-/**
- * The Class Resource.
- */
-public class Resource {
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +/** + * The Class Resource. + */ +public class Resource { + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/Result.java b/vid-app-common/src/main/java/org/onap/vid/model/Result.java index d8bf6eb64..c972bccaa 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/Result.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/Result.java @@ -1,58 +1,58 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-/**
- * The Class Result.
- */
-public class Result {
-
- /** The result. */
- private String result;
-
- /**
- * Instantiates a new result.
- *
- * @param result the result
- */
- public Result(String result) {
- this.result = result;
- }
-
- /**
- * Gets the result.
- *
- * @return the result
- */
- public String getResult() {
- return result;
- }
-
- /**
- * Sets the result.
- *
- * @param result the new result
- */
- public void setResult(String result) {
- this.result = result;
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +/** + * The Class Result. + */ +public class Result { + + /** The result. */ + private String result; + + /** + * Instantiates a new result. + * + * @param result the result + */ + public Result(String result) { + this.result = result; + } + + /** + * Gets the result. + * + * @return the result + */ + public String getResult() { + return result; + } + + /** + * Sets the result. + * + * @param result the new result + */ + public void setResult(String result) { + this.result = result; + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/Service.java b/vid-app-common/src/main/java/org/onap/vid/model/Service.java index c6269b978..b0597c649 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/Service.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/Service.java @@ -1,276 +1,283 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-import java.util.Map;
-import java.util.UUID;
-import java.util.Map.Entry;
-
-import org.openecomp.vid.asdc.beans.tosca.Input;
-
-/**
- * The Class Service.
- */
-public class Service {
-
- /** The uuid. */
- private String uuid;
-
- /** The invariant uuid. */
- private String invariantUuid;
-
- /** The name. */
- private String name;
-
- /** The version. */
- private String version;
-
- /** The tosca model URL. */
- private String toscaModelURL;
-
- /** The category. */
- private String category;
-
- /** The Service Type. */
- private String serviceType;
-
- /** The Service Role */
- private String serviceRole;
-
- /** The description. */
- private String description;
-
- /** The service ecomp naming flag */
- private String serviceEcompNaming;
-
- /** The inputs. */
- private Map<String, Input> inputs;
-
- /**
- * Gets the uuid.
- *
- * @return the uuid
- */
- public String getUuid() {
- return uuid;
- }
-
- /**
- * Gets the invariant uuid.
- *
- * @return the invariant uuid
- */
- public String getInvariantUuid() {
- return invariantUuid;
- }
-
- /**
- * Gets the name.
- *
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * Gets the version.
- *
- * @return the version
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * Gets the tosca model URL.
- *
- * @return the tosca model URL
- */
- public String getToscaModelURL() {
- return toscaModelURL;
- }
-
- /**
- * Gets the category.
- *
- * @return the category
- */
- public String getCategory() {
- return category;
- }
-
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Gets the inputs.
- *
- * @return the inputs
- */
- public Map<String, Input> getInputs() {
- return inputs;
- }
- /**
- * Get the serviceEcompNaming value
- *
- * @return serviceEcompNaming
- */
- public String getServiceEcompNaming() {
- return serviceEcompNaming;
- }
- /**
- * Sets the uuid.
- *
- * @param uuid the new uuid
- */
- public void setUuid(String uuid) {
- this.uuid = uuid;
- }
-
- /**
- * Sets the invariant uuid.
- *
- * @param invariantUuid the new invariant uuid
- */
- public void setInvariantUuid(String invariantUuid) {
- this.invariantUuid = invariantUuid;
- }
-
- /**
- * Sets the name.
- *
- * @param name the new name
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * Sets the version.
- *
- * @param version the new version
- */
- public void setVersion(String version) {
- this.version = version;
- }
-
- /**
- * Sets the tosca model URL.
- *
- * @param toscaModelURL the new tosca model URL
- */
- public void setToscaModelURL(String toscaModelURL) {
- this.toscaModelURL = toscaModelURL;
- }
-
- /**
- * Sets the category.
- *
- * @param category the new category
- */
- public void setCategory(String category) {
- this.category = category;
- }
-
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Sets the inputs.
- *
- * @param inputs the inputs
- */
- public void setInputs(Map<String, Input> inputs) {
- this.inputs = inputs;
- }
- /**
- * Sets the service ecomp naming.
- *
- * @param serviceEcompNaming the new service ecomp naming
- */
- public void setServiceEcompNaming(String serviceEcompNaming) {
- this.serviceEcompNaming = serviceEcompNaming;
- }
- /* (non-Javadoc)
- * @see java.lang.Object#hashCode()
- */
- @Override
- public int hashCode() {
- final UUID uuid = UUID.fromString(getUuid());
-
- return uuid.hashCode();
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object o) {
- if (o == this) return true;
- if (!(o instanceof Service)) return false;
-
- final Service service = (Service) o;
-
- return (service.getUuid().equals(getUuid()));
- }
-
- public String getServiceType() {
- return serviceType;
- }
-
- public void setServiceType(String serviceType) {
- this.serviceType = serviceType;
- }
-
- public String getServiceRole() {
- return serviceRole;
- }
-
- public void setServiceRole(String serviceRole) {
- this.serviceRole = serviceRole;
- }
-
- /*public static void extractVfModuleCustomizationUUID (Service s, String vnfCustomizationName, VfModule vfMod ) {
-
- //Look for vnfCustomizationName..vfModuleCustomizationName
- String nameToFind = vnfCustomizationName + ".." + vfMod.getModelCustomizationName();
- for (Entry<UUID, VfModule> vfModuleComponent : s.getVfModules().entrySet()) {
- VfModule xMod = vfModuleComponent.getValue();
- if ( (xMod.getModelCustomizationName() != null) && (xMod.getModelCustomizationName().equalsIgnoreCase(nameToFind)) ) {
- vfMod.setCustomizationUuid( xMod.getCustomizationUuid());
- return;
- }
- }
- }*/
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import org.onap.vid.asdc.beans.tosca.Input; + +import java.util.Map; +import java.util.UUID; + +/** + * The Class Service. + */ +public class Service { + + /** The uuid. */ + private String uuid; + + /** The invariant uuid. */ + private String invariantUuid; + + /** The name. */ + private String name; + + /** The version. */ + private String version; + + /** The tosca model URL. */ + private String toscaModelURL; + + /** The category. */ + private String category; + + /** The Service Type. */ + private String serviceType; + + /** The Service Role */ + private String serviceRole; + + /** The description. */ + private String description; + + /** The service ecomp naming flag */ + private String serviceEcompNaming; + + private String instantiationType; + + + /** The inputs. */ + private Map<String, Input> inputs; + + /** + * Gets the uuid. + * + * @return the uuid + */ + public String getUuid() { + return uuid; + } + + /** + * Gets the invariant uuid. + * + * @return the invariant uuid + */ + public String getInvariantUuid() { + return invariantUuid; + } + + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Gets the version. + * + * @return the version + */ + public String getVersion() { + return version; + } + + /** + * Gets the tosca model URL. + * + * @return the tosca model URL + */ + public String getToscaModelURL() { + return toscaModelURL; + } + + /** + * Gets the category. + * + * @return the category + */ + public String getCategory() { + return category; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Gets the inputs. + * + * @return the inputs + */ + public Map<String, Input> getInputs() { + return inputs; + } + /** + * Get the serviceEcompNaming value + * + * @return serviceEcompNaming + */ + public String getServiceEcompNaming() { + return serviceEcompNaming; + } + + + public String getInstantiationType() { return instantiationType; } + + public void setInstantiationType(String instantiationType) { this.instantiationType = instantiationType; } + /** + * Sets the uuid. + * + * @param uuid the new uuid + */ + public void setUuid(String uuid) { + this.uuid = uuid; + } + + /** + * Sets the invariant uuid. + * + * @param invariantUuid the new invariant uuid + */ + public void setInvariantUuid(String invariantUuid) { + this.invariantUuid = invariantUuid; + } + + /** + * Sets the name. + * + * @param name the new name + */ + public void setName(String name) { + this.name = name; + } + + /** + * Sets the version. + * + * @param version the new version + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * Sets the tosca model URL. + * + * @param toscaModelURL the new tosca model URL + */ + public void setToscaModelURL(String toscaModelURL) { + this.toscaModelURL = toscaModelURL; + } + + /** + * Sets the category. + * + * @param category the new category + */ + public void setCategory(String category) { + this.category = category; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Sets the inputs. + * + * @param inputs the inputs + */ + public void setInputs(Map<String, Input> inputs) { + this.inputs = inputs; + } + /** + * Sets the service ecomp naming. + * + * @param serviceEcompNaming the new service ecomp naming + */ + public void setServiceEcompNaming(String serviceEcompNaming) { + this.serviceEcompNaming = serviceEcompNaming; + } + /* (non-Javadoc) + * @see java.lang.Object#hashCode() + */ + @Override + public int hashCode() { + final UUID uuid = UUID.fromString(getUuid()); + + return uuid.hashCode(); + } + + /* (non-Javadoc) + * @see java.lang.Object#equals(java.lang.Object) + */ + @Override + public boolean equals(Object o) { + if (o == this) return true; + if (!(o instanceof Service)) return false; + + final Service service = (Service) o; + + return (service.getUuid().equals(getUuid())); + } + + public String getServiceType() { + return serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } + + public String getServiceRole() { + return serviceRole; + } + + public void setServiceRole(String serviceRole) { + this.serviceRole = serviceRole; + } + + /*public static void extractVfModuleCustomizationUUID (Service s, String vnfCustomizationName, VfModule vfMod ) { + + //Look for vnfCustomizationName..vfModuleCustomizationName + String nameToFind = vnfCustomizationName + ".." + vfMod.getModelCustomizationName(); + for (Entry<UUID, VfModule> vfModuleComponent : s.getVfModules().entrySet()) { + VfModule xMod = vfModuleComponent.getValue(); + if ( (xMod.getModelCustomizationName() != null) && (xMod.getModelCustomizationName().equalsIgnoreCase(nameToFind)) ) { + vfMod.setCustomizationUuid( xMod.getCustomizationUuid()); + return; + } + } + }*/ +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/ServiceInstanceSearchResult.java b/vid-app-common/src/main/java/org/onap/vid/model/ServiceInstanceSearchResult.java new file mode 100644 index 000000000..abf60d689 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/ServiceInstanceSearchResult.java @@ -0,0 +1,139 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +public class ServiceInstanceSearchResult { + + private String serviceInstanceId; + + private String globalCustomerId; + + private String serviceType; + + private String serviceInstanceName; + + private String subscriberName; + + private String aaiModelInvariantId; + + private String aaiModelVersionId; + + private boolean isPermitted; + + public ServiceInstanceSearchResult(){ + + } + public ServiceInstanceSearchResult(String serviceInstanceId, String globalCustomerId, String serviceType, + String serviceInstanceName, String subscriberName, String aaiModelInvariantId, + String aaiModelVersionId, boolean isPermitted) { + this.serviceInstanceId = serviceInstanceId; + this.globalCustomerId = globalCustomerId; + this.serviceType = serviceType; + this.serviceInstanceName = serviceInstanceName; + this.subscriberName = subscriberName; + this.aaiModelInvariantId = aaiModelInvariantId; + this.aaiModelVersionId = aaiModelVersionId; + this.isPermitted = isPermitted; + } + + public String getServiceInstanceId() { + return serviceInstanceId; + } + + public void setServiceInstanceId(String serviceInstanceId) { + this.serviceInstanceId = serviceInstanceId; + } + + public String getGlobalCustomerId() { + return globalCustomerId; + } + + public void setGlobalCustomerId(String globalCustomerId) { + this.globalCustomerId = globalCustomerId; + } + + public String getServiceType() { + return serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } + + public String getServiceInstanceName() { + return serviceInstanceName; + } + + public void setServiceInstanceName(String serviceInstanceName) { + this.serviceInstanceName = serviceInstanceName; + } + + public String getSubscriberName() { + return subscriberName; + } + + public void setSubscriberName(String subscriberName) { + this.subscriberName = subscriberName; + } + + public String getAaiModelInvariantId() { + return aaiModelInvariantId; + } + + public void setAaiModelInvariantId(String aaiModelInvariantId) { + this.aaiModelInvariantId = aaiModelInvariantId; + } + + public String getAaiModelVersionId() { + return aaiModelVersionId; + } + + public void setAaiModelVersionId(String aaiModelVersionId) { + this.aaiModelVersionId = aaiModelVersionId; + } + + public boolean getIsPermitted() { + return isPermitted; + } + + public void setIsPermitted(boolean isPermitted) { + this.isPermitted = isPermitted; + } + + @Override + public boolean equals(Object other){ + if (other instanceof ServiceInstanceSearchResult) { + ServiceInstanceSearchResult serviceInstanceSearchResultOther = (ServiceInstanceSearchResult) other; + if (this.getServiceInstanceId().equals(serviceInstanceSearchResultOther.getServiceInstanceId())) { + return true; + } + } + return false; + + } + + @Override + public int hashCode() { + int result = 17; + result = 31 * result + serviceInstanceId.hashCode(); + return result; + } +}
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java b/vid-app-common/src/main/java/org/onap/vid/model/ServiceModel.java index e879fd470..dab18d518 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/ServiceModel.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/ServiceModel.java @@ -1,261 +1,330 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Map.Entry;
-
-import org.openecomp.vid.asdc.beans.tosca.Group;
-import org.openecomp.vid.asdc.beans.tosca.ToscaModel;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.vid.properties.VidProperties;
-/**
- * The Class ServiceModel.
- */
-@SuppressWarnings("ALL")
-public class ServiceModel {
-
- /** The Constant LOG. */
- private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(ServiceModel.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
- /** The service. */
- private Service service;
-
- /** The vnfs. */
- private Map<String, VNF> vnfs;
-
- /** The networks. */
- private Map<String, Network> networks;
-
- /**
- * The vf modules. The VNF also has vfmodules but the vfmodules at the service level may have additional info
- * that is not present in the VNF, like the vf module customization String
- */
- private Map<String, VfModule> vfModules;
- /**
- * The volume groups. The VNF also has volume groups but the volume groups will be populated at the service level
- * for newer models
- */
- private Map<String, VolumeGroup> volumeGroups;
- /**
- * Instantiates a new service model.
- */
- public ServiceModel() {}
-
- /**
- * Gets the service.
- *
- * @return the service
- */
- public Service getService() {
- return service;
- }
-
- /**
- * Gets the vnfs.
- *
- * @return the vnfs
- */
- public Map<String, VNF> getVnfs() {
- return vnfs;
- }
-
- /**
- * Gets the networks.
- *
- * @return the networks
- */
- public Map<String, Network> getNetworks() {
- return networks;
- }
-
- /**
- * Sets the service.
- *
- * @param service the new service
- */
- public void setService(Service service) {
- this.service = service;
- }
-
- /**
- * Sets the vnfs.
- *
- * @param vnfs the vnfs
- */
- public void setVnfs(Map<String, VNF> vnfs) {
- this.vnfs = vnfs;
- }
-
- /**
- * Sets the networks.
- *
- * @param networks the networks
- */
- public void setNetworks(Map<String, Network> networks) {
- this.networks = networks;
- }
- /**
- * Gets the vf modules.
- *
- * @return the vf modules
- */
- public Map<String, VfModule> getVfModules() {
- return vfModules;
- }
- /**
- * Gets the volume groups.
- *
- * @return the volume groups
- */
- public Map<String, VolumeGroup> getVolumeGroups() {
- return volumeGroups;
- }
- /**
- * Sets the vf modules.
- *
- * @param vfModules the vf modules
- */
- public void setVfModules(Map<String, VfModule> vfModules) {
- this.vfModules = vfModules;
- }
- /**
- * Sets the volume groups.
- *
- * @param volumeGroups the volume groups
- */
- public void setVolumeGroups(Map<String, VolumeGroup> volumeGroups) {
- this.volumeGroups = volumeGroups;
- }
- /**
- * Extract service.
- *
- * @param serviceToscaModel the service tosca model
- * @param asdcServiceMetadata the asdc service metadata
- * @return the service
- */
- public static Service extractService(ToscaModel serviceToscaModel, org.openecomp.vid.asdc.beans.Service asdcServiceMetadata) {
-
- final Service service = new Service();
-
- service.setCategory(serviceToscaModel.getMetadata().getCategory());
- service.setInvariantUuid(serviceToscaModel.getMetadata().getInvariantUUID());
- service.setName(serviceToscaModel.getMetadata().getName());
- service.setUuid(serviceToscaModel.getMetadata().getUUID());
- service.setDescription(serviceToscaModel.getMetadata().getDescription());
- service.setServiceEcompNaming(serviceToscaModel.getMetadata().getServiceEcompNaming());
- service.setInputs(serviceToscaModel.gettopology_template().getInputs());
- //FIXME: SDC is not sending the Version with the Tosca Model for 1610 - they should send it in 1702
- //THIS IS A TEMPORARY FIX, AT SOME POINT UNCOMMENT ME
- service.setVersion(serviceToscaModel.getMetadata().getVersion());
- //service.setVersion(asdcServiceMetadata.getVersion());
-
- return service;
- }
- public static void extractGroups (ToscaModel serviceToscaModel,ServiceModel serviceModel) {
- // Get the groups. The groups may duplicate the groups that are in the VNF model and have
- // additional data like the VF module customization String>
-
- final Map<String, VfModule> vfModules = new HashMap<String, VfModule> ();
- final Map<String, VolumeGroup> volumeGroups = new HashMap<String, VolumeGroup> ();
-
- String asdcModelNamespace = VidProperties.getAsdcModelNamespace();
- String vfModuleTag = asdcModelNamespace + ModelConstants.VF_MODULE;
-
- for (Entry<String, Group> component : serviceToscaModel.gettopology_template().getGroups().entrySet()) {
- final Group group = component.getValue();
- final String type = group.getType();
- final String customizationName = component.getKey();
-
- if (type.startsWith(vfModuleTag)) {
- VfModule vfMod = VfModule.extractVfModule(customizationName, group);
- vfModules.put(customizationName, vfMod);
- if ( vfMod.isVolumeGroupAllowed() ) {
- //volume groups have the same customization name as the vf module
- volumeGroups.put(customizationName, VolumeGroup.extractVolumeGroup(customizationName,group));
- }
- }
- }
- // add this point vfModules and volume groups are disconnected from VNF
- serviceModel.setVfModules (vfModules);
- serviceModel.setVolumeGroups (volumeGroups);
-
- }
- /**
- * Populate the vf modules and volume groups that we may have under the service level under each VNF.
- */
- public void associateGroups() {
- String methodName = "associateGroups()";
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " start");
- // go through the vnfs, get the vnf normalized name and look for a vf module with a customization name that starts
- // with vnf + ".."
- String vnfCustomizationName = null;
- String normalizedVnfCustomizationName = null;
- String vfModuleCustomizationName = null;
- VNF tmpVnf = null;
-
- if ( ( getVnfs() != null ) && (!(getVnfs().isEmpty())) ) {
- for (Entry<String, VNF> vnfComponent : getVnfs().entrySet()) {
- vnfCustomizationName = vnfComponent.getValue().getModelCustomizationName();
- normalizedVnfCustomizationName = VNF.normalizeName(vnfCustomizationName);
-
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName +
- " VNF customizationName=" + vnfCustomizationName + "normalized customization name=" + normalizedVnfCustomizationName);
-
- // now check to see if there is a vf module with customization name that starts with normalizedVnfCustomizationName
-
- if (( getVfModules() != null ) && (!(getVfModules().isEmpty()))) {
- for (Entry<String, VfModule> vfModuleComponent : getVfModules().entrySet()) {
- vfModuleCustomizationName = vfModuleComponent.getValue().getModelCustomizationName();
-
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName +
- " VF Module customizationName=" + vfModuleCustomizationName );
- if ( vfModuleCustomizationName.startsWith(normalizedVnfCustomizationName + ".." )) {
-
- // this vf module belongs to the VNF
- tmpVnf = vnfComponent.getValue();
- (tmpVnf.getVfModules()).put(vfModuleComponent.getKey(), vfModuleComponent.getValue());
-
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName +
- " Associated VF Module customizationName=" + vfModuleComponent.getKey() + " with VNF customization name=" + vnfCustomizationName);
-
- // now find if this vf module has volume groups, if so, find the volume group with the same customization name and put it under the VNF
- if ( vfModuleComponent.getValue().isVolumeGroupAllowed() ) {
- if (( getVolumeGroups() != null ) && (!(getVolumeGroups().isEmpty()))) {
- if (getVolumeGroups().containsKey((vfModuleCustomizationName))) {
- (vnfComponent.getValue().getVolumeGroups()).put(vfModuleCustomizationName, (getVolumeGroups()).get(vfModuleCustomizationName));
- }
- }
- }
- }
- }
- }
- }
- }
-
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; + +import org.onap.vid.asdc.beans.tosca.Group; +import org.onap.vid.asdc.beans.tosca.NodeTemplate; +import org.onap.vid.asdc.beans.tosca.ToscaModel; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.properties.VidProperties; +/** + * The Class ServiceModel. + */ +@SuppressWarnings("ALL") +public class ServiceModel { + + /** The Constant LOG. */ + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(ServiceModel.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + /** The service. */ + private Service service; + + /** The vnfs. */ + private Map<String, VNF> vnfs; + + /** The networks. */ + private Map<String, Network> networks; + + /** Port Mirroring Configuration node templates */ + private Map<String, PortMirroringConfig> configurations; + + /** Service Proxy Nodes */ + private Map<String, ServiceProxy> serviceProxies; + + /** + * The vf modules. The VNF also has vfmodules but the vfmodules at the service level may have additional info + * that is not present in the VNF, like the vf module customization String + */ + private Map<String, VfModule> vfModules; + /** + * The volume groups. The VNF also has volume groups but the volume groups will be populated at the service level + * for newer models + */ + private Map<String, VolumeGroup> volumeGroups; + + /** The pnfs. */ + private Map<String, Node> pnfs; + /** + * Instantiates a new service model. + */ + public ServiceModel() {} + + /** + * Gets the service. + * + * @return the service + */ + public Service getService() { + return service; + } + + /** + * Gets the vnfs. + * + * @return the vnfs + */ + public Map<String, VNF> getVnfs() { + return vnfs; + } + + /** + * Gets the networks. + * + * @return the networks + */ + public Map<String, Network> getNetworks() { + return networks; + } + + + /** + * Gets the pnfs. + * + * @return the pnfs + */ + public Map<String, Node> getPnfs() { + return pnfs; + } + + + /** + * Gets the Configuration Node Templates + * + * @return the configuration type node templates + */ + public Map<String, PortMirroringConfig> getConfigurations() { + return configurations; + } + + /** + * Gets the Service Proxy Node Templates + * + * @return the Service Proxy type node templates + */ + public Map<String, ServiceProxy> getServiceProxies() { + return serviceProxies; + } + + /** + * Sets the service. + * + * @param service the new service + */ + public void setService(Service service) { + this.service = service; + } + + /** + * Sets the vnfs. + * + * @param vnfs the vnfs + */ + public void setVnfs(Map<String, VNF> vnfs) { + this.vnfs = vnfs; + } + + /** + * Sets the networks. + * + * @param networks the networks + */ + public void setNetworks(Map<String, Network> networks) { + this.networks = networks; + } + + /** + * Sets the configuraion node templates. + * + * @param configurations + */ + public void setConfigurations(Map<String, PortMirroringConfig> configurations) { + this.configurations = configurations; + } + + /** + * Sets the service proxy node templates. + * + * @param serviceProxies + */ + public void setServiceProxies(Map<String, ServiceProxy> serviceProxies) { + this.serviceProxies = serviceProxies; + } + + /** + * Gets the vf modules. + * + * @return the vf modules + */ + public Map<String, VfModule> getVfModules() { + return vfModules; + } + + + /** + * Gets the volume groups. + * + * @return the volume groups + */ + public Map<String, VolumeGroup> getVolumeGroups() { + return volumeGroups; + } + /** + * Sets the vf modules. + * + * @param vfModules the vf modules + */ + public void setVfModules(Map<String, VfModule> vfModules) { + this.vfModules = vfModules; + } + /** + * Sets the volume groups. + * + * @param volumeGroups the volume groups + */ + public void setVolumeGroups(Map<String, VolumeGroup> volumeGroups) { + this.volumeGroups = volumeGroups; + } + /** + * Sets the pnfs. + * + * @param pnfs the pnfs + */ + public void setPnfs(Map<String,Node> pnfs) {this.pnfs = pnfs;} + + /** + * Extract service. + * + * @param serviceToscaModel the service tosca model + * @param asdcServiceMetadata the asdc service metadata + * @return the service + */ + public static Service extractService(ToscaModel serviceToscaModel, org.onap.vid.asdc.beans.Service asdcServiceMetadata) { + + final Service service = new Service(); + + service.setCategory(serviceToscaModel.getMetadata().getCategory()); + service.setInvariantUuid(serviceToscaModel.getMetadata().getInvariantUUID()); + service.setName(serviceToscaModel.getMetadata().getName()); + service.setUuid(serviceToscaModel.getMetadata().getUUID()); + service.setDescription(serviceToscaModel.getMetadata().getDescription()); + service.setServiceEcompNaming(serviceToscaModel.getMetadata().getServiceEcompNaming()); + service.setInputs(serviceToscaModel.gettopology_template().getInputs()); + //FIXME: SDC is not sending the Version with the Tosca Model for 1610 - they should send it in 1702 + //THIS IS A TEMPORARY FIX, AT SOME POINT UNCOMMENT ME + //service.setVersion(serviceToscaModel.getMetadata().getVersion()); + service.setVersion(asdcServiceMetadata.getVersion()); + + return service; + } + public static void extractGroups (ToscaModel serviceToscaModel,ServiceModel serviceModel) { + // Get the groups. The groups may duplicate the groups that are in the VNF model and have + // additional data like the VF module customization String> + + final Map<String, VfModule> vfModules = new HashMap<String, VfModule> (); + final Map<String, VolumeGroup> volumeGroups = new HashMap<String, VolumeGroup> (); + + String asdcModelNamespace = VidProperties.getAsdcModelNamespace(); + String vfModuleTag = asdcModelNamespace + ModelConstants.VF_MODULE; + + for (Entry<String, Group> component : serviceToscaModel.gettopology_template().getGroups().entrySet()) { + final Group group = component.getValue(); + final String type = group.getType(); + final String customizationName = component.getKey(); + + if (type.startsWith(vfModuleTag)) { + VfModule vfMod = VfModule.extractVfModule(customizationName, group); + vfModules.put(customizationName, vfMod); + if ( vfMod.isVolumeGroupAllowed() ) { + //volume groups have the same customization name as the vf module + volumeGroups.put(customizationName, VolumeGroup.extractVolumeGroup(customizationName,group)); + } + } + } + // add this point vfModules and volume groups are disconnected from VNF + serviceModel.setVfModules (vfModules); + serviceModel.setVolumeGroups (volumeGroups); + + } + /** + * Populate the vf modules and volume groups that we may have under the service level under each VNF. + */ + public void associateGroups() { + String methodName = "associateGroups()"; + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " start"); + // go through the vnfs, get the vnf normalized name and look for a vf module with a customization name that starts + // with vnf + ".." + String vnfCustomizationName = null; + String normalizedVnfCustomizationName = null; + String vfModuleCustomizationName = null; + VNF tmpVnf = null; + + if ( ( getVnfs() != null ) && (!(getVnfs().isEmpty())) ) { + for (Entry<String, VNF> vnfComponent : getVnfs().entrySet()) { + vnfCustomizationName = vnfComponent.getValue().getModelCustomizationName(); + normalizedVnfCustomizationName = VNF.normalizeName(vnfCustomizationName); + + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + + " VNF customizationName=" + vnfCustomizationName + "normalized customization name=" + normalizedVnfCustomizationName); + + // now check to see if there is a vf module with customization name that starts with normalizedVnfCustomizationName + + if (( getVfModules() != null ) && (!(getVfModules().isEmpty()))) { + for (Entry<String, VfModule> vfModuleComponent : getVfModules().entrySet()) { + vfModuleCustomizationName = vfModuleComponent.getValue().getModelCustomizationName(); + + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + + " VF Module customizationName=" + vfModuleCustomizationName ); + if ( vfModuleCustomizationName.startsWith(normalizedVnfCustomizationName + ".." )) { + + // this vf module belongs to the VNF + tmpVnf = vnfComponent.getValue(); + (tmpVnf.getVfModules()).put(vfModuleComponent.getKey(), vfModuleComponent.getValue()); + + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + + " Associated VF Module customizationName=" + vfModuleComponent.getKey() + " with VNF customization name=" + vnfCustomizationName); + + // now find if this vf module has volume groups, if so, find the volume group with the same customization name and put it under the VNF + if ( vfModuleComponent.getValue().isVolumeGroupAllowed() ) { + if (( getVolumeGroups() != null ) && (!(getVolumeGroups().isEmpty()))) { + if (getVolumeGroups().containsKey((vfModuleCustomizationName))) { + (vnfComponent.getValue().getVolumeGroups()).put(vfModuleCustomizationName, (getVolumeGroups()).get(vfModuleCustomizationName)); + } + } + } + } + } + } + } + } + + } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/ServiceProxy.java b/vid-app-common/src/main/java/org/onap/vid/model/ServiceProxy.java new file mode 100644 index 000000000..f412a1e51 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/ServiceProxy.java @@ -0,0 +1,46 @@ +package org.onap.vid.model; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; + +public class ServiceProxy extends Node { + + /** The Constant LOG. */ + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(ServiceProxy.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + private String sourceModelUuid; + + private String sourceModelInvariant; + + private String sourceModelName; + + public String getSourceModelUuid() { + return sourceModelUuid; + } + + public void setSourceModelUuid(String sourceModelUuid) { + this.sourceModelUuid = sourceModelUuid; + } + + public String getSourceModelInvariant() { + return sourceModelInvariant; + } + + public void setSourceModelInvariant(String sourceModelInvariant) { + this.sourceModelInvariant = sourceModelInvariant; + } + + public String getSourceModelName() { + return sourceModelName; + } + + public void setSourceModelName(String sourceModelName) { + this.sourceModelName = sourceModelName; + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/Subscriber.java b/vid-app-common/src/main/java/org/onap/vid/model/Subscriber.java index c5db6fdae..70711b804 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/Subscriber.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/Subscriber.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import org.codehaus.jackson.annotate.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/SubscriberList.java b/vid-app-common/src/main/java/org/onap/vid/model/SubscriberList.java index 7f593e4de..5f935971e 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/SubscriberList.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/SubscriberList.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import org.openecomp.portalsdk.core.web.support.UserUtils; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/VNF.java b/vid-app-common/src/main/java/org/onap/vid/model/VNF.java index 62e101ef8..e558e9574 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/VNF.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/VNF.java @@ -1,165 +1,165 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-import java.util.Map;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map.Entry;
-import java.util.regex.Pattern;
-
-import org.openecomp.vid.asdc.beans.tosca.NodeTemplate;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.vid.controller.VidController;
-
-import org.openecomp.vid.asdc.beans.tosca.Group;
-import org.openecomp.vid.asdc.beans.tosca.Input;
-
-/**
- * The Class VNF.
- */
-public class VNF extends Node {
-
- /** The Constant LOG. */
- private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(VNF.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /** The pattern used to normalize VNF names */
- final static Pattern COMPONENT_INSTANCE_NAME_DELIMETER_PATTERN = Pattern.compile("[\\.\\-]+");
-
- /** The model customization name. */
- private String modelCustomizationName;
-
- /** The vf modules. */
- private Map<String, VfModule> vfModules = new HashMap<String, VfModule>();
-
- /** The volume groups. */
- private Map<String, VolumeGroup> volumeGroups = new HashMap<String, VolumeGroup>();
-
- /**
- * Instantiates a new vnf.
- */
- public VNF() {
- super();
- }
-
- /**
- * Gets the model customization name.
- *
- * @return the model customization name
- */
- public String getModelCustomizationName() {
- return modelCustomizationName;
- }
-
- /**
- * Gets the vf modules.
- *
- * @return the vf modules
- */
- public Map<String, VfModule> getVfModules() {
- return vfModules;
- }
-
- /**
- * Sets the vf modules.
- *
- * @param vfModules the vf modules
- */
- public void setVfModules(Map<String, VfModule> vfModules) {
- this.vfModules = vfModules;
- }
-
- /**
- * Gets the volume groups.
- *
- * @return the volume groups
- */
- public Map<String, VolumeGroup> getVolumeGroups() {
- return volumeGroups;
- }
-
- /**
- * Sets the volume groups.
- *
- * @param volumeGroups the volume groups
- */
- public void setVolumeGroups(Map<String, VolumeGroup> volumeGroups) {
- this.volumeGroups = volumeGroups;
- }
-
- /**
- * Extract vnf.
- *
- * @param modelCustomizationName the model customization name
- * @param nodeTemplate the node template
- * @return the vnf
- */
- public void extractVnf(String modelCustomizationName, NodeTemplate nodeTemplate) {
-
- super.extractNode(nodeTemplate);
- setModelCustomizationName(modelCustomizationName);
-
- }
-
- /**
- * Sets the model customization name.
- *
- * @param modelCustomizationName the new model customization name
- */
- public void setModelCustomizationName(String modelCustomizationName) {
- this.modelCustomizationName = modelCustomizationName;
- }
- /**
- * Normalize the VNF name
- * @param originalName
- * @return the normalized name
- */
- public static String normalizeName (String originalName) {
-
- String normalizedName = originalName.toLowerCase();
- normalizedName = COMPONENT_INSTANCE_NAME_DELIMETER_PATTERN.matcher(normalizedName).replaceAll(" ");
- String[] splitArr = null;
-
- try {
- splitArr = normalizedName.split(" ");
- }
- catch (Exception ex ) {
- return (normalizedName);
- }
- StringBuffer sb = new StringBuffer();
- if ( splitArr != null ) {
- for (String splitElement : splitArr) {
- sb.append(splitElement);
- }
- return (sb.toString());
- }
- else {
- return (normalizedName);
- }
-
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import java.util.Map; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Map.Entry; +import java.util.regex.Pattern; + +import org.onap.vid.asdc.beans.tosca.NodeTemplate; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.controller.VidController; + +import org.onap.vid.asdc.beans.tosca.Group; +import org.onap.vid.asdc.beans.tosca.Input; + +/** + * The Class VNF. + */ +public class VNF extends Node { + + /** The Constant LOG. */ + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(VNF.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** The pattern used to normalize VNF names */ + final static Pattern COMPONENT_INSTANCE_NAME_DELIMETER_PATTERN = Pattern.compile("[\\.\\-]+"); + + /** The model customization name. */ + private String modelCustomizationName; + + /** The vf modules. */ + private Map<String, VfModule> vfModules = new HashMap<String, VfModule>(); + + /** The volume groups. */ + private Map<String, VolumeGroup> volumeGroups = new HashMap<String, VolumeGroup>(); + + /** + * Instantiates a new vnf. + */ + public VNF() { + super(); + } + + /** + * Gets the model customization name. + * + * @return the model customization name + */ + public String getModelCustomizationName() { + return modelCustomizationName; + } + + /** + * Gets the vf modules. + * + * @return the vf modules + */ + public Map<String, VfModule> getVfModules() { + return vfModules; + } + + /** + * Sets the vf modules. + * + * @param vfModules the vf modules + */ + public void setVfModules(Map<String, VfModule> vfModules) { + this.vfModules = vfModules; + } + + /** + * Gets the volume groups. + * + * @return the volume groups + */ + public Map<String, VolumeGroup> getVolumeGroups() { + return volumeGroups; + } + + /** + * Sets the volume groups. + * + * @param volumeGroups the volume groups + */ + public void setVolumeGroups(Map<String, VolumeGroup> volumeGroups) { + this.volumeGroups = volumeGroups; + } + + /** + * Extract vnf. + * + * @param modelCustomizationName the model customization name + * @param nodeTemplate the node template + * @return the vnf + */ + public void extractVnf(String modelCustomizationName, NodeTemplate nodeTemplate) { + + super.extractNode(nodeTemplate); + setModelCustomizationName(modelCustomizationName); + + } + + /** + * Sets the model customization name. + * + * @param modelCustomizationName the new model customization name + */ + public void setModelCustomizationName(String modelCustomizationName) { + this.modelCustomizationName = modelCustomizationName; + } + /** + * Normalize the VNF name + * @param originalName + * @return the normalized name + */ + public static String normalizeName (String originalName) { + + String normalizedName = originalName.toLowerCase(); + normalizedName = COMPONENT_INSTANCE_NAME_DELIMETER_PATTERN.matcher(normalizedName).replaceAll(" "); + String[] splitArr = null; + + try { + splitArr = normalizedName.split(" "); + } + catch (Exception ex ) { + return (normalizedName); + } + StringBuffer sb = new StringBuffer(); + if ( splitArr != null ) { + for (String splitElement : splitArr) { + sb.append(splitElement); + } + return (sb.toString()); + } + else { + return (normalizedName); + } + + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/VNFDao.java b/vid-app-common/src/main/java/org/onap/vid/model/VNFDao.java new file mode 100644 index 000000000..13e2ebb56 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/VNFDao.java @@ -0,0 +1,105 @@ +package org.onap.vid.model; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openecomp.portalsdk.core.domain.support.DomainVo; + +import javax.persistence.*; +import java.io.Serializable; +import java.util.Date; +import java.util.HashSet; +import java.util.Set; + +@Entity +@Table(name = "vid_vnf") +public class VNFDao extends DomainVo { + + private String vnfUUID; + private String vnfInvariantUUID; + private Set<VidWorkflow> workflows = new HashSet<>(0); + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "VNF_DB_ID") + @JsonIgnore + public Long getId() { + return id; + } + + @Override + @Column(name = "CREATED_DATE") + @JsonIgnore + public Date getCreated() { + return super.getCreated(); + } + + @Override + @Column(name = "MODIFIED_DATE") + @JsonIgnore + public Date getModified() { + return super.getModified(); + } + + @Override + @Transient + @JsonIgnore + public Long getCreatedId() { + return super.getCreatedId(); + } + + @Override + @Transient + @JsonIgnore + public Long getModifiedId() { + return super.getModifiedId(); + } + + @Override + @Transient + @JsonIgnore + public Serializable getAuditUserId() { + return super.getAuditUserId(); + } + + @Override + @Transient + @JsonIgnore + public Long getRowNum() { + return super.getRowNum(); + } + + @Override + @Transient + @JsonIgnore + public Set getAuditTrail() { + return super.getAuditTrail(); + } + + @Column(name = "VNF_APP_UUID") + public String getVnfUUID() { + return vnfUUID; + } + + @Column(name = "VNF_APP_INVARIANT_UUID") + public String getVnfInvariantUUID() { + return vnfInvariantUUID; + } + + + public void setVnfUUID(String vnfUUID) { + this.vnfUUID = vnfUUID; + } + + public void setVnfInvariantUUID(String vnfInvariantUUID) { + this.vnfInvariantUUID = vnfInvariantUUID; + } + + @ManyToMany(cascade = CascadeType.ALL, fetch =FetchType.EAGER ) + @JoinTable(name = "vid_vnf_workflow", joinColumns = { @JoinColumn(name = "VNF_DB_ID") }, inverseJoinColumns = { @JoinColumn(name = "WORKFLOW_DB_ID") }) + public Set<VidWorkflow> getWorkflows() { + return workflows; + } + + public void setWorkflows(Set<VidWorkflow> workflows) { + this.workflows = workflows; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/VersionByInvariantIdsRequest.java b/vid-app-common/src/main/java/org/onap/vid/model/VersionByInvariantIdsRequest.java index 7c86165b4..907f4938d 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/VersionByInvariantIdsRequest.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/VersionByInvariantIdsRequest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.util.List; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/VfModule.java b/vid-app-common/src/main/java/org/onap/vid/model/VfModule.java index 3f6f1da22..ac19587e1 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/VfModule.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/VfModule.java @@ -1,308 +1,308 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Map.Entry;
-import org.openecomp.vid.asdc.beans.tosca.Group;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-
-/**
- * The Class VfModule.
- */
-public class VfModule {
-
- /** The Constant LOG. */
- private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(VfModule.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /** The uuid. */
- private String uuid;
-
- /** The invariant uuid. */
- private String invariantUuid;
-
- /** The customization uuid. */
- private String customizationUuid;
-
- /** The description. */
- private String description;
-
- /** The name. */
- private String name;
-
- /** The version. */
- private String version;
-
- /** The volume group allowed. */
- private boolean volumeGroupAllowed;
-
- /** The get_input or other constructs for VF Module. */
- private Map<String, CommandProperty> commands;
-
- /** The model customization name. */
- private String modelCustomizationName;
-
- /**
- * Instantiates a new vf module.
- */
- public VfModule() {
- commands = new HashMap<String, CommandProperty>();
- }
- /**
- * Gets the model customization name.
- *
- * @return the model customization name
- */
- public String getModelCustomizationName() {
- return modelCustomizationName;
- }
- /**
- * Gets the uuid.
- *
- * @return the uuid
- */
- public String getUuid() {
- return uuid;
- }
-
- /**
- * Gets the invariant uuid.
- *
- * @return the invariant uuid
- */
- public String getInvariantUuid() {
- return invariantUuid;
- }
- /**
- * Gets the customization uuid.
- *
- * @return the invariant uuid
- */
- public String getCustomizationUuid() {
- return customizationUuid;
- }
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
- /**
- * Gets the commands.
- *
- * @return the commands
- */
- public Map<String, CommandProperty> getCommands() {
- return commands;
- }
- /**
- * Gets the name.
- *
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * Gets the version.
- *
- * @return the version
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * Checks if is volume group allowed.
- *
- * @return true, if is volume group allowed
- */
- public boolean isVolumeGroupAllowed() {
- return volumeGroupAllowed;
- }
-
- /**
- * Sets the uuid.
- *
- * @param uuid the new uuid
- */
- public void setUuid(String uuid) {
- this.uuid = uuid;
- }
-
- /**
- * Sets the invariant uuid.
- *
- * @param invariantUuid the new invariant uuid
- */
- public void setInvariantUuid(String invariantUuid) {
- this.invariantUuid = invariantUuid;
- }
- /**
- * Sets the customization uuid.
- *
- * @param customizationUuid the new customization uuid
- */
- public void setCustomizationUuid(String customizationUuid) {
- this.customizationUuid = customizationUuid;
- }
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Sets the name.
- *
- * @param name the new name
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * Sets the version.
- *
- * @param version the new version
- */
- public void setVersion(String version) {
- this.version = version;
- }
-
- /**
- * Sets the volume group allowed.
- *
- * @param volumeGroupAllowed the new volume group allowed
- */
- public void setVolumeGroupAllowed(boolean volumeGroupAllowed) {
- this.volumeGroupAllowed = volumeGroupAllowed;
- }
- /**
- * Sets the commands.
- *
- * @param m the commands
- */
- public void setCommands( Map<String, CommandProperty>m ) {
- commands = m;
- }
- /**
- * Sets the model customization name.
- *
- * @param modelCustomizationName the new model customization name
- */
- public void setModelCustomizationName(String modelCustomizationName) {
- this.modelCustomizationName = modelCustomizationName;
- }
- /**
- * Extract vf module.
- *
- * @param group the group
- * @return the vf module
- */
- public static VfModule extractVfModule(String modelCustomizationName, Group group) {
-
- String methodName = "extractVfModule";
-
- final VfModule vfModule = new VfModule();
-
- try {
- vfModule.setUuid(group.getMetadata().getVfModuleModelUUID());
- vfModule.setInvariantUuid(group.getMetadata().getVfModuleModelInvariantUUID());
- vfModule.setDescription(group.getMetadata().getDescription());
- vfModule.setName(group.getMetadata().getVfModuleModelName());
- vfModule.setVersion(group.getMetadata().getVfModuleModelVersion());
- vfModule.setCustomizationUuid(group.getMetadata().getVfModuleModelCustomizationUUID());
- vfModule.setModelCustomizationName (modelCustomizationName);
-
- if (group.getProperties().containsKey("volume_group")) {
- if (group.getProperties().get("volume_group") != null) {
-
- Class<?> c = group.getProperties().get("volume_group").getClass();
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " class name=" +
- c.getName());
-
- if ( c.getName().equalsIgnoreCase(Boolean.class.getName()) ) {
- Boolean b = (Boolean)group.getProperties().get("volume_group");
- vfModule.setVolumeGroupAllowed( b.booleanValue() );
- }
- }
- } else {
- vfModule.setVolumeGroupAllowed(false);
- }
- }
- catch ( Exception e ) {
- LOG.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + " Unable to parse VF Module from group: e=" +
- e.toString());
- }
- /* Not extracting other types of properties for 1702
- try {
-
- for (Entry<String, Object> e : group.getProperties().entrySet()) {
-
- String k = e.getKey();
- if ( e.getValue() != null ) {
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " property: " +
- k + "=" + e.getValue());
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " V class name: " +
- e.getValue().getClass().getName());
- Class<?>[] interfaces = e.getValue().getClass().getInterfaces();
-
- for(Class<?> ifc: interfaces ){
- LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " ifc name: " +
- ifc.getName());
- }
-
- // only extract get_input for now
- for (Entry<String, String> entry : v.entrySet()) {
- // only include get_input for now
- if ( ModelConstants.GET_INPUT_TAG.equalsIgnoreCase ( entry.getKey() ) ) {
- CommandProperty cp = new CommandProperty();
- cp.setDisplayName(entry.getValue());
- cp.setCommand(entry.getKey());
- cp.setInputName(k);
- (vfModule.getCommands()).put(k,cp);
- }
- }
- }
- }
- }
- catch ( Exception e ) {
- LOG.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + " Unable to parse VF Module properties: e=" +
- e.toString());
- }*/
- return vfModule;
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; +import org.onap.vid.asdc.beans.tosca.Group; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; + +/** + * The Class VfModule. + */ +public class VfModule { + + /** The Constant LOG. */ + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(VfModule.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** The uuid. */ + private String uuid; + + /** The invariant uuid. */ + private String invariantUuid; + + /** The customization uuid. */ + private String customizationUuid; + + /** The description. */ + private String description; + + /** The name. */ + private String name; + + /** The version. */ + private String version; + + /** The volume group allowed. */ + private boolean volumeGroupAllowed; + + /** The get_input or other constructs for VF Module. */ + private Map<String, CommandProperty> commands; + + /** The model customization name. */ + private String modelCustomizationName; + + /** + * Instantiates a new vf module. + */ + public VfModule() { + commands = new HashMap<String, CommandProperty>(); + } + /** + * Gets the model customization name. + * + * @return the model customization name + */ + public String getModelCustomizationName() { + return modelCustomizationName; + } + /** + * Gets the uuid. + * + * @return the uuid + */ + public String getUuid() { + return uuid; + } + + /** + * Gets the invariant uuid. + * + * @return the invariant uuid + */ + public String getInvariantUuid() { + return invariantUuid; + } + /** + * Gets the customization uuid. + * + * @return the invariant uuid + */ + public String getCustomizationUuid() { + return customizationUuid; + } + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + /** + * Gets the commands. + * + * @return the commands + */ + public Map<String, CommandProperty> getCommands() { + return commands; + } + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Gets the version. + * + * @return the version + */ + public String getVersion() { + return version; + } + + /** + * Checks if is volume group allowed. + * + * @return true, if is volume group allowed + */ + public boolean isVolumeGroupAllowed() { + return volumeGroupAllowed; + } + + /** + * Sets the uuid. + * + * @param uuid the new uuid + */ + public void setUuid(String uuid) { + this.uuid = uuid; + } + + /** + * Sets the invariant uuid. + * + * @param invariantUuid the new invariant uuid + */ + public void setInvariantUuid(String invariantUuid) { + this.invariantUuid = invariantUuid; + } + /** + * Sets the customization uuid. + * + * @param customizationUuid the new customization uuid + */ + public void setCustomizationUuid(String customizationUuid) { + this.customizationUuid = customizationUuid; + } + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Sets the name. + * + * @param name the new name + */ + public void setName(String name) { + this.name = name; + } + + /** + * Sets the version. + * + * @param version the new version + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * Sets the volume group allowed. + * + * @param volumeGroupAllowed the new volume group allowed + */ + public void setVolumeGroupAllowed(boolean volumeGroupAllowed) { + this.volumeGroupAllowed = volumeGroupAllowed; + } + /** + * Sets the commands. + * + * @param m the commands + */ + public void setCommands( Map<String, CommandProperty>m ) { + commands = m; + } + /** + * Sets the model customization name. + * + * @param modelCustomizationName the new model customization name + */ + public void setModelCustomizationName(String modelCustomizationName) { + this.modelCustomizationName = modelCustomizationName; + } + /** + * Extract vf module. + * + * @param group the group + * @return the vf module + */ + public static VfModule extractVfModule(String modelCustomizationName, Group group) { + + String methodName = "extractVfModule"; + + final VfModule vfModule = new VfModule(); + + try { + vfModule.setUuid(group.getMetadata().getVfModuleModelUUID()); + vfModule.setInvariantUuid(group.getMetadata().getVfModuleModelInvariantUUID()); + vfModule.setDescription(group.getMetadata().getDescription()); + vfModule.setName(group.getMetadata().getVfModuleModelName()); + vfModule.setVersion(group.getMetadata().getVfModuleModelVersion()); + vfModule.setCustomizationUuid(group.getMetadata().getVfModuleModelCustomizationUUID()); + vfModule.setModelCustomizationName (modelCustomizationName); + + if (group.getProperties().containsKey("volume_group")) { + if (group.getProperties().get("volume_group") != null) { + + Class<?> c = group.getProperties().get("volume_group").getClass(); + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " class name=" + + c.getName()); + + if ( c.getName().equalsIgnoreCase(Boolean.class.getName()) ) { + Boolean b = (Boolean)group.getProperties().get("volume_group"); + vfModule.setVolumeGroupAllowed( b.booleanValue() ); + } + } + } else { + vfModule.setVolumeGroupAllowed(false); + } + } + catch ( Exception e ) { + LOG.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + " Unable to parse VF Module from group: e=" + + e.toString()); + } + /* Not extracting other types of properties for 1702 + try { + + for (Entry<String, Object> e : group.getProperties().entrySet()) { + + String k = e.getKey(); + if ( e.getValue() != null ) { + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " property: " + + k + "=" + e.getValue()); + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " V class name: " + + e.getValue().getClass().getName()); + Class<?>[] interfaces = e.getValue().getClass().getInterfaces(); + + for(Class<?> ifc: interfaces ){ + LOG.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " ifc name: " + + ifc.getName()); + } + + // only extract get_input for now + for (Entry<String, String> entry : v.entrySet()) { + // only include get_input for now + if ( ModelConstants.GET_INPUT_TAG.equalsIgnoreCase ( entry.getKey() ) ) { + CommandProperty cp = new CommandProperty(); + cp.setDisplayName(entry.getValue()); + cp.setCommand(entry.getKey()); + cp.setInputName(k); + (vfModule.getCommands()).put(k,cp); + } + } + } + } + } + catch ( Exception e ) { + LOG.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + " Unable to parse VF Module properties: e=" + + e.toString()); + }*/ + return vfModule; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java b/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java new file mode 100644 index 000000000..985289b4a --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java @@ -0,0 +1,83 @@ +package org.onap.vid.model; + + +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openecomp.portalsdk.core.domain.support.DomainVo; + +import javax.persistence.*; +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +@Entity +@Table(name = "vid_workflow") +public class VidWorkflow extends DomainVo { + + private String wokflowName; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "WORKFLOW_DB_ID") + @JsonIgnore + public Long getId() { + return id; + } + + @Override + @Column(name = "CREATED_DATE") + @JsonIgnore + public Date getCreated() { + return super.getCreated(); + } + + @Override + @Column(name = "MODIFIED_DATE") + @JsonIgnore + public Date getModified() { + return super.getModified(); + } + + @Override + @Transient + @JsonIgnore + public Long getCreatedId() { + return super.getCreatedId(); + } + + @Override + @Transient + @JsonIgnore + public Long getModifiedId() { + return super.getModifiedId(); + } + + @Override + @Transient + @JsonIgnore + public Serializable getAuditUserId() { + return super.getAuditUserId(); + } + + @Override + @Transient + @JsonIgnore + public Long getRowNum() { + return super.getRowNum(); + } + + @Override + @Transient + @JsonIgnore + public Set getAuditTrail() { + return super.getAuditTrail(); + } + + @Column(name = "WORKFLOW_APP_NAME") + public String getWokflowName() { + return wokflowName; + } + + public void setWokflowName(String wokflowName) { + this.wokflowName = wokflowName; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/VolumeGroup.java b/vid-app-common/src/main/java/org/onap/vid/model/VolumeGroup.java index baa535171..969c287ce 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/VolumeGroup.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/VolumeGroup.java @@ -1,196 +1,196 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.model;
-
-import org.openecomp.vid.asdc.beans.tosca.Group;
-
-/**
- * The Class VolumeGroup.
- */
-public class VolumeGroup {
-
- /** The uuid. */
- private String uuid;
-
- /** The invariant uuid. */
- private String invariantUuid;
-
- /** The description. */
- private String description;
-
- /** The name. */
- private String name;
-
- /** The version. */
- private String version;
-
- /** The customization uuid. */
- private String customizationUuid;
-
- /** The customization uuid. */
- private String modelCustomizationName;
- /**
- * Instantiates a new volume group.
- */
- public VolumeGroup() {}
-
- /**
- * Gets the uuid.
- *
- * @return the uuid
- */
- public String getUuid() {
- return uuid;
- }
- /**
- * Gets the customization uuid.
- *
- * @return the customization uuid
- */
- public String getCustomizationUuid() {
- return customizationUuid;
- }
- /**
- * Gets the customization name.
- *
- * @return the customization name
- */
- public String getModelCustomizationName() {
- return modelCustomizationName;
- }
- /**
- * Gets the invariant uuid.
- *
- * @return the invariant uuid
- */
- public String getInvariantUuid() {
- return invariantUuid;
- }
-
- /**
- * Gets the description.
- *
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Gets the name.
- *
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * Gets the version.
- *
- * @return the version
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * Sets the uuid.
- *
- * @param uuid the new uuid
- */
- public void setUuid(String uuid) {
- this.uuid = uuid;
- }
-
- /**
- * Sets the invariant uuid.
- *
- * @param invariantUuid the new invariant uuid
- */
- public void setInvariantUuid(String invariantUuid) {
- this.invariantUuid = invariantUuid;
- }
-
- /**
- * Sets the description.
- *
- * @param description the new description
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- /**
- * Sets the name.
- *
- * @param name the new name
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * Sets the version.
- *
- * @param version the new version
- */
- public void setVersion(String version) {
- this.version = version;
- }
- /**
- * Sets the customization uuid.
- *
- * @param u the new customization uuid
- */
- public void setCustomizationUuid(String u) {
- this.customizationUuid = u;
-
- }
- /**
- * Sets the customization name.
- *
- * @param u the new customization name
- */
- public void setModelCustomizationName(String u) {
- this.modelCustomizationName = u;
-
- }
- /**
- * Extract volume group.
- *
- * @param group the group
- * @return the volume group
- */
- public static VolumeGroup extractVolumeGroup(String modelCustomizationName, Group group) {
- final VolumeGroup volumeGroup = new VolumeGroup();
-
- volumeGroup.setUuid(group.getMetadata().getVfModuleModelUUID());
- volumeGroup.setInvariantUuid(group.getMetadata().getVfModuleModelInvariantUUID());
- volumeGroup.setDescription(group.getMetadata().getDescription());
- volumeGroup.setName(group.getMetadata().getVfModuleModelName());
- volumeGroup.setVersion(group.getMetadata().getVfModuleModelVersion());
- volumeGroup.setCustomizationUuid(group.getMetadata().getVfModuleModelCustomizationUUID());
- volumeGroup.setModelCustomizationName(modelCustomizationName);
- return volumeGroup;
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.model; + +import org.onap.vid.asdc.beans.tosca.Group; + +/** + * The Class VolumeGroup. + */ +public class VolumeGroup { + + /** The uuid. */ + private String uuid; + + /** The invariant uuid. */ + private String invariantUuid; + + /** The description. */ + private String description; + + /** The name. */ + private String name; + + /** The version. */ + private String version; + + /** The customization uuid. */ + private String customizationUuid; + + /** The customization uuid. */ + private String modelCustomizationName; + /** + * Instantiates a new volume group. + */ + public VolumeGroup() {} + + /** + * Gets the uuid. + * + * @return the uuid + */ + public String getUuid() { + return uuid; + } + /** + * Gets the customization uuid. + * + * @return the customization uuid + */ + public String getCustomizationUuid() { + return customizationUuid; + } + /** + * Gets the customization name. + * + * @return the customization name + */ + public String getModelCustomizationName() { + return modelCustomizationName; + } + /** + * Gets the invariant uuid. + * + * @return the invariant uuid + */ + public String getInvariantUuid() { + return invariantUuid; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Gets the version. + * + * @return the version + */ + public String getVersion() { + return version; + } + + /** + * Sets the uuid. + * + * @param uuid the new uuid + */ + public void setUuid(String uuid) { + this.uuid = uuid; + } + + /** + * Sets the invariant uuid. + * + * @param invariantUuid the new invariant uuid + */ + public void setInvariantUuid(String invariantUuid) { + this.invariantUuid = invariantUuid; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Sets the name. + * + * @param name the new name + */ + public void setName(String name) { + this.name = name; + } + + /** + * Sets the version. + * + * @param version the new version + */ + public void setVersion(String version) { + this.version = version; + } + /** + * Sets the customization uuid. + * + * @param u the new customization uuid + */ + public void setCustomizationUuid(String u) { + this.customizationUuid = u; + + } + /** + * Sets the customization name. + * + * @param u the new customization name + */ + public void setModelCustomizationName(String u) { + this.modelCustomizationName = u; + + } + /** + * Extract volume group. + * + * @param group the group + * @return the volume group + */ + public static VolumeGroup extractVolumeGroup(String modelCustomizationName, Group group) { + final VolumeGroup volumeGroup = new VolumeGroup(); + + volumeGroup.setUuid(group.getMetadata().getVfModuleModelUUID()); + volumeGroup.setInvariantUuid(group.getMetadata().getVfModuleModelInvariantUUID()); + volumeGroup.setDescription(group.getMetadata().getDescription()); + volumeGroup.setName(group.getMetadata().getVfModuleModelName()); + volumeGroup.setVersion(group.getMetadata().getVfModuleModelVersion()); + volumeGroup.setCustomizationUuid(group.getMetadata().getVfModuleModelCustomizationUUID()); + volumeGroup.setModelCustomizationName(modelCustomizationName); + return volumeGroup; + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/Workflow.java b/vid-app-common/src/main/java/org/onap/vid/model/Workflow.java index 6032ec5aa..346138dc0 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/Workflow.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/Workflow.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.util.Collection; diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/MsoBusinessLogic.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoBusinessLogic.java new file mode 100644 index 000000000..c197299ff --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoBusinessLogic.java @@ -0,0 +1,99 @@ +package org.onap.vid.mso; + +import org.onap.vid.changeManagement.RequestDetailsWrapper; +import org.onap.vid.controller.OperationalEnvironmentController; +import org.onap.vid.mso.model.OperationalEnvironmentActivateInfo; +import org.onap.vid.mso.model.OperationalEnvironmentDeactivateInfo; +import org.onap.vid.mso.rest.OperationalEnvironment.OperationEnvironmentRequestDetails; +import org.onap.vid.mso.rest.Request; +import org.onap.vid.mso.rest.RequestDetails; +import org.onap.vid.mso.rest.Task; + +import java.util.List; + +public interface MsoBusinessLogic { + + // this function should get params from tosca and send them to instance at mso, then return success response. + MsoResponseWrapper createSvcInstance(RequestDetails msoRequest) throws Exception; + + MsoResponseWrapper createVnf(RequestDetails requestDetails, String serviceInstanceId) throws Exception; + + MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception; + + MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception; + + MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception; + + MsoResponseWrapper createConfigurationInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception; + + MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception; + + MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception; + + MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId, String vfModuleId) throws Exception; + + MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId, String volumeGroupId)throws Exception; + + MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String serviceInstanceId, String networkInstanceId) throws Exception; + + MsoResponseWrapper getOrchestrationRequest(String requestId)throws Exception; + + MsoResponseWrapper getOrchestrationRequests(String filterString)throws Exception; + + List<Request> getOrchestrationRequestsForDashboard()throws Exception; + + List<Task> getManualTasksByRequestId(String originalRequestId)throws Exception; + + MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String taskId)throws Exception; + + MsoResponseWrapper activateServiceInstance(RequestDetails requestDetails, String serviceInstanceId)throws Exception; + + MsoResponseWrapperInterface updateVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception; + + MsoResponseWrapperInterface replaceVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception; + + MsoResponseWrapperInterface updateVnfSoftware(org.onap.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception; + + MsoResponseWrapperInterface updateVnfConfig(org.onap.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception; + + MsoResponseWrapper deleteConfiguration( + RequestDetails requestDetails, + String serviceInstanceId, + String configurationId) throws Exception; + + MsoResponseWrapper setConfigurationActiveStatus( + RequestDetails requestDetails, + String serviceInstanceId, + String configurationId, + boolean isActivate) throws Exception; + + MsoResponseWrapper setPortOnConfigurationStatus( + RequestDetails requestDetails, + String serviceInstanceId, + String configurationId, + boolean isEnable) throws Exception; + + RequestDetailsWrapper<RequestDetails> createOperationalEnvironmentActivationRequestDetails(OperationalEnvironmentActivateInfo details); + + String getOperationalEnvironmentActivationPath(OperationalEnvironmentActivateInfo details); + + RequestDetailsWrapper<RequestDetails> createOperationalEnvironmentDeactivationRequestDetails(OperationalEnvironmentDeactivateInfo details); + + String getCloudResourcesRequestsStatusPath(String requestId); + + String getOperationalEnvironmentDeactivationPath(OperationalEnvironmentDeactivateInfo details); + + String getOperationalEnvironmentCreationPath(); + + RequestDetailsWrapper<OperationEnvironmentRequestDetails> convertParametersToRequestDetails(OperationalEnvironmentController.OperationalEnvironmentCreateBody input, String userId); + + MsoResponseWrapper removeRelationshipFromServiceInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception; + + MsoResponseWrapper addRelationshipToServiceInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception; + + MsoResponseWrapper setServiceInstanceStatus(RequestDetails requestDetails , String serviceInstanceId, boolean isActivate)throws Exception; + + RequestDetailsWrapper generateInPlaceMsoRequest(org.onap.vid.changeManagement.RequestDetails requestDetails) throws Exception; + + RequestDetailsWrapper generateConfigMsoRequest(org.onap.vid.changeManagement.RequestDetails requestDetails) throws Exception; +} diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/MsoBusinessLogicImpl.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoBusinessLogicImpl.java new file mode 100644 index 000000000..6ad6b5fd0 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoBusinessLogicImpl.java @@ -0,0 +1,800 @@ +package org.onap.vid.mso; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.changeManagement.ChangeManagementRequest; +import org.onap.vid.changeManagement.RequestDetailsWrapper; +import org.onap.vid.controller.OperationalEnvironmentController; +import org.onap.vid.domain.mso.RequestInfo; +import org.onap.vid.mso.model.OperationalEnvironmentActivateInfo; +import org.onap.vid.mso.model.OperationalEnvironmentDeactivateInfo; +import org.onap.vid.mso.rest.OperationalEnvironment.OperationEnvironmentRequestDetails; +import org.onap.vid.mso.rest.*; +import org.springframework.beans.factory.annotation.Autowired; + +import javax.ws.rs.BadRequestException; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.*; +import java.util.regex.Pattern; + +import static org.onap.vid.changeManagement.ChangeManagementRequest.MsoChangeManagementRequest; +import static org.onap.vid.controller.MsoController.*; +import static org.onap.vid.mso.MsoProperties.*; + +public class MsoBusinessLogicImpl implements MsoBusinessLogic { + + /** + * The Constant dateFormat. + */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + final static Pattern SOFTWARE_VERSION_PATTERN = Pattern.compile("^[A-Za-z0-9.\\-]+$"); + final static Pattern NUMBER_PATTERN = Pattern.compile("^[0-9]+$"); + private static final String ACTIVATE = "/activate"; + private static final String DEACTIVATE = "/deactivate"; + private static final String ENABLE_PORT = "/enablePort"; + private static final String DISABLE_PORT = "/disablePort"; + private final static String RESOURCE_TYPE_OPERATIONAL_ENVIRONMENT = "operationalEnvironment"; + private final static String SOURCE_OPERATIONAL_ENVIRONMENT = "VID"; + final static private ObjectMapper objectMapper = new ObjectMapper(); + /** + * The Mso REST client + * This should be replaced with mso client factory. + */ + private final MsoInterface msoClientInterface; + /** + * The logger. + */ + private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoBusinessLogicImpl.class); + + @Autowired + public MsoBusinessLogicImpl(MsoInterface msoClientInterface) { + this.msoClientInterface = msoClientInterface; + } + + static String validateEndpointPath(String endpointEnvVariable) { + String endpoint = SystemProperties.getProperty(endpointEnvVariable); + if (endpoint == null || endpoint.isEmpty()) { + throw new RuntimeException(endpointEnvVariable + " env variable is not defined"); + } + return endpoint; + } + + // this function should get params from tosca and send them to instance at mso, then return success response. + @Override + public MsoResponseWrapper createSvcInstance(RequestDetails msoRequest) throws Exception { + String methodName = "createSvcInstance "; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_SVC_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + return msoClientInterface.createSvcInstance(msoRequest, endpoint); + } + + void validateLineOfBusiness(RequestDetails requestDetails) { + + Object value = requestDetails.getAdditionalProperties(); + + for(String prop: ImmutableList.of("requestDetails", "lineOfBusiness", "lineOfBusinessName")) { + if(value==null ||!(value instanceof Map)) { + value = null; + break; + } + else { + value = ((Map)value).get(prop); + } + } + + if(value == null || value.toString().isEmpty()) { + throw new BadRequestException("lineOfBusiness is required"); + } + + } + + @Override + public MsoResponseWrapper createVnf(RequestDetails requestDetails, String serviceInstanceId) throws Exception { + String methodName = "createVnf"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + return msoClientInterface.createVnf(requestDetails, vnf_endpoint); + } + + @Override + public MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception { + String methodName = "createNwInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_NETWORK_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + String nw_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + return msoClientInterface.createNwInstance(requestDetails, nw_endpoint); + } + + @Override + public MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { + String methodName = "createVolumeGroupInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VOLUME_GROUP_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + vnf_endpoint = vnf_endpoint.replaceFirst(VNF_INSTANCE_ID, vnfInstanceId); + + return msoClientInterface.createVolumeGroupInstance(requestDetails, vnf_endpoint); + } + + @Override + public MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { + String methodName = "createVfModuleInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VF_MODULE_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + String partial_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + String vf_module_endpoint = partial_endpoint.replaceFirst(VNF_INSTANCE_ID, vnfInstanceId); + + return msoClientInterface.createVfModuleInstance(requestDetails, vf_module_endpoint); + } + + @Override + public MsoResponseWrapper createConfigurationInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception { + String methodName = "createConfigurationInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_CONFIGURATIONS); + endpoint = endpoint.replace(SVC_INSTANCE_ID, serviceInstanceId); + + return msoClientInterface.createConfigurationInstance(requestDetails, endpoint); + } + + @Override + public MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception { + String methodName = "deleteSvcInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_SVC_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + String svc_endpoint = endpoint + "/" + serviceInstanceId; + + return msoClientInterface.deleteSvcInstance(requestDetails, svc_endpoint); + } + + @Override + public MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { + String methodName = "deleteVnf"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_INSTANCE); + } catch (Exception exception) { + throw exception; + } + String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + vnf_endpoint = vnf_endpoint + '/' + vnfInstanceId; + + return msoClientInterface.deleteVnf(requestDetails, vnf_endpoint); + } + + @Override + public MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId, String vfModuleId) throws Exception { + String methodName = "deleteVfModule"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VF_MODULE_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + String vf__modules_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId).replaceFirst(VNF_INSTANCE_ID, vnfInstanceId); + + String delete_vf_endpoint = vf__modules_endpoint + '/' + vfModuleId; + + return msoClientInterface.deleteVfModule(requestDetails, delete_vf_endpoint); + } + + @Override + public MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId, String volumeGroupId) throws Exception { + String methodName = "deleteVolumeGroupInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VOLUME_GROUP_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + String svc_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + String vnf_endpoint = svc_endpoint.replaceFirst(VNF_INSTANCE_ID, vnfInstanceId); + String delete_volume_group_endpoint = vnf_endpoint + "/" + volumeGroupId; + + return msoClientInterface.deleteVolumeGroupInstance(requestDetails, delete_volume_group_endpoint); + } + + @Override + public MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String serviceInstanceId, String networkInstanceId) throws Exception { + String methodName = "deleteNwInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_NETWORK_INSTANCE); + } catch (Exception exception) { + throw exception; + } + + String svc_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + String delete_nw_endpoint = svc_endpoint + "/" + networkInstanceId; + + return msoClientInterface.deleteNwInstance(requestDetails, delete_nw_endpoint); + } + + @Override + public MsoResponseWrapper getOrchestrationRequest(String requestId) throws Exception { + String methodName = "getOrchestrationRequest"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + MsoResponseWrapper w = null; + try { + String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_ORC_REQ); + String path = p + "/" + requestId; + + RestObject<String> restObjStr = new RestObject<String>(); + String str = new String(); + restObjStr.set(str); + + msoClientInterface.getOrchestrationRequest(str, "", path, restObjStr); + + return MsoUtil.wrapResponse(restObjStr); + + } catch (Exception e) { + logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + @Override + public MsoResponseWrapper getOrchestrationRequests(String filterString) throws Exception { + String methodName = "getOrchestrationRequest"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + MsoResponseWrapper w = null; + try { + String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_ORC_REQS); + String path = p + filterString; + + RestObject<String> restObjStr = new RestObject<String>(); + String str = new String(); + restObjStr.set(str); + + msoClientInterface.getOrchestrationRequest(str, "", path, restObjStr); + + return MsoUtil.wrapResponse(restObjStr); + + } catch (Exception e) { + logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + @Override + public List<Request> getOrchestrationRequestsForDashboard() throws Exception { + String methodName = "getOrchestrationRequestsForDashboard"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + List<Request> filteredOrchestrationRequests = new ArrayList<>(); + try { + String path = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_ORC_REQS); + path += "filter=modelType:EQUALS:vnf"; + RestObject<String> restObjStr = new RestObject<String>(); + String str = new String(); + restObjStr.set(str); + + MsoResponseWrapper msoResponseWrapper = msoClientInterface.getOrchestrationRequestsForDashboard(str, "", path, restObjStr); + List<RequestWrapper> allOrchestrationRequests = deserializeOrchestrationRequestsJson(msoResponseWrapper.getEntity()); + + ; + for (RequestWrapper currentRequest : allOrchestrationRequests) { + if ((currentRequest.getRequest() != null) && (currentRequest.getRequest().getRequestScope() == Request.RequestScope.VNF) && ((currentRequest.getRequest().getRequestType() == + Request.RequestType.REPLACE_INSTANCE) || (currentRequest.getRequest().getRequestType() == + Request.RequestType.UPDATE_INSTANCE))) { + filteredOrchestrationRequests.add(currentRequest.getRequest()); + } + } + } catch (Exception e) { + logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + } + return filteredOrchestrationRequests; + + } + + private List<RequestWrapper> deserializeOrchestrationRequestsJson(String orchestrationRequestsJson) throws Exception { + String methodName = "deserializeOrchestrationRequestsJson"; + logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); + + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(DeserializationFeature.READ_ENUMS_USING_TO_STRING, true); + RequestList requestList = mapper.readValue(orchestrationRequestsJson, RequestList.class); + return requestList.getRequestList(); + } + + + @Override + public List<Task> getManualTasksByRequestId(String originalRequestId) throws Exception { + String methodName = "getManualTasksByRequestId"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + try { + String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_MAN_TASKS); + String path = p + "?originalRequestId=" + originalRequestId; + + RestObject<String> restObjStr = new RestObject<String>(); + String str = new String(); + restObjStr.set(str); + + MsoResponseWrapper msoResponseWrapper = msoClientInterface.getManualTasksByRequestId(str, "", path, restObjStr); + return deserializeManualTasksJson(msoResponseWrapper.getEntity()); + + } catch (Exception e) { + logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + private List<Task> deserializeManualTasksJson(String manualTasksJson) throws Exception { + String methodName = "deserializeManualTasksJson"; + logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); + + ObjectMapper mapper = new ObjectMapper(); + TaskList taskList = mapper.readValue(manualTasksJson, TaskList.class); + return taskList.getTaskList(); + } + + + @Override + public MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String taskId) throws Exception { + String methodName = "completeManualTask"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + MsoResponseWrapper w = null; + try { + String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_MAN_TASKS); + String path = p + "/" + taskId + "/complete"; + + RestObject<String> restObjStr = new RestObject<String>(); + String str = new String(); + restObjStr.set(str); + + msoClientInterface.completeManualTask(requestDetails, str, "", path, restObjStr); + + return MsoUtil.wrapResponse(restObjStr); + + } catch (Exception e) { + logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + @Override + public MsoResponseWrapper activateServiceInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception { + String methodName = "activateServiceInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + try { + String serviceEndpoint = SystemProperties.getProperty(MsoProperties.MSO_REST_API_SVC_INSTANCE); + String activateServicePath = serviceEndpoint + "/" + serviceInstanceId + "/activate"; + + RestObject<String> restObjStr = new RestObject<>(); + String str = ""; + restObjStr.set(str); + + msoClientInterface.setServiceInstanceStatus(requestDetails, str, "", activateServicePath, restObjStr); + + return MsoUtil.wrapResponse(restObjStr); + + } catch (Exception e) { + logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + + @Override + public MsoResponseWrapperInterface updateVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { + String methodName = "updateVnf"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_INSTANCE); + } catch (Exception exception) { + throw exception; + } + String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + vnf_endpoint = vnf_endpoint + '/' + vnfInstanceId; + return msoClientInterface.updateVnf(requestDetails, vnf_endpoint); + } + + @Override + public MsoResponseWrapperInterface replaceVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { + String methodName = "replaceVnf"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint; + try { + endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE); + } catch (Exception exception) { + throw exception; + } + String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + vnf_endpoint = vnf_endpoint.replace(VNF_INSTANCE_ID, vnfInstanceId); + vnf_endpoint = vnf_endpoint.replace(REQUEST_TYPE, MsoChangeManagementRequest.REPLACE); + return msoClientInterface.replaceVnf(requestDetails, vnf_endpoint); + } + + public RequestDetailsWrapper generateInPlaceMsoRequest(org.onap.vid.changeManagement.RequestDetails requestDetails) throws Exception { + validateUpdateVnfSoftwarePayload(requestDetails); + RequestDetails inPlaceSoftwareUpdateRequest = new RequestDetails(); + inPlaceSoftwareUpdateRequest.setCloudConfiguration(requestDetails.getCloudConfiguration()); + inPlaceSoftwareUpdateRequest.setRequestParameters(requestDetails.getRequestParameters()); + inPlaceSoftwareUpdateRequest.setRequestInfo(requestDetails.getRequestInfo()); + RequestDetailsWrapper requestDetailsWrapper = new RequestDetailsWrapper(); + requestDetailsWrapper.requestDetails = inPlaceSoftwareUpdateRequest; + return requestDetailsWrapper; + } + + @Override + public RequestDetailsWrapper generateConfigMsoRequest(org.onap.vid.changeManagement.RequestDetails requestDetails) throws Exception { + validateUpdateVnfConfig(requestDetails); + RequestDetails ConfigUpdateRequest = new RequestDetails(); + ConfigUpdateRequest.setRequestParameters(requestDetails.getRequestParameters()); + ConfigUpdateRequest.setRequestInfo(requestDetails.getRequestInfo()); + RequestDetailsWrapper requestDetailsWrapper = new RequestDetailsWrapper(); + requestDetailsWrapper.requestDetails = ConfigUpdateRequest; + return requestDetailsWrapper; + } + + @Override + public MsoResponseWrapperInterface updateVnfSoftware(org.onap.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { + String methodName = "updateVnfSoftware"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + String vnf_endpoint = getChangeManagementEndpoint(serviceInstanceId, vnfInstanceId, MsoChangeManagementRequest.SOFTWARE_UPDATE); //workflow name in mso is different than workflow name in vid UI + RequestDetailsWrapper finalRequestDetails = generateInPlaceMsoRequest(requestDetails); + return msoClientInterface.changeManagementUpdate(finalRequestDetails, vnf_endpoint); + } + + @Override + public MsoResponseWrapperInterface updateVnfConfig(org.onap.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { + String methodName = "updateVnfConfig"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + RequestDetailsWrapper finalRequestDetails = generateConfigMsoRequest(requestDetails); + String vnf_endpoint = getChangeManagementEndpoint(serviceInstanceId, vnfInstanceId, MsoChangeManagementRequest.CONFIG_UPDATE); + return msoClientInterface.changeManagementUpdate(finalRequestDetails, vnf_endpoint); + } + + private String getChangeManagementEndpoint(String serviceInstanceId, String vnfInstanceId, String vnfRequestType) { + String endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE); + String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); + vnf_endpoint = vnf_endpoint.replace(VNF_INSTANCE_ID, vnfInstanceId); + vnf_endpoint = vnf_endpoint.replace(REQUEST_TYPE, vnfRequestType); + return vnf_endpoint; + } + + private Map getChangeManagementPayload(RequestDetails requestDetails, String message) throws Exception{ + if(requestDetails.getRequestParameters()==null||requestDetails.getRequestParameters().getAdditionalProperties()==null){ + throw new BadRequestException(message); + } + Object payloadRaw=requestDetails.getRequestParameters().getAdditionalProperties().get("payload"); + try{ + return objectMapper.readValue((String)payloadRaw,Map.class); + } + catch(Exception exception){ + throw new BadRequestException(message); + } + } + + private void validateUpdateVnfSoftwarePayload(RequestDetails requestDetails) throws Exception { + final String noValidPayloadMsg = "No valid payload in " + ChangeManagementRequest.VNF_IN_PLACE_SOFTWARE_UPDATE + " request"; + + Map payload = getChangeManagementPayload(requestDetails, noValidPayloadMsg); + validateUpdateVnfSoftwarePayloadProperty(payload, noValidPayloadMsg, "existing-software-version", SOFTWARE_VERSION_PATTERN); + validateUpdateVnfSoftwarePayloadProperty(payload, noValidPayloadMsg, "new-software-version", SOFTWARE_VERSION_PATTERN); + + //if "operations-timeout" is not integer, trying to read it as String that represent a number + if (!(payload.get("operations-timeout") instanceof Integer)) { + validateUpdateVnfSoftwarePayloadProperty(payload, noValidPayloadMsg, "operations-timeout", NUMBER_PATTERN); + } + + } + + private void validateUpdateVnfSoftwarePayloadProperty(Map payload, String noValidPayloadMsg, String propertyName, Pattern pattern) { + Object forValidation = payload.get(propertyName); + final String noValidPayloadPropertyMsg = noValidPayloadMsg + ", " + propertyName + " property is not valid"; + if (!(forValidation instanceof String)) { + throw new BadRequestException(noValidPayloadPropertyMsg); + } + if (!pattern.matcher((String) forValidation).matches()) { + throw new BadRequestException(noValidPayloadPropertyMsg); + } + } + + private void validateUpdateVnfConfig(RequestDetails requestDetails) throws Exception { + final String noValidPayloadMsg = "No valid payload in " + ChangeManagementRequest.CONFIG_UPDATE + " request"; + + Map payload = getChangeManagementPayload(requestDetails, noValidPayloadMsg); + validateConfigUpdateVnfPayloadProperty(payload, noValidPayloadMsg, "request-parameters"); + validateConfigUpdateVnfPayloadProperty(payload, noValidPayloadMsg, "configuration-parameters"); + } + + private void validateConfigUpdateVnfPayloadProperty(Map payload, String noValidPayloadMsg, String propertyName) { + Object forValidation = payload.get(propertyName); + final String noValidPayloadPropertyMsg = noValidPayloadMsg+ ", "+ propertyName + " property is not valid"; + if(!payload.containsKey(propertyName)) { + throw new BadRequestException( noValidPayloadPropertyMsg); + } + } + + @Override + public MsoResponseWrapper deleteConfiguration( + RequestDetails requestDetails, + String serviceInstanceId, + String configurationId) throws Exception { + + String methodName = "deleteConfiguration"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_CONFIGURATION_INSTANCE); + endpoint = endpoint.replace(SVC_INSTANCE_ID, serviceInstanceId); + endpoint = endpoint.replace(CONFIGURATION_ID, configurationId); + + return msoClientInterface.deleteConfiguration(requestDetails, endpoint); + } + + @Override + public MsoResponseWrapper setConfigurationActiveStatus( + RequestDetails requestDetails, + String serviceInstanceId, + String configurationId, + boolean isActivate) throws Exception { + + String methodName = "setConfigurationActiveStatus"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_CONFIGURATION_INSTANCE); + endpoint = endpoint.replace(SVC_INSTANCE_ID, serviceInstanceId); + endpoint = endpoint.replace(CONFIGURATION_ID, configurationId); + + String isActivateState = (isActivate ? ACTIVATE : DEACTIVATE); + endpoint = endpoint + isActivateState; + + return msoClientInterface.setConfigurationActiveStatus(requestDetails, endpoint); + } + + @Override + public MsoResponseWrapper setServiceInstanceStatus(RequestDetails requestDetails , String serviceInstanceId, boolean isActivate)throws Exception{ + String methodName = "setServiceInstanceStatus"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + try { + String serviceEndpoint = validateEndpointPath(MsoProperties.MSO_REST_API_SVC_INSTANCE); + String endpoint = serviceEndpoint + "/" + serviceInstanceId; + + String isActivateState = (isActivate ? ACTIVATE : DEACTIVATE); + endpoint = endpoint + isActivateState; + + + RestObject<String> restObjStr = new RestObject<>(); + String str = ""; + restObjStr.set(str); + + msoClientInterface.setServiceInstanceStatus(requestDetails , str, "", endpoint, restObjStr); + + return MsoUtil.wrapResponse(restObjStr); + + } catch (Exception e) { + logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + @Override + public MsoResponseWrapper setPortOnConfigurationStatus( + RequestDetails requestDetails, + String serviceInstanceId, + String configurationId, + boolean isEnable) throws Exception { + String methodName = "setPortOnConfigurationStatus"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_CONFIGURATION_INSTANCE); + endpoint = endpoint.replace(SVC_INSTANCE_ID, serviceInstanceId); + endpoint = endpoint.replace(CONFIGURATION_ID, configurationId); + + String isEnablePortStatus = (isEnable ? ENABLE_PORT : DISABLE_PORT); + endpoint = endpoint + isEnablePortStatus; + + return msoClientInterface.setPortOnConfigurationStatus(requestDetails, endpoint); + } + + + @Override + public RequestDetailsWrapper<RequestDetails> createOperationalEnvironmentActivationRequestDetails(OperationalEnvironmentActivateInfo details) { + RequestDetails requestDetails = new RequestDetails(); + RequestInfo requestInfo = new RequestInfo(); + requestInfo.setAdditionalProperty("resourceType", RESOURCE_TYPE_OPERATIONAL_ENVIRONMENT); + requestInfo.setSource(SOURCE_OPERATIONAL_ENVIRONMENT); + requestInfo.setRequestorId(details.getUserId()); + requestDetails.setRequestInfo(requestInfo); + + org.onap.vid.domain.mso.RelatedInstance relatedInstance = new org.onap.vid.domain.mso.RelatedInstance(); + relatedInstance.setAdditionalProperty("resourceType", RESOURCE_TYPE_OPERATIONAL_ENVIRONMENT); + relatedInstance.setInstanceId(details.getRelatedInstanceId()); + relatedInstance.setInstanceName(details.getRelatedInstanceName()); + requestDetails.setAdditionalProperty("relatedInstanceList", Collections.singletonList(ImmutableMap.of("relatedInstance", relatedInstance))); + + org.onap.vid.domain.mso.RequestParameters requestParameters = new org.onap.vid.domain.mso.RequestParameters(); + requestParameters.setUserParams(null); + requestParameters.setAdditionalProperty("operationalEnvironmentType", "VNF"); + requestParameters.setAdditionalProperty("workloadContext", details.getWorkloadContext()); + requestParameters.setAdditionalProperty("manifest", details.getManifest()); + requestDetails.setRequestParameters(requestParameters); + + RequestDetailsWrapper<RequestDetails> requestDetailsWrapper = new RequestDetailsWrapper<>(requestDetails); + + debugRequestDetails(requestDetailsWrapper); + + return requestDetailsWrapper; + } + + @Override + public String getOperationalEnvironmentActivationPath(OperationalEnvironmentActivateInfo details) { + String path = validateEndpointPath(MSO_REST_API_OPERATIONAL_ENVIRONMENT_ACTIVATE); + path = path.replace("<operational_environment_id>", details.getOperationalEnvironmentId()); + return path; + } + + @Override + public RequestDetailsWrapper<RequestDetails> createOperationalEnvironmentDeactivationRequestDetails(OperationalEnvironmentDeactivateInfo details) { + RequestDetails requestDetails = new RequestDetails(); + + RequestInfo requestInfo = new RequestInfo(); + requestInfo.setAdditionalProperty("resourceType", RESOURCE_TYPE_OPERATIONAL_ENVIRONMENT); + requestInfo.setSource(SOURCE_OPERATIONAL_ENVIRONMENT); + requestInfo.setRequestorId(details.getUserId()); + requestDetails.setRequestInfo(requestInfo); + + org.onap.vid.domain.mso.RequestParameters requestParameters = new org.onap.vid.domain.mso.RequestParameters(); + requestParameters.setUserParams(null); + requestParameters.setAdditionalProperty("operationalEnvironmentType", "VNF"); + requestDetails.setRequestParameters(requestParameters); + RequestDetailsWrapper<RequestDetails> requestDetailsWrapper = new RequestDetailsWrapper<>(requestDetails); + debugRequestDetails(requestDetailsWrapper); + return requestDetailsWrapper; + } + + @Override + public String getCloudResourcesRequestsStatusPath(String requestId) { + String path = validateEndpointPath(MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS); + path = path.replace("<request_id>", requestId); + return path; + } + + @Override + public String getOperationalEnvironmentDeactivationPath(OperationalEnvironmentDeactivateInfo details) { + String path = validateEndpointPath(MSO_REST_API_OPERATIONAL_ENVIRONMENT_DEACTIVATE); + path = path.replace("<operational_environment_id>", details.getOperationalEnvironmentId()); + return path; + } + + private void debugRequestDetails(Object requestDetails) { + if (logger.isDebugEnabled()) { + String requestDetailsAsString; + try { + requestDetailsAsString = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT).writeValueAsString(requestDetails); + } catch (JsonProcessingException e) { + requestDetailsAsString = "error: cannot stringify RequestDetails"; + } + logger.debug(EELFLoggerDelegate.debugLogger, "requestDetailsAsString: {}", requestDetailsAsString); + } + } + + @Override + public String getOperationalEnvironmentCreationPath() { + String path = validateEndpointPath(MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE); + return path; + } + + @Override + public RequestDetailsWrapper<OperationEnvironmentRequestDetails> convertParametersToRequestDetails(OperationalEnvironmentController.OperationalEnvironmentCreateBody input, String userId) { + OperationEnvironmentRequestDetails.RequestInfo requestInfo = new OperationEnvironmentRequestDetails.RequestInfo( + RESOURCE_TYPE_OPERATIONAL_ENVIRONMENT, + input.getInstanceName(), + SOURCE_OPERATIONAL_ENVIRONMENT, + userId); + + OperationEnvironmentRequestDetails.RelatedInstance relatedInstance = new OperationEnvironmentRequestDetails.RelatedInstance( + RESOURCE_TYPE_OPERATIONAL_ENVIRONMENT, + input.getEcompInstanceId(), + input.getEcompInstanceName()); + + List<OperationEnvironmentRequestDetails.RelatedInstance> relatedInstanceList = Collections.singletonList((relatedInstance)); + + OperationEnvironmentRequestDetails.RequestParameters requestParameters = new OperationEnvironmentRequestDetails.RequestParameters( + input.getOperationalEnvironmentType(), + input.getTenantContext(), + input.getWorkloadContext()); + + OperationEnvironmentRequestDetails requestDetails = new OperationEnvironmentRequestDetails(requestInfo, relatedInstanceList, requestParameters); + RequestDetailsWrapper<OperationEnvironmentRequestDetails> requestDetailsWrapper = new RequestDetailsWrapper<>(requestDetails); + debugRequestDetails(requestDetailsWrapper); + return requestDetailsWrapper; + } + + @Override + public MsoResponseWrapper removeRelationshipFromServiceInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception { + String methodName = "removeRelationshipFromServiceInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String serviceEndpoint = SystemProperties.getProperty(MsoProperties.MSO_REST_API_SVC_INSTANCE); + String removeRelationshipsPath = serviceEndpoint + "/" + serviceInstanceId + "/removeRelationships"; + + return msoClientInterface.removeRelationshipFromServiceInstance(requestDetails, removeRelationshipsPath); + } + + @Override + public MsoResponseWrapper addRelationshipToServiceInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception { + String methodName = "addRelationshipToServiceInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + String serviceEndpoint = SystemProperties.getProperty(MsoProperties.MSO_REST_API_SVC_INSTANCE); + String addRelationshipsPath = serviceEndpoint + "/" + serviceInstanceId + "/addRelationships"; + + return msoClientInterface.addRelationshipToServiceInstance(requestDetails, addRelationshipsPath); + } + + +}
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoInterface.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoInterface.java index cdeb1bbd2..2d09630f0 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoInterface.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoInterface.java @@ -1,10 +1,7 @@ -package org.openecomp.vid.mso; +package org.onap.vid.mso; -import org.openecomp.vid.mso.rest.Request; -import org.openecomp.vid.mso.rest.RequestDetails; -import org.openecomp.vid.mso.rest.Task; - -import java.util.List; +import org.onap.vid.changeManagement.RequestDetailsWrapper; +import org.onap.vid.mso.rest.RequestDetails; /** * Created by pickjonathan on 21/06/2017. @@ -47,6 +44,8 @@ public interface MsoInterface { */ MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String endpoint) throws Exception; + MsoResponseWrapper createConfigurationInstance(RequestDetails requestDetails, String endpoint) throws Exception; + MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception; MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String endpoint) throws Exception; @@ -65,11 +64,22 @@ public interface MsoInterface { MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject restObject) throws Exception; - MsoResponseWrapper updateVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception; + MsoResponseWrapper updateVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception; + + MsoResponseWrapper replaceVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception; + + MsoResponseWrapper deleteConfiguration(RequestDetails requestDetails, String pmc_endpoint) throws Exception; - MsoResponseWrapper replaceVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception; + MsoResponseWrapper setConfigurationActiveStatus(RequestDetails requestDetails, String endpoint) throws Exception; + MsoResponseWrapper setPortOnConfigurationStatus(RequestDetails requestDetails, String endpoint) throws Exception; - void activateServiceInstance(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception; + void setServiceInstanceStatus(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception; + MsoResponseWrapperInterface changeManagementUpdate(RequestDetailsWrapper requestDetails, String endpoint) throws Exception; + + MsoResponseWrapper removeRelationshipFromServiceInstance(RequestDetails requestDetails, String endpoint) throws Exception; + + MsoResponseWrapper addRelationshipToServiceInstance(RequestDetails requestDetails, String addRelationshipsPath) throws Exception; } + diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoProperties.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoProperties.java index 0eed0e1d1..607d84194 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoProperties.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoProperties.java @@ -1,105 +1,119 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso;
-
-import org.openecomp.portalsdk.core.util.SystemProperties;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-
-/**
- * The Class MsoProperties.
- */
-public class MsoProperties extends SystemProperties {
-
- /** The Constant MSO_SERVER_URL. */
- //VID Properties related to MSO
- public static final String MSO_SERVER_URL = "mso.server.url";
-
- /** The Constant MSO_DME2_SERVER_URL. */
- public static final String MSO_DME2_SERVER_URL = "mso.dme2.server.url";
-
- /** The Constant MSO_DME2_CLIENT_TIMEOUT. */
- public static final String MSO_DME2_CLIENT_TIMEOUT = "mso.dme2.client.timeout";
-
- /** The Constant MSO_DME2_CLIENT_READ_TIMEOUT. */
- public static final String MSO_DME2_CLIENT_READ_TIMEOUT = "mso.dme2.client.read.timeout";
-
- /** The Constant MSO_SERVER_URL_DEFAULT. */
- public static final String MSO_SERVER_URL_DEFAULT= "";
-
- /** The Constant MSO_POLLING_INTERVAL_MSECS. */
- // number of msecs to wait between polling requests
- public static final String MSO_POLLING_INTERVAL_MSECS = "mso.polling.interval.msecs";
-
- /** The Constant MSO_POLLING_INTERVAL_MSECS_DEFAULT. */
- public static final String MSO_POLLING_INTERVAL_MSECS_DEFAULT = "60000";
-
- /** The Constant MSO_DME2_ENABLED. */
- public static final String MSO_DME2_ENABLED = "mso.dme2.enabled";
-
- /** The Constant MSO_MAX_POLLS. */
- public static final String MSO_MAX_POLLS = "mso.max.polls";
-
- /** The Constant MSO_MAX_POLLS_DEFAULT. */
- public static final String MSO_MAX_POLLS_DEFAULT = "10"; //10
-
- /** The Constant MSO_USER_NAME. */
- public static final String MSO_USER_NAME = "mso.user.name"; //m03346
-
- /** The Constant MSO_PASSWORD. */
- public static final String MSO_PASSWORD = "mso.password.x";
-
- /** The Constant MSO_REST_API_SVC_INSTANCE. */
- public static final String MSO_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance"; // /serviceInstances/v2
-
- /** The Constant MSO_REST_API_VNF_INSTANCE. */
- public static final String MSO_REST_API_VNF_INSTANCE = "mso.restapi.vnf.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs
-
- /** The Constant MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE. */
- public static final String MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE = "mso.restapi.vnf.changemanagement.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs/{request_type}
-
- /** The Constant MSO_REST_API_NETWORK_INSTANCE. */
- public static final String MSO_REST_API_NETWORK_INSTANCE = "mso.restapi.network.instance"; // /serviceInstances/v2/{serviceInstanceId}/networks
-
- /** The Constant MSO_REST_API_GET_ORC_REQ. */
- public static final String MSO_REST_API_GET_ORC_REQ = "mso.restapi.get.orc.req";
-
- /** The Constant MSO_REST_API_GET_ORC_REQS. */
- public static final String MSO_REST_API_GET_ORC_REQS = "mso.restapi.get.orc.reqs";
-
- /** The Constant MSO_REST_API_GET_MAN_TASK. */
- public static final String MSO_REST_API_GET_MAN_TASKS = "mso.restapi.get.man.tasks";
-
- /** The Constant MSO_REST_API_VF_MODULE_INSTANCE. */
- public static final String MSO_REST_API_VF_MODULE_INSTANCE = "mso.restapi.vf.module.instance";
-
- /** The Constant MSO_REST_API_VOLUME_GROUP_INSTANCE. */
- public static final String MSO_REST_API_VOLUME_GROUP_INSTANCE = "mso.restapi.volume.group.instance"; //serviceInstances/v2/{serviceInstanceId}/volumeGroups
-
- /** The logger. */
- public EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoProperties.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; + +/** + * The Class MsoProperties. + */ +public class MsoProperties extends SystemProperties { + + /** The Constant MSO_SERVER_URL. */ + //VID Properties related to MSO + public static final String MSO_SERVER_URL = "mso.server.url"; + + /** The Constant MSO_DME2_SERVER_URL. */ + public static final String MSO_DME2_SERVER_URL = "mso.dme2.server.url"; + + /** The Constant MSO_DME2_CLIENT_TIMEOUT. */ + public static final String MSO_DME2_CLIENT_TIMEOUT = "mso.dme2.client.timeout"; + + /** The Constant MSO_DME2_CLIENT_READ_TIMEOUT. */ + public static final String MSO_DME2_CLIENT_READ_TIMEOUT = "mso.dme2.client.read.timeout"; + + /** The Constant MSO_SERVER_URL_DEFAULT. */ + public static final String MSO_SERVER_URL_DEFAULT= ""; + + /** The Constant MSO_POLLING_INTERVAL_MSECS. */ + // number of msecs to wait between polling requests + public static final String MSO_POLLING_INTERVAL_MSECS = "mso.polling.interval.msecs"; + + /** The Constant MSO_POLLING_INTERVAL_MSECS_DEFAULT. */ + public static final String MSO_POLLING_INTERVAL_MSECS_DEFAULT = "60000"; + + /** The Constant MSO_DME2_ENABLED. */ + public static final String MSO_DME2_ENABLED = "mso.dme2.enabled"; + + /** The Constant MSO_MAX_POLLS. */ + public static final String MSO_MAX_POLLS = "mso.max.polls"; + + /** The Constant MSO_MAX_POLLS_DEFAULT. */ + public static final String MSO_MAX_POLLS_DEFAULT = "10"; //10 + + /** The Constant MSO_USER_NAME. */ + public static final String MSO_USER_NAME = "mso.user.name"; //m03346 + + /** The Constant MSO_PASSWORD. */ + public static final String MSO_PASSWORD = "mso.password.x"; + + /** The Constant MSO_REST_API_SVC_INSTANCE. */ + public static final String MSO_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance"; // /serviceInstances/v2 + + /** The Constant MSO_REST_API_VNF_INSTANCE. */ + public static final String MSO_REST_API_VNF_INSTANCE = "mso.restapi.vnf.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs + + /** The Constant MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE. */ + public static final String MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE = "mso.restapi.vnf.changemanagement.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs/{request_type} + + /** The Constant MSO_REST_API_NETWORK_INSTANCE. */ + public static final String MSO_REST_API_NETWORK_INSTANCE = "mso.restapi.network.instance"; // /serviceInstances/v2/{serviceInstanceId}/networks + + /** The Constant MSO_REST_API_GET_ORC_REQ. */ + public static final String MSO_REST_API_GET_ORC_REQ = "mso.restapi.get.orc.req"; + + /** The Constant MSO_REST_API_GET_ORC_REQS. */ + public static final String MSO_REST_API_GET_ORC_REQS = "mso.restapi.get.orc.reqs"; + + /** The Constant MSO_REST_API_GET_MAN_TASK. */ + public static final String MSO_REST_API_GET_MAN_TASKS = "mso.restapi.get.man.tasks"; + + /** The Constant MSO_REST_API_VF_MODULE_INSTANCE. */ + public static final String MSO_REST_API_VF_MODULE_INSTANCE = "mso.restapi.vf.module.instance"; + + /** The Constant MSO_REST_API_VOLUME_GROUP_INSTANCE. */ + public static final String MSO_REST_API_VOLUME_GROUP_INSTANCE = "mso.restapi.volume.group.instance"; //serviceInstances/v2/{serviceInstanceId}/volumeGroups + + /** The Constant MSO_REST_API_CONFIGURATION_INSTANCE. */ + public static final String MSO_REST_API_CONFIGURATIONS = "mso.restapi.configurations"; //serviceInstances/v5/{serviceInstanceId}/configurations/ + public static final String MSO_REST_API_CONFIGURATION_INSTANCE = "mso.restapi.configuration.instance"; //serviceInstances/v5/{serviceInstanceId}/configurations/{configurationId} + + /** The Constant MSO_REST_API_OPERATIONAL_ENVIRONMENT */ + public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_ACTIVATE = "mso.restapi.operationalEnvironment.activate"; + public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_DEACTIVATE = "mso.restapi.operationalEnvironment.deactivate"; + + /** The Constant MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE */ + public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE = "mso.restapi.operationalEnvironment.create"; + + /** The Constant MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS */ + public static final String MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS = "mso.restapi.operationalEnvironment.cloudResourcesRequests.status"; + + /** The logger. */ + public EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoProperties.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoResponseWrapper.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper.java index d5a4a87ef..b890114b5 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoResponseWrapper.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper.java @@ -1,107 +1,129 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import org.apache.commons.lang.builder.ToStringBuilder;
-
-/**
- * This wrapper encapsulates the MSO response in the format expected by the pages.
- */
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonPropertyOrder({
- "status",
- "entity"
-})
-
-public class MsoResponseWrapper {
-
- /** The status. */
- @JsonProperty("status")
- private int status;
-
- /** The entity. */
- @JsonProperty("entity")
- private String entity;
-
- /**
- * Gets the entity.
- *
- * @return the entity
- */
- @JsonProperty("entity")
- public String getEntity() {
- return entity;
- }
-
- /**
- * Gets the status.
- *
- * @return the status
- */
- @JsonProperty("status")
- public int getStatus() {
- return status;
- }
-
- /**
- * Sets the status.
- *
- * @param v the new status
- */
- @JsonProperty("status")
- public void setStatus(int v) {
- this.status = v;
- }
-
- /**
- * Sets the entity.
- *
- * @param v the new entity
- */
- @JsonProperty("entity")
- public void setEntity(String v) {
- this.entity = v;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
-
- /**
- * Gets the response.
- *
- * @return the response
- */
- public String getResponse () {
-
- StringBuilder b = new StringBuilder ("{ \"status\": ");
- b.append(getStatus()).append(", \"entity\": " ).append(this.getEntity()).append("}");
- return (b.toString());
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.ToStringBuilder; + +import javax.ws.rs.core.Response; + +/** + * This wrapper encapsulates the MSO response in the format expected by the pages. + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "status", + "entity" +}) + +public class MsoResponseWrapper implements MsoResponseWrapperInterface { + + + public MsoResponseWrapper() { + } + + public MsoResponseWrapper(Response response) { + setEntity(response.readEntity(String.class)); + setStatus(response.getStatus()); + } + + + /** The status. */ + @JsonProperty("status") + private int status; + + /** The entity. */ + @JsonProperty("entity") + private String entity; + + /** + * Gets the entity. + * + * @return the entity + */ + @Override + @JsonProperty("entity") + public String getEntity() { + return entity; + } + + /** + * Gets the status. + * + * @return the status + */ + @Override + @JsonProperty("status") + public int getStatus() { + return status; + } + + /** + * Sets the status. + * + * @param v the new status + */ + @JsonProperty("status") + public void setStatus(int v) { + this.status = v; + } + + /** + * Sets the entity. + * + * @param v the new entity + */ + @JsonProperty("entity") + public void setEntity(String v) { + this.entity = v; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + /** + * Gets the response. + * + * @return the response + */ + @org.codehaus.jackson.annotate.JsonIgnore + @com.fasterxml.jackson.annotation.JsonIgnore + public String getResponse () { + + StringBuilder b = new StringBuilder ("{ \"status\": "); + b.append(getStatus()).append(", \"entity\": " ); + if (this.getEntity() == null || this.getEntity().isEmpty()) { + b.append("\"\""); + } else { + b.append(this.getEntity()); + } + b.append("}"); + return (b.toString()); + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java new file mode 100644 index 000000000..5a73a048a --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java @@ -0,0 +1,60 @@ +package org.onap.vid.mso; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; + +@JsonPropertyOrder({ + "status", + "entity" +}) + +/* +This is a brother of MsoResponseWrapper. I (Ittay) think it's better. +It is generic, immutable, and has some knowledge about RestObject. +The serialized "entity" field may be either String or nested object. + */ +public class MsoResponseWrapper2<T> implements MsoResponseWrapperInterface { + + final static ObjectMapper objectMapper = new ObjectMapper(); + + private final int status; + private final T entity; + private final String raw; + + public MsoResponseWrapper2(RestObject<T> msoResponse) { + this.status = msoResponse.getStatusCode(); + this.entity = msoResponse.get(); + this.raw = msoResponse.getRaw(); + } + + public MsoResponseWrapper2( + @JsonProperty(value = "status", required = true) int status, + @JsonProperty(value = "entity", required = true) T entity) { + this.status = status; + this.entity = entity; + this.raw = null; + } + + public int getStatus() { + return status; + } + + @Override + @org.codehaus.jackson.annotate.JsonIgnore + @com.fasterxml.jackson.annotation.JsonIgnore + public String getResponse() { + try { + return objectMapper.writeValueAsString(this); + } catch (JsonProcessingException e) { + return getEntity() != null ? getEntity().toString() : null; + } + } + + @JsonProperty + public Object getEntity() { + return entity != null ? entity : raw; + } + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapperInterface.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapperInterface.java new file mode 100644 index 000000000..ad251bdeb --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapperInterface.java @@ -0,0 +1,15 @@ +package org.onap.vid.mso; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public interface MsoResponseWrapperInterface { + @JsonProperty("entity") + Object getEntity(); + + @JsonProperty("status") + int getStatus(); + + @org.codehaus.jackson.annotate.JsonIgnore + @com.fasterxml.jackson.annotation.JsonIgnore + String getResponse(); +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoUtil.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoUtil.java index 2c0148bb7..eae705aba 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoUtil.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoUtil.java @@ -1,125 +1,126 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import org.glassfish.jersey.client.ClientResponse;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.vid.controller.MsoController;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-/**
- * The Class MsoUtil.
- */
-public class MsoUtil {
-
- /** The logger. */
- private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoController.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /**
- * Wrap response.
- *
- * @param body the body
- * @param statusCode the status code
- * @return the mso response wrapper
- */
- public static MsoResponseWrapper wrapResponse ( String body, int statusCode ) {
-
- MsoResponseWrapper w = new MsoResponseWrapper();
- w.setStatus (statusCode);
- w.setEntity(body);
-
- return w;
- }
-
- /**
- * Wrap response.
- *
- * @param cres the cres
- * @return the mso response wrapper
- */
- public static MsoResponseWrapper wrapResponse (ClientResponse cres) {
- String resp_str = "";
- if ( cres != null ) {
- resp_str = cres.readEntity(String.class);
- }
- int statuscode = cres.getStatus();
- MsoResponseWrapper w = MsoUtil.wrapResponse ( resp_str, statuscode );
- return (w);
- }
-
- /**
- * Wrap response.
- *
- * @param rs the rs
- * @return the mso response wrapper
- */
- public static MsoResponseWrapper wrapResponse (RestObject<String> rs) {
- String resp_str = "";
- int status = 0;
- if ( rs != null ) {
- resp_str = rs.get();
- status = rs.getStatusCode();
- }
- MsoResponseWrapper w = MsoUtil.wrapResponse ( resp_str, status );
- return (w);
- }
-
- /**
- * Convert pojo to string.
- *
- * @param <T> the generic type
- * @param t the t
- * @return the string
- * @throws JsonProcessingException the json processing exception
- */
- public static <T> String convertPojoToString ( T t ) throws com.fasterxml.jackson.core.JsonProcessingException {
-
- String methodName = "convertPojoToString";
- ObjectMapper mapper = new ObjectMapper();
- String r_json_str = "";
- if ( t != null ) {
- try {
- r_json_str = mapper.writeValueAsString(t);
- }
- catch ( com.fasterxml.jackson.core.JsonProcessingException j ) {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " Unable to parse object as json");
- }
- }
- return (r_json_str);
- }
-
- /**
- * The main method.
- *
- * @param args the arguments
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
-
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.glassfish.jersey.client.ClientResponse; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; + +import static org.onap.vid.utils.Logging.getMethodName; + +/** + * The Class MsoUtil. + */ +public class MsoUtil { + + /** The logger. */ + private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoUtil.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + /** + * Wrap response. + * + * @param body the body + * @param statusCode the status code + * @return the mso response wrapper + */ + public static MsoResponseWrapper wrapResponse ( String body, int statusCode ) { + + MsoResponseWrapper w = new MsoResponseWrapper(); + w.setStatus (statusCode); + w.setEntity(body); + + return w; + } + + /** + * Wrap response. + * + * @param cres the cres + * @return the mso response wrapper + */ + public static MsoResponseWrapper wrapResponse (ClientResponse cres) { + String resp_str = ""; + if ( cres != null ) { + resp_str = cres.readEntity(String.class); + } + int statuscode = cres.getStatus(); + MsoResponseWrapper w = MsoUtil.wrapResponse ( resp_str, statuscode ); + return (w); + } + + /** + * Wrap response. + * + * @param rs the rs + * @return the mso response wrapper + */ + public static MsoResponseWrapper wrapResponse (RestObject<String> rs) { + String resp_str = null; + int status = 0; + if ( rs != null ) { + resp_str = rs.get() != null ? rs.get() : rs.getRaw(); + status = rs.getStatusCode(); + } + MsoResponseWrapper w = MsoUtil.wrapResponse ( resp_str, status ); + return (w); + } + + /** + * Convert pojo to string. + * + * @param <T> the generic type + * @param t the t + * @return the string + * @throws JsonProcessingException the json processing exception + */ + public static <T> String convertPojoToString ( T t ) { + + String methodName = "convertPojoToString"; + ObjectMapper mapper = new ObjectMapper(); + String r_json_str = ""; + if ( t != null ) { + try { + r_json_str = mapper.writeValueAsString(t); + } + catch ( com.fasterxml.jackson.core.JsonProcessingException j ) { + logger.debug(EELFLoggerDelegate.debugLogger,getMethodName() + " Unable to parse object of type " + t.getClass().getName() + " as json", j); + } + } + return (r_json_str); + } + + /** + * The main method. + * + * @param args the arguments + */ + public static void main(String[] args) { + // TODO Auto-generated method stub + + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/RestMsoImplementation.java b/vid-app-common/src/main/java/org/onap/vid/mso/RestMsoImplementation.java index ba0fdfaa8..8cee23b49 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/RestMsoImplementation.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/RestMsoImplementation.java @@ -1,18 +1,23 @@ -package org.openecomp.vid.mso; +package org.onap.vid.mso; +import com.att.eelf.configuration.EELFLogger; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.commons.codec.binary.Base64; import org.eclipse.jetty.util.security.Password; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.vid.changeManagement.MsoRequestDetails; -import org.openecomp.vid.client.HttpBasicClient; -import org.openecomp.vid.client.HttpsBasicClient; -import org.openecomp.vid.mso.rest.RequestDetails; -import org.openecomp.vid.mso.rest.RestInterface; - +import org.onap.vid.client.HttpBasicClient; +import org.onap.vid.client.HttpsBasicClient; +import org.onap.vid.mso.rest.RequestDetails; +import org.onap.vid.mso.rest.RestInterface; +import org.onap.vid.utils.Logging; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpMethod; + +import javax.servlet.http.HttpServletRequest; import javax.ws.rs.client.Client; import javax.ws.rs.client.Entity; +import javax.ws.rs.client.Invocation; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedHashMap; import javax.ws.rs.core.Response; @@ -21,6 +26,8 @@ import java.text.SimpleDateFormat; import java.util.Collections; import java.util.Date; +import static org.onap.vid.utils.Logging.*; + /** * Created by pickjonathan on 26/06/2017. */ @@ -30,6 +37,7 @@ public class RestMsoImplementation implements RestInterface { * The logger. */ EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(RestMsoImplementation.class); + final private EELFLogger outgoingRequestsLogger = Logging.getRequestsLogger("mso"); /** * The Constant dateFormat. @@ -40,13 +48,14 @@ public class RestMsoImplementation implements RestInterface { private static Client client = null; /** The common headers. */ - private MultivaluedHashMap<String, Object> commonHeaders; + //private MultivaluedHashMap<String, Object> commonHeaders; /** * Instantiates a new mso rest interface. */ + @SuppressWarnings("Duplicates") @Override - public void initMsoClient() + public MultivaluedHashMap<String, Object> initMsoClient() { final String methodname = "initRestClient()"; @@ -60,8 +69,11 @@ public class RestMsoImplementation implements RestInterface { byte[] authEncBytes = Base64.encodeBase64(authString.getBytes()); String authStringEnc = new String(authEncBytes); - commonHeaders = new MultivaluedHashMap<String, Object>(); - commonHeaders.put("Authorization", Collections.singletonList((Object) ("Basic " + authStringEnc))); + MultivaluedHashMap<String, Object> commonHeaders = new MultivaluedHashMap(); + commonHeaders.put("Authorization", Collections.singletonList(("Basic " + authStringEnc))); + commonHeaders.put(requestIdHeaderKey, Collections.singletonList(getHttpServletRequest().getHeader(requestIdHeaderKey))); + //Pass calling application identifier to SO + commonHeaders.put("X-FromAppId", Collections.singletonList(SystemProperties.getProperty(SystemProperties.APP_DISPLAY_NAME))); boolean use_ssl = true; if ( (mso_url != null) && ( !(mso_url.isEmpty()) ) ) { @@ -89,6 +101,8 @@ public class RestMsoImplementation implements RestInterface { logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodname + " Unable to get the SSL client"); } } + + return commonHeaders; } public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception { @@ -100,16 +114,15 @@ public class RestMsoImplementation implements RestInterface { restObject.set(t); url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " sending request to url= " + url); - - initMsoClient(); + MultivaluedHashMap<String, Object> commonHeaders = initMsoClient(); + Logging.logRequest(outgoingRequestsLogger, HttpMethod.GET, url); final Response cres = client.target(url) .request() .accept("application/json") .headers(commonHeaders) .get(); - + Logging.logResponse(outgoingRequestsLogger, HttpMethod.GET, url, cres); int status = cres.getStatus(); restObject.setStatusCode (status); @@ -127,6 +140,35 @@ public class RestMsoImplementation implements RestInterface { return; } + public <T> RestObject<T> GetForObject(String sourceID, String path, Class<T> clazz) throws Exception { + final String methodName = getMethodName(); + logger.debug(EELFLoggerDelegate.debugLogger, "start {}->{}({}, {}, {})", getMethodCallerName(), methodName, sourceID, path, clazz); + + String url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " sending request to url= " + url); + + MultivaluedHashMap<String, Object> commonHeaders = initMsoClient(); + Logging.logRequest(outgoingRequestsLogger, HttpMethod.GET, url); + final Response cres = client.target(url) + .request() + .accept("application/json") + .headers(commonHeaders) + .get(); + Logging.logResponse(outgoingRequestsLogger, HttpMethod.GET, url, cres); + final RestObject<T> restObject = cresToRestObject(cres, clazz); + int status = cres.getStatus(); + + if (status == 200 || status == 202) { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " REST api was successfull!"); + } else { + logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with status="+status+", url="+url); + } + + logger.debug(EELFLoggerDelegate.debugLogger,methodName + " received status=" + status ); + + return restObject; + } + @Override public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) { @@ -135,23 +177,19 @@ public class RestMsoImplementation implements RestInterface { Response cres = null; logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " start"); - logRequest (r); try { - initMsoClient(); + MultivaluedHashMap<String, Object> commonHeaders = initMsoClient(); url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path; - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + " methodName sending request to: " + url); - + Logging.logRequest(outgoingRequestsLogger, HttpMethod.DELETE, url, r); cres = client.target(url) .request() .accept("application/json") .headers(commonHeaders) //.entity(r) .build("DELETE", Entity.entity(r, MediaType.APPLICATION_JSON)).invoke(); - // .method("DELETE", Entity.entity(r, MediaType.APPLICATION_JSON)); - //.delete(Entity.entity(r, MediaType.APPLICATION_JSON)); - + Logging.logResponse(outgoingRequestsLogger, HttpMethod.DELETE, url, cres); int status = cres.getStatus(); restObject.setStatusCode (status); @@ -186,38 +224,56 @@ public class RestMsoImplementation implements RestInterface { } } - + + public <T> RestObject<T> PostForObject(Object requestDetails, String sourceID, String path, Class<T> clazz) throws RuntimeException { + logger.debug(EELFLoggerDelegate.debugLogger, "start {}->{}({}, {}, {}, {})", getMethodCallerName(), getMethodName(), requestDetails, sourceID, path, clazz); + RestObject<T> restObject = new RestObject<>(); + Post(clazz, requestDetails, sourceID, path, restObject); + return restObject; + } + @Override - public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception { + public <T> void Post(T t, Object r, String sourceID, String path, RestObject<T> restObject) throws RuntimeException { + logger.debug(EELFLoggerDelegate.debugLogger, "start {}->{}({}, {}, {}, {})", getMethodCallerName(), getMethodName(), t.getClass(), r, sourceID, path); + Post(t.getClass(), r, sourceID, path, restObject); + } + + public Invocation.Builder prepareClient(String path, String methodName) { + MultivaluedHashMap<String, Object> commonHeaders = initMsoClient(); + + String url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path; + logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " sending request to url= " + url); + // Change the content length + return client.target(url) + .request() + .accept("application/json") + .headers(commonHeaders); + } + + + + public <T> void Post(Class<?> tClass, Object requestDetails, String sourceID, String path, RestObject<T> restObject) throws RuntimeException { String methodName = "Post"; String url=""; - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " start"); - - logRequest (r); try { - initMsoClient(); + MultivaluedHashMap<String, Object> commonHeaders = initMsoClient(); url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path; - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " sending request to url= " + url); + Logging.logRequest(outgoingRequestsLogger, HttpMethod.POST, url, requestDetails); // Change the content length final Response cres = client.target(url) .request() .accept("application/json") .headers(commonHeaders) - //.header("content-length", 201) - //.header("X-FromAppId", sourceID) - .post(Entity.entity(r, MediaType.APPLICATION_JSON)); + .post(Entity.entity(requestDetails, MediaType.APPLICATION_JSON)); + Logging.logResponse(outgoingRequestsLogger, HttpMethod.POST, url, cres); - try { - t = (T) cres.readEntity(t.getClass()); - restObject.set(t); - } - catch ( Exception e ) { - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " No response entity, this is probably ok, e=" - + e.getMessage()); - } + final RestObject<T> cresToRestObject = cresToRestObject(cres, tClass); + restObject.set(cresToRestObject.get()); + restObject.setStatusCode(cresToRestObject.getStatusCode()); + restObject.setRaw(cresToRestObject.getRaw()); int status = cres.getStatus(); restObject.setStatusCode (status); @@ -236,91 +292,89 @@ public class RestMsoImplementation implements RestInterface { throw e; } + + logger.debug(EELFLoggerDelegate.debugLogger, "end {}() => ({}){}", getMethodName(), tClass, restObject); } - @Override - public void logRequest(RequestDetails r) { - String methodName = "logRequest"; - ObjectMapper mapper = new ObjectMapper(); - String r_json_str = ""; - if ( r != null ) { - r_json_str = r.toString(); + private <T> RestObject<T> cresToRestObject(Response cres, Class<?> tClass) { + RestObject<T> restObject = new RestObject<>(); + + String rawEntity = null; + try { + cres.bufferEntity(); + rawEntity = cres.readEntity(String.class); + T t = (T) new ObjectMapper().readValue(rawEntity, tClass); + restObject.set(t); + } + catch ( Exception e ) { try { - r_json_str = mapper.writeValueAsString(r); - } - catch ( com.fasterxml.jackson.core.JsonProcessingException j ) { - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " Unable to parse request as json"); + restObject.setRaw(rawEntity); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + getMethodCallerName() + " Error reading response entity as " + tClass + ": , e=" + + e.getMessage() + ", Entity=" + rawEntity); + } catch (Exception e2) { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + getMethodCallerName() + " No response entity, this is probably ok, e=" + + e.getMessage()); } } - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " Request=(" + r_json_str + ")"); + + int status = cres.getStatus(); + restObject.setStatusCode (status); + + return restObject; + } - + @Override - public void logRequest(org.openecomp.vid.changeManagement.RequestDetails r) { - String methodName = "logRequest"; - ObjectMapper mapper = new ObjectMapper(); - String r_json_str = ""; - if ( r != null ) { - r_json_str = r.toString(); + public <T> void Put(T t, org.onap.vid.changeManagement.RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject) throws Exception { + + String methodName = "Put"; + String url=""; + + logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " start"); + +// logRequest (r); + try { + + MultivaluedHashMap<String, Object> commonHeaders = initMsoClient(); + + url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path; + Logging.logRequest(outgoingRequestsLogger, HttpMethod.PUT, url, r); + // Change the content length + final Response cres = client.target(url) + .request() + .accept("application/json") + .headers(commonHeaders) + //.header("content-length", 201) + //.header("X-FromAppId", sourceID) + .put(Entity.entity(r, MediaType.APPLICATION_JSON)); + + Logging.logResponse(outgoingRequestsLogger, HttpMethod.PUT, url, cres); + try { - r_json_str = mapper.writeValueAsString(r); + t = (T) cres.readEntity(t.getClass()); + restObject.set(t); } - catch ( com.fasterxml.jackson.core.JsonProcessingException j ) { - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " Unable to parse request as json"); + catch ( Exception e ) { + logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " No response entity, this is probably ok, e=" + + e.getMessage()); } - } - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " Request=(" + r_json_str + ")"); - } - @Override - public <T> void Put(T t, org.openecomp.vid.changeManagement.RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject) throws Exception { - - String methodName = "Put"; - String url=""; + int status = cres.getStatus(); + restObject.setStatusCode (status); - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " start"); + if ( status >= 200 && status <= 299 ) { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!"); + logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!"); -// logRequest (r); - try { - - initMsoClient(); - - url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path; - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " sending request to url= " + url); - // Change the content length - final Response cres = client.target(url) - .request() - .accept("application/json") - .headers(commonHeaders) - //.header("content-length", 201) - //.header("X-FromAppId", sourceID) - .put(Entity.entity(r, MediaType.APPLICATION_JSON)); - - try { - t = (T) cres.readEntity(t.getClass()); - restObject.set(t); - } - catch ( Exception e ) { - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " No response entity, this is probably ok, e=" - + e.getMessage()); - } - - int status = cres.getStatus(); - restObject.setStatusCode (status); - - if ( status >= 200 && status <= 299 ) { - logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!"); - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!"); - - } else { - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with status="+status+", url="+url); - } - - } catch (Exception e) - { - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with url="+url+ ", Exception: " + e.toString()); - throw e; - - } - } + } else { + logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with status="+status+", url="+url); + } + + } catch (Exception e) + { + logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with url="+url+ ", Exception: " + e.toString()); + throw e; + + } + } } diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/RestObject.java b/vid-app-common/src/main/java/org/onap/vid/mso/RestObject.java new file mode 100644 index 000000000..4e2bea050 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/mso/RestObject.java @@ -0,0 +1,131 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.google.common.base.MoreObjects; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; + +import javax.ws.rs.core.Response; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + +import static org.onap.vid.utils.Logging.getMethodCallerName; + +/** + * The Class RestObject. + * + * @param <T> the generic type + */ +public class RestObject<T> { + + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + + final static ObjectMapper objectMapper = new ObjectMapper(); + + /** + * Generic version of the RestObject class. + * + */ + // T stands for "Type" + private T t; + + // The string source of t, if available + private String rawT; + + /** The status code. */ + private int statusCode= 0; + + public RestObject() { + } + + public RestObject(Response cres, Class<?> tClass, EELFLoggerDelegate logger) { + + String rawEntity = null; + try { + cres.bufferEntity(); + rawEntity = cres.readEntity(String.class); + T t = (T) objectMapper.readValue(rawEntity, tClass); + this.set(t); + } + catch ( Exception e ) { + try { + this.setRaw(rawEntity); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + getMethodCallerName() + " Error reading response entity as " + tClass + ": , e=" + + e.getMessage() + ", Entity=" + rawEntity); + } catch (Exception e2) { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + getMethodCallerName() + " No response entity, this is probably ok, e=" + + e.getMessage()); + } + } + + int status = cres.getStatus(); + this.setStatusCode (status); + } + + + /** + * Sets the. + * + * @param t the t + */ + public void set(T t) { this.t = t; } + + /** + * Gets the. + * + * @return the t + */ + public T get() { return t; } + + /** + * Sets the status code. + * + * @param v the new status code + */ + public void setStatusCode(int v) { this.statusCode = v; } + + /** + * Gets the status code. + * + * @return the status code + */ + public int getStatusCode() { return this.statusCode; } + + public String getRaw() { + return rawT; + } + + public void setRaw(String rawT) { + this.rawT = rawT; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("t", t) + .add("rawT", rawT) + .add("statusCode", statusCode) + .toString(); + } +} + diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfo.java b/vid-app-common/src/main/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfo.java new file mode 100644 index 000000000..bca643a6d --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/mso/model/OperationalEnvironmentActivateInfo.java @@ -0,0 +1,33 @@ +package org.onap.vid.mso.model; + +import com.google.common.base.MoreObjects; +import org.onap.vid.controller.OperationalEnvironmentController; + +public class OperationalEnvironmentActivateInfo extends OperationalEnvironmentController.OperationalEnvironmentActivateBody { + private final String userId; + private final String operationalEnvironmentId; + + public OperationalEnvironmentActivateInfo(OperationalEnvironmentController.OperationalEnvironmentActivateBody o, String userId, String operationalEnvironmentId) { + super(o.getRelatedInstanceId(), o.getRelatedInstanceName(), o.getWorkloadContext(), o.getManifest()); + + this.userId = userId; + this.operationalEnvironmentId = operationalEnvironmentId; + } + + public String getUserId() { + return userId; + } + + public String getOperationalEnvironmentId() { + return operationalEnvironmentId; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("operationalEnvironmentId", operationalEnvironmentId) + .add("userId", userId) + .add("super", super.toString()) + .toString(); + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/model/OperationalEnvironmentDeactivateInfo.java b/vid-app-common/src/main/java/org/onap/vid/mso/model/OperationalEnvironmentDeactivateInfo.java new file mode 100644 index 000000000..1a756eda8 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/mso/model/OperationalEnvironmentDeactivateInfo.java @@ -0,0 +1,29 @@ +package org.onap.vid.mso.model; + +import com.google.common.base.MoreObjects; + +public class OperationalEnvironmentDeactivateInfo { + private final String userId; + private final String operationalEnvironmentId; + + public OperationalEnvironmentDeactivateInfo(String userId, String operationalEnvironmentId) { + this.userId = userId; + this.operationalEnvironmentId = operationalEnvironmentId; + } + + public String getUserId() { + return userId; + } + + public String getOperationalEnvironmentId() { + return operationalEnvironmentId; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("operationalEnvironmentId", operationalEnvironmentId) + .add("userId", userId) + .toString(); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/AsyncRequestStatus.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/AsyncRequestStatus.java index 1395f9ae3..f47e16fe0 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/AsyncRequestStatus.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/AsyncRequestStatus.java @@ -1,123 +1,123 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso.rest;
-
-//import java.util.HashMap;
-//import java.util.Map;
-//import javax.annotation.Generated;
-
-import org.openecomp.vid.domain.mso.InstanceIds;
-import org.openecomp.vid.domain.mso.RequestStatus;
-//import com.fasterxml.jackson.annotation.JsonAnyGetter;
-//import com.fasterxml.jackson.annotation.JsonAnySetter;
-//import com.fasterxml.jackson.annotation.JsonCreator;
-//import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-//import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-//import com.fasterxml.jackson.annotation.JsonValue;
-import org.apache.commons.lang.builder.EqualsBuilder;
-import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.commons.lang.builder.ToStringBuilder;
-
-
-/**
- * request structure.
- */
-@JsonInclude(JsonInclude.Include.NON_NULL)
-
-public class AsyncRequestStatus extends org.openecomp.vid.domain.mso.AsyncRequestStatus {
-
-
- /** The instance ids. */
- private InstanceIds instanceIds;
-
- /** The request status. */
- private RequestStatus requestStatus;
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.AsyncRequestStatus#getInstanceIds()
- */
- public InstanceIds getInstanceIds() {
- return instanceIds;
- }
-
- /**
- * Sets the instance ids.
- *
- * @param instanceIds the new instance ids
- */
- public void setInstanceIds(InstanceIds instanceIds) {
- this.instanceIds = instanceIds;
- }
-
-
- /**
- * (Required).
- *
- * @return The requestStatus
- */
- @JsonProperty("requestStatus")
- public RequestStatus getRequestStatus() {
- return requestStatus;
- }
-
- /**
- * (Required).
- *
- * @param requestStatus The requestStatus
- */
- @JsonProperty("requestStatus")
- public void setRequestStatus(RequestStatus requestStatus) {
- this.requestStatus = requestStatus;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.AsyncRequestStatus#toString()
- */
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.AsyncRequestStatus#hashCode()
- */
- @Override
- public int hashCode() {
- return new HashCodeBuilder().append(getCorrelator()).append(getFinishTime()).append(instanceIds).append(getRequestId()).append(getRequestScope()).append(getRequestStatus()).append(getRequestType()).append(getStartTime()).append(getAdditionalProperties()).toHashCode();
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.AsyncRequestStatus#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object other) {
- if (other == this) {
- return true;
- }
- if ((other instanceof AsyncRequestStatus) == false) {
- return false;
- }
- AsyncRequestStatus rhs = ((AsyncRequestStatus) other);
- return new EqualsBuilder().append(getCorrelator(), rhs.getCorrelator()).append(getFinishTime(), rhs.getFinishTime()).append(instanceIds, rhs.instanceIds).append(getRequestId(), rhs.getRequestId()).append(getRequestScope(), rhs.getRequestScope()).append(getRequestStatus(), rhs.getRequestStatus()).append(getRequestType(), rhs.getRequestType()).append(getStartTime(), rhs.getStartTime()).append(getAdditionalProperties(), rhs.getAdditionalProperties()).isEquals();
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso.rest; + +//import java.util.HashMap; +//import java.util.Map; +//import javax.annotation.Generated; + +import org.onap.vid.domain.mso.InstanceIds; +import org.onap.vid.domain.mso.RequestStatus; +//import com.fasterxml.jackson.annotation.JsonAnyGetter; +//import com.fasterxml.jackson.annotation.JsonAnySetter; +//import com.fasterxml.jackson.annotation.JsonCreator; +//import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +//import com.fasterxml.jackson.annotation.JsonPropertyOrder; +//import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * request structure. + */ +@JsonInclude(JsonInclude.Include.NON_NULL) + +public class AsyncRequestStatus extends org.onap.vid.domain.mso.AsyncRequestStatus { + + + /** The instance ids. */ + private InstanceIds instanceIds; + + /** The request status. */ + private RequestStatus requestStatus; + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.AsyncRequestStatus#getInstanceIds() + */ + public InstanceIds getInstanceIds() { + return instanceIds; + } + + /** + * Sets the instance ids. + * + * @param instanceIds the new instance ids + */ + public void setInstanceIds(InstanceIds instanceIds) { + this.instanceIds = instanceIds; + } + + + /** + * (Required). + * + * @return The requestStatus + */ + @JsonProperty("requestStatus") + public RequestStatus getRequestStatus() { + return requestStatus; + } + + /** + * (Required). + * + * @param requestStatus The requestStatus + */ + @JsonProperty("requestStatus") + public void setRequestStatus(RequestStatus requestStatus) { + this.requestStatus = requestStatus; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.AsyncRequestStatus#toString() + */ + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.AsyncRequestStatus#hashCode() + */ + @Override + public int hashCode() { + return new HashCodeBuilder().append(getCorrelator()).append(getFinishTime()).append(instanceIds).append(getRequestId()).append(getRequestScope()).append(getRequestStatus()).append(getRequestType()).append(getStartTime()).append(getAdditionalProperties()).toHashCode(); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.AsyncRequestStatus#equals(java.lang.Object) + */ + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AsyncRequestStatus) == false) { + return false; + } + AsyncRequestStatus rhs = ((AsyncRequestStatus) other); + return new EqualsBuilder().append(getCorrelator(), rhs.getCorrelator()).append(getFinishTime(), rhs.getFinishTime()).append(instanceIds, rhs.instanceIds).append(getRequestId(), rhs.getRequestId()).append(getRequestScope(), rhs.getRequestScope()).append(getRequestStatus(), rhs.getRequestStatus()).append(getRequestType(), rhs.getRequestType()).append(getStartTime(), rhs.getStartTime()).append(getAdditionalProperties(), rhs.getAdditionalProperties()).isEquals(); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/MsoRestClientNew.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/MsoRestClientNew.java index 1beeafb13..9bb54035d 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/MsoRestClientNew.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/MsoRestClientNew.java @@ -1,9 +1,11 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.changeManagement.MsoRequestDetails; -import org.openecomp.vid.changeManagement.RequestDetailsWrapper; -import org.openecomp.vid.mso.*; +import org.onap.vid.changeManagement.MsoRequestDetails; +import org.onap.vid.changeManagement.RequestDetailsWrapper; +import org.onap.vid.model.RequestReferencesContainer; +import org.onap.vid.mso.*; + import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; @@ -15,17 +17,14 @@ import java.util.Date; public class MsoRestClientNew extends RestMsoImplementation implements MsoInterface { /** - * The logger. - */ - EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoRestClientNew.class); - - /** * The Constant dateFormat. */ final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); - private final String ORIGINAL_REQUEST_ID = "originalRequestId"; - + /** + * The logger. + */ + EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoRestClientNew.class); @Override public MsoResponseWrapper createSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception { @@ -70,6 +69,14 @@ public class MsoRestClientNew extends RestMsoImplementation implements MsoInterf } @Override + public MsoResponseWrapper createConfigurationInstance(RequestDetails requestDetails, String endpoint) throws Exception { + String methodName = "createConfigurationInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + return createInstance(requestDetails, endpoint); + } + + @Override public MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception { String methodName = "deleteSvcInstance"; logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); @@ -174,7 +181,7 @@ public class MsoRestClientNew extends RestMsoImplementation implements MsoInterf } - public MsoResponseWrapper getOrchestrationRequestsForDashboard(String t, String sourceId, String endpoint, RestObject restObject) throws Exception{ + public MsoResponseWrapper getOrchestrationRequestsForDashboard(String t, String sourceId, String endpoint, RestObject restObject) throws Exception { String methodName = "getOrchestrationRequestsForDashboard"; logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); @@ -185,25 +192,25 @@ public class MsoRestClientNew extends RestMsoImplementation implements MsoInterf return w; - } catch (Exception e){ + } catch (Exception e) { logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); throw e; } } - public MsoResponseWrapper getManualTasksByRequestId(String t , String sourceId , String endpoint , RestObject restObject) throws Exception{ + public MsoResponseWrapper getManualTasksByRequestId(String t, String sourceId, String endpoint, RestObject restObject) throws Exception { String methodName = "getManualTasksByRequestId"; logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); try { - getManualTasks(t , sourceId , endpoint , restObject); + getManualTasks(t, sourceId, endpoint, restObject); MsoResponseWrapper w = MsoUtil.wrapResponse(restObject); logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " w=" + w.getResponse()); return MsoUtil.wrapResponse(restObject); - } catch (Exception e){ + } catch (Exception e) { logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); throw e; @@ -211,14 +218,13 @@ public class MsoRestClientNew extends RestMsoImplementation implements MsoInterf } - @Override public MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject restObject) throws Exception { String methodName = "completeManualTask"; logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling Complete "); try { - Post(t, requestDetails , sourceId, endpoint, restObject); + Post(t, requestDetails, sourceId, endpoint, restObject); MsoResponseWrapper w = MsoUtil.wrapResponse(restObject); logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " w=" + w.getResponse()); @@ -232,38 +238,97 @@ public class MsoRestClientNew extends RestMsoImplementation implements MsoInterf } @Override - public MsoResponseWrapper replaceVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String endpoint) throws Exception { + public MsoResponseWrapper replaceVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String endpoint) throws Exception { String methodName = "replaceVnf"; logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - return replaceInstance(requestDetails, endpoint); } - public MsoResponseWrapper replaceInstance(org.openecomp.vid.changeManagement.RequestDetails request, String path) throws Exception { + @Override + public MsoResponseWrapper deleteConfiguration(RequestDetails requestDetails, String pmc_endpoint) + throws Exception { + String methodName = "deleteConfiguration"; + logger.debug(EELFLoggerDelegate.debugLogger, + dateFormat.format(new Date()) + "<== " + methodName + " start"); + + return deleteInstance(requestDetails, pmc_endpoint); + } + + @Override + public MsoResponseWrapper setConfigurationActiveStatus(RequestDetails request, String path) throws Exception { + String methodName = "setConfigurationActiveStatus"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + try { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling change configuration active status, path =[" + path + "]"); + + RestObject<String> restObjStr = new RestObject<String>(); + String str = new String(); + restObjStr.set(str); + Post(str, request, "", path, restObjStr); + MsoResponseWrapper msoResponseWrapperObject = MsoUtil.wrapResponse(restObjStr); + + return msoResponseWrapperObject; + } catch (Exception e) { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + @Override + public MsoResponseWrapper setPortOnConfigurationStatus(RequestDetails request, String path) throws Exception { + String methodName = "setPortOnConfigurationStatus"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + try { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling change port configuration status, path =[" + path + "]"); + + RestObject<String> restObjStr = new RestObject<String>(); + String str = new String(); + restObjStr.set(str); + Post(str, request, "", path, restObjStr); + MsoResponseWrapper msoResponseWrapperObject = MsoUtil.wrapResponse(restObjStr); + + return msoResponseWrapperObject; + } catch (Exception e) { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + @Override + public MsoResponseWrapperInterface changeManagementUpdate(RequestDetailsWrapper requestDetails, String endpoint) throws Exception { + RestObject<RequestReferencesContainer> msoResponse = PostForObject(requestDetails, "", endpoint, RequestReferencesContainer.class); + return new MsoResponseWrapper2<>(msoResponse); + } + + public MsoResponseWrapper replaceInstance(org.onap.vid.changeManagement.RequestDetails request, String path) throws Exception { String methodName = "replaceInstance"; logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); try { - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling Replace VNF, path =[" + path + "]"); + + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling Replace VNF, path =[" + path + "]"); RestObject<String> restObjStr = new RestObject<String>(); String str = new String(); restObjStr.set(str); RequestDetailsWrapper requestDetailsWrapper = new RequestDetailsWrapper(); requestDetailsWrapper.requestDetails = new MsoRequestDetails(request); - Post(str, request, "", path, restObjStr); + Post(str, requestDetailsWrapper, "", path, restObjStr); MsoResponseWrapper msoResponseWrapperObject = MsoUtil.wrapResponse(restObjStr); int status = msoResponseWrapperObject.getStatus(); - if (status == 202){ - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + - ",post succeeded, msoResponseWrapperObject response:" + msoResponseWrapperObject.getResponse()); - } - else { - logger.error(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + - ": post failed, msoResponseWrapperObject status" + status + ", response:" + msoResponseWrapperObject.getResponse()); - - // TODO + if (status == 202) { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + + ",post succeeded, msoResponseWrapperObject response:" + msoResponseWrapperObject.getResponse()); + } else { + logger.error(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + + ": post failed, msoResponseWrapperObject status" + status + ", response:" + msoResponseWrapperObject.getResponse()); + + // TODO } return msoResponseWrapperObject; @@ -276,29 +341,25 @@ public class MsoRestClientNew extends RestMsoImplementation implements MsoInterf } @Override - public MsoResponseWrapper updateVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String endpoint) throws Exception { + public MsoResponseWrapper updateVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String endpoint) throws Exception { String methodName = "updateVnf"; logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); RequestDetailsWrapper wrapper = new RequestDetailsWrapper(); - wrapper.requestDetails = new MsoRequestDetails(requestDetails);; + wrapper.requestDetails = new MsoRequestDetails(requestDetails); return updateInstance(requestDetails, endpoint); } - public MsoResponseWrapper updateInstance(org.openecomp.vid.changeManagement.RequestDetails request, String path) throws Exception { + public MsoResponseWrapper updateInstance(org.onap.vid.changeManagement.RequestDetails request, String path) throws Exception { String methodName = "updateInstance"; logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); try { logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling Delete, path =[" + path + "]"); - RestObject<String> restObjStr = new RestObject<String>(); String str = new String(); restObjStr.set(str); RequestDetailsWrapper requestDetailsWrapper = new RequestDetailsWrapper(); requestDetailsWrapper.requestDetails = new MsoRequestDetails(request); - - - Put(str, requestDetailsWrapper, "", path, restObjStr); MsoResponseWrapper w = MsoUtil.wrapResponse(restObjStr); @@ -313,12 +374,12 @@ public class MsoRestClientNew extends RestMsoImplementation implements MsoInterf } - public void activateServiceInstance(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception{ + public void setServiceInstanceStatus(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception { String methodName = "activateServiceInstance"; logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start "); try { - Post(t, requestDetails , sourceId, endpoint, restObject); + Post(t, requestDetails, sourceId, endpoint, restObject); MsoResponseWrapper w = MsoUtil.wrapResponse(restObject); logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " w =" + w.getResponse()); @@ -330,4 +391,45 @@ public class MsoRestClientNew extends RestMsoImplementation implements MsoInterf } } + @Override + public MsoResponseWrapper removeRelationshipFromServiceInstance(RequestDetails requestDetails, String endpoint) throws Exception { + String methodName = "removeRelationshipFromServiceInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + try { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling Remove relationship from service instance, path =[" + endpoint + "]"); + + RestObject<String> restObjStr = new RestObject<String>(); + String str = ""; + restObjStr.set(str); + Post(str, requestDetails, "", endpoint, restObjStr); + + return MsoUtil.wrapResponse(restObjStr); + } catch (Exception e) { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + + @Override + public MsoResponseWrapper addRelationshipToServiceInstance(RequestDetails requestDetails, String addRelationshipsPath) throws Exception { + String methodName = "addRelationshipToServiceInstance"; + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); + + try { + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " calling Add relationship to service instance, path =[" + addRelationshipsPath + "]"); + + RestObject<String> restObjStr = new RestObject<>(); + restObjStr.set(""); + Post("", requestDetails, "", addRelationshipsPath, restObjStr); + + return MsoUtil.wrapResponse(restObjStr); + } catch (Exception e) { + logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); + throw e; + } + } + }
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/rest/OperationalEnvironment/OperationEnvironmentRequestDetails.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/OperationalEnvironment/OperationEnvironmentRequestDetails.java new file mode 100644 index 000000000..2f6d233c2 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/OperationalEnvironment/OperationEnvironmentRequestDetails.java @@ -0,0 +1,120 @@ +package org.onap.vid.mso.rest.OperationalEnvironment; + + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import java.util.List; + +public class OperationEnvironmentRequestDetails { + private final RequestInfo requestInfo; + private final List<RelatedInstance> relatedInstanceList; + private final RequestParameters requestParameters; + + public OperationEnvironmentRequestDetails(@JsonProperty(value = "requestInfo", required = true) RequestInfo requestInfo, + @JsonProperty(value = "relatedInstanceList", required = true) List<RelatedInstance> relatedInstanceList, + @JsonProperty(value = "requestParameters", required = true) RequestParameters requestParameters) { + this.requestInfo = requestInfo; + this.relatedInstanceList = relatedInstanceList; + this.requestParameters = requestParameters; + } + + public RequestInfo getRequestInfo() { + return requestInfo; + } + + public List<RelatedInstance> getRelatedInstanceList() { + return relatedInstanceList; + } + + public RequestParameters getRequestParameters() { + return requestParameters; + } + + public static class RequestInfo { + private final String resourceType; + private final String instanceName; + private final String source; + private final String requestorId; + + public RequestInfo(@JsonProperty(value = "resourceType", required = true) String resourceType, + @JsonProperty(value = "instanceName", required = true) String instanceName, + @JsonProperty(value = "source", required = true) String source, + @JsonProperty(value = "requestorId", required = true) String requestorId) { + this.resourceType = resourceType; + this.instanceName = instanceName; + this.source = source; + this.requestorId = requestorId; + } + + public String getResourceType() { + return resourceType; + } + + public String getInstanceName() { + return instanceName; + } + + public String getSource() { + return source; + } + + public String getRequestorId() { + return requestorId; + } + } + + public static class RequestParameters { + private final String operationalEnvironmentType; + private final String tenantContext; + private final String workloadContext; + + public RequestParameters(@JsonProperty(value = "operationalEnvironmentType", required = true) String operationalEnvironmentType, + @JsonProperty(value = "tenantContext", required = true) String tenantContext, + @JsonProperty(value = "workloadContext", required = true) String workloadContext) { + this.operationalEnvironmentType = operationalEnvironmentType; + this.tenantContext = tenantContext; + this.workloadContext = workloadContext; + } + public String getOperationalEnvironmentType() { + return operationalEnvironmentType; + } + + public String getTenantContext() { + return tenantContext; + } + + public String getWorkloadContext() { + return workloadContext; + } + } + + @JsonTypeName("relatedInstance") + @JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = JsonTypeInfo.Id.NAME) + public static class RelatedInstance { + private final String resourceType; + private final String instanceId; + private final String instanceName; + + public String getResourceType() { + return resourceType; + } + + public String getInstanceId() { + return instanceId; + } + + public String getInstanceName() { + return instanceName; + } + + public RelatedInstance(@JsonProperty(value = "instanceName", required = true) String resourceType, + @JsonProperty(value = "instanceId", required = true) String instanceId, + @JsonProperty(value = "instanceName", required = true) String instanceName) { + this.resourceType = resourceType; + this.instanceId = instanceId; + this.instanceName = instanceName; + } + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RelatedInstance.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RelatedInstance.java index b68f7c13b..b7f120330 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RelatedInstance.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RelatedInstance.java @@ -1,125 +1,125 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso.rest;
-
-import java.util.HashMap;
-import java.util.Map;
-import javax.annotation.Generated;
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import org.apache.commons.lang.builder.EqualsBuilder;
-import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.commons.lang.builder.ToStringBuilder;
-
-
-/**
- * modelInfo and optional instanceId and instanceName for a model related to the modelInfo being operated on.
- */
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@Generated("org.jsonschema2pojo")
-@JsonPropertyOrder({
- "instanceName",
- "instanceId",
- "modelInfo"
-})
-public class RelatedInstance extends org.openecomp.vid.domain.mso.RelatedInstance{
-
-
- /** The model info. */
- @JsonProperty("modelInfo")
- private org.openecomp.vid.domain.mso.ModelInfo modelInfo;
-
- /** The additional properties. */
- @JsonIgnore
- private Map<String, Object> additionalProperties = new HashMap<String, Object>();
-
- /**
- * (Required).
- *
- * @return The modelInfo
- */
- @JsonProperty("modelInfo")
- public org.openecomp.vid.domain.mso.ModelInfo getModelInfo() {
- return modelInfo;
- }
-
- /**
- * (Required).
- *
- * @param modelInfo The modelInfo
- */
- @JsonProperty("modelInfo")
- public void setModelInfo(org.openecomp.vid.domain.mso.ModelInfo modelInfo) {
- this.modelInfo = modelInfo;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedInstance#toString()
- */
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedInstance#getAdditionalProperties()
- */
- @JsonAnyGetter
- public Map<String, Object> getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedInstance#setAdditionalProperty(java.lang.String, java.lang.Object)
- */
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedInstance#hashCode()
- */
- @Override
- public int hashCode() {
- return new HashCodeBuilder().append(getInstanceName()).append(getInstanceId()).append(modelInfo).append(additionalProperties).toHashCode();
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedInstance#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object other) {
- if (other == this) {
- return true;
- }
- if ((other instanceof RelatedInstance) == false) {
- return false;
- }
- RelatedInstance rhs = ((RelatedInstance) other);
- return new EqualsBuilder().append(getInstanceName(), rhs.getInstanceName()).append(getInstanceId(), rhs.getInstanceId()).append(modelInfo, rhs.getModelInfo()).append(additionalProperties, rhs.additionalProperties).isEquals();
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso.rest; + +import java.util.HashMap; +import java.util.Map; +import javax.annotation.Generated; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * modelInfo and optional instanceId and instanceName for a model related to the modelInfo being operated on. + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@Generated("org.jsonschema2pojo") +@JsonPropertyOrder({ + "instanceName", + "instanceId", + "modelInfo" +}) +public class RelatedInstance extends org.onap.vid.domain.mso.RelatedInstance{ + + + /** The model info. */ + @JsonProperty("modelInfo") + private org.onap.vid.domain.mso.ModelInfo modelInfo; + + /** The additional properties. */ + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + /** + * (Required). + * + * @return The modelInfo + */ + @JsonProperty("modelInfo") + public org.onap.vid.domain.mso.ModelInfo getModelInfo() { + return modelInfo; + } + + /** + * (Required). + * + * @param modelInfo The modelInfo + */ + @JsonProperty("modelInfo") + public void setModelInfo(org.onap.vid.domain.mso.ModelInfo modelInfo) { + this.modelInfo = modelInfo; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedInstance#toString() + */ + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedInstance#getAdditionalProperties() + */ + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedInstance#setAdditionalProperty(java.lang.String, java.lang.Object) + */ + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedInstance#hashCode() + */ + @Override + public int hashCode() { + return new HashCodeBuilder().append(getInstanceName()).append(getInstanceId()).append(modelInfo).append(additionalProperties).toHashCode(); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedInstance#equals(java.lang.Object) + */ + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof RelatedInstance) == false) { + return false; + } + RelatedInstance rhs = ((RelatedInstance) other); + return new EqualsBuilder().append(getInstanceName(), rhs.getInstanceName()).append(getInstanceId(), rhs.getInstanceId()).append(modelInfo, rhs.getModelInfo()).append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RelatedModel.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RelatedModel.java index 427d71dd1..39722e172 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RelatedModel.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RelatedModel.java @@ -1,125 +1,125 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso.rest;
-
-import java.util.HashMap;
-import java.util.Map;
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import org.apache.commons.lang.builder.EqualsBuilder;
-import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.commons.lang.builder.ToStringBuilder;
-
-
-/**
- * modelInfo and optional instance id for a model related to the modelInfo being operated on.
- */
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonPropertyOrder({
- "instanceId",
- "modelInfo"
-})
-public class RelatedModel extends org.openecomp.vid.domain.mso.RelatedModel {
-
- /** (Required). */
- @JsonProperty("modelInfo")
- private org.openecomp.vid.domain.mso.ModelInfo modelInfo;
-
-// /** The related model object instance list. */
-// @JsonProperty("instanceId")
-// private org.openecomp.vid.domain.mso.InstanceIds instanceId;
-
- /** The additional properties. */
- @JsonIgnore
- private Map<String, Object> additionalProperties = new HashMap<String, Object>();
-
- /**
- * (Required).
- *
- * @return The modelInfo
- */
- @JsonProperty("modelInfo")
- public org.openecomp.vid.domain.mso.ModelInfo getModelInfo() {
- return modelInfo;
- }
-
- /**
- * (Required).
- *
- * @param modelInfo The modelInfo
- */
- @JsonProperty("modelInfo")
- public void setModelInfo(org.openecomp.vid.domain.mso.ModelInfo modelInfo) {
- this.modelInfo = modelInfo;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedModel#toString()
- */
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedModel#getAdditionalProperties()
- */
- @JsonAnyGetter
- public Map<String, Object> getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedModel#setAdditionalProperty(java.lang.String, java.lang.Object)
- */
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedModel#hashCode()
- */
- @Override
- public int hashCode() {
- return new HashCodeBuilder().append(getInstanceId()).append(modelInfo).append(additionalProperties).toHashCode();
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RelatedModel#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object other) {
- if (other == this) {
- return true;
- }
- if ((other instanceof RelatedModel) == false) {
- return false;
- }
- RelatedModel rhs = ((RelatedModel) other);
- return new EqualsBuilder().append(getInstanceId(), rhs.getInstanceId()).append(modelInfo, rhs.modelInfo).append(additionalProperties, rhs.additionalProperties).isEquals();
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso.rest; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * modelInfo and optional instance id for a model related to the modelInfo being operated on. + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "instanceId", + "modelInfo" +}) +public class RelatedModel extends org.onap.vid.domain.mso.RelatedModel { + + /** (Required). */ + @JsonProperty("modelInfo") + private org.onap.vid.domain.mso.ModelInfo modelInfo; + +// /** The related model object instance list. */ +// @JsonProperty("instanceId") +// private org.openecomp.vid.domain.mso.InstanceIds instanceId; + + /** The additional properties. */ + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + /** + * (Required). + * + * @return The modelInfo + */ + @JsonProperty("modelInfo") + public org.onap.vid.domain.mso.ModelInfo getModelInfo() { + return modelInfo; + } + + /** + * (Required). + * + * @param modelInfo The modelInfo + */ + @JsonProperty("modelInfo") + public void setModelInfo(org.onap.vid.domain.mso.ModelInfo modelInfo) { + this.modelInfo = modelInfo; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedModel#toString() + */ + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedModel#getAdditionalProperties() + */ + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedModel#setAdditionalProperty(java.lang.String, java.lang.Object) + */ + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedModel#hashCode() + */ + @Override + public int hashCode() { + return new HashCodeBuilder().append(getInstanceId()).append(modelInfo).append(additionalProperties).toHashCode(); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RelatedModel#equals(java.lang.Object) + */ + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof RelatedModel) == false) { + return false; + } + RelatedModel rhs = ((RelatedModel) other); + return new EqualsBuilder().append(getInstanceId(), rhs.getInstanceId()).append(modelInfo, rhs.modelInfo).append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/Request.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/Request.java index c8f7b8ba7..b1a84ab29 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/Request.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/Request.java @@ -1,140 +1,146 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso.rest;
-
-//import java.util.HashMap;
-//import java.util.Map;
-//import javax.annotation.Generated;
-
-import org.openecomp.vid.domain.mso.InstanceIds;
-import org.openecomp.vid.domain.mso.RequestStatus;
-//import com.fasterxml.jackson.annotation.JsonAnyGetter;
-//import com.fasterxml.jackson.annotation.JsonAnySetter;
-//import com.fasterxml.jackson.annotation.JsonCreator;
-//import com.fasterxml.jackson.annotation.JsonIgnore;
-//import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-//import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-//import com.fasterxml.jackson.annotation.JsonValue;
-import org.apache.commons.lang.builder.EqualsBuilder;
-//import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.commons.lang.builder.ToStringBuilder;
-
-
-/**
- * request structure.
- */
-public class Request extends org.openecomp.vid.domain.mso.Request {
-
-
- /** The instance ids. */
- private InstanceIds instanceIds;
-
- /** The request details. */
- private RequestDetails requestDetails;
-
- /** The request status. */
- private RequestStatus requestStatus;
-
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.Request#getInstanceIds()
- */
- @JsonProperty("instanceIds")
- public InstanceIds getInstanceIds() {
- return instanceIds;
- }
-
- /**
- * Sets the instance ids.
- *
- * @param instanceIds The instanceIds
- */
- @JsonProperty("instanceIds")
- public void setInstanceIds(InstanceIds instanceIds) {
- this.instanceIds = instanceIds;
- }
-
- /**
- * (Required).
- *
- * @return The requestDetails
- */
- @JsonProperty("requestDetails")
- public RequestDetails getRequestDetails() {
- return requestDetails;
- }
-
- /**
- * (Required).
- *
- * @param requestDetails The requestDetails
- */
- @JsonProperty("requestDetails")
- public void setRequestDetails(RequestDetails requestDetails) {
- this.requestDetails = requestDetails;
- }
-
-
- /**
- * Gets the request status.
- *
- * @return The requestStatus
- */
- @JsonProperty("requestStatus")
- public RequestStatus getRequestStatus() {
- return requestStatus;
- }
-
- /**
- * Sets the request status.
- *
- * @param requestStatus The requestStatus
- */
- @JsonProperty("requestStatus")
- public void setRequestStatus(RequestStatus requestStatus) {
- this.requestStatus = requestStatus;
- }
-
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.Request#toString()
- */
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.Request#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object other) {
- if (other == this) {
- return true;
- }
- if ((other instanceof Request) == false) {
- return false;
- }
- Request rhs = ((Request) other);
- return new EqualsBuilder().append(getFinishTime(), rhs.getFinishTime()).append(getInstanceIds(), rhs.getInstanceIds()).append(getRequestDetails(), rhs.getRequestDetails()).append(getRequestId(), rhs.getRequestId()).append(getRequestScope(), rhs.getRequestScope()).append(getRequestStatus(), rhs.getRequestStatus()).append(getRequestType(), rhs.getRequestType()).append(getStartTime(), rhs.getStartTime()).append(getAdditionalProperties(), rhs.getAdditionalProperties()).isEquals();
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso.rest; + +//import java.util.HashMap; +//import java.util.Map; +//import javax.annotation.Generated; + +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.onap.vid.domain.mso.InstanceIds; +import org.onap.vid.domain.mso.RequestStatus; +//import com.fasterxml.jackson.annotation.JsonAnyGetter; +//import com.fasterxml.jackson.annotation.JsonAnySetter; +//import com.fasterxml.jackson.annotation.JsonCreator; +//import com.fasterxml.jackson.annotation.JsonIgnore; +//import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +//import com.fasterxml.jackson.annotation.JsonPropertyOrder; +//import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +//import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * request structure. + */ +public class Request extends org.onap.vid.domain.mso.Request { + + + /** The instance ids. */ + private InstanceIds instanceIds; + + /** The request details. */ + private RequestDetails requestDetails; + + /** The request status. */ + private RequestStatus requestStatus; + + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.Request#getInstanceIds() + */ + @JsonProperty("instanceIds") + public InstanceIds getInstanceIds() { + return instanceIds; + } + + /** + * Sets the instance ids. + * + * @param instanceIds The instanceIds + */ + @JsonProperty("instanceIds") + public void setInstanceIds(InstanceIds instanceIds) { + this.instanceIds = instanceIds; + } + + /** + * (Required). + * + * @return The requestDetails + */ + @JsonProperty("requestDetails") + public RequestDetails getRequestDetails() { + return requestDetails; + } + + /** + * (Required). + * + * @param requestDetails The requestDetails + */ + @JsonProperty("requestDetails") + public void setRequestDetails(RequestDetails requestDetails) { + this.requestDetails = requestDetails; + } + + + /** + * Gets the request status. + * + * @return The requestStatus + */ + @JsonProperty("requestStatus") + public RequestStatus getRequestStatus() { + return requestStatus; + } + + /** + * Sets the request status. + * + * @param requestStatus The requestStatus + */ + @JsonProperty("requestStatus") + public void setRequestStatus(RequestStatus requestStatus) { + this.requestStatus = requestStatus; + } + + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.Request#toString() + */ + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.Request#equals(java.lang.Object) + */ + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof Request) == false) { + return false; + } + Request rhs = ((Request) other); + return new EqualsBuilder().append(getFinishTime(), rhs.getFinishTime()).append(getInstanceIds(), rhs.getInstanceIds()).append(getRequestDetails(), rhs.getRequestDetails()).append(getRequestId(), rhs.getRequestId()).append(getRequestScope(), rhs.getRequestScope()).append(getRequestStatus(), rhs.getRequestStatus()).append(getRequestType(), rhs.getRequestType()).append(getStartTime(), rhs.getStartTime()).append(getAdditionalProperties(), rhs.getAdditionalProperties()).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(getFinishTime()).append(getInstanceIds()).append(getRequestDetails()).append(getRequestId()).append(getRequestScope()).append(getRequestStatus()).append(getRequestType()).append(getStartTime()).append(getAdditionalProperties()).toHashCode(); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RequestDetails.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RequestDetails.java index 0cf697e0b..1e059896f 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RequestDetails.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RequestDetails.java @@ -1,232 +1,235 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso.rest;
-
-import java.util.HashMap;
-import java.util.Map;
-import java.util.List;
-//import javax.annotation.Generated;
-
-import org.openecomp.vid.domain.mso.CloudConfiguration;
-import org.openecomp.vid.domain.mso.ModelInfo;
-import org.openecomp.vid.domain.mso.RequestInfo;
-import org.openecomp.vid.domain.mso.RequestParameters;
-import org.openecomp.vid.domain.mso.SubscriberInfo;
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import org.apache.commons.lang.builder.EqualsBuilder;
-import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.commons.lang.builder.ToStringBuilder;
-
-
-/**
- * aggregates the context, configuraiton and detailed parameters associated with the request into a single structure.
- */
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonPropertyOrder({
- "cloudConfiguration",
- "modelInfo",
- "relatedModelList",
- "requestInfo",
- "subscriberInfo",
- "requestParameters"
-})
-public class RequestDetails extends org.openecomp.vid.domain.mso.RequestDetails {
-
- /** The cloud configuration. */
- @JsonProperty("cloudConfiguration")
- private CloudConfiguration cloudConfiguration;
-
- /** The model info. */
- @JsonProperty("modelInfo")
- private ModelInfo modelInfo;
-
- /** The related model list. */
- @JsonProperty("relatedModelList")
- private List<RelatedModel> relatedInstanceList;
-
- /** The request info. */
- @JsonProperty("requestInfo")
- private RequestInfo requestInfo;
-
- /** The subscriber info. */
- @JsonProperty("subscriberInfo")
- private SubscriberInfo subscriberInfo;
-
- /** The request parameters. */
- @JsonProperty("requestParameters")
- private RequestParameters requestParameters;
-
- /** The additional properties. */
- @JsonIgnore
- private Map<String, Object> additionalProperties = new HashMap<String, Object>();
-
- /**
- * Gets the cloud configuration.
- *
- * @return The cloudConfiguration
- */
- @JsonProperty("cloudConfiguration")
- public CloudConfiguration getCloudConfiguration() {
- return cloudConfiguration;
- }
-
- /**
- * Sets the cloud configuration.
- *
- * @param cloudConfiguration The cloudConfiguration
- */
- @JsonProperty("cloudConfiguration")
- public void setCloudConfiguration(CloudConfiguration cloudConfiguration) {
- this.cloudConfiguration = cloudConfiguration;
- }
-
- /**
- * Gets the model info.
- *
- * @return The modelInfo
- */
- @JsonProperty("modelInfo")
- public ModelInfo getModelInfo() {
- return modelInfo;
- }
-
- /**
- * Sets the model info.
- *
- * @param modelInfo The modelInfo
- */
- @JsonProperty("modelInfo")
- public void setModelInfo(ModelInfo modelInfo) {
- this.modelInfo = modelInfo;
- }
- /**
- * Gets the related instance list.
- *
- * @return The relatedInstanceList
- */
- @JsonProperty("relatedInstanceList")
- public List<RelatedModel> getRelatedInstanceList() {
- return relatedInstanceList;
- }
-
- /**
- * Sets the related model list.
- *
- * @param relatedInstanceList The relatedInstanceList
- */
- @JsonProperty("relatedInstanceList")
- public void setRelatedInstanceList( List<RelatedModel> relatedInstanceList) {
- this.relatedInstanceList = relatedInstanceList;
- }
-
- /**
- * Gets the request info.
- *
- * @return The requestInfo
- */
- @JsonProperty("requestInfo")
- public RequestInfo getRequestInfo() {
- return requestInfo;
- }
-
- /**
- * Sets the request info.
- *
- * @param requestInfo The requestInfo
- */
- @JsonProperty("requestInfo")
- public void setRequestInfo(RequestInfo requestInfo) {
- this.requestInfo = requestInfo;
- }
-
- /**
- * Gets the subscriber info.
- *
- * @return The subscriberInfo
- */
- @JsonProperty("subscriberInfo")
- public SubscriberInfo getSubscriberInfo() {
- return subscriberInfo;
- }
-
- /**
- * Sets the subscriber info.
- *
- * @param subscriberInfo The subscriberInfo
- */
- @JsonProperty("subscriberInfo")
- public void setSubscriberInfo(SubscriberInfo subscriberInfo) {
- this.subscriberInfo = subscriberInfo;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RequestDetails#toString()
- */
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RequestDetails#getAdditionalProperties()
- */
- @JsonAnyGetter
- public Map<String, Object> getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RequestDetails#setAdditionalProperty(java.lang.String, java.lang.Object)
- */
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RequestDetails#hashCode()
- */
- @Override
- public int hashCode() {
- return new HashCodeBuilder().append(cloudConfiguration).append(modelInfo).append(relatedInstanceList).append(requestInfo).append(getRequestParameters()).append(subscriberInfo).append(additionalProperties).toHashCode();
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.domain.mso.RequestDetails#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object other) {
- if (other == this) {
- return true;
- }
- if ((other instanceof RequestDetails) == false) {
- return false;
- }
- RequestDetails rhs = ((RequestDetails) other);
- return new EqualsBuilder().append(cloudConfiguration, rhs.cloudConfiguration).append(modelInfo, rhs.modelInfo).append(relatedInstanceList, rhs.relatedInstanceList).append(requestInfo, rhs.requestInfo).append(getRequestParameters(), rhs.getRequestParameters()).append(subscriberInfo, rhs.subscriberInfo).append(additionalProperties, rhs.additionalProperties).isEquals();
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso.rest; + +import java.util.HashMap; +import java.util.Map; +import java.util.List; + +import org.onap.vid.domain.mso.*; +import org.onap.vid.domain.mso.SubscriberInfo; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * aggregates the context, configuraiton and detailed parameters associated with the request into a single structure. + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "cloudConfiguration", + "modelInfo", + "relatedModelList", + "requestInfo", + "subscriberInfo", + "requestParameters" +}) +public class RequestDetails{ + + /** The cloud configuration. */ + @JsonProperty("cloudConfiguration") + private CloudConfiguration cloudConfiguration; + + /** The model info. */ + @JsonProperty("modelInfo") + private ModelInfo modelInfo; + + /** The related model list. */ + @JsonProperty("relatedModelList") + private List<RelatedModel> relatedInstanceList; + + /** The request info. */ + @JsonProperty("requestInfo") + private RequestInfo requestInfo; + + /** The subscriber info. */ + @JsonProperty("subscriberInfo") + private SubscriberInfo subscriberInfo; + + /** The request parameters. */ + @JsonProperty("requestParameters") + private RequestParameters requestParameters; + + /** The additional properties. */ + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + /** + * Gets the cloud configuration. + * + * @return The cloudConfiguration + */ + @JsonProperty("cloudConfiguration") + public CloudConfiguration getCloudConfiguration() { + return cloudConfiguration; + } + + /** + * Sets the cloud configuration. + * + * @param cloudConfiguration The cloudConfiguration + */ + @JsonProperty("cloudConfiguration") + public void setCloudConfiguration(CloudConfiguration cloudConfiguration) { + this.cloudConfiguration = cloudConfiguration; + } + + /** + * Gets the model info. + * + * @return The modelInfo + */ + @JsonProperty("modelInfo") + public ModelInfo getModelInfo() { + return modelInfo; + } + + /** + * Sets the model info. + * + * @param modelInfo The modelInfo + */ + @JsonProperty("modelInfo") + public void setModelInfo(ModelInfo modelInfo) { + this.modelInfo = modelInfo; + } + /** + * Gets the related instance list. + * + * @return The relatedInstanceList + */ + @JsonProperty("relatedInstanceList") + public List<RelatedModel> getRelatedInstanceList() { + return relatedInstanceList; + } + + /** + * Sets the related model list. + * + * @param relatedInstanceList The relatedInstanceList + */ + @JsonProperty("relatedInstanceList") + public void setRelatedInstanceList( List<RelatedModel> relatedInstanceList) { + this.relatedInstanceList = relatedInstanceList; + } + + /** + * Gets the request info. + * + * @return The requestInfo + */ + @JsonProperty("requestInfo") + public RequestInfo getRequestInfo() { + return requestInfo; + } + + /** + * Sets the request info. + * + * @param requestInfo The requestInfo + */ + @JsonProperty("requestInfo") + public void setRequestInfo(RequestInfo requestInfo) { + this.requestInfo = requestInfo; + } + + /** + * Gets the subscriber info. + * + * @return The subscriberInfo + */ + @JsonProperty("subscriberInfo") + public SubscriberInfo getSubscriberInfo() { + return subscriberInfo; + } + + /** + * Sets the subscriber info. + * + * @param subscriberInfo The subscriberInfo + */ + @JsonProperty("subscriberInfo") + public void setSubscriberInfo(SubscriberInfo subscriberInfo) { + this.subscriberInfo = subscriberInfo; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RequestDetails#toString() + */ + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RequestDetails#getAdditionalProperties() + */ + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RequestDetails#setAdditionalProperty(java.lang.String, java.lang.Object) + */ + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RequestDetails#hashCode() + */ + @Override + public int hashCode() { + return new HashCodeBuilder().append(cloudConfiguration).append(modelInfo).append(relatedInstanceList).append(requestInfo).append(getRequestParameters()).append(subscriberInfo).append(additionalProperties).toHashCode(); + } + + /* (non-Javadoc) + * @see org.openecomp.vid.domain.mso.RequestDetails#equals(java.lang.Object) + */ + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof RequestDetails) == false) { + return false; + } + RequestDetails rhs = ((RequestDetails) other); + return new EqualsBuilder().append(cloudConfiguration, rhs.cloudConfiguration).append(modelInfo, rhs.modelInfo).append(relatedInstanceList, rhs.relatedInstanceList).append(requestInfo, rhs.requestInfo).append(getRequestParameters(), rhs.getRequestParameters()).append(subscriberInfo, rhs.subscriberInfo).append(additionalProperties, rhs.additionalProperties).isEquals(); + } + + public RequestParameters getRequestParameters() { + return requestParameters; + } + + public void setRequestParameters(RequestParameters requestParameters) { + this.requestParameters = requestParameters; + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RequestList.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RequestList.java index 8a57c74b7..8f8272c07 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RequestList.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RequestList.java @@ -1,137 +1,137 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso.rest;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.annotation.Generated;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-
-//import com.fasterxml.jackson.annotation.JsonInclude;
-//import com.fasterxml.jackson.annotation.JsonProperty;
-//import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import org.apache.commons.lang.builder.EqualsBuilder;
-import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.commons.lang.builder.ToStringBuilder;
-import java.util.List;
-
-/**
- * List of relatedModel structures that are related to a modelInfo being operated on.
- */
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@Generated("org.jsonschema2pojo")
-@JsonPropertyOrder({
- "finishTime",
- "instanceIds",
- "requestDetails",
- "requestId",
- "requestScope",
- "requestStatus",
- "requestType",
- "startTime"
-})
-
-public class RequestList {
-
- /** The request list. */
- private List<RequestWrapper> requestList;
-
- /** The additional properties. */
- @JsonIgnore
- private Map<String, Object> additionalProperties = new HashMap<String, Object>();
-
- /**
- * (Required).
- *
- * @return The RelatedModel List
- */
- public List<RequestWrapper> getRequestList() {
- return requestList;
- }
-
- /**
- * Sets the request list.
- *
- * @param l the new request list
- */
- public void setRequestList(List<RequestWrapper> l) {
- this.requestList = l;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
-
- /**
- * Gets the additional properties.
- *
- * @return the additional properties
- */
- @JsonAnyGetter
- public Map<String, Object> getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- /**
- * Sets the additional property.
- *
- * @param name the name
- * @param value the value
- */
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#hashCode()
- */
- @Override
- public int hashCode() {
- return new HashCodeBuilder().append(getRequestList()).append(additionalProperties).toHashCode();
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object other) {
- if (other == this) {
- return true;
- }
- if ((other instanceof RequestList) == false) {
- return false;
- }
- RequestList rhs = ((RequestList) other);
- return new EqualsBuilder().append(getRequestList(), rhs.getRequestList()).append(additionalProperties, rhs.additionalProperties).isEquals();
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.mso.rest; + +import java.util.HashMap; +import java.util.Map; + +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +//import com.fasterxml.jackson.annotation.JsonInclude; +//import com.fasterxml.jackson.annotation.JsonProperty; +//import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; +import java.util.List; + +/** + * List of relatedModel structures that are related to a modelInfo being operated on. + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@Generated("org.jsonschema2pojo") +@JsonPropertyOrder({ + "finishTime", + "instanceIds", + "requestDetails", + "requestId", + "requestScope", + "requestStatus", + "requestType", + "startTime" +}) + +public class RequestList { + + /** The request list. */ + private List<RequestWrapper> requestList; + + /** The additional properties. */ + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + /** + * (Required). + * + * @return The RelatedModel List + */ + public List<RequestWrapper> getRequestList() { + return requestList; + } + + /** + * Sets the request list. + * + * @param l the new request list + */ + public void setRequestList(List<RequestWrapper> l) { + this.requestList = l; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + /** + * Gets the additional properties. + * + * @return the additional properties + */ + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + /** + * Sets the additional property. + * + * @param name the name + * @param value the value + */ + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + /* (non-Javadoc) + * @see java.lang.Object#hashCode() + */ + @Override + public int hashCode() { + return new HashCodeBuilder().append(getRequestList()).append(additionalProperties).toHashCode(); + } + + /* (non-Javadoc) + * @see java.lang.Object#equals(java.lang.Object) + */ + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof RequestList) == false) { + return false; + } + RequestList rhs = ((RequestList) other); + return new EqualsBuilder().append(getRequestList(), rhs.getRequestList()).append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RequestWrapper.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RequestWrapper.java index b0e9fa125..c93d0e563 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RequestWrapper.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RequestWrapper.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/Response.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/Response.java index ee3a8bfef..ee074f38d 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/Response.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/Response.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RestInterface.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RestInterface.java index 1e2733587..9fc95fcec 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/RestInterface.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/RestInterface.java @@ -1,6 +1,8 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; -import org.openecomp.vid.mso.RestObject; +import org.onap.vid.mso.RestObject; + +import javax.ws.rs.core.MultivaluedHashMap; /** * Created by pickjonathan on 26/06/2017. @@ -10,7 +12,7 @@ public interface RestInterface { /** * Inits the rest client. */ - public void initMsoClient(); + MultivaluedHashMap<String, Object> initMsoClient(); /** * Gets the. @@ -22,7 +24,7 @@ public interface RestInterface { * @param restObject the rest object * @throws Exception the exception */ - public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception; + <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception; /** * Delete. @@ -35,7 +37,7 @@ public interface RestInterface { * @param restObject the rest object * @throws Exception the exception */ - public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception; + <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception; /** * Post. @@ -48,8 +50,8 @@ public interface RestInterface { * @param restObject the rest object * @throws Exception the exception */ - public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception; - + <T> void Post(T t, Object r, String sourceID, String path, RestObject<T> restObject) throws Exception; + /** * Put. * @@ -61,21 +63,6 @@ public interface RestInterface { * @param restObject the rest object * @throws Exception the exception */ - public <T> void Put(T t, org.openecomp.vid.changeManagement.RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject) throws Exception; - - - /*** - * Log request. - * - * @param r the r - */ - public void logRequest ( RequestDetails r ); - /*** - * Log request. - * - * @param r the r - */ - public void logRequest(org.openecomp.vid.changeManagement.RequestDetails r); - + <T> void Put(T t, org.onap.vid.changeManagement.RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject) throws Exception; } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/Task.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/Task.java index 8d72890ff..79aaaea51 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/Task.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/Task.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import java.util.List; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/TaskList.java b/vid-app-common/src/main/java/org/onap/vid/mso/rest/TaskList.java index 7232364a3..bbff333af 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/TaskList.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/rest/TaskList.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import java.util.List; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyProperties.java b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyProperties.java index d273aa6a7..2afb2d4a7 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyProperties.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyProperties.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import org.openecomp.portalsdk.core.util.SystemProperties; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyResponseWrapper.java b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyResponseWrapper.java index 02ca0f0ec..d5a4d124c 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyResponseWrapper.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyResponseWrapper.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyRestInt.java b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyRestInt.java index 7c075a535..b58fe28ff 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyRestInt.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyRestInt.java @@ -18,21 +18,20 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.policy; +package org.onap.vid.policy; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.policy.rest.RequestDetails; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.policy.rest.RequestDetails; - -import com.fasterxml.jackson.databind.ObjectMapper; - public class PolicyRestInt { /** The logger. */ - EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(PolicyRestInterface.class); + private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(PolicyRestInt.class); /** The Constant dateFormat. */ final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyRestInterface.java b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyRestInterface.java index d6a59da20..875586d99 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyRestInterface.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyRestInterface.java @@ -1,28 +1,27 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Collections; -import java.util.Date; +import org.apache.commons.codec.binary.Base64; +import org.eclipse.jetty.util.security.Password; +import org.json.simple.JSONObject; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.client.HttpBasicClient; +import org.onap.vid.policy.rest.RequestDetails; import javax.ws.rs.client.Client; import javax.ws.rs.client.Entity; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedHashMap; import javax.ws.rs.core.Response; - -import org.apache.commons.codec.binary.Base64; -import org.eclipse.jetty.util.security.Password; -import org.json.simple.JSONObject; -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.vid.client.HttpBasicClient; -import org.openecomp.vid.policy.rest.RequestDetails; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Collections; +import java.util.Date; public class PolicyRestInterface extends PolicyRestInt implements PolicyRestInterfaceIfc { /** The logger. */ - EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(PolicyRestInterface.class); + private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(PolicyRestInterface.class); /** The Constant dateFormat. */ final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyRestInterfaceFactory.java b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyRestInterfaceFactory.java index 1570875c0..40cb854bf 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyRestInterfaceFactory.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyRestInterfaceFactory.java @@ -1,5 +1,5 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; public class PolicyRestInterfaceFactory { diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyRestInterfaceIfc.java b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyRestInterfaceIfc.java index f56924b36..59b0ad3dc 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyRestInterfaceIfc.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyRestInterfaceIfc.java @@ -1,8 +1,8 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import org.json.simple.JSONObject; -import org.openecomp.vid.policy.rest.RequestDetails; +import org.onap.vid.policy.rest.RequestDetails; public interface PolicyRestInterfaceIfc { /** diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyUtil.java b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyUtil.java index ceda7c427..608352845 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/PolicyUtil.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/PolicyUtil.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import java.text.DateFormat; import java.text.SimpleDateFormat; @@ -6,9 +6,9 @@ import java.util.Date; import org.glassfish.jersey.client.ClientResponse; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.policy.PolicyResponseWrapper; -import org.openecomp.vid.policy.PolicyUtil; -import org.openecomp.vid.policy.RestObject; +import org.onap.vid.policy.PolicyResponseWrapper; +import org.onap.vid.policy.PolicyUtil; +import org.onap.vid.policy.RestObject; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/RestObject.java b/vid-app-common/src/main/java/org/onap/vid/policy/RestObject.java index de085f24b..81b354eb0 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/RestObject.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/RestObject.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.policy; +package org.onap.vid.policy; /** * The Class RestObject. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/policy/rest/RequestDetails.java b/vid-app-common/src/main/java/org/onap/vid/policy/rest/RequestDetails.java index 93e80d6b3..81e2f2d8b 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/policy/rest/RequestDetails.java +++ b/vid-app-common/src/main/java/org/onap/vid/policy/rest/RequestDetails.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.policy.rest; +package org.onap.vid.policy.rest; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/properties/AsdcClientConfiguration.java b/vid-app-common/src/main/java/org/onap/vid/properties/AsdcClientConfiguration.java index 232023b4e..c767967f1 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/properties/AsdcClientConfiguration.java +++ b/vid-app-common/src/main/java/org/onap/vid/properties/AsdcClientConfiguration.java @@ -1,124 +1,124 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.properties;
-
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.PropertySource;
-import org.springframework.context.annotation.PropertySources;
-import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
-
-/**
- * The Class AsdcClientConfiguration.
- */
-@Configuration
-
-@PropertySources({
- @PropertySource(value="asdc.properties", ignoreResourceNotFound = true),
- @PropertySource(value="${container.classpath:}/WEB-INF/conf/asdc.properties", ignoreResourceNotFound = true)
-})
-public class AsdcClientConfiguration {
-
- @Bean
- public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
- return new PropertySourcesPlaceholderConfigurer();
- }
-
- @Value("${asdc.client.type}")
- private AsdcClientType asdcClientType;
-
- /** The asdc client host. */
- @Value("${asdc.client.rest.host}")
- private String asdcClientHost;
-
- /** The asdc client port. */
- @Value("${asdc.client.rest.port}")
- private int asdcClientPort;
-
- /** The asdc client auth. */
- @Value("${asdc.client.rest.auth}")
- public String asdcClientAuth;
-
- /** The asdc client protocol. */
- @Value("${asdc.client.rest.protocol}")
- public String asdcClientProtocol;
-
- /**
- * Gets the asdc client type.
- *
- * @return the asdc client type
- */
- public AsdcClientType getAsdcClientType() {
- return asdcClientType;
- }
-
- /**
- * Gets the asdc client host.
- *
- * @return the asdc client host
- */
- public String getAsdcClientHost() {
- return asdcClientHost;
- }
-
- /**
- * Gets the asdc client port.
- *
- * @return the asdc client port
- */
- public int getAsdcClientPort() {
- return asdcClientPort;
- }
-
- /**
- * Gets the asdc client auth.
- *
- * @return the asdc client auth
- */
- public String getAsdcClientAuth() {
- return asdcClientAuth;
- }
-
- /**
- * Gets the asdc client protocol.
- *
- * @return the asdc client protocol
- */
- public String getAsdcClientProtocol() {
- return asdcClientProtocol;
- }
-
- /**
- * The Enum AsdcClientType.
- */
- public enum AsdcClientType {
-
- /** The in memory. */
- IN_MEMORY,
-
- /** The rest. */
- REST,
-
- /** The local. */
- LOCAL
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.properties; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; +import org.springframework.context.annotation.PropertySources; +import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; + +/** + * The Class AsdcClientConfiguration. + */ +@Configuration + +@PropertySources({ + @PropertySource(value="asdc.properties", ignoreResourceNotFound = true), + @PropertySource(value="${container.classpath:}/WEB-INF/conf/asdc.properties", ignoreResourceNotFound = true) +}) +public class AsdcClientConfiguration { + + @Bean + public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { + return new PropertySourcesPlaceholderConfigurer(); + } + + @Value("${asdc.client.type}") + private AsdcClientType asdcClientType; + + /** The asdc client host. */ + @Value("${asdc.client.rest.host}") + private String asdcClientHost; + + /** The asdc client port. */ + @Value("${asdc.client.rest.port}") + private int asdcClientPort; + + /** The asdc client auth. */ + @Value("${asdc.client.rest.auth}") + public String asdcClientAuth; + + /** The asdc client protocol. */ + @Value("${asdc.client.rest.protocol}") + public String asdcClientProtocol; + + /** + * Gets the asdc client type. + * + * @return the asdc client type + */ + public AsdcClientType getAsdcClientType() { + return asdcClientType; + } + + /** + * Gets the asdc client host. + * + * @return the asdc client host + */ + public String getAsdcClientHost() { + return asdcClientHost; + } + + /** + * Gets the asdc client port. + * + * @return the asdc client port + */ + public int getAsdcClientPort() { + return asdcClientPort; + } + + /** + * Gets the asdc client auth. + * + * @return the asdc client auth + */ + public String getAsdcClientAuth() { + return asdcClientAuth; + } + + /** + * Gets the asdc client protocol. + * + * @return the asdc client protocol + */ + public String getAsdcClientProtocol() { + return asdcClientProtocol; + } + + /** + * The Enum AsdcClientType. + */ + public enum AsdcClientType { + + /** The in memory. */ + IN_MEMORY, + + /** The rest. */ + REST, + + /** The local. */ + LOCAL + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/properties/MsoClientConfiguration.java b/vid-app-common/src/main/java/org/onap/vid/properties/MsoClientConfiguration.java index f7a331a7e..ca58a954d 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/properties/MsoClientConfiguration.java +++ b/vid-app-common/src/main/java/org/onap/vid/properties/MsoClientConfiguration.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.properties; +package org.onap.vid.properties; /** * Created by pickjonathan on 20/06/2017. diff --git a/vid-app-common/src/main/java/org/openecomp/vid/properties/VidProperties.java b/vid-app-common/src/main/java/org/onap/vid/properties/VidProperties.java index 141b9b27c..9108ae16c 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/properties/VidProperties.java +++ b/vid-app-common/src/main/java/org/onap/vid/properties/VidProperties.java @@ -1,93 +1,93 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.properties;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import org.openecomp.vid.model.ModelConstants;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-
-import org.openecomp.vid.controller.VidController;
-/**
- * The Class VidProperties.
- */
-public class VidProperties extends SystemProperties {
-
- //VID General Properties
-
- /** The Constant VID_TRUSTSTORE_FILENAME. */
- public static final String VID_TRUSTSTORE_FILENAME = "vid.truststore.filename";
-
- /** The Constant VID_TRUSTSTORE_PASSWD_X. */
- public static final String VID_TRUSTSTORE_PASSWD_X = "vid.truststore.passwd.x";
-
- /** The Constant FILESEPARATOR. */
- public static final String FILESEPARATOR = (System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator");
-
- /** The Constant LOG. */
- private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(VidController.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
- /**
- * Gets the asdc model namespace prefix property
- *
- * @return the property value or a default value
- */
- public static String getAsdcModelNamespace() {
- String methodName = "getAsdcModelNamespace ";
- String asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE;
- try {
- asdcModelNamespace = SystemProperties.getProperty(ModelConstants.ASDC_MODEL_NAMESPACE);
- if ( asdcModelNamespace == null || asdcModelNamespace.isEmpty()) {
- asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE;
- }
- }
- catch ( Exception e ) {
- LOG.error (EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + "unable to find the value, using the default "
- + ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE);
- asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE;
- }
- return (asdcModelNamespace);
- }
- /**
- * Gets the specified property value. If the property is not defined, returns a default value.
- *
- * @return the property value or a default value
- */
- public static String getPropertyWithDefault ( String propName, String defaultValue ) {
- String methodName = "getPropertyWithDefault ";
- String propValue = defaultValue;
- try {
- propValue = SystemProperties.getProperty(propName);
- if ( propValue == null || propValue.isEmpty()) {
- propValue = defaultValue;
- }
- }
- catch ( Exception e ) {
- LOG.error (EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + "unable to find the value, using the default "
- + defaultValue);
- propValue = defaultValue;
- }
- return (propValue);
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.properties; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.model.ModelConstants; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +/** + * The Class VidProperties. + */ +public class VidProperties extends SystemProperties { + + //VID General Properties + + /** The Constant VID_TRUSTSTORE_FILENAME. */ + public static final String VID_TRUSTSTORE_FILENAME = "vid.truststore.filename"; + + /** The Constant VID_TRUSTSTORE_PASSWD_X. */ + public static final String VID_TRUSTSTORE_PASSWD_X = "vid.truststore.passwd.x"; + + /** The Constant FILESEPARATOR. */ + public static final String FILESEPARATOR = (System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator"); + + /** The Constant LOG. */ + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(VidProperties.class); + + /** The Constant dateFormat. */ + final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); + /** + * Gets the asdc model namespace prefix property + * + * @return the property value or a default value + */ + public static String getAsdcModelNamespace() { + String methodName = "getAsdcModelNamespace "; + String asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE; + try { + asdcModelNamespace = SystemProperties.getProperty(ModelConstants.ASDC_MODEL_NAMESPACE); + if ( asdcModelNamespace == null || asdcModelNamespace.isEmpty()) { + asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE; + } + } + catch ( Exception e ) { + LOG.error (EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + "unable to find the value, using the default " + + ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE); + asdcModelNamespace = ModelConstants.DEFAULT_ASDC_MODEL_NAMESPACE; + } + return (asdcModelNamespace); + } + /** + * Gets the specified property value. If the property is not defined, returns a default value. + * + * @return the property value or a default value + */ + public static String getPropertyWithDefault ( String propName, String defaultValue ) { + String methodName = "getPropertyWithDefault "; + String propValue = defaultValue; + try { + propValue = SystemProperties.getProperty(propName); + if ( propValue == null || propValue.isEmpty()) { + propValue = defaultValue; + } + } + catch ( Exception e ) { + LOG.error (EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodName + "unable to find the value, using the default " + + defaultValue); + propValue = defaultValue; + } + return (propValue); + } +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/roles/EcompRole.java b/vid-app-common/src/main/java/org/onap/vid/roles/EcompRole.java index 5242f5aaa..63492cd97 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/roles/EcompRole.java +++ b/vid-app-common/src/main/java/org/onap/vid/roles/EcompRole.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.roles; +package org.onap.vid.roles; public enum EcompRole { READ; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/roles/Role.java b/vid-app-common/src/main/java/org/onap/vid/roles/Role.java index f818e48fa..902da5bcd 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/roles/Role.java +++ b/vid-app-common/src/main/java/org/onap/vid/roles/Role.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.roles; +package org.onap.vid.roles; /** * Created by Oren on 7/1/17. @@ -14,9 +14,9 @@ public class Role { private String tenant; - public Role(EcompRole ecompRole, String serviceName, String serviceType, String tenant) { + public Role(EcompRole ecompRole, String subscribeName, String serviceType, String tenant) { this.ecompRole = ecompRole; - this.subscribeName = serviceName; + this.subscribeName = subscribeName; this.serviceType = serviceType; this.tenant = tenant; } diff --git a/vid-app-common/src/main/java/org/onap/vid/roles/RoleProvider.java b/vid-app-common/src/main/java/org/onap/vid/roles/RoleProvider.java new file mode 100644 index 000000000..63cc2bbb0 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/roles/RoleProvider.java @@ -0,0 +1,138 @@ +package org.onap.vid.roles; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.web.support.UserUtils; +import org.onap.vid.aai.AaiResponse; +import org.onap.vid.aai.exceptions.RoleParsingException; +import org.onap.vid.model.ModelConstants; +import org.onap.vid.model.Subscriber; +import org.onap.vid.model.SubscriberList; +import org.onap.vid.services.AaiService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import javax.annotation.PostConstruct; +import javax.servlet.http.HttpServletRequest; +import java.util.*; + +//import org.codehaus.jackson.map.ObjectMapper; + +/** + * Created by Oren on 7/1/17. + */ + +@Component +public class RoleProvider { + + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(RoleProvider.class); + final String readPermissionString = "read"; + SubscriberList subscribers; + ObjectMapper om = new ObjectMapper(); + @Autowired + private AaiService aaiService; + + public static List<String> extractRoleFromSession(HttpServletRequest request) { + + return new ArrayList<String>(); + + } + + @PostConstruct + public void init() { + LOG.debug(EELFLoggerDelegate.debugLogger, "Role provider => init method started"); + AaiResponse<SubscriberList> subscribersResponse = aaiService.getFullSubscriberList(); + subscribers = subscribersResponse.getT(); + LOG.debug(EELFLoggerDelegate.debugLogger, "Role provider => init method finished"); + } + + public List<Role> getUserRoles(HttpServletRequest request) throws JsonProcessingException { + String logPrefix = "Role Provider (" + UserUtils.getUserId(request) + ") ==>"; + + LOG.debug(EELFLoggerDelegate.debugLogger, logPrefix + "Entering to get user role for user " + UserUtils.getUserId(request)); + + List<Role> roleList = new ArrayList<>(); + HashMap roles = UserUtils.getRoles(request); + for (Object role : roles.keySet()) { + org.openecomp.portalsdk.core.domain.Role sdkRol = (org.openecomp.portalsdk.core.domain.Role) roles.get(role); + + LOG.debug(EELFLoggerDelegate.debugLogger, logPrefix + "Role " + sdkRol.getName() + " is being proccessed"); + try { + if (sdkRol.getName().contains(readPermissionString)) { + LOG.debug(EELFLoggerDelegate.debugLogger, logPrefix + " Role " + sdkRol.getName() + " contain " + readPermissionString); + + continue; + } + String[] roleParts = splitRole((sdkRol.getName()), logPrefix); + roleList.add(createRoleFromStringArr(roleParts, logPrefix)); + String msg = String.format(logPrefix + " User %s got permissions %s", UserUtils.getUserId(request), Arrays.toString(roleParts)); + LOG.debug(EELFLoggerDelegate.debugLogger, msg); + } catch (RoleParsingException e) { + LOG.error(logPrefix + " Failed to parse permission"); + + } + } + + return roleList; + } + + public String[] splitRole(String roleAsString, String logPrefix) { + LOG.debug(EELFLoggerDelegate.debugLogger, logPrefix + "Spliting role = " + roleAsString + "With delimeter = " + ModelConstants.ROLE_DELIMITER); + return roleAsString.split(ModelConstants.ROLE_DELIMITER); + } + + public boolean userPermissionIsReadOnly(List<Role> roles) { + + return (!(roles.size() > 0)); + } + + public boolean userPermissionIsReadLogs(List<Role> roles){ + for(Role role: roles){ + if(role.getServiceType().equals("LOGS")){ + if(role.getTenant().equals("PERMITTED")){ + return true; + } + } + } + return false; + } + + private String replaceSubscriberNameToGlobalCustomerID(String subscriberName, String logPrefix) throws JsonProcessingException { + if (subscribers == null) { + LOG.debug(EELFLoggerDelegate.debugLogger, "replaceSubscriberNameToGlobalCustomerID calling init method"); + init(); + } + LOG.debug(EELFLoggerDelegate.debugLogger, logPrefix + "subscribers list size is " + subscribers.customer.size() + " with the values " + om.writeValueAsString(subscribers.customer)); + LOG.debug(EELFLoggerDelegate.debugLogger, logPrefix + "subscribers list size is " + subscribers.customer.size() + " with the values " + om.writeValueAsString(subscribers.customer)); + + + Optional<Subscriber> s = subscribers.customer.stream().filter(x -> x.subscriberName.equals(subscriberName)).findFirst(); + //Fixing bug of logging "optional get" before isPresent + String replacement = s.isPresent() ? s.get().globalCustomerId : ""; + LOG.debug(EELFLoggerDelegate.debugLogger, logPrefix + "Subscribername " + subscriberName + " changed to " + replacement); + return replacement; + } + + public Role createRoleFromStringArr(String[] roleParts, String rolePrefix) throws JsonProcessingException, RoleParsingException { + String globalCustomerID = replaceSubscriberNameToGlobalCustomerID(roleParts[0], rolePrefix); + try { + if (roleParts.length > 2) { + return new Role(EcompRole.READ, globalCustomerID, roleParts[1], roleParts[2]); + } else { + return new Role(EcompRole.READ, globalCustomerID, roleParts[1], null); + } + } catch (ArrayIndexOutOfBoundsException e) { + if (roleParts.length > 0) + LOG.debug(EELFLoggerDelegate.debugLogger, "Could not parse role ", roleParts[0]); + else { + LOG.debug(EELFLoggerDelegate.debugLogger, "Got empty role, Could not parse it "); + + } + throw new RoleParsingException(); + } + + } + +} + diff --git a/vid-app-common/src/main/java/org/openecomp/vid/roles/RoleValidator.java b/vid-app-common/src/main/java/org/onap/vid/roles/RoleValidator.java index 9031524d3..f4f17facb 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/roles/RoleValidator.java +++ b/vid-app-common/src/main/java/org/onap/vid/roles/RoleValidator.java @@ -1,6 +1,6 @@ -package org.openecomp.vid.roles; +package org.onap.vid.roles; -import org.openecomp.vid.mso.rest.RequestDetails; +import org.onap.vid.mso.rest.RequestDetails; import java.util.List; import java.util.Map; @@ -10,8 +10,6 @@ import java.util.Map; */ public class RoleValidator { - //Disable roles until AAF integration finishes - private boolean disableRoles = true; private List<Role> userRoles; public RoleValidator(List<Role> roles) { @@ -19,8 +17,6 @@ public class RoleValidator { } public boolean isSubscriberPermitted(String subscriberName) { - if(this.disableRoles) return true; - for (Role role : userRoles) { if (role.getSubscribeName().equals(subscriberName)) return true; @@ -29,8 +25,6 @@ public class RoleValidator { } public boolean isServicePermitted(String subscriberName, String serviceType) { - if(this.disableRoles) return true; - for (Role role : userRoles) { if (role.getSubscribeName().equals(subscriberName) && role.getServiceType().equals(serviceType)) return true; @@ -39,8 +33,6 @@ public class RoleValidator { } public boolean isMsoRequestValid(RequestDetails mso_request) { - if(this.disableRoles) return true; - try { String globalSubscriberIdRequested = (String) ((Map) ((Map) mso_request.getAdditionalProperties().get("requestDetails")).get("subscriberInfo")).get("globalSubscriberId"); String serviceType = (String) ((Map) ((Map) mso_request.getAdditionalProperties().get("requestDetails")).get("requestParameters")).get("subscriptionServiceType"); @@ -52,13 +44,11 @@ public class RoleValidator { // return false; } - public boolean isTenantPermitted(String globalCustomerId, String serviceType, String tenant) { - if(this.disableRoles) return true; - + public boolean isTenantPermitted(String globalCustomerId, String serviceType, String tenantName) { for (Role role : userRoles) { if (role.getSubscribeName().equals(globalCustomerId) && role.getServiceType().equals(serviceType) - && (role.getTenant() == null || role.getTenant().equals(tenant))) { + && (role.getTenant() == null || role.getTenant().equalsIgnoreCase(tenantName))) { return true; } } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObject.java b/vid-app-common/src/main/java/org/onap/vid/scheduler/RestObject.java index 57b36830e..4accb55da 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObject.java +++ b/vid-app-common/src/main/java/org/onap/vid/scheduler/RestObject.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.scheduler; +package org.onap.vid.scheduler; public class RestObject<T> { diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/RestObject.java b/vid-app-common/src/main/java/org/onap/vid/scheduler/RestObjects/RestObject.java index 2d0eec74d..ff1ffb4c5 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/RestObject.java +++ b/vid-app-common/src/main/java/org/onap/vid/scheduler/RestObjects/RestObject.java @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.scheduler.RestObjects; +package org.onap.vid.scheduler.RestObjects; public class RestObject<T> { diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerProperties.java b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerProperties.java index 15855b7be..bb5f6ebb4 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerProperties.java +++ b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerProperties.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.scheduler; +package org.onap.vid.scheduler; import org.openecomp.portalsdk.core.util.SystemProperties; @@ -10,15 +10,10 @@ public class SchedulerProperties extends SystemProperties { public static final String SCHEDULER_PASSWORD_VAL = "scheduler.password"; public static final String SCHEDULER_SERVER_URL_VAL = "scheduler.server.url"; - - public static final String SCHEDULER_CREATE_NEW_VNF_CHANGE_INSTANCE_VAL = "scheduler.create.new.vnf.change.instance"; - - public static final String SCHEDULER_GET_TIME_SLOTS = "scheduler.get.time.slots"; - - public static final String SCHEDULER_SUBMIT_NEW_VNF_CHANGE = "scheduler.submit.new.vnf.change"; public static final String SCHEDULER_GET_SCHEDULES = "scheduler.get.schedules"; - public static final String GET_VERSION_BY_INVARIANT_ID = "aai_get_version_by_invariant_id"; + public static final String SCHEDULER_DELETE_SCHEDULE = "scheduler.delete.schedule"; + } diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInterface.java b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterface.java index 5f529f390..2077e7a40 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInterface.java +++ b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterface.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.scheduler; +package org.onap.vid.scheduler; import java.util.Collections; import javax.ws.rs.client.Client; @@ -12,12 +12,15 @@ import org.eclipse.jetty.util.security.Password; import org.json.simple.JSONObject; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.vid.client.HttpBasicClient; -import org.openecomp.vid.client.HttpsBasicClient; -import org.openecomp.vid.scheduler.SchedulerProperties; -import org.openecomp.vid.scheduler.RestObjects.RestObject; +import org.onap.vid.client.HttpBasicClient; +import org.onap.vid.client.HttpsBasicClient; +import org.onap.vid.scheduler.SchedulerProperties; +import org.onap.vid.scheduler.RestObjects.RestObject; import org.springframework.stereotype.Service; +import static org.onap.vid.utils.Logging.getHttpServletRequest; +import static org.onap.vid.utils.Logging.requestIdHeaderKey; + @Service public class SchedulerRestInterface implements SchedulerRestInterfaceIfc { @@ -84,7 +87,7 @@ public class SchedulerRestInterface implements SchedulerRestInterfaceIfc { } @SuppressWarnings("unchecked") - public <T> void Get (T t, String sourceId, String path, org.openecomp.vid.scheduler.RestObject<T> restObject ) throws Exception { + public <T> void Get (T t, String sourceId, String path, org.onap.vid.scheduler.RestObject<T> restObject ) throws Exception { String methodName = "Get"; String url = SystemProperties.getProperty(SchedulerProperties.SCHEDULER_SERVER_URL_VAL) + path; @@ -98,7 +101,8 @@ public class SchedulerRestInterface implements SchedulerRestInterfaceIfc { .request() .accept("application/json") .headers(commonHeaders) - .get(); + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .get(); int status = cres.getStatus(); restObject.setStatusCode (status); @@ -131,7 +135,8 @@ public class SchedulerRestInterface implements SchedulerRestInterfaceIfc { .request() .accept("application/json") .headers(commonHeaders) - .post(Entity.entity(requestDetails, MediaType.APPLICATION_JSON)); + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) + .post(Entity.entity(requestDetails, MediaType.APPLICATION_JSON)); try { t = (T) cres.readEntity(t.getClass()); @@ -164,7 +169,7 @@ public class SchedulerRestInterface implements SchedulerRestInterfaceIfc { public void logRequest(JSONObject requestDetails) {} @SuppressWarnings("unchecked") - public <T> void Delete(T t, JSONObject requestDetails, String sourceID, String path, RestObject<T> restObject) { + public <T> void Delete(T t, String sourceID, String path, org.onap.vid.scheduler.RestObject<T> restObject) { String url=""; Response cres = null; @@ -178,8 +183,9 @@ public class SchedulerRestInterface implements SchedulerRestInterfaceIfc { .request() .accept("application/json") .headers(commonHeaders) + .header(requestIdHeaderKey, getHttpServletRequest().getHeader(requestIdHeaderKey)) //.entity(r) - .build("DELETE", Entity.entity(requestDetails, MediaType.APPLICATION_JSON)).invoke(); + .delete(); // .method("DELETE", Entity.entity(r, MediaType.APPLICATION_JSON)); //.delete(Entity.entity(r, MediaType.APPLICATION_JSON)); diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceFactory.java b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterfaceFactory.java index bf7bd8891..1c3bea9f5 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceFactory.java +++ b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterfaceFactory.java @@ -1,5 +1,5 @@ -package org.openecomp.vid.scheduler; +package org.onap.vid.scheduler; public class SchedulerRestInterfaceFactory { diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceIfc.java b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterfaceIfc.java index 839ab348d..7be8480ff 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceIfc.java +++ b/vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterfaceIfc.java @@ -1,8 +1,8 @@ -package org.openecomp.vid.scheduler; +package org.onap.vid.scheduler; import org.json.simple.JSONObject; -import org.openecomp.vid.scheduler.RestObjects.RestObject; +import org.onap.vid.scheduler.RestObjects.RestObject; import org.springframework.stereotype.Service; @Service @@ -10,12 +10,14 @@ public interface SchedulerRestInterfaceIfc { public void initRestClient(); - public <T> void Get (T t, String sourceId, String path, org.openecomp.vid.scheduler.RestObject<T> restObject ) throws Exception; + public <T> void Get (T t, String sourceId, String path, org.onap.vid.scheduler.RestObject<T> restObject ) throws Exception; - public <T> void Delete(T t, JSONObject requestDetails, String sourceID, String path, RestObject<T> restObject) + public <T> void Delete(T t, String sourceID, String path, org.onap.vid.scheduler.RestObject<T> restObject) throws Exception; public <T> void Post(T t, JSONObject r, String path, RestObject<T> restObject) throws Exception; public void logRequest(JSONObject requestDetails); -}
\ No newline at end of file +} + + diff --git a/vid-app-common/src/main/java/org/onap/vid/services/AaiService.java b/vid-app-common/src/main/java/org/onap/vid/services/AaiService.java new file mode 100644 index 000000000..4e86281c6 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/AaiService.java @@ -0,0 +1,63 @@ +package org.onap.vid.services; + +import org.codehaus.jackson.JsonParseException; +import org.codehaus.jackson.map.JsonMappingException; +import org.onap.vid.aai.AaiResponse; +import org.onap.vid.aai.SubscriberFilteredResults; +import org.onap.vid.aai.model.AaiGetPnfs.Pnf; +import org.onap.vid.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList; +import org.onap.vid.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList; +import org.onap.vid.aai.model.AaiGetTenatns.GetTenantsResponse; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.model.ServiceInstanceSearchResult; +import org.onap.vid.model.SubscriberList; +import org.onap.vid.roles.RoleValidator; + +import javax.ws.rs.core.Response; + +import java.io.IOException; +import java.util.Collection; +import java.util.ArrayList; +import java.util.List; + +/** + * Created by Oren on 7/4/17. + */ +public interface AaiService { + + + SubscriberFilteredResults getFullSubscriberList(RoleValidator roleValidator); + + AaiResponse getSubscriberData(String subscriberId, RoleValidator roleValidator); + + AaiResponse getServiceInstanceSearchResults(String subscriberId, String instanceIdentifier, RoleValidator roleProvider, List<String> owningEntities, List<String> projects); + + AaiResponse<SubscriberList> getFullSubscriberList(); + + AaiResponse getServices(RoleValidator roleValidator); + + AaiResponse getAaiZones(); + + AaiResponse<OperationalEnvironmentList> getOperationalEnvironments(String operationalEnvironmentType, String operationalEnvironmentStatus); + + AaiResponse getAicZoneForPnf(String globalCustomerId , String serviceType , String serviceId); + + Response getVNFData(String globalSubscriberId, String serviceType); + + AaiResponse<GetTenantsResponse[]> getTenants(String globalCustomerId, String serviceType, RoleValidator roleValidator); + + AaiResponse getVNFData(String globalSubscriberId, String serviceType, String serviceInstanceId); + + AaiResponse getNodeTemplateInstances(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion); + + Response getVersionByInvariantId(List<String> modelInvariantId); + + Collection<Service> getServicesByDistributionStatus(); + + AaiResponse<Pnf> getSpecificPnf(String pnfId); + + List<String> getServiceInstanceAssociatedPnfs(String globalCustomerId, String serviceType, String serviceInstanceId); + + AaiResponse getPNFData(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion, String equipVendor, String equipModel); + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/services/AaiServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/AaiServiceImpl.java new file mode 100644 index 000000000..ffb43803c --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/AaiServiceImpl.java @@ -0,0 +1,435 @@ +package org.onap.vid.services; + +import org.apache.http.HttpStatus; +import org.onap.vid.aai.model.AaiGetAicZone.AicZones; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.vid.aai.*; +import org.onap.vid.aai.ServiceInstance; +import org.onap.vid.aai.ServiceSubscription; +import org.onap.vid.aai.Services; +import org.onap.vid.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList; +import org.onap.vid.aai.model.AaiGetPnfs.Pnf; +import org.onap.vid.aai.model.AaiGetServicesRequestModel.GetServicesAAIRespone; +import org.onap.vid.aai.model.AaiGetTenatns.GetTenantsResponse; +import org.onap.vid.aai.model.*; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.model.ServiceInstanceSearchResult; +import org.onap.vid.model.SubscriberList; +import org.onap.vid.roles.RoleValidator; +import org.onap.vid.utils.Intersection; +import org.springframework.beans.factory.annotation.Autowired; + +import javax.ws.rs.core.Response; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.stream.Collectors; + +/** + * Created by Oren on 7/4/17. + */ +public class AaiServiceImpl implements AaiService { + private String serviceInstanceId = "service-instance.service-instance-id"; + private String serviceType = "service-subscription.service-type"; + private String customerId = "customer.global-customer-id"; + private String serviceInstanceName = "service-instance.service-instance-name"; + private int indexOfSubscriberName = 6; + + @Autowired + private AaiClientInterface aaiClient; + + EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(AaiServiceImpl.class); + + private List<Service> convertModelToService(Model model) { + List<Service> services = new ArrayList<>(); + String category = ""; + + if(validateModel(model)){ + if(model.getModelType() != null) + category = model.getModelType(); + + for (ModelVer modelVer: model.getModelVers().getModelVer()) { + Service service = new Service(); + if (modelVer.getModelVersionId() != null) + service.setUuid(modelVer.getModelVersionId()); + if(model.getModelInvariantId() != null) + service.setInvariantUUID(model.getModelInvariantId()); + if(modelVer.getModelVersion() != null) + service.setVersion(modelVer.getModelVersion()); + if(modelVer.getModelName() != null) + service.setName(modelVer.getModelName()); + if(modelVer.getDistributionStatus() != null) + service.setDistributionStatus(Service.DistributionStatus.valueOf(modelVer.getDistributionStatus())); + service.setCategory(category); + + services.add(service); + } + } else { + return null; + } + + return services; + } + + private boolean validateModel(Model model){ + if(model != null){ + if(model.getModelVers() != null && model.getModelVers().getModelVer() != null && model.getModelVers().getModelVer().get(0).getModelVersionId() != null){ + return true; + } + } + return false; + } + + private List<ServiceInstanceSearchResult> getServicesByOwningEntityId(List<String> owningEntities, RoleValidator roleValidator) { + AaiResponse<OwningEntityResponse> owningEntityResponse = aaiClient.getServicesByOwningEntityId(owningEntities); + List<ServiceInstanceSearchResult> serviceInstanceSearchResultList = new ArrayList<>(); + if (owningEntityResponse.getT() != null) { + for (OwningEntity owningEntity : owningEntityResponse.getT().getOwningEntity()) { + if (owningEntity.getRelationshipList() != null) { + serviceInstanceSearchResultList = convertRelationshipToSearchResult(owningEntity, serviceInstanceSearchResultList, roleValidator); + } + } + } + return serviceInstanceSearchResultList; + } + + private List<ServiceInstanceSearchResult> getServicesByProjectNames(List<String> projectNames, RoleValidator roleValidator) { + AaiResponse<ProjectResponse> projectByIdResponse = aaiClient.getServicesByProjectNames(projectNames); + List<ServiceInstanceSearchResult> serviceInstanceSearchResultList = new ArrayList<>(); + if (projectByIdResponse.getT() != null) { + for (Project project : projectByIdResponse.getT().getProject()) { + if (project.getRelationshipList() != null) + serviceInstanceSearchResultList = convertRelationshipToSearchResult(project, serviceInstanceSearchResultList, roleValidator); + } + } + return serviceInstanceSearchResultList; + } + + private List<ServiceInstanceSearchResult> convertRelationshipToSearchResult(AaiRelationResponse owningEntityResponse, List<ServiceInstanceSearchResult> serviceInstanceSearchResultList, RoleValidator roleValidator) { + if (owningEntityResponse.getRelationshipList().getRelationship() != null) { + List<Relationship> relationshipList = owningEntityResponse.getRelationshipList().getRelationship(); + for (Relationship relationship : relationshipList) { + ServiceInstanceSearchResult serviceInstanceSearchResult = new ServiceInstanceSearchResult(); + extractRelationshipData(relationship, serviceInstanceSearchResult, roleValidator); + extractRelatedToProperty(relationship, serviceInstanceSearchResult); + serviceInstanceSearchResultList.add(serviceInstanceSearchResult); + } + } + return serviceInstanceSearchResultList; + } + + private void extractRelationshipData(Relationship relationship, ServiceInstanceSearchResult serviceInstanceSearchResult, RoleValidator roleValidator) { + List<RelationshipData> relationshipDataList = relationship.getRelationDataList(); + if (relationshipDataList != null) { + setSubscriberName(relationship, serviceInstanceSearchResult); + for (RelationshipData relationshipData : relationshipDataList) { + String key = relationshipData.getRelationshipKey(); + if (key.equals(serviceInstanceId)) { + serviceInstanceSearchResult.setServiceInstanceId(relationshipData.getRelationshipValue()); + } else if (key.equals(serviceType)) { + serviceInstanceSearchResult.setServiceType(relationshipData.getRelationshipValue()); + } else if (key.equals(customerId)) { + serviceInstanceSearchResult.setGlobalCustomerId(relationshipData.getRelationshipValue()); + } + } + + boolean isPermitted = roleValidator.isServicePermitted(serviceInstanceSearchResult.getSubscriberName(), serviceInstanceSearchResult.getServiceType()); + serviceInstanceSearchResult.setIsPermitted(isPermitted); + } + } + + private void setSubscriberName(Relationship relationship, ServiceInstanceSearchResult serviceInstanceSearchResult) { + String relatedLink = relationship.getRelatedLink(); + String[] subsciber = relatedLink.split("/"); + serviceInstanceSearchResult.setSubscriberName(subsciber[indexOfSubscriberName]); + } + + private void extractRelatedToProperty(Relationship relationship, ServiceInstanceSearchResult serviceInstanceSearchResult) { + List<RelatedToProperty> relatedToPropertyList = relationship.getRelatedToPropertyList(); + if (relatedToPropertyList != null) { + for (RelatedToProperty relatedToProperty : relatedToPropertyList) { + if (relatedToProperty.getPropertyKey().equals(serviceInstanceName)) { + serviceInstanceSearchResult.setServiceInstanceName(relatedToProperty.getPropertyValue()); + } + } + } + } + + @Override + public SubscriberFilteredResults getFullSubscriberList(RoleValidator roleValidator) { + AaiResponse<SubscriberList> subscriberResponse = aaiClient.getAllSubscribers(); + SubscriberFilteredResults subscriberFilteredResults = + new SubscriberFilteredResults(roleValidator, subscriberResponse.getT(), + subscriberResponse.getErrorMessage(), + subscriberResponse.getHttpCode()); + + return subscriberFilteredResults; + } + + @Override + public AaiResponse<OperationalEnvironmentList> getOperationalEnvironments(String operationalEnvironmentType, String operationalEnvironmentStatus) { + AaiResponse<OperationalEnvironmentList> subscriberResponse = aaiClient.getOperationalEnvironments(operationalEnvironmentType, operationalEnvironmentStatus); + return subscriberResponse; + } + + @Override + public AaiResponse<SubscriberList> getFullSubscriberList() { + AaiResponse<SubscriberList> subscriberResponse = aaiClient.getAllSubscribers(); + return subscriberResponse; + } + + @Override + public AaiResponse getSubscriberData(String subscriberId, RoleValidator roleValidator) { + AaiResponse<Services> subscriberResponse = aaiClient.getSubscriberData(subscriberId); + String subscriberGlobalId = subscriberResponse.getT().globalCustomerId; + for (ServiceSubscription serviceSubscription : subscriberResponse.getT().serviceSubscriptions.serviceSubscription) { + String serviceType = serviceSubscription.serviceType; + serviceSubscription.isPermitted = roleValidator.isServicePermitted(subscriberGlobalId, serviceType); + } + return subscriberResponse; + + } + + @Override + public AaiResponse getServiceInstanceSearchResults(String subscriberId, String instanceIdentifier, RoleValidator roleValidator, List<String> owningEntities, List<String> projects) { + List<List<ServiceInstanceSearchResult>> resultList = new ArrayList<>(); + ServiceInstancesSearchResults serviceInstancesSearchResults = new ServiceInstancesSearchResults(); + + if (subscriberId != null || instanceIdentifier != null) { + resultList.add(getServicesBySubscriber(subscriberId, instanceIdentifier, roleValidator)); + } + if (owningEntities != null) { + resultList.add(getServicesByOwningEntityId(owningEntities, roleValidator)); + } + if (projects != null) { + resultList.add(getServicesByProjectNames(projects, roleValidator)); + } + if (resultList.size() > 0) { + Intersection<ServiceInstanceSearchResult> intersection = new Intersection<>(); + serviceInstancesSearchResults.serviceInstances = intersection.intersectMultipileArray(resultList); + } + + return new AaiResponse<>(serviceInstancesSearchResults, null, HttpStatus.SC_OK); + } + + + private List<ServiceInstanceSearchResult> getServicesBySubscriber(String subscriberId, String instanceIdentifier, RoleValidator roleValidator) { + AaiResponse<Services> subscriberResponse = aaiClient.getSubscriberData(subscriberId); + String subscriberGlobalId = subscriberResponse.getT().globalCustomerId; + String subscriberName = subscriberResponse.getT().subscriberName; + ServiceSubscriptions serviceSubscriptions = subscriberResponse.getT().serviceSubscriptions; + + return getSearchResultsForSubscriptions(serviceSubscriptions, subscriberId, instanceIdentifier, roleValidator, subscriberGlobalId, subscriberName); + + } + + + private ArrayList<ServiceInstanceSearchResult> getSearchResultsForSubscriptions(ServiceSubscriptions serviceSubscriptions, String subscriberId, String instanceIdentifier, RoleValidator roleValidator, String subscriberGlobalId, String subscriberName) { + ArrayList<ServiceInstanceSearchResult> results = new ArrayList<>(); + + if (serviceSubscriptions != null) { + for (ServiceSubscription serviceSubscription : serviceSubscriptions.serviceSubscription) { + String serviceType = serviceSubscription.serviceType; + serviceSubscription.isPermitted = roleValidator.isServicePermitted(subscriberGlobalId, serviceType); + ArrayList<ServiceInstanceSearchResult> resultsForSubscription = getSearchResultsForSingleSubscription(serviceSubscription, subscriberId, instanceIdentifier, subscriberName, serviceType); + results.addAll(resultsForSubscription); + } + } + + return results; + } + + private ArrayList<ServiceInstanceSearchResult> getSearchResultsForSingleSubscription(ServiceSubscription serviceSubscription, String subscriberId, String instanceIdentifier, String subscriberName, String serviceType) { + ArrayList<ServiceInstanceSearchResult> results = new ArrayList<>(); + + if (serviceSubscription.serviceInstances != null) { + for (ServiceInstance serviceInstance : serviceSubscription.serviceInstances.serviceInstance) { + ServiceInstanceSearchResult serviceInstanceSearchResult = + new ServiceInstanceSearchResult(serviceInstance.serviceInstanceId, subscriberId, serviceType, serviceInstance.serviceInstanceName, + subscriberName, serviceInstance.modelInvariantId, serviceInstance.modelVersionId, serviceSubscription.isPermitted); + + if (instanceIdentifier == null) { + results.add(serviceInstanceSearchResult); + } else if (serviceInstanceMatchesIdentifier(instanceIdentifier, serviceInstance)) { + results.add(serviceInstanceSearchResult); + } + } + } + + return results; + } + + private boolean serviceInstanceMatchesIdentifier(String instanceIdentifier, ServiceInstance serviceInstance) { + return instanceIdentifier.equals(serviceInstance.serviceInstanceId) || instanceIdentifier.equals(serviceInstance.serviceInstanceName); + } + + @Override + public Response getVersionByInvariantId(List<String> modelInvariantId) { + try { + return aaiClient.getVersionByInvariantId(modelInvariantId); + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + + @Override + public AaiResponse<Pnf> getSpecificPnf(String pnfId) { + return aaiClient.getSpecificPnf(pnfId); + } + + @Override + public AaiResponse getPNFData(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion, String equipVendor, String equipModel) { + return aaiClient.getPNFData(globalCustomerId, serviceType, modelVersionId, modelInvariantId, cloudRegion, equipVendor, equipModel); + } + + + + @Override + public AaiResponse getServices(RoleValidator roleValidator) { + AaiResponse<GetServicesAAIRespone> subscriberResponse = aaiClient.getServices(); + if (subscriberResponse.getT() != null) + for (org.onap.vid.aai.model.AaiGetServicesRequestModel.Service service : subscriberResponse.getT().service) { + service.isPermitted = true; + } + return subscriberResponse; + } + + @Override + public AaiResponse<GetTenantsResponse[]> getTenants(String globalCustomerId, String serviceType, RoleValidator roleValidator) { + AaiResponse<GetTenantsResponse[]> aaiGetTenantsResponse = aaiClient.getTenants(globalCustomerId, serviceType); + GetTenantsResponse[] tenants = aaiGetTenantsResponse.getT(); + if (tenants != null) { + for (int i = 0; i < tenants.length; i++) { + tenants[i].isPermitted = roleValidator.isTenantPermitted(globalCustomerId, serviceType, tenants[i].tenantName); + } + } + return aaiGetTenantsResponse; + + + } + + @Override + public AaiResponse getVNFData(String globalSubscriberId, String serviceType, String serviceInstanceId) { + return aaiClient.getVNFData(globalSubscriberId, serviceType, serviceInstanceId); + } + + @Override + public Response getVNFData(String globalSubscriberId, String serviceType) { + return aaiClient.getVNFData(globalSubscriberId, serviceType); + } + + @Override + public AaiResponse getAaiZones() { + AaiResponse<AicZones> response = aaiClient.getAllAicZones(); + return response; + } + + @Override + public AaiResponse getAicZoneForPnf(String globalCustomerId, String serviceType, String serviceId) { + String aicZone = ""; + + AaiResponse<ServiceRelationships> serviceInstanceResp = aaiClient.getServiceInstance(globalCustomerId, serviceType, serviceId); + if (serviceInstanceResp.getT() != null) { + List<String> aicZoneList = getRelationshipDataByType(serviceInstanceResp.getT().getRelationshipList(), "zone", "zone.zone-id"); + if (aicZoneList.size() > 0) { + aicZone = aicZoneList.get(0); + } else { + logger.warn("aic zone not found for service instance " + serviceId); + } + } else { + if (serviceInstanceResp.getErrorMessage() != null) { + logger.error("get service instance " + serviceId + " return error", serviceInstanceResp.getErrorMessage()); + return new AaiResponse(aicZone , serviceInstanceResp.getErrorMessage() ,serviceInstanceResp.getHttpCode()); + } else { + logger.warn("get service instance " + serviceId + " return empty body"); + return new AaiResponse(aicZone , "get service instance " + serviceId + " return empty body" ,serviceInstanceResp.getHttpCode()); + } + } + + return new AaiResponse(aicZone , null ,HttpStatus.SC_OK); + } + + @Override + public AaiResponse getNodeTemplateInstances(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion) { + return aaiClient.getNodeTemplateInstances(globalCustomerId, serviceType, modelVersionId, modelInvariantId, cloudRegion); + } + + @Override + public Collection<Service> getServicesByDistributionStatus() { + AaiResponse<GetServiceModelsByDistributionStatusResponse> serviceModelsByDistributionStatusResponse = aaiClient.getServiceModelsByDistributionStatus(); + Collection<Service> services = new ArrayList<>(); + if (serviceModelsByDistributionStatusResponse.getT() != null) { + List<Result> results = serviceModelsByDistributionStatusResponse.getT().getResults(); + for (Result result : results) { + if(result.getModel() != null) { + List<Service> service = convertModelToService(result.getModel()); + if (service != null) { + services.addAll(service); + } + } + } + } + return services; + } + + @Override + public List<String> getServiceInstanceAssociatedPnfs(String globalCustomerId, String serviceType, String serviceInstanceId) { + List<String> pnfs = new ArrayList<>(); + + AaiResponse<ServiceRelationships> serviceInstanceResp = aaiClient.getServiceInstance(globalCustomerId, serviceType, serviceInstanceId); + if (serviceInstanceResp.getT() != null) { + List<String> logicalLinks = getRelationshipDataByType(serviceInstanceResp.getT().getRelationshipList(), "logical-link", "logical-link.link-name"); + for (String logicalLink : logicalLinks) { + String link = ""; + try { + link = URLEncoder.encode(logicalLink, "UTF-8"); + AaiResponse<LogicalLinkResponse> logicalLinkResp = aaiClient.getLogicalLink(link); + if (logicalLinkResp.getT() != null) { + //lag-interface is the key for pnf - approved by Bracha + List<String> linkPnfs = getRelationshipDataByType(logicalLinkResp.getT().getRelationshipList(), "lag-interface", "pnf.pnf-name"); + if (linkPnfs.size() > 0) { + pnfs.addAll(linkPnfs); + } else { + logger.warn("no pnf found for logical link " + logicalLink); + } + } else { + if (logicalLinkResp.getErrorMessage() != null) { + logger.error("get logical link " + logicalLink + " return error", logicalLinkResp.getErrorMessage()); + } else { + logger.warn("get logical link " + logicalLink + " return empty body"); + } + } + } catch (UnsupportedEncodingException e) { + logger.error("Failed to encode logical link: " + logicalLink, e.getMessage()); + } + } + } else { + if (serviceInstanceResp.getErrorMessage() != null) { + logger.error("get service instance " + serviceInstanceId + " return error", serviceInstanceResp.getErrorMessage()); + } else { + logger.warn("get service instance " + serviceInstanceId + " return empty body"); + } + } + + return pnfs.stream().distinct().collect(Collectors.toList()); + } + + private List<String> getRelationshipDataByType(RelationshipList relationshipList, String relationshipType, String relationshipDataKey) { + List<String> relationshipValues = new ArrayList<>(); + for (Relationship relationship : relationshipList.getRelationship()) { + if (relationship.getRelatedTo().equals(relationshipType)) { + relationshipValues.addAll( relationship.getRelationDataList().stream() + .filter(rel -> rel.getRelationshipKey().equals(relationshipDataKey)) + .map(RelationshipData::getRelationshipValue) + .collect(Collectors.toList()) + ); + } + } + + + return relationshipValues; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/services/CategoryParameterService.java b/vid-app-common/src/main/java/org/onap/vid/services/CategoryParameterService.java new file mode 100644 index 000000000..a140007b0 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/CategoryParameterService.java @@ -0,0 +1,18 @@ +package org.onap.vid.services; + +import java.io.IOException; + +import org.onap.vid.category.AddCategoryOptionResponse; +import org.onap.vid.category.CategoryParameterOptionRep; +import org.onap.vid.category.CategoryParametersResponse; +import org.onap.vid.category.AddCategoryOptionsRequest; +import org.onap.vid.model.CategoryParameterOption; +import org.onap.vid.model.CategoryParameter.Family; + +public interface CategoryParameterService { + + CategoryParametersResponse getCategoryParameters(Family familyName) throws IOException; + AddCategoryOptionResponse createCategoryParameterOptions(String categoryName, AddCategoryOptionsRequest option) throws IOException; + AddCategoryOptionResponse updateCategoryParameterOption(String categoryName, CategoryParameterOptionRep option); + void deleteCategoryOption(String categoryName, CategoryParameterOption option) throws IOException; +} diff --git a/vid-app-common/src/main/java/org/onap/vid/services/CategoryParameterServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/CategoryParameterServiceImpl.java new file mode 100644 index 000000000..02d3521dc --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/CategoryParameterServiceImpl.java @@ -0,0 +1,144 @@ +package org.onap.vid.services; + +import java.io.IOException; +import java.util.*; +import java.util.stream.Collectors; + +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.service.DataAccessService; +import org.onap.vid.category.AddCategoryOptionResponse; +import org.onap.vid.category.CategoryParameterOptionRep; +import org.onap.vid.model.CategoryParameter; +import org.onap.vid.model.CategoryParameterOption; +import org.onap.vid.category.AddCategoryOptionsRequest; +import org.onap.vid.category.CategoryParametersResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.onap.vid.model.CategoryParameter.Family; + +import javax.ws.rs.ForbiddenException; + + +@Service +public class CategoryParameterServiceImpl implements CategoryParameterService { + + @Autowired + private DataAccessService dataAccessService; + + private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(CategoryParameterServiceImpl.class); + + public static class UnfoundedCategoryException extends RuntimeException { + + public UnfoundedCategoryException(String message) { + super(message); + } + } + + public static class UnfoundedCategoryOptionException extends RuntimeException { + + public UnfoundedCategoryOptionException(String message) { + super(message); + } + } + + public static class AlreadyExistOptionNameException extends RuntimeException { + + public AlreadyExistOptionNameException(String message) { + super(message); + } + } + + @Override + public CategoryParametersResponse getCategoryParameters(Family familyName) throws IOException { + List<CategoryParameter> categoryParameters = dataAccessService.getList(CategoryParameter.class, String.format(" where family = '%s' ",familyName), null, null); + return convertToCategoryParametersResponse(categoryParameters); + } + + private CategoryParametersResponse convertToCategoryParametersResponse(List<CategoryParameter> categoryParameters) { + Comparator<CategoryParameterOptionRep> comparator = Comparator.comparing(CategoryParameterOptionRep::getName, String.CASE_INSENSITIVE_ORDER); + Map<String, List<CategoryParameterOptionRep>> categoryParametersMap = categoryParameters.stream().collect(Collectors.toMap( + CategoryParameter::getName, + x -> x.getOptions().stream().map(opt -> new CategoryParameterOptionRep(opt.getAppId(), opt.getName())).sorted(comparator).collect(Collectors.toList()))); + return new CategoryParametersResponse(categoryParametersMap); + } + + @Override + public AddCategoryOptionResponse createCategoryParameterOptions(String categoryName, AddCategoryOptionsRequest optionsRequest) throws IOException, UnfoundedCategoryException { + + AddCategoryOptionResponse response = new AddCategoryOptionResponse(new ArrayList<>()); + CategoryParameter categoryParameter = getCategoryParameter(categoryName); + Set<String> categoryOptions = categoryParameter.getOptions().stream().map(CategoryParameterOption::getName).collect(Collectors.toSet()); + for (String optionName : optionsRequest.options) { + if (categoryOptions.contains(optionName)) { + response.getErrors().add(String.format("Option %s already exist for category %s", optionName, categoryName)); + continue; + } + String appId = categoryParameter.isIdSupported() ? UUID.randomUUID().toString() : optionName; + CategoryParameterOption categoryParameterOption = new CategoryParameterOption(appId, optionName, categoryParameter); + dataAccessService.saveDomainObject(categoryParameterOption, null); + } + + return response; + } + + private CategoryParameter getCategoryParameter( String categoryName) { + List<CategoryParameter> categoryParameters = dataAccessService.getList(CategoryParameter.class, String.format(" where name = '%s' ", categoryName), null, null); + if (categoryParameters.size() != 1) { + String msg = "There is no category parameter with name " + categoryName; + LOG.debug(msg); + throw new UnfoundedCategoryException(msg); + } + + + return categoryParameters.get(0); + } + + @Override + public AddCategoryOptionResponse updateCategoryParameterOption(String categoryName, CategoryParameterOptionRep option) { + AddCategoryOptionResponse response = new AddCategoryOptionResponse(new ArrayList<>()); + CategoryParameter categoryParameter = getCategoryParameter(categoryName); + if (!categoryParameter.isIdSupported()) { + String msg = "Updating option name for category: " + categoryName + ", is not allowed"; + LOG.debug(msg); + throw new ForbiddenException(msg); + } + Optional<CategoryParameterOption> categoryParameterOptionOptional = categoryParameter.getOptions().stream().filter(x->x.getAppId().equals(option.getId())).findFirst(); + if (!categoryParameterOptionOptional.isPresent()) { + String msg = "There is no option with id "+option.getId() + " for category " + categoryName; + LOG.debug(msg); + throw new UnfoundedCategoryOptionException(msg); + } + CategoryParameterOption categoryParameterOption = categoryParameterOptionOptional.get(); + Optional<CategoryParameterOption> alreadyExistOptionWithName = categoryParameter.getOptions().stream().filter(x->x.getName().equals(option.getName())).findFirst(); + if (alreadyExistOptionWithName.isPresent() && !alreadyExistOptionWithName.get().getAppId().equals(categoryParameterOption.getAppId())) { + String msg = "Option with name "+option.getName() + " already exist for category " + categoryName; + LOG.debug(msg); + throw new AlreadyExistOptionNameException(msg); + } + + categoryParameterOption.setName(option.getName()); + dataAccessService.saveDomainObject(categoryParameterOption, null); + + return response; + } + + @Override + public void deleteCategoryOption(String categoryName, CategoryParameterOption option) throws IOException { + List<CategoryParameter> categoryParameters = dataAccessService.getList(CategoryParameter.class, String.format(" where name = '%s'", categoryName), null, null); + if (categoryParameters.size() != 1) { + String msg = "There is no category parameter with name " + categoryName; + LOG.debug(msg); + throw new UnfoundedCategoryException(msg); + } + CategoryParameter categoryParameter = categoryParameters.get(0); + Set<CategoryParameterOption> categoryOptions = categoryParameter.getOptions(); + for (CategoryParameterOption categoryOption: categoryOptions) { + if(categoryOption.getName().equals(option.getName())) + { + dataAccessService.deleteDomainObject(categoryOption, null); + } + } + } + +} + diff --git a/vid-app-common/src/main/java/org/onap/vid/services/ChangeManagementService.java b/vid-app-common/src/main/java/org/onap/vid/services/ChangeManagementService.java new file mode 100644 index 000000000..bf0833182 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/ChangeManagementService.java @@ -0,0 +1,32 @@ +package org.onap.vid.services; + +import fj.data.Either; +import org.apache.commons.lang3.tuple.Pair; +import org.json.JSONObject; +import org.onap.vid.changeManagement.*; +import org.json.simple.JSONArray; +import org.onap.vid.mso.rest.Request; +import org.springframework.http.ResponseEntity; +import org.springframework.web.multipart.MultipartFile; + +import java.util.Collection; +import java.util.List; + +public interface ChangeManagementService { + Collection<Request> getMSOChangeManagements() throws Exception; + ResponseEntity<String> doChangeManagement(ChangeManagementRequest request, String vnfName) throws Exception; + JSONArray getSchedulerChangeManagements(); + + /** + * Deleting a scheduled flow. + * @param scheduleId - the ID of the schedule. + * @return - a pair, left - String representation of the response, right - response code. + */ + Pair<String, Integer> deleteSchedule(String scheduleId); + VnfWorkflowRelationResponse addVnfWorkflowRelation(VnfWorkflowRelationRequest vnfWorkflowRelationRequest); + List<String> getWorkflowsForVnf(GetVnfWorkflowRelationRequest getVnfWorkflowRelationRequest); + VnfWorkflowRelationResponse deleteVnfWorkflowRelation(VnfWorkflowRelationRequest vnfWorkflowRelationRequest); + VnfWorkflowRelationAllResponse getAllVnfWorkflowRelations(); + String uploadConfigUpdateFile(MultipartFile file) throws Exception; + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/services/ChangeManagementServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/ChangeManagementServiceImpl.java new file mode 100644 index 000000000..078f44945 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/ChangeManagementServiceImpl.java @@ -0,0 +1,303 @@ +package org.onap.vid.services; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.apache.commons.lang3.tuple.Pair; +import org.hibernate.NonUniqueObjectException; +import org.json.JSONObject; +import org.json.simple.JSONArray; +import org.json.simple.parser.JSONParser; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.service.DataAccessService; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.changeManagement.*; +import org.onap.vid.exceptions.NotFoundException; +import org.onap.vid.model.VNFDao; +import org.onap.vid.model.VidWorkflow; +import org.onap.vid.mso.MsoBusinessLogic; +import org.onap.vid.mso.MsoResponseWrapperInterface; +import org.onap.vid.mso.rest.Request; +import org.onap.vid.scheduler.SchedulerProperties; +import org.onap.vid.scheduler.SchedulerRestInterfaceFactory; +import org.onap.vid.scheduler.SchedulerRestInterfaceIfc; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; +import org.springframework.web.multipart.MultipartFile; + +import javax.ws.rs.BadRequestException; +import java.util.*; +import java.util.stream.Collectors; + + +@Service +public class ChangeManagementServiceImpl implements ChangeManagementService { + + private final static String primaryKey = "payload"; + private final static Set<String> requiredKeys = new HashSet<>(Arrays.asList("request-parameters", "configuration-parameters")); + private final DataAccessService dataAccessService; + private EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(ChangeManagementServiceImpl.class); + private MsoBusinessLogic msoBusinessLogic; + @Autowired + private CsvService csvService; + + @Autowired + public ChangeManagementServiceImpl(DataAccessService dataAccessService, MsoBusinessLogic msoBusinessLogic) { + this.dataAccessService = dataAccessService; + this.msoBusinessLogic = msoBusinessLogic; + } + + @Override + public Collection<Request> getMSOChangeManagements() throws Exception { + Collection<Request> result = null; + return msoBusinessLogic.getOrchestrationRequestsForDashboard(); + } + + private RequestDetails findRequestByVnfName(List<RequestDetails> requests, String vnfName) { + + if (requests == null) + return null; + + for (RequestDetails requestDetails : requests) { + if (requestDetails.getVnfName().equals(vnfName)) { + return requestDetails; + } + } + + return null; + } + + @Override + public ResponseEntity<String> doChangeManagement(ChangeManagementRequest request, String vnfName) throws Exception { + if (request == null) + return null; + ResponseEntity<String> response; + RequestDetails currentRequestDetails = findRequestByVnfName(request.getRequestDetails(), vnfName); + MsoResponseWrapperInterface msoResponseWrapperObject = null; + if (currentRequestDetails != null) { + + String serviceInstanceId = extractServiceInstanceId(currentRequestDetails, request.getRequestType()); + String vnfInstanceId = extractVnfInstanceId(currentRequestDetails, request.getRequestType()); + String requestType = request.getRequestType(); + try { + switch (requestType.toLowerCase()) { + case ChangeManagementRequest.UPDATE: { + msoResponseWrapperObject = msoBusinessLogic.updateVnf(currentRequestDetails, serviceInstanceId, vnfInstanceId); + break; + } + case ChangeManagementRequest.REPLACE: { + msoResponseWrapperObject = msoBusinessLogic.replaceVnf(currentRequestDetails, serviceInstanceId, vnfInstanceId); + break; + } + case ChangeManagementRequest.VNF_IN_PLACE_SOFTWARE_UPDATE: { + msoResponseWrapperObject = msoBusinessLogic.updateVnfSoftware(currentRequestDetails, serviceInstanceId, vnfInstanceId); + break; + } + case ChangeManagementRequest.CONFIG_UPDATE: { + msoResponseWrapperObject = msoBusinessLogic.updateVnfConfig(currentRequestDetails, serviceInstanceId, vnfInstanceId); + break; + } + } + response = new ResponseEntity<String>(msoResponseWrapperObject.getResponse(), HttpStatus.OK); + return response; + } catch (Exception e) { + logger.error("Failure during doChangeManagement with request " + request.toString(), e); + throw e; + } + + } + + // AH:TODO: return ChangeManagementResponse + return null; + } + + private String extractVnfInstanceId(RequestDetails currentRequestDetails, String requestType) { + if (currentRequestDetails.getVnfInstanceId() == null) { + logger.error("Failed to extract vnfInstanceId"); + throw new BadRequestException("No vnfInstanceId in request " + requestType); + } + return currentRequestDetails.getVnfInstanceId(); + } + + private String extractServiceInstanceId(RequestDetails currentRequestDetails, String requestType) { + try { + String serviceInstanceId = currentRequestDetails.getRelatedInstList().get(0).getRelatedInstance().getInstanceId(); + serviceInstanceId.toString(); //throw exception in case that serviceInstanceId is null... + return serviceInstanceId; + } catch (Exception e) { + logger.error("Failed to extract serviceInstanceId"); + throw new BadRequestException("No instanceId in request " + requestType); + } + } + + @Override + public JSONArray getSchedulerChangeManagements() { + JSONArray result = null; + try { + String path = SystemProperties.getProperty(SchedulerProperties.SCHEDULER_GET_SCHEDULES); + org.onap.vid.scheduler.RestObject<String> restObject = new org.onap.vid.scheduler.RestObject<>(); + SchedulerRestInterfaceIfc restClient = SchedulerRestInterfaceFactory.getInstance(); + + String str = new String(); + restObject.set(str); + restClient.Get(str, "", path, restObject); + String restCallResult = restObject.get(); + JSONParser parser = new JSONParser(); + Object parserResult = parser.parse(restCallResult); + result = (JSONArray) parserResult; + } catch (Exception e) { + e.printStackTrace(); + } + + return result; + } + + @Override + public Pair<String, Integer> deleteSchedule(String scheduleId) { + try { + String path = String.format(SystemProperties.getProperty(SchedulerProperties.SCHEDULER_DELETE_SCHEDULE), scheduleId); + org.onap.vid.scheduler.RestObject<String> restObject = new org.onap.vid.scheduler.RestObject<>(); + SchedulerRestInterfaceIfc restClient = SchedulerRestInterfaceFactory.getInstance(); + String str = new String(); + restObject.set(str); + restClient.Delete(str, "", path, restObject); + String restCallResult = restObject.get(); + return new ImmutablePair<>(restCallResult, restObject.getStatusCode()); + } catch (Exception e) { + logger.error(e.getMessage(), e); + return new ImmutablePair<>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR.value()); + } + } + + @Override + public VnfWorkflowRelationResponse addVnfWorkflowRelation(VnfWorkflowRelationRequest vnfWorkflowRelationRequest) { + VnfWorkflowRelationResponse vnfWorkflowRelationResponse = new VnfWorkflowRelationResponse(); + for (WorkflowsDetail workflowsDetail : vnfWorkflowRelationRequest.getWorkflowsDetails()) { + if (StringUtils.isEmpty(workflowsDetail.getVnfDetails().getUUID()) || + StringUtils.isEmpty(workflowsDetail.getVnfDetails().getInvariantUUID())) { + vnfWorkflowRelationResponse.getErrors().add("Using empty UUID or invariantUUID is not allowed. Relation details: " + workflowsDetail.toString()); + continue; + } + @SuppressWarnings("unchecked") List<VNFDao> vnfList = dataAccessService.getList(VNFDao.class, getVnfQueryString(workflowsDetail.getVnfDetails().getUUID(), workflowsDetail.getVnfDetails().getInvariantUUID()), null, null); + if (vnfList.size() == 0) { + vnfList.add(saveNewVnf(workflowsDetail)); + } + @SuppressWarnings("unchecked") List<VidWorkflow> workflowList = dataAccessService.getList(VidWorkflow.class, String.format(" where wokflowName = '%s'", workflowsDetail.getWorkflowName()), null, null); + if (workflowList.size() == 0) { + vnfWorkflowRelationResponse.getErrors().add("Not Found instance of workflow " + workflowsDetail.getWorkflowName() + " for vnf with UUID " + workflowsDetail.getVnfDetails().getUUID() + " and with invariantUUID " + workflowsDetail.getVnfDetails().getInvariantUUID()); + continue; + } + vnfList.get(0).getWorkflows().add(workflowList.get(0)); + try { + dataAccessService.saveDomainObject(vnfList.get(0), null); + } catch (NonUniqueObjectException e) { + //In case the relation already exists, we continue running on the list + } + } + return vnfWorkflowRelationResponse; + } + + @Override + public VnfWorkflowRelationResponse deleteVnfWorkflowRelation(VnfWorkflowRelationRequest vnfWorkflowRelationRequest) { + VnfWorkflowRelationResponse vnfWorkflowRelationResponse = new VnfWorkflowRelationResponse(); + for (WorkflowsDetail workflowsDetail : vnfWorkflowRelationRequest.getWorkflowsDetails()) { + @SuppressWarnings("unchecked") List<VNFDao> vnfList = dataAccessService.getList(VNFDao.class, getVnfQueryString(workflowsDetail.getVnfDetails().getUUID(), workflowsDetail.getVnfDetails().getInvariantUUID()), null, null); + if (vnfList.size() != 1) { + vnfWorkflowRelationResponse.getErrors().add("Found " + vnfList.size() + " instances of vnf with UUID " + workflowsDetail.getVnfDetails().getUUID() + " and vnfInvariantUUID " + workflowsDetail.getVnfDetails().getInvariantUUID()); + continue; + } + VidWorkflow vidWorkflow = getWorkflowOfVnf(vnfList.get(0), workflowsDetail.getWorkflowName()); + if (vidWorkflow == null) { + vnfWorkflowRelationResponse.getErrors().add("Not Found instance of workflow " + workflowsDetail.getWorkflowName() + " for vnf with UUID " + workflowsDetail.getVnfDetails().getUUID() + " and with invariantUUID " + workflowsDetail.getVnfDetails().getInvariantUUID()); + continue; + } + vnfList.get(0).getWorkflows().remove(vidWorkflow); + dataAccessService.saveDomainObject(vnfList.get(0), null); + } + return vnfWorkflowRelationResponse; + + } + + @Override + public List<String> getWorkflowsForVnf(GetVnfWorkflowRelationRequest getVnfWorkflowRelationRequest) { + List<VNFDao> vnfDaoList = new ArrayList<>(); + List<Set<String>> workflowsList = new ArrayList<>(); + getVnfDaoList(vnfDaoList, getVnfWorkflowRelationRequest); + getWorkflowsList(workflowsList, vnfDaoList); + return intersectWorkflows(workflowsList); + } + + private void getVnfDaoList(List<VNFDao> vnfDaoList, GetVnfWorkflowRelationRequest getVnfWorkflowRelationRequest) { + for (VnfDetails vnfDetails : getVnfWorkflowRelationRequest.getVnfDetails()) { + @SuppressWarnings("unchecked") List<VNFDao> vnfList = dataAccessService.getList(VNFDao.class, getVnfQueryString(vnfDetails.getUUID(), vnfDetails.getInvariantUUID()), null, null); + if (vnfList.size() != 1) { + throw new NotFoundException("Found" + vnfList.size() + " instances of vnf with UUID" + vnfDetails.getUUID() + " and vnfInvariantUUID" + vnfDetails.getInvariantUUID()); + } + vnfDaoList.add(vnfList.get(0)); + } + } + + private void getWorkflowsList(List<Set<String>> workflowsList, List<VNFDao> vnfDaoList) { + for (VNFDao vnfDao : vnfDaoList) { + Set<String> tempWorkflows = vnfDao.getWorkflows().stream().map(VidWorkflow::getWokflowName).collect(Collectors.toSet()); + workflowsList.add(tempWorkflows); + } + } + + private List<String> intersectWorkflows(List<Set<String>> workflowsList) { + Set<String> workflows = workflowsList.get(0); + for (Set<String> workflow : workflowsList) { + workflows.retainAll(workflow); + } + return new ArrayList<>(workflows); + } + + private String getVnfQueryString(String UUID, String invariantUUID) { + return " where vnfInvariantUUID = '" + invariantUUID + "' and vnfUUID = '" + UUID + "'"; + } + + private VidWorkflow getWorkflowOfVnf(VNFDao vnfDao, String workflowName) { + VidWorkflow vidWorkflowRes = null; + for (VidWorkflow vidWorkflow : vnfDao.getWorkflows()) { + if (vidWorkflow.getWokflowName().equals(workflowName)) { + vidWorkflowRes = vidWorkflow; + } + } + return vidWorkflowRes; + } + + private VNFDao saveNewVnf(WorkflowsDetail workflowsDetail) { + VNFDao vnfDao = new VNFDao(); + vnfDao.setVnfUUID(workflowsDetail.getVnfDetails().getUUID()); + vnfDao.setVnfInvariantUUID(workflowsDetail.getVnfDetails().getInvariantUUID()); + dataAccessService.saveDomainObject(vnfDao, null); + return vnfDao; + } + + @Override + public VnfWorkflowRelationAllResponse getAllVnfWorkflowRelations() { + @SuppressWarnings("unchecked") List<VNFDao> vnfList = dataAccessService.getList(VNFDao.class, null); + return new VnfWorkflowRelationAllResponse( + vnfList.stream() + .map(VnfDetailsWithWorkflows::new) + .collect(Collectors.toList())); + } + + @Override + public String uploadConfigUpdateFile(MultipartFile file) + throws Exception { + JSONObject json = csvService.convertCsvToJson(csvService.readCsv(file)); + if (!validateJsonOutput(json)) + throw new BadRequestException("Invalid csv file"); + json = json.getJSONObject(primaryKey); + json = new JSONObject().put(primaryKey, json.toString()); + return json.toString(); + } + + private boolean validateJsonOutput(org.json.JSONObject json) { + if (!json.has(primaryKey) || !json.getJSONObject(primaryKey).keySet().containsAll(requiredKeys)) + return false; + return true; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/services/CsvService.java b/vid-app-common/src/main/java/org/onap/vid/services/CsvService.java new file mode 100644 index 000000000..248068fba --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/CsvService.java @@ -0,0 +1,15 @@ +package org.onap.vid.services; + +import org.json.JSONObject; +import org.springframework.web.multipart.MultipartFile; + +import java.io.FileNotFoundException; +import java.io.IOException; +import java.util.List; + +public interface CsvService { + List<String[]> readCsv(String filePath) throws IOException; + JSONObject convertCsvToJson (List<String[]> myEntries) throws InstantiationException, IllegalAccessException; + List<String[]> readCsv(MultipartFile file) throws IOException; + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/services/CsvServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/CsvServiceImpl.java new file mode 100644 index 000000000..8152dae04 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/CsvServiceImpl.java @@ -0,0 +1,250 @@ +//package org.onap.vid.services; +// +////import com.opencsv.CSVReader; +//import org.json.JSONArray; +//import org.json.JSONObject; +//import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +//import org.springframework.stereotype.Service; +//import org.springframework.web.multipart.MultipartFile; +// +//import javax.ws.rs.BadRequestException; +//import java.io.FileNotFoundException; +//import java.io.FileReader; +//import java.io.IOException; +//import java.io.InputStreamReader; +//import java.util.ArrayList; +//import java.util.Arrays; +//import java.util.List; +// +//import static org.onap.vid.utils.Logging.getMethodName; +// +//@Service +//public class CsvServiceImpl implements CsvService{ +// +// +// /** The logger. */ +// static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(CsvServiceImpl.class); +// +// private static final String arrayRegex = "\\[(.*?)\\]"; +// +// +// /** +// * In UTF-8 the first line starts with "\uFEFF" so need to remove it +// * @param line is first line contains BOM +// * @return line after change +// */ +// private String [] removeBOMFromCsv(String [] line){ +// if (line.length>0) +// line[0] = line[0].replaceFirst("\uFEFF","").replaceFirst("",""); +// return line; +// } +// +// /** +// * read a csv file and puts its content in list of string arrays (without the empty lines) +// * @param filePath - the path of file to read +// * @return the content of file +// * @throws IOException +// */ +// /*@Override +// public List<String[]> readCsv(String filePath) throws IOException { +// CSVReader reader = new CSVReader(new FileReader(filePath)); +// return readCsv(reader); +// } +// +// @Override +// public List<String[]> readCsv(MultipartFile file) throws IOException { +// CSVReader reader = new CSVReader(new InputStreamReader(file.getInputStream())); +// return readCsv(reader); +// } +// +// private List<String[]> addLineWithoutSpaces(List<String[]> myEntries, String [] line){ +// line = Arrays.stream(line).filter(x -> !"".equals(x)).toArray(String[]::new); +// if(line.length > 0) +// myEntries.add(line); +// return myEntries; +// } +// +// +// private List<String[]> readCsv(CSVReader reader) throws IOException { +// try { +// List<String[]> myEntries = new ArrayList<>() ; +// String [] line; +// Boolean firstLine = true; +// while ((line = reader.readNext())!= null) { +// if (firstLine) { +// line = removeBOMFromCsv(line); +// firstLine = false; +// } +// myEntries = addLineWithoutSpaces(myEntries, line); +// } +// return myEntries; +// } +// catch (Exception e){ +// logger.error("error during reading CSV file. exception:" + e.getMessage()); +// throw e; +// } +// +// }*/ +// +// /** +// * main function that call to the recursive function with initial parameters +// * @param myEntries - the matrix with file content +// * @return the json +// * @throws IOException +// * @throws InstantiationException +// * @throws IllegalAccessException +// */ +// @Override +// public JSONObject convertCsvToJson (List<String[]> myEntries) throws InstantiationException, IllegalAccessException { +// try { +// return buildJSON(myEntries, 0, 0, myEntries.size(), JSONObject.class); +// } +// catch (Exception e){ +// logger.error("error during parsing CSV file. exception:" + e.getMessage()); +// throw e; +// } +// +// } +// +// /** +// * it goes over the matrix column while the values are the same and returns the index of changed value +// * @param myEntries the matrix +// * @param i row index refer to the whole matrix +// * @param j column index +// * @param numLines the length of the current inner matrix +// * @param startLine row index of inner matrix +// * @return the index of changed line +// */ +// private int findIndexOfChangedLine(List<String[]> myEntries, final int i, final int j, final int numLines, final int startLine) { +// int k; +// for(k = 0; k + i - startLine < numLines && myEntries.get(i)[j].equals(myEntries.get(k + i)[j]) ; k++); +// return k; +// } +// +// /** +// * check in array if its first element or if the key already exist in the previous item +// * @param jsonArray - the array to search in +// * @param key - the key to check +// * @return if exists or first element return true, otherwise- false +// */ +// private Boolean keyExistsOrFirstElement( JSONArray jsonArray,String key){ +// Boolean exists = false; +// Boolean first = false; +// JSONObject lastItem = lastItemInArray(jsonArray); +// if (lastItem == null) { +// first = true; +// } +// else { +// if (lastItem.has(key)) { +// exists = true; +// } +// } +// return exists||first; +// } +// +// /** +// * return last json in json array +// * @param jsonArray +// * @return last item or null if the array is empty +// */ +// private JSONObject lastItemInArray(JSONArray jsonArray){ +// JSONObject lastItem = null; +// if(jsonArray.length()>0) { +// lastItem = (JSONObject) jsonArray.get(jsonArray.length() - 1); +// } +// return lastItem; +// } +// +// /** +// * append current json to the main json +// * @param json - the main json to append to it +// * @param key - key to append +// * @param values - value(s) to append +// * @param <T> can be JSONObject or JSONArray +// * @param <E> string or jsonObject or jsonArray +// * @return json after put +// * @throws IllegalAccessException +// * @throws InstantiationException +// */ +// private <T, E> T putJson(T json, String key, E values) throws IllegalAccessException, InstantiationException { +// if (json instanceof JSONArray){ +// JSONArray currentJson= ((JSONArray)json); +// if (values == null) //array of strings (for last item) +// { +// currentJson.put(key); +// } +// else { +// if (keyExistsOrFirstElement(currentJson, key)) { +// currentJson.put(new JSONObject().put(key, values)); +// } else { +// JSONObject lastItem = lastItemInArray(currentJson); +// lastItem.put(key, values); +// } +// } +// } +// if (json instanceof JSONObject){ +// if (values == null) +// throw new BadRequestException("Invalid csv file"); +// ((JSONObject)json).put(key,values); +// } +// return json; +// } +// +// +// /** +// * recursive function to build JSON. Each time it counts the same values in left and send the smaller matrix +// * (until the changed value) to the next time. +// * +// * @param myEntries - the whole matrix +// * @param i- row index of the whole matrix +// * @param j - column index +// * @param numLines - number of lines of inner matrix (num of same values in the left column) +// * @param clazz JSONArray or JSONObject +// * @param <T> JSONArray or JSONObject +// * @return the json object +// * @throws IllegalAccessException +// * @throws InstantiationException +// */ +// private <T> T buildJSON(List<String[]> myEntries, int i, final int j, final int numLines, Class<T> clazz) throws IllegalAccessException, InstantiationException { +// logger.debug(EELFLoggerDelegate.debugLogger, "start {}({}, {}, {})", getMethodName(), i, j, numLines); +// T json = clazz.newInstance(); +// int startLine = i; +// while(i < numLines + startLine){ +// String[] currentRow = myEntries.get(i); +// int length = currentRow.length; +// int currentDuplicateRows = findIndexOfChangedLine(myEntries,i,j,numLines, startLine); +// String key = currentRow[j]; +// if (j == length-1) { +// json = putJson(json,currentRow[j],null); +// +// } +// else +// { +// if (key.matches(arrayRegex)){ +// JSONArray arrayObjects = buildJSON(myEntries, i, j + 1, currentDuplicateRows, JSONArray.class); +// json = putJson(json,key.replaceAll("\\[","").replaceAll("]",""),arrayObjects); +// } +// else { +// if (j < length - 2) { +// json = putJson(json, currentRow[j], buildJSON(myEntries, i, j + 1, currentDuplicateRows, JSONObject.class)); +// } +// else +// { +// if (j == length - 2)//last object +// { +// if(currentDuplicateRows > 1) { +// throw new BadRequestException("Invalid csv file"); +// } +// json = putJson(json, currentRow[j], currentRow[j + 1]); +// } +// } +// } +// } +// i += currentDuplicateRows; +// } +// logger.debug(EELFLoggerDelegate.debugLogger, "end {} json = {}", getMethodName(), json); +// return json; +// } +// +//} +// diff --git a/vid-app-common/src/main/java/org/onap/vid/services/RoleGenaratorServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/RoleGenaratorServiceImpl.java new file mode 100644 index 000000000..ea2cea57b --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/RoleGenaratorServiceImpl.java @@ -0,0 +1,164 @@ +package org.onap.vid.services; + +import jline.internal.Log; +import org.junit.Test; +import org.onap.vid.aai.*; +import org.onap.vid.model.ModelConstants; +import org.onap.vid.model.Subscriber; +import org.onap.vid.model.SubscriberList; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.HashMap; + +@Service +public class RoleGenaratorServiceImpl implements RoleGeneratorService { + + @Autowired + AaiClientInterface client; + + public static final String dbName = "vid_portal"; + public static final String tblName = "fn_role"; + public static final String tempDelimiter ="***"; + public static final String oldDelimiter = "_"; + + @Override + public String generateRoleScript(Boolean firstRun) { + String query = "USE " + dbName + ";\r\n" + + "SET SQL_SAFE_UPDATES = 0;\r\n"; + try { + AaiResponse<SubscriberList> subscribers = client.getAllSubscribers(); + if (firstRun) { + query += replaceRolesToTempDelimiter("subscriber",buildSubscribersValuesForMappingsTable(subscribers.getT())); + } + query += addAvailableRolesCombination(firstRun, subscribers); + + } + catch (Exception e) { + Log.error("There was an error in updating roles "+e.getMessage()); + } + return query; + } + + private String addAvailableRolesCombination(Boolean firstRun, AaiResponse<SubscriberList> subscribers) { + String query, availableRoles=""; + HashMap<String,String> servicesNames = new HashMap<String,String>(); + for (Subscriber subscriber: subscribers.getT().customer) { + AaiResponse<Services> subscriberResponse = client.getSubscriberData(subscriber.globalCustomerId); + for(ServiceSubscription service: subscriberResponse.getT().serviceSubscriptions.serviceSubscription) { + servicesNames.put(service.serviceType,""); + String roleName = "'" + subscriber.subscriberName + ModelConstants.ROLE_DELIMITER + service.serviceType + "'"; + availableRoles += "("+roleName+"),"; + + + } + } + availableRoles = availableRoles.substring(0,availableRoles.length()-1); + query = createTemporaryTableAvailableRoles(availableRoles); + if (firstRun){ + query += replaceRolesToTempDelimiter("service",buildServicesValuesForMappingsTable(servicesNames)); + query += replaceToNewDelimiter(); + query += deleteWrongRecords(); + + } + query += insertAvailableRolesToFnRole(); + query += dropTemporaryTable("available_roles"); + return query; + } + + private String buildSubscribersValuesForMappingsTable(SubscriberList subscribers){ + String query=""; + for (Subscriber subscriber : subscribers.customer) { + String subscriberName = subscriber.subscriberName.contains(oldDelimiter) ? subscriber.subscriberName.replace(oldDelimiter, tempDelimiter) : subscriber.subscriberName; + query = query + "('" + subscriber.globalCustomerId + "','" + subscriberName + "') ,"; + } + if(query.length() > 0) + query = query.substring(0, query.length()-1) + ";\r\n"; + return query; + } + + private String buildServicesValuesForMappingsTable(HashMap<String,String> servicesNames){ + final String[] query = {""}; + servicesNames.forEach((k,v)->{ + if (k.contains(oldDelimiter)) { + query[0] += "('" + k + "' ,'" + k.replace(oldDelimiter, tempDelimiter) +"'),"; + } + }); + if(query[0].length() > 0) + query[0] = query[0].substring(0, query[0].length()-1) + ";\r\n"; + return query[0]; + } + + private String replaceRolesToTempDelimiter(String entityName, String valuesForMappingsTable ) { + + AaiResponse<Services> services = client.getServices(); + String query = ""; + if (valuesForMappingsTable.length() > 0) { + query = "CREATE TEMPORARY TABLE IF NOT EXISTS " + entityName + "Mappings(mapKey VARCHAR(255),mapValue VARCHAR(255));\r\n" + + "INSERT INTO " + entityName + "Mappings VALUES "; + query += valuesForMappingsTable; + query += "UPDATE " + tblName + "\r\n" + + "INNER JOIN " + entityName + "Mappings ON role_name LIKE concat('%',mapKey, '%')\r\n" + + "SET ROLE_NAME = REPLACE(ROLE_NAME, mapKey, mapValue) ; \r\n" + + dropTemporaryTable(entityName + "Mappings"); + } + return query; + } + + private String replaceToNewDelimiter(){ + String query = "UPDATE " + tblName + "\r\n" + + "SET ROLE_NAME = REPLACE(ROLE_NAME, '" + oldDelimiter + "', '" + ModelConstants.ROLE_DELIMITER + "');\r\n" ; + query += "UPDATE fn_role\r\n" + + "SET ROLE_NAME = REPLACE(ROLE_NAME, '" + tempDelimiter + "', '" + oldDelimiter + "');\r\n" ; + return query; + } + + private String insertAvailableRolesToFnRole(){ + String query="INSERT INTO fn_role (ROLE_NAME, ACTIVE_YN, PRIORITY)\r\n" + + "SELECT RNAME, 'Y', 5\r\n" + + "FROM available_roles\r\n" + + "WHERE NOT EXISTS (SELECT ROLE_NAME\r\n" + + "FROM fn_role \r\n" + + "where RNAME = ROLE_NAME);\r\n"; + return query; + } + + + + private String createTemporaryTableAvailableRoles(String availableRoles) { + String query = "CREATE TEMPORARY TABLE IF NOT EXISTS available_roles(rname VARCHAR(255));\r\n"; + query += "INSERT INTO available_roles VALUES "+availableRoles+";\r\n"; + return query; + } + + private String deleteWrongRecords(){ + String query ="CREATE TEMPORARY TABLE IF NOT EXISTS wrong_roles(roleID INT);\r\n" + + "INSERT INTO wrong_roles (roleID)\r\n" + + "SELECT ROLE_ID FROM fn_role LEFT JOIN available_roles ON role_name LIKE concat(rname, '%')\r\n" + + "WHERE available_roles.rname IS NULL AND ROLE_ID NOT IN (1,16);\r\n"; + query += deleteCascade(); + query += dropTemporaryTable("wrong_roles"); + return query; + } + + private String deleteCascade() { + String query = deleteFromTableByRoles("fn_role_composite", "PARENT_ROLE_ID"); + query = query.substring(0, query.length()-1); + query += " OR wrong_roles.ROLEID = fn_role_composite.CHILD_ROLE_ID;\r\n"; + query += deleteFromTableByRoles("fn_role_function", "ROLE_ID")+ "\r\n"; + query += deleteFromTableByRoles("fn_user_role", "ROLE_ID")+ "\r\n"; + query += deleteFromTableByRoles("fn_role", "ROLE_ID")+ "\r\n"; + return query; + } + + private String deleteFromTableByRoles(String table, String column) { + String query = "DELETE FROM " + table + "\r\n"; + query += "using " + table + " inner join wrong_roles\r\n" + + "where wrong_roles.ROLEID = " + table + "." + column + ";"; + return query; + } + + private String dropTemporaryTable(String table) { + return "DROP TEMPORARY TABLE IF EXISTS " + table + ";\r\n"; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/services/RoleGeneratorService.java b/vid-app-common/src/main/java/org/onap/vid/services/RoleGeneratorService.java new file mode 100644 index 000000000..2bc96a5b2 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/services/RoleGeneratorService.java @@ -0,0 +1,5 @@ +package org.onap.vid.services; + +public interface RoleGeneratorService { + String generateRoleScript(Boolean firstRun); +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/services/VidService.java b/vid-app-common/src/main/java/org/onap/vid/services/VidService.java index 4fb0ff160..328fad019 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/services/VidService.java +++ b/vid-app-common/src/main/java/org/onap/vid/services/VidService.java @@ -1,8 +1,8 @@ -package org.openecomp.vid.services; +package org.onap.vid.services; -import org.openecomp.vid.asdc.AsdcCatalogException; -import org.openecomp.vid.asdc.beans.Service; -import org.openecomp.vid.model.ServiceModel; +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.model.ServiceModel; import java.util.Collection; import java.util.Map; diff --git a/vid-app-common/src/main/java/org/openecomp/vid/services/VidServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java index f647af456..81966439e 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/services/VidServiceImpl.java +++ b/vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java @@ -1,20 +1,20 @@ -package org.openecomp.vid.services; +package org.onap.vid.services; import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; import org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException; -import org.openecomp.vid.asdc.AsdcCatalogException; -import org.openecomp.vid.asdc.AsdcClient; -import org.openecomp.vid.asdc.beans.Service; -import org.openecomp.vid.asdc.parser.ToscaParser; -import org.openecomp.vid.asdc.parser.ToscaParserImpl; -import org.openecomp.vid.asdc.parser.ToscaParserImpl2; -import org.openecomp.vid.model.ServiceModel; +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.AsdcClient; +import org.onap.vid.asdc.beans.Service; +import org.onap.vid.asdc.parser.ToscaParser; +import org.onap.vid.asdc.parser.ToscaParserImpl; +import org.onap.vid.asdc.parser.ToscaParserImpl2; +import org.onap.vid.model.ServiceModel; import org.springframework.beans.factory.annotation.Autowired; import java.nio.file.Path; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.*; +import java.util.Collection; +import java.util.Map; +import java.util.UUID; /** * The Class VidController. @@ -28,7 +28,6 @@ public class VidServiceImpl implements VidService { /** * The Constant dateFormat. */ - private final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); protected final AsdcClient asdcClient; @Autowired private ToscaParserImpl2 toscaParser; @@ -61,17 +60,20 @@ public class VidServiceImpl implements VidService { ServiceModel serviceModel = null; try { final Service asdcServiceMetadata = asdcClient.getService(UUID.fromString(uuid)); - try { - serviceModel = toscaParser.makeServiceModel(serviceCsar, asdcServiceMetadata); - } - catch (SdcToscaParserException e){ - serviceModel = tosca.makeServiceModel(uuid, serviceCsar, asdcServiceMetadata); - } + return getServiceModel(uuid, serviceCsar, tosca, asdcServiceMetadata); } catch (Exception e) { - e.printStackTrace(); + LOG.error("Failed to download and proccess service from ASDC", e); } return serviceModel; } + private ServiceModel getServiceModel(String uuid, Path serviceCsar, ToscaParser tosca, Service asdcServiceMetadata) throws Exception { + try { + return toscaParser.makeServiceModel(serviceCsar, asdcServiceMetadata); + } catch (SdcToscaParserException e) { + return tosca.makeServiceModel(uuid, serviceCsar, asdcServiceMetadata); + } + } + }
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/openecomp/vid/services/WorkflowService.java b/vid-app-common/src/main/java/org/onap/vid/services/WorkflowService.java index 7f43433de..ea139080f 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/services/WorkflowService.java +++ b/vid-app-common/src/main/java/org/onap/vid/services/WorkflowService.java @@ -1,6 +1,6 @@ -package org.openecomp.vid.services; +package org.onap.vid.services; -import org.openecomp.vid.model.Workflow; +import org.onap.vid.model.Workflow; import java.util.Collection; public interface WorkflowService { diff --git a/vid-app-common/src/main/java/org/openecomp/vid/services/WorkflowServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/WorkflowServiceImpl.java index deb506069..037c49c17 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/services/WorkflowServiceImpl.java +++ b/vid-app-common/src/main/java/org/onap/vid/services/WorkflowServiceImpl.java @@ -1,6 +1,6 @@ -package org.openecomp.vid.services; +package org.onap.vid.services; -import org.openecomp.vid.model.Workflow; +import org.onap.vid.model.Workflow; import org.springframework.stereotype.Service; import java.util.ArrayList; diff --git a/vid-app-common/src/main/java/org/onap/vid/utils/Intersection.java b/vid-app-common/src/main/java/org/onap/vid/utils/Intersection.java new file mode 100644 index 000000000..6e0d1fc25 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/utils/Intersection.java @@ -0,0 +1,31 @@ +package org.onap.vid.utils; + +import java.util.List; +import java.util.stream.Collectors; + +/** + * Created by moriya1 on 10/10/2017. + */ +public class Intersection<T> { + public List<T> intersectMultipileArray(List<List<T>> lists) { + if (lists.size() == 1) { + return lists.get(0); + } else { + List<T> intersectResult = intersectTwoArrays(lists.get(0),lists.get(1)); + + lists.remove(0); + lists.remove(0); + lists.add(0,intersectResult); + return intersectMultipileArray(lists); + } + + } + + public List<T> intersectTwoArrays(List<T> list1, List<T> list2) { + + List<T> intersect = list1.stream() + .filter(list2::contains) + .collect(Collectors.toList()); + return intersect; + } +} diff --git a/vid-app-common/src/main/java/org/onap/vid/utils/Logging.java b/vid-app-common/src/main/java/org/onap/vid/utils/Logging.java new file mode 100644 index 000000000..16dde5682 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/utils/Logging.java @@ -0,0 +1,105 @@ +package org.onap.vid.utils; + +import com.att.eelf.configuration.EELFLogger; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.springframework.http.HttpMethod; +import org.springframework.web.context.request.RequestContextHolder; +import org.springframework.web.context.request.ServletRequestAttributes; + +import javax.servlet.http.HttpServletRequest; +import javax.ws.rs.ProcessingException; +import javax.ws.rs.core.Response; +import java.util.Arrays; +import java.util.Optional; + +import static org.onap.vid.utils.Streams.not; + +public class Logging { + + private Logging() { + } + + public static final String HTTP_REQUESTS_OUTGOING = "http.requests.outgoing."; + + public static final String requestIdHeaderKey = SystemProperties.ECOMP_REQUEST_ID; + + private static ObjectMapper objectMapper = new ObjectMapper(); + + public static String getMethodName() { + return getMethodName(0); + } + + public static String getMethodCallerName() { + return getMethodName(1); + } + + private static String getMethodName(int depth) { + final StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace(); + String thisClassName = stackTrace[1].getClassName(); + final Optional<String> caller = + Arrays.stream(stackTrace) + .skip(1) + .filter(not(frame -> frame.getClassName().equals(thisClassName))) + .skip(depth) + .map(StackTraceElement::getMethodName) + .findFirst(); + return caller.orElse("<unknonwn method name>"); + } + + public static EELFLogger getRequestsLogger(String serverName) { + return EELFLoggerDelegate.getLogger(HTTP_REQUESTS_OUTGOING +serverName); + } + + public static void logRequest(final EELFLogger logger, final HttpMethod method, final String url, final Object body) { + if (!logger.isDebugEnabled()) { + return; + } + + if (body == null) { + logRequest(logger, method, url); + return; + } + + try { + String bodyAsJson = objectMapper.writeValueAsString(body); + logger.debug("Sending {} {} Body: {}", method.name(), url, bodyAsJson); + } catch (JsonProcessingException e) { + logRequest(logger, method, url); + logger.debug("Failed to parse object in logRequest. {}", body); + } + } + + public static void logRequest(final EELFLogger logger, final HttpMethod method, final String url) { + logger.debug("Sending {} {}", method.name(), url); + } + + public static <T> void logResponse(final EELFLogger logger, final HttpMethod method, final String url, final Response response, final Class<T> entityClass) { + if (!logger.isDebugEnabled()) { + return; + } + if (response == null) { + logger.debug("Received {} {} response: null", method.name(), url); + return; + } + try { + response.bufferEntity(); + logger.debug("Received {} {} Status: {} . Body: {}", method.name(), url, response.getStatus(), response.readEntity(entityClass)); + } + catch (ProcessingException | IllegalStateException e) { + logger.debug("Received {} {} Status: {} . Failed to read response as {}", method.name(), url, response.getStatus(), entityClass.getName()); + } + } + + public static void logResponse(final EELFLogger logger, final HttpMethod method, final String url, final Response response) { + logResponse(logger, method, url, response, String.class); + } + + public static HttpServletRequest getHttpServletRequest(){ + return ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest(); + } + + +} diff --git a/vid-app-common/src/main/java/org/onap/vid/utils/Streams.java b/vid-app-common/src/main/java/org/onap/vid/utils/Streams.java new file mode 100644 index 000000000..7f81b225a --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/utils/Streams.java @@ -0,0 +1,47 @@ +package org.onap.vid.utils; + +import java.util.Iterator; +import java.util.Spliterator; +import java.util.Spliterators; +import java.util.function.Consumer; +import java.util.function.Predicate; +import java.util.stream.Stream; +import java.util.stream.StreamSupport; + +public class Streams { + public static <R> Predicate<R> not(Predicate<R> predicate) { + return predicate.negate(); + } + + public static <T> Stream<T> fromIterator(final Iterator<T> iterator) { + Iterable<T> iterable = () -> iterator; + return StreamSupport.<T>stream(iterable.spliterator(), false); + } + + + // https://stackoverflow.com/questions/20746429/limit-a-stream-by-a-predicate + private static <T> Spliterator<T> takeWhile( + Spliterator<T> splitr, Predicate<? super T> predicate) { + return new Spliterators.AbstractSpliterator<T>(splitr.estimateSize(), 0) { + boolean stillGoing = true; + @Override public boolean tryAdvance(Consumer<? super T> consumer) { + if (stillGoing) { + boolean hadNext = splitr.tryAdvance(elem -> { + if (predicate.test(elem)) { + consumer.accept(elem); + } else { + stillGoing = false; + } + }); + return hadNext && stillGoing; + } + return false; + } + }; + } + + public static <T> Stream<T> takeWhile(Stream<T> stream, Predicate<? super T> predicate) { + return StreamSupport.stream(takeWhile(stream.spliterator(), predicate), false); + } + +} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiClientInterface.java b/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiClientInterface.java deleted file mode 100644 index f1b1ba2df..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiClientInterface.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.aai; - -import org.openecomp.vid.aai.model.AaiGetTenatns.GetTenantsResponse; -import org.openecomp.vid.model.SubscriberList; - -import javax.ws.rs.core.Response; -import java.util.List; - -/** - * Created by Oren on 7/4/17. - */ -public interface AaiClientInterface { - - AaiResponse<SubscriberList> getAllSubscribers(); - - AaiResponse getSubscriberData(String subscriberId); - - AaiResponse getServices(); - - AaiResponse<GetTenantsResponse[]> getTenants(String globalCustomerId, String serviceType); - - AaiResponse getAllAicZones(); - - AaiResponse getAicZoneForPnf(String globalCustomerId , String serviceType , String serviceId); - - AaiResponse getVNFData(); - - Response getVNFData(String globalSubscriberId, String serviceType); - - AaiResponse getVNFData(String globalSubscriberId, String serviceType, String serviceInstanceId); - - Response getVersionByInvariantId(List<String> modelInvariantId); -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiResponse.java b/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiResponse.java deleted file mode 100644 index 337d1371d..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/aai/AaiResponse.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.openecomp.vid.aai; - -import org.openecomp.vid.model.ProxyResponse; - -/** - * Created by Oren on 7/10/17. - */ -public class AaiResponse<T> extends ProxyResponse{ - - T t; - - public AaiResponse(T t, String errorMessage, int aaiHttpCode) { - this.t = t; - this.errorMessage = errorMessage; - this.httpCode = aaiHttpCode; - } - - public T getT() { - return t; - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestDetailsWrapper.java b/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestDetailsWrapper.java deleted file mode 100644 index 2f49aff0a..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestDetailsWrapper.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.openecomp.vid.changeManagement; - -/** - * Created by Oren on 9/5/17. - */ -public class RequestDetailsWrapper { - - public MsoRequestDetails requestDetails; -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestParameters.java b/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestParameters.java deleted file mode 100644 index 37cad4735..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/changeManagement/RequestParameters.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.openecomp.vid.changeManagement; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ -"usePreload" -}) - -public class RequestParameters { - - - @JsonProperty("usePreload") - private Boolean usePreload; - @JsonIgnore - private Map<String, Object> additionalProperties = new HashMap<String, Object>(); - - @JsonProperty("usePreload") - public Boolean getUsePreload() { - return usePreload; - } - - @JsonProperty("usePreload") - public void setUsePreload(Boolean usePreload) { - this.usePreload = usePreload; - } - - @JsonAnyGetter - public Map<String, Object> getAdditionalProperties() { - return this.additionalProperties; - } - - @JsonAnySetter - public void setAdditionalProperty(String name, Object value) { - this.additionalProperties.put(name, value); - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/BrowseServiceTypesController.java b/vid-app-common/src/main/java/org/openecomp/vid/controller/BrowseServiceTypesController.java deleted file mode 100755 index 0698cfd9c..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/BrowseServiceTypesController.java +++ /dev/null @@ -1,87 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller;
-
-
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.servlet.ModelAndView;
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-
-
-/**
- * The Class BrowseServiceTypesController.
- */
-@RestController
-public class BrowseServiceTypesController extends RestrictedBaseController{
-
- /** The view name. */
- String viewName;
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(BrowseServiceTypesController.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /** The servlet context. */
- private @Autowired ServletContext servletContext;
-
- /**
- * Welcome.
- *
- * @param request the request
- * @return the model and view
- */
- @RequestMapping(value = {"/browseservicetypes" }, method = RequestMethod.GET)
- public ModelAndView welcome(HttpServletRequest request) {
-
- return new ModelAndView(getViewName());
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#getViewName()
- */
- public String getViewName() {
- return viewName;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#setViewName(java.lang.String)
- */
- public void setViewName(String viewName) {
- this.viewName = viewName;
- }
-
-
-}
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/ChangeManagementController.java b/vid-app-common/src/main/java/org/openecomp/vid/controller/ChangeManagementController.java deleted file mode 100644 index 1af715464..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/ChangeManagementController.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.openecomp.vid.controller; - -import org.json.simple.JSONArray; -import org.openecomp.portalsdk.core.controller.UnRestrictedBaseController; -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.services.ChangeManagementService; -import org.openecomp.vid.services.WorkflowService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; - -import org.openecomp.vid.changeManagement.ChangeManagementRequest; -import org.openecomp.vid.mso.rest.Request; - -import java.io.IOException; -import java.util.Collection; - -import javax.servlet.http.HttpServletRequest; - -/** - * Controller to handle ChangeManagement feature requests. - */ -@RestController -@RequestMapping("change-management") -public class ChangeManagementController extends UnRestrictedBaseController { - private EELFLoggerDelegate logger; - private String fromAppId; - private final WorkflowService workflowService; - private final ChangeManagementService changeManagementService; - - @Autowired - public ChangeManagementController(WorkflowService workflowService, ChangeManagementService changeManagementService) { - this.logger = EELFLoggerDelegate.getLogger(ChangeManagementController.class); - this.fromAppId = "VidChangeManagementController"; - this.workflowService = workflowService; - this.changeManagementService = changeManagementService; - } - - @RequestMapping(value = {"/workflow"}, method = RequestMethod.GET) - public ResponseEntity<Collection<String>> getWorkflow(@RequestParam("vnfs") Collection<String> vnfs) throws IOException, InterruptedException { - Collection<String> result = this.workflowService.getWorkflowsForVNFs(vnfs); - return new ResponseEntity<>(result, HttpStatus.OK); - } - - @RequestMapping(value = {"/mso"}, method = RequestMethod.GET) - public ResponseEntity<Collection<Request>> getMSOChangeManagements() throws IOException, InterruptedException { - Collection<Request> result = this.changeManagementService.getMSOChangeManagements(); - return new ResponseEntity<>(result, HttpStatus.OK); - } - - @RequestMapping(value = "/workflow/{vnfName}", method = RequestMethod.POST) - public ResponseEntity<String> changeManagement(@PathVariable("vnfName") String vnfName, - HttpServletRequest request, - @RequestBody ChangeManagementRequest changeManagmentRequest) - throws Exception { - return this.changeManagementService.doChangeManagement(changeManagmentRequest, vnfName); - } - - - @RequestMapping(value = {"/scheduler"}, method = RequestMethod.GET) - public ResponseEntity<JSONArray> getSchedulerChangeManagements() throws IOException, InterruptedException { - JSONArray result = this.changeManagementService.getSchedulerChangeManagements(); - return new ResponseEntity<>(result, HttpStatus.OK); - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/SchedulerController.java b/vid-app-common/src/main/java/org/openecomp/vid/controller/SchedulerController.java deleted file mode 100644 index 0fd2079e9..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/SchedulerController.java +++ /dev/null @@ -1,244 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * VID - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.vid.controller; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.UUID; - -import javax.servlet.http.HttpServletRequest; - -import org.json.simple.JSONObject; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import org.openecomp.portalsdk.core.controller.RestrictedBaseController; -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.vid.scheduler.RestObjects.GetTimeSlotsRestObject; -import org.openecomp.vid.scheduler.RestObjects.PostCreateNewVnfRestObject; -import org.openecomp.vid.scheduler.RestObjects.PostSubmitVnfChangeRestObject; -import org.openecomp.vid.scheduler.SchedulerProperties; -import org.openecomp.vid.scheduler.SchedulerRestInterface; -import org.openecomp.vid.scheduler.SchedulerResponseWrappers.GetTimeSlotsWrapper; -import org.openecomp.vid.scheduler.SchedulerResponseWrappers.PostCreateNewVnfWrapper; -import org.openecomp.vid.scheduler.SchedulerResponseWrappers.PostSubmitVnfChangeTimeSlotsWrapper; -import org.openecomp.vid.scheduler.SchedulerUtil; - -/** - * Controller to handle Scheduler requests. - */ - -@RestController -public class SchedulerController extends RestrictedBaseController { - - static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(SchedulerController.class); - - /** The request date format. */ - public DateFormat requestDateFormat = new SimpleDateFormat("EEE, dd MMM YYYY HH:mm:ss z"); - - @Autowired - private SchedulerRestInterface restController; - - /* - * - * GET SCHEDULER CONTROLLERS - * - */ - - @RequestMapping(value = "/get_time_slots/{scheduler_request}", method = RequestMethod.GET) - public ResponseEntity<String> getTimeSlots(HttpServletRequest request, @PathVariable("scheduler_request") String scheduler_request) throws Exception { - - Date startingTime = new Date(); - String startTimeRequest = requestDateFormat.format(startingTime); - - System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); - System.out.println(startTimeRequest + " | Controller Scheduler GET : /get_time_slots/{scheduler_request} \n"); - System.out.println("Original Request : \n " + scheduler_request + '\n'); - - String path = SystemProperties.getProperty(SchedulerProperties.SCHEDULER_GET_TIME_SLOTS) + scheduler_request; - - GetTimeSlotsWrapper schedulerResWrapper = getTimeSlots(scheduler_request, path, scheduler_request); - - Date endTime = new Date(); - String endTimeRequest = requestDateFormat.format(endTime); - System.out.println(endTimeRequest + " | Controller Scheduler - GET\n"); - - return (new ResponseEntity<String>(schedulerResWrapper.getResponse(), HttpStatus.OK)); - - } - - protected GetTimeSlotsWrapper getTimeSlots(String request, String path, String uuid) throws Exception { - - try { - //STARTING REST API CALL AS AN FACTORY INSTACE - System.out.println("<== Get Time Slots Request START \n"); - - GetTimeSlotsRestObject<String> restObjStr = new GetTimeSlotsRestObject<String>(); - String str = new String(); - - restObjStr.set(str); - - restController.<String>Get(str, uuid, path, restObjStr); - GetTimeSlotsWrapper schedulerRespWrapper = SchedulerUtil.getTimeSlotsWrapResponse(restObjStr); - - System.out.println("<== Get Time Slots Request END : Response = " + schedulerRespWrapper.getResponse() + '\n'); - - return schedulerRespWrapper; - - } catch (Exception e) { - System.out.println("<== Get Time Slots Request ERROR : " + e.toString() + '\n'); - throw e; - } - } - - /* - * - * POST SCHEDULER CONTROLLERS - * - */ - - @SuppressWarnings("unchecked") - @RequestMapping(value = "/post_create_new_vnf_change", method = RequestMethod.POST) - public ResponseEntity<String> postCreateNewVNFChange(HttpServletRequest request, @RequestBody JSONObject scheduler_request) throws Exception { - - Date startingTime = new Date(); - String startTimeRequest = requestDateFormat.format(startingTime); - - System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); - System.out.println(startTimeRequest + " | Controller Scheduler POST : post_create_new_vnf_change \n"); - - //Generating uuid - String uuid = UUID.randomUUID().toString(); - - scheduler_request.put("scheduleId", uuid); - System.out.println("<== UUID : " + uuid + '\n'); - - //adding uuid to the request payload - scheduler_request.put("scheduleId", uuid); - - System.out.println("<== UUID : " + uuid + '\n'); - System.out.println("Original Request : \n " + scheduler_request.toString() + '\n'); - - String path = SystemProperties.getProperty(SchedulerProperties.SCHEDULER_CREATE_NEW_VNF_CHANGE_INSTANCE_VAL) + uuid; - - PostCreateNewVnfWrapper responseWrapper = postSchedulingRequest(scheduler_request, path, uuid); - - Date endTime = new Date(); - String endTimeRequest = requestDateFormat.format(endTime); - System.out.println(endTimeRequest + " | Controller Scheduler - POST\n"); - - return (new ResponseEntity<String>(responseWrapper.getResponse(), HttpStatus.OK)); - } - - protected PostCreateNewVnfWrapper postSchedulingRequest(JSONObject request, String path, String uuid) throws Exception { - - try { - //STARTING REST API CALL AS AN FACTORY INSTACE - System.out.println("<== Post Create New Vnf Scheduling Request START \n"); - - PostCreateNewVnfRestObject<String> restObjStr = new PostCreateNewVnfRestObject<String>(); - String str = new String(); - - restObjStr.set(str); - restController.<String>Post(str, request, path, restObjStr); - - int status = restObjStr.getStatusCode(); - if (status >= 200 && status <= 299) { - restObjStr.setUUID(uuid); - } - - PostCreateNewVnfWrapper responseWrapper = SchedulerUtil.postCreateNewVnfWrapResponse(restObjStr); - - System.out.println("<== Post Create New Vnf Scheduling Request END : Response = " + responseWrapper.getResponse() + '\n'); - - return responseWrapper; - - } catch (Exception e) { - System.out.println("<== Post Create New Vnf Scheduling Request ERROR : " + e.toString() + '\n'); - throw e; - } - } - - @RequestMapping(value = "/submit_vnf_change_timeslots", method = RequestMethod.POST) - public ResponseEntity<String> postSubmitVnfChangeTimeslots(HttpServletRequest request, @RequestBody JSONObject scheduler_request) throws Exception { - - Date startingTime = new Date(); - String startTimeRequest = requestDateFormat.format(startingTime); - - System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); - System.out.println(startTimeRequest + " | Controller Scheduler POST : submit_vnf_change_timeslots \n"); - - //Generating uuid - String uuid = (String) scheduler_request.get("scheduleId"); - scheduler_request.remove("scheduleId"); - - System.out.println("<== UUID : " + uuid + '\n'); - System.out.println("Original Request : \n " + scheduler_request.toString() + '\n'); - - String path = SystemProperties.getProperty(SchedulerProperties.SCHEDULER_SUBMIT_NEW_VNF_CHANGE).replace("{scheduleId}", uuid); - - PostSubmitVnfChangeTimeSlotsWrapper responseWrapper = postSubmitSchedulingRequest(scheduler_request, path, uuid); - - Date endTime = new Date(); - String endTimeRequest = requestDateFormat.format(endTime); - System.out.println(endTimeRequest + " | Controller Scheduler - POST Submit\n"); - - return (new ResponseEntity<String>(responseWrapper.getResponse(), HttpStatus.OK)); - } - - protected PostSubmitVnfChangeTimeSlotsWrapper postSubmitSchedulingRequest(JSONObject request, String path, String uuid) throws Exception { - - try { - //STARTING REST API CALL AS AN FACTORY INSTACE - System.out.println("<== Post Submit Scheduling Request START \n"); - - PostSubmitVnfChangeRestObject<String> restObjStr = new PostSubmitVnfChangeRestObject<String>(); - String str = new String(); - - restObjStr.set(str); - restController.<String>Post(str, request, path, restObjStr); - - int status = restObjStr.getStatusCode(); - if (status >= 200 && status <= 299) { - restObjStr.setUUID(uuid); - } - - PostSubmitVnfChangeTimeSlotsWrapper responseWrapper = SchedulerUtil.postSubmitNewVnfWrapResponse(restObjStr); - - System.out.println("<== Post Submit Scheduling Request END : Response = " + responseWrapper.getResponse() + '\n'); - - return responseWrapper; - - } catch (Exception e) { - System.out.println("<== Post Submit Scheduling Request ERROR : " + e.toString() + '\n'); - throw e; - } - } -} - diff --git a/vid-app-common/src/main/java/org/openecomp/vid/controller/ViewEditSubController.java b/vid-app-common/src/main/java/org/openecomp/vid/controller/ViewEditSubController.java deleted file mode 100755 index e23b99ba4..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/controller/ViewEditSubController.java +++ /dev/null @@ -1,107 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.controller;
-
-
-import java.io.File;
-import java.text.DateFormat;
-import java.util.HashMap;
-import java.util.Map;
-
-
-
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.servlet.ModelAndView;
-
-import org.openecomp.portalsdk.core.controller.RestrictedBaseController;
-
-
-/**
- * The Class ViewEditSubController.
- */
-@RestController
-public class ViewEditSubController extends RestrictedBaseController{
-
- /** The view name. */
- String viewName;
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(ViewEditSubController.class);
-
- /** The model. */
- private Map<String, Object> model = new HashMap<String, Object>();
-
- /** The servlet context. */
- private @Autowired ServletContext servletContext;
-
- /**
- * Welcome.
- *
- * @param request the request
- * @return the model and view
- */
- @RequestMapping(value = {"/vieweditsub" }, method = RequestMethod.GET)
- public ModelAndView welcome(HttpServletRequest request) {
- return new ModelAndView("vieweditsub","model", model);
- // return new ModelAndView(getViewName());
- }
-
- /**
- * Post subscriber.
- *
- * @param request the request
- */
- @RequestMapping(value="/vieweditsub/subedit", method = RequestMethod.POST)
- public void PostSubscriber(HttpServletRequest request) {
-
- String subID = request.getParameter("subscriberID");
- model.put("subInfo", subID);
-
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#getViewName()
- */
- public String getViewName() {
- return viewName;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.portalsdk.core.controller.RestrictedBaseController#setViewName(java.lang.String)
- */
- public void setViewName(String viewName) {
- this.viewName = viewName;
- }
-
-
-
-
-}
-
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/model/ProxyResponse.java b/vid-app-common/src/main/java/org/openecomp/vid/model/ProxyResponse.java deleted file mode 100644 index 132c54ad9..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/model/ProxyResponse.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.openecomp.vid.model; - -/** - * Created by Oren on 7/10/17. - */ -public class ProxyResponse { - - protected String errorMessage; - - protected int httpCode; - - public String getErrorMessage() { - return errorMessage; - } - - - public int getHttpCode() { - return httpCode; - } - -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java deleted file mode 100644 index f6847e45d..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java +++ /dev/null @@ -1,416 +0,0 @@ -package org.openecomp.vid.mso; - -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.ObjectMapper; -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.vid.controller.MsoController; -import org.openecomp.vid.mso.rest.*; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -import static org.openecomp.vid.controller.MsoController.SVC_INSTANCE_ID; -import static org.openecomp.vid.controller.MsoController.REQUEST_TYPE; -import static org.openecomp.vid.controller.MsoController.VNF_INSTANCE_ID; - -/** - * Created by pickjonathan on 19/06/2017. - */ -public class MsoBusinessLogic { - - /** - * The Mso REST client - * This should be replaced with mso client factory. - */ - private MsoInterface msoClientInterface; - - /** - * The logger. - */ - EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoController.class); - - /** - * The Constant dateFormat. - */ - final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); - - public MsoBusinessLogic() { - msoClientInterface = MsoRestInterfaceFactory.getInstance(); - } - - // this function should get params from tosca and send them to instance at mso, then return success response. - public MsoResponseWrapper createSvcInstance(RequestDetails msoRequest) throws Exception { - String methodName = "createSvcInstance "; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_SVC_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - return msoClientInterface.createSvcInstance(msoRequest, endpoint); - } - - public MsoResponseWrapper createVnf(RequestDetails requestDetails, String serviceInstanceId) throws Exception { - String methodName = "createVnf"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - return msoClientInterface.createVnf(requestDetails, vnf_endpoint); - } - - public MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception { - String methodName = "createNwInstance"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_NETWORK_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - String nw_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - return msoClientInterface.createNwInstance(requestDetails, nw_endpoint); - } - - public MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { - String methodName = "createVolumeGroupInstance"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VOLUME_GROUP_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - vnf_endpoint = vnf_endpoint.replaceFirst(VNF_INSTANCE_ID, vnfInstanceId); - - return msoClientInterface.createVolumeGroupInstance(requestDetails, vnf_endpoint); - } - - public MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception{ - String methodName = "createVfModuleInstance"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VF_MODULE_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - String partial_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - String vf_module_endpoint = partial_endpoint.replaceFirst(VNF_INSTANCE_ID, vnfInstanceId); - - return msoClientInterface.createVfModuleInstance(requestDetails, vf_module_endpoint); - } - - public MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String serviceInstanceId) throws Exception{ - String methodName = "deleteSvcInstance"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_SVC_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - String svc_endpoint = endpoint + "/" + serviceInstanceId; - - return msoClientInterface.deleteSvcInstance(requestDetails, svc_endpoint); - } - - public MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception{ - String methodName = "deleteVnf"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_INSTANCE); - } catch (Exception exception) { - throw exception; - } - String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - vnf_endpoint = vnf_endpoint + '/' + vnfInstanceId; - - return msoClientInterface.deleteVnf(requestDetails, vnf_endpoint); - } - - public MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId, String vfModuleId) throws Exception{ - String methodName = "deleteVfModule"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VF_MODULE_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - String vf__modules_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId).replaceFirst(VNF_INSTANCE_ID, vnfInstanceId); - - String delete_vf_endpoint = vf__modules_endpoint + '/' + vfModuleId; - - return msoClientInterface.deleteVfModule(requestDetails, delete_vf_endpoint); - } - - public MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId, String volumeGroupId)throws Exception{ - String methodName = "deleteVolumeGroupInstance"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VOLUME_GROUP_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - String svc_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - String vnf_endpoint = svc_endpoint.replaceFirst(VNF_INSTANCE_ID, vnfInstanceId); - String delete_volume_group_endpoint = vnf_endpoint + "/" + volumeGroupId; - - return msoClientInterface.deleteVolumeGroupInstance(requestDetails, delete_volume_group_endpoint); - } - - public MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String serviceInstanceId, String networkInstanceId) throws Exception{ - String methodName = "deleteNwInstance"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_NETWORK_INSTANCE); - } catch (Exception exception) { - throw exception; - } - - String svc_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - String delete_nw_endpoint = svc_endpoint + "/" + networkInstanceId; - - return msoClientInterface.deleteNwInstance(requestDetails, delete_nw_endpoint); - } - - public MsoResponseWrapper getOrchestrationRequest(String requestId)throws Exception{ - String methodName = "getOrchestrationRequest"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - MsoResponseWrapper w = null; - try { - String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_ORC_REQ); - String path = p + "/" + requestId; - - RestObject<String> restObjStr = new RestObject<String>(); - String str = new String(); - restObjStr.set(str); - - msoClientInterface.getOrchestrationRequest(str, "", path, restObjStr); - - return MsoUtil.wrapResponse(restObjStr); - - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - public MsoResponseWrapper getOrchestrationRequests(String filterString)throws Exception{ - String methodName = "getOrchestrationRequest"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - MsoResponseWrapper w = null; - try { - String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_ORC_REQS); - String path = p + filterString; - - RestObject<String> restObjStr = new RestObject<String>(); - String str = new String(); - restObjStr.set(str); - - msoClientInterface.getOrchestrationRequest(str, "", path, restObjStr); - - return MsoUtil.wrapResponse(restObjStr); - - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - public List<Request> getOrchestrationRequestsForDashboard()throws Exception{ - String methodName = "getOrchestrationRequestsForDashboard"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - try { - String path = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_ORC_REQS); - path += "filter=modelType:EQUALS:vnf"; - RestObject<String> restObjStr = new RestObject<String>(); - String str = new String(); - restObjStr.set(str); - - MsoResponseWrapper msoResponseWrapper = msoClientInterface.getOrchestrationRequestsForDashboard(str, "", path, restObjStr); - List<RequestWrapper> allOrchestrationRequests = deserializeOrchestrationRequestsJson(msoResponseWrapper.getEntity()); - - List<Request> filteredOrchestrationRequests = new ArrayList<>(); - for (RequestWrapper currentRequest:allOrchestrationRequests){ - if ((currentRequest.getRequest() != null) && (currentRequest.getRequest().getRequestScope() == Request.RequestScope.VNF) && ((currentRequest.getRequest().getRequestType() == - Request.RequestType.REPLACE_INSTANCE)||(currentRequest.getRequest().getRequestType() == - Request.RequestType.UPDATE_INSTANCE) )) { - filteredOrchestrationRequests.add(currentRequest.getRequest()); - } - } - return filteredOrchestrationRequests; - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - - } - - private List<RequestWrapper> deserializeOrchestrationRequestsJson(String orchestrationRequestsJson) throws Exception { - String methodName = "deserializeOrchestrationRequestsJson"; - logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); - - ObjectMapper mapper = new ObjectMapper(); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.READ_ENUMS_USING_TO_STRING, true); - RequestList requestList = mapper.readValue(orchestrationRequestsJson , RequestList.class); - return requestList.getRequestList(); - } - - - public List<Task> getManualTasksByRequestId(String originalRequestId)throws Exception{ - String methodName = "getManualTasksByRequestId"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - try { - String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_MAN_TASKS); - String path = p + "?originalRequestId=" + originalRequestId; - - RestObject<String> restObjStr = new RestObject<String>(); - String str = new String(); - restObjStr.set(str); - - MsoResponseWrapper msoResponseWrapper = msoClientInterface.getManualTasksByRequestId(str, "", path, restObjStr); - return deserializeManualTasksJson(msoResponseWrapper.getEntity()); - - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - private List<Task> deserializeManualTasksJson(String manualTasksJson) throws Exception{ - String methodName = "deserializeManualTasksJson"; - logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); - - ObjectMapper mapper = new ObjectMapper(); - TaskList taskList = mapper.readValue(manualTasksJson , TaskList.class); - return taskList.getTaskList(); - } - - - public MsoResponseWrapper completeManualTask(RequestDetails requestDetails , String taskId)throws Exception{ - String methodName = "completeManualTask"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - MsoResponseWrapper w = null; - try { - String p = SystemProperties.getProperty(MsoProperties.MSO_REST_API_GET_MAN_TASKS); - String path = p + "/" + taskId + "/complete"; - - RestObject<String> restObjStr = new RestObject<String>(); - String str = new String(); - restObjStr.set(str); - - msoClientInterface.completeManualTask(requestDetails , str, "", path, restObjStr); - - return MsoUtil.wrapResponse(restObjStr); - - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - public MsoResponseWrapper activateServiceInstance(RequestDetails requestDetails , String serviceInstanceId)throws Exception{ - String methodName = "activateServiceInstance"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - try { - String path ="/" + serviceInstanceId + "/activate"; - - RestObject<String> restObjStr = new RestObject<>(); - String str = ""; - restObjStr.set(str); - - msoClientInterface.activateServiceInstance(requestDetails , str, "", path, restObjStr); - - return MsoUtil.wrapResponse(restObjStr); - - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - - - - private String validateEndpointPath(String endpointEnvVariable) throws Exception { - String endpoint = SystemProperties.getProperty(endpointEnvVariable); - if (endpoint == null || endpoint.isEmpty()) { - throw new Exception(endpointEnvVariable + " env variable is not defined"); - } - return endpoint; - } - - public MsoResponseWrapper updateVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { - String methodName = "updateVnf"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_INSTANCE); - } catch (Exception exception) { - throw exception; - } - String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - vnf_endpoint = vnf_endpoint + '/' + vnfInstanceId; - return msoClientInterface.updateVnf(requestDetails, vnf_endpoint); - } - - public MsoResponseWrapper replaceVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception { - String methodName = "replaceVnf"; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - String endpoint; - try { - endpoint = validateEndpointPath(MsoProperties.MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE); - } catch (Exception exception) { - throw exception; - } - String vnf_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId); - vnf_endpoint = vnf_endpoint.replace(VNF_INSTANCE_ID, vnfInstanceId); - vnf_endpoint = vnf_endpoint.replace(REQUEST_TYPE, "replace"); //No Constants file, TODO: once you create - add it. - return msoClientInterface.replaceVnf(requestDetails, vnf_endpoint); - } - -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoLocalClient.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoLocalClient.java deleted file mode 100644 index 0179400dc..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoLocalClient.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.openecomp.vid.mso; - -import org.apache.commons.io.IOUtils; -import org.json.JSONObject; -import org.json.JSONTokener; -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.changeManagement.ChangeManagementRequest; -import org.openecomp.vid.controller.VidController; -import org.openecomp.vid.mso.rest.RequestDetails; - -import javax.ws.rs.client.Client; -import javax.ws.rs.core.MultivaluedHashMap; -import java.io.InputStream; -import java.text.DateFormat; -import java.text.SimpleDateFormat; - -/** - * Created by pickjonathan on 20/06/2017. - */ -public class MsoLocalClient implements MsoRestInterfaceIfc { - - /** - * The logger. - */ - EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoLocalClient.class); - - /** - * The Constant dateFormat. - */ - final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); - - /** - * The client. - */ - private static Client client = null; - - /** - * The common headers. - */ - private MultivaluedHashMap<String, Object> commonHeaders; - - /** - * Instantiates a new mso rest interface. - */ - public MsoLocalClient() { - super(); - } - - public void initMsoClient() { - final String methodname = "initRestClient()"; - } - - @Override - public <T> void Get(T t, String sourceId, String path, RestObject<T> restObject) throws Exception { - - } - - @Override - public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception { - - } - - @Override - public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception { - initMsoClient(); - - final InputStream asdcServicesFile = MsoLocalClient.class.getClassLoader().getResourceAsStream("mso_create_instance_response.json"); - - t = (T) IOUtils.toString(asdcServicesFile); - restObject.setStatusCode(200); - restObject.set(t); - } - - @Override - public void logRequest(RequestDetails r) { - - } - - @Override - public <T> void Put(T t, ChangeManagementRequest r, String sourceID, String path, RestObject<T> restObject) - throws Exception { - - - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoLocalClientNew.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoLocalClientNew.java deleted file mode 100644 index 1b15df721..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoLocalClientNew.java +++ /dev/null @@ -1,216 +0,0 @@ -package org.openecomp.vid.mso; - -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.ObjectMapper; -import org.apache.commons.io.IOUtils; -import org.apache.commons.lang3.NotImplementedException; -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.mso.rest.*; - -import java.io.InputStream; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - * Created by pickjonathan on 21/06/2017. - */ -public class MsoLocalClientNew implements MsoInterface { - - - /** - * The logger. - */ - EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoLocalClient.class); - - /** - * The Constant dateFormat. - */ - final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); - - - @Override - public MsoResponseWrapper createSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception { - - String methodName = "createSvcInstance "; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - MsoResponseWrapper w = createInstance(requestDetails, ""); - - return w; - } - - public MsoResponseWrapper createInstance(RequestDetails request, String path) throws Exception { - String methodName = "createInstance"; - logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); - - try { - RestObject<String> restObjStr = new RestObject<String>(); - - String str = new String(); - - restObjStr.set(str); - - final InputStream asdcServicesFile = MsoLocalClient.class.getClassLoader().getResourceAsStream("mso_create_instance_response.json"); - - restObjStr.setStatusCode(200); - restObjStr.set(IOUtils.toString(asdcServicesFile)); - - MsoResponseWrapper w = MsoUtil.wrapResponse(restObjStr); - - return w; - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - @Override - public MsoResponseWrapper createVnf(RequestDetails requestDetails, String endpoint) throws Exception { - return null; - } - - @Override - public MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String endpoint) throws Exception { - return null; - } - - @Override - public MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String path) throws Exception { - return null; - } - - @Override - public MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String endpoint) throws Exception { - return null; - } - - @Override - public MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception { - return null; - } - - @Override - public MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String endpoint) throws Exception { - return null; - } - - @Override - public MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String endpoint) throws Exception { - return null; - } - - @Override - public MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String endpoint) throws Exception { - return null; - } - - @Override - public MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String endpoint) throws Exception { - return null; - } - - @Override - public void getOrchestrationRequest(String t, String sourceId, String endpoint, RestObject restObject) throws Exception { } - - @Override - public MsoResponseWrapper getOrchestrationRequestsForDashboard(String t, String sourceId, String endpoint, RestObject restObject) throws Exception { - String methodName = "getOrchestrationRequestsForDashboard"; - logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); - - try { - - final InputStream asdcServicesFile = MsoLocalClient.class.getClassLoader().getResourceAsStream("mso_get_orchestration_requests.json"); - - restObject.setStatusCode(200); - restObject.set(IOUtils.toString(asdcServicesFile)); - - MsoResponseWrapper w = MsoUtil.wrapResponse(restObject); - - return w; - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - public void activateServiceInstance(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception{ - String methodName = "activateServiceInstance"; - logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); - - try { - - final InputStream asdcServicesFile = MsoLocalClient.class.getClassLoader().getResourceAsStream("mso_activate_service_instance.json"); - - restObject.setStatusCode(200); - restObject.set(IOUtils.toString(asdcServicesFile)); - - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - - @Override - public MsoResponseWrapper getManualTasksByRequestId(String t, String sourceId, String endpoint, RestObject restObject) throws Exception { - String methodName = "getManualTasksByRequestId"; - logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); - - try { - - final InputStream asdcServicesFile = MsoLocalClient.class.getClassLoader().getResourceAsStream("mso_get_manual_task_by_request_id.json"); - - restObject.setStatusCode(200); - restObject.set(IOUtils.toString(asdcServicesFile)); - - MsoResponseWrapper w = MsoUtil.wrapResponse(restObject); - - return w; - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - @Override - public MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject restObject) throws Exception { - String methodName = "getManualTasksByRequestId"; - logger.debug(dateFormat.format(new Date()) + "<== " + methodName + " start"); - - try { - - final InputStream asdcServicesFile = MsoLocalClient.class.getClassLoader().getResourceAsStream("mso_complete_manual_task.json"); - - restObject.setStatusCode(200); - restObject.set(IOUtils.toString(asdcServicesFile)); - - MsoResponseWrapper w = MsoUtil.wrapResponse(restObject); - - return w; - } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + "." + methodName + e.toString()); - throw e; - } - } - - @Override - public MsoResponseWrapper replaceVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception { - throw new NotImplementedException("Function was not implemented at this point."); - } - - - - @Override - public MsoResponseWrapper updateVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, - String vnf_endpoint) { - // TODO Auto-generated method stub - return null; - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInt.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInt.java deleted file mode 100755 index b9f2dbcc9..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInt.java +++ /dev/null @@ -1,71 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-/**
- * The Class MsoRestInt.
- */
-public class MsoRestInt {
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoRestInterface.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /** The request date format. */
- public DateFormat requestDateFormat = new SimpleDateFormat("EEE, dd MMM YYYY HH:mm:ss z");
-
- /**
- * Instantiates a new mso rest int.
- */
- public MsoRestInt() {
- requestDateFormat.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
- }
-
- /**
- * Log request.
- *
- * @param r the r
- */
- public void logRequest ( org.openecomp.vid.mso.rest.RequestDetails r ) {
- String methodName = "logRequest";
- ObjectMapper mapper = new ObjectMapper();
- String r_json_str = "";
- if ( r != null ) {
- r_json_str = r.toString();
- try {
- r_json_str = mapper.writeValueAsString(r);
- }
- catch ( com.fasterxml.jackson.core.JsonProcessingException j ) {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " Unable to parse request as json");
- }
- }
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " Request=(" + r_json_str + ")");
- }
-}
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java deleted file mode 100755 index 5b331e908..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java +++ /dev/null @@ -1,352 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso;
-
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Collections;
-import java.util.Date;
-
-import javax.ws.rs.client.Client;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.MultivaluedHashMap;
-import javax.ws.rs.core.Response;
-
-import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-
-import org.apache.commons.codec.binary.Base64;
-import org.eclipse.jetty.util.security.Password;
-import org.openecomp.vid.changeManagement.ChangeManagementRequest;
-import org.openecomp.vid.client.HttpBasicClient;
-import org.openecomp.vid.client.HttpsBasicClient;
-import org.openecomp.vid.mso.rest.RequestDetails;
-
-/**
- * The Class MsoRestInterface.
- */
-public class MsoRestInterface extends MsoRestInt implements MsoRestInterfaceIfc {
-
- /** The logger. */
- EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoRestInterface.class);
-
- /** The Constant dateFormat. */
- final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
-
- /** The client. */
- private static Client client = null;
-
- /** The common headers. */
- private MultivaluedHashMap<String, Object> commonHeaders;
-
- /**
- * Instantiates a new mso rest interface.
- */
- public MsoRestInterface() {
- super();
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.mso.MsoRestInterfaceIfc#initRestClient()
- */
- public void initMsoClient()
- {
- final String methodname = "initRestClient()";
-
- final String username = SystemProperties.getProperty(MsoProperties.MSO_USER_NAME);
- final String password = SystemProperties.getProperty(MsoProperties.MSO_PASSWORD);
- final String mso_url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL);
- final String decrypted_password = Password.deobfuscate(password);
-
- String authString = username + ":" + decrypted_password;
-
- byte[] authEncBytes = Base64.encodeBase64(authString.getBytes());
- String authStringEnc = new String(authEncBytes);
-
- commonHeaders = new MultivaluedHashMap<String, Object> ();
- commonHeaders.put("Authorization", Collections.singletonList((Object) ("Basic " + authStringEnc)));
- //Pass calling application identifier to SO
- commonHeaders.put("X-FromAppId",
- Collections.singletonList(SystemProperties.getProperty(SystemProperties.APP_DISPLAY_NAME)));
-
- boolean use_ssl = true;
- if ( (mso_url != null) && ( !(mso_url.isEmpty()) ) ) {
- if ( mso_url.startsWith("https")) {
- use_ssl = true;
- }
- else {
- use_ssl = false;
- }
- }
- if (client == null) {
-
- try {
- if ( use_ssl ) {
- //logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodname + " getting HttpsBasicClient with username=" + username
- // + " password=" + password);
- client = HttpsBasicClient.getClient();
- }
- else {
- //logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodname + " getting HttpsBasicClient with username=" + username
- // + " password=" + password);
- client = HttpBasicClient.getClient();
- }
- } catch (Exception e) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + methodname + " Unable to get the SSL client");
- }
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.mso.MsoRestInterfaceIfc#Get(java.lang.Object, java.lang.String, java.lang.String, org.openecomp.vid.mso.RestObject)
- */
- @SuppressWarnings("unchecked")
- public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception {
- String methodName = "Get";
-
- logger.debug(EELFLoggerDelegate.debugLogger, methodName + " start");
-
- String url="";
- restObject.set(t);
-
- url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path;
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " sending request to url= " + url);
-
- initMsoClient();
-
- final Response cres = client.target(url)
- .request()
- .accept("application/json")
- .headers(commonHeaders)
- .get();
-
- int status = cres.getStatus();
- restObject.setStatusCode (status);
-
- if (status == 200) {
- t = (T) cres.readEntity(t.getClass());
- restObject.set(t);
- logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + methodName + " REST api was successfull!");
-
- } else {
- throw new Exception(methodName + " with status="+ status + ", url= " + url );
- }
-
- logger.debug(EELFLoggerDelegate.debugLogger,methodName + " received status=" + status );
-
- return;
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.mso.MsoRestInterfaceIfc#Delete(java.lang.Object, org.openecomp.vid.mso.rest.RequestDetails, java.lang.String, java.lang.String, org.openecomp.vid.mso.RestObject)
- */
- @SuppressWarnings("unchecked")
- public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) {
-
- String methodName = "Delete";
- String url="";
- Response cres = null;
-
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " start");
- logRequest (r);
-
- try {
- initMsoClient();
-
- url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path;
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + " methodName sending request to: " + url);
-
- cres = client.target(url)
- .request()
- .accept("application/json")
- .headers(commonHeaders)
- //.entity(r)
- .build("DELETE", Entity.entity(r, MediaType.APPLICATION_JSON)).invoke();
- // .method("DELETE", Entity.entity(r, MediaType.APPLICATION_JSON));
- //.delete(Entity.entity(r, MediaType.APPLICATION_JSON));
-
- int status = cres.getStatus();
- restObject.setStatusCode (status);
-
- if (status == 404) { // resource not found
- String msg = "Resource does not exist...: " + cres.getStatus();
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + msg);
- } else if (status == 200 || status == 204){
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + "Resource " + url + " deleted");
- } else if (status == 202) {
- String msg = "Delete in progress: " + status;
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + msg);
- }
- else {
- String msg = "Deleting Resource failed: " + status;
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + msg);
- }
-
- try {
- t = (T) cres.readEntity(t.getClass());
- restObject.set(t);
- }
- catch ( Exception e ) {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " No response entity, this is probably ok, e="
- + e.getMessage());
- }
-
- }
- catch (Exception e)
- {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with url="+url+ ", Exception: " + e.toString());
- throw e;
-
- }
- }
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.mso.MsoRestInterfaceIfc#Post(java.lang.Object, org.openecomp.vid.mso.rest.RequestDetails, java.lang.String, java.lang.String, org.openecomp.vid.mso.RestObject)
- */
- @SuppressWarnings("unchecked")
- public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception {
-
- String methodName = "Post";
- String url="";
-
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " start");
-
- logRequest (r);
- try {
-
- initMsoClient();
-
- url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path;
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " sending request to url= " + url);
- // Change the content length
- final Response cres = client.target(url)
- .request()
- .accept("application/json")
- .headers(commonHeaders)
- //.header("content-length", 201)
- //.header("X-FromAppId", sourceID)
- .post(Entity.entity(r, MediaType.APPLICATION_JSON));
-
- try {
- t = (T) cres.readEntity(t.getClass());
- restObject.set(t);
- }
- catch ( Exception e ) {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " No response entity, this is probably ok, e="
- + e.getMessage());
- }
-
- int status = cres.getStatus();
- restObject.setStatusCode (status);
-
- if ( status >= 200 && status <= 299 ) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!");
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!");
-
- } else {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with status="+status+", url="+url);
- }
-
- } catch (Exception e)
- {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with url="+url+ ", Exception: " + e.toString());
- throw e;
-
- }
- }
-
-
- /* (non-Javadoc)
- * @see org.openecomp.vid.mso.MsoRestInterfaceIfc#Put(java.lang.Object, org.openecomp.vid.mso.rest.RequestDetails, java.lang.String, java.lang.String, org.openecomp.vid.mso.RestObject)
- */
- @SuppressWarnings("unchecked")
- public <T> void Put(T t, ChangeManagementRequest r, String sourceID, String path, RestObject<T> restObject) throws Exception {
-
- String methodName = "Put";
- String url="";
-
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " start");
-
-// logRequest (r);
- try {
-
- initMsoClient();
-
- url = SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL) + path;
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " sending request to url= " + url);
- // Change the content length
- final Response cres = client.target(url)
- .request()
- .accept("application/json")
- .headers(commonHeaders)
- //.header("content-length", 201)
- //.header("X-FromAppId", sourceID)
- .put(Entity.entity(r, MediaType.APPLICATION_JSON));
-
- try {
- t = (T) cres.readEntity(t.getClass());
- restObject.set(t);
- }
- catch ( Exception e ) {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " No response entity, this is probably ok, e="
- + e.getMessage());
- }
-
- int status = cres.getStatus();
- restObject.setStatusCode (status);
-
- if ( status >= 200 && status <= 299 ) {
- logger.info(EELFLoggerDelegate.errorLogger, dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!");
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " REST api POST was successful!");
-
- } else {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with status="+status+", url="+url);
- }
-
- } catch (Exception e)
- {
- logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " with url="+url+ ", Exception: " + e.toString());
- throw e;
-
- }
- }
-
-
- /**
- * Gets the single instance of MsoRestInterface.
- *
- * @param <T> the generic type
- * @param clazz the clazz
- * @return single instance of MsoRestInterface
- * @throws IllegalAccessException the illegal access exception
- * @throws InstantiationException the instantiation exception
- */
- public <T> T getInstance(Class<T> clazz) throws IllegalAccessException, InstantiationException
- {
- return clazz.newInstance();
- }
-
-
-
-
-}
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterfaceIfc.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterfaceIfc.java deleted file mode 100755 index 4ff13eddd..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterfaceIfc.java +++ /dev/null @@ -1,92 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso;
-
-import org.openecomp.vid.changeManagement.ChangeManagementRequest;
-import org.openecomp.vid.mso.rest.RequestDetails;
-
-/**
- * The Interface MsoRestInterfaceIfc.
- */
-public interface MsoRestInterfaceIfc {
-
- /**
- * Inits the rest client.
- */
- public void initMsoClient();
-
- /**
- * Gets the.
- *
- * @param <T> the generic type
- * @param t the t
- * @param sourceId the source id
- * @param path the path
- * @param restObject the rest object
- * @throws Exception the exception
- */
- public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;
-
- /**
- * Delete.
- *
- * @param <T> the generic type
- * @param t the t
- * @param r the r
- * @param sourceID the source ID
- * @param path the path
- * @param restObject the rest object
- * @throws Exception the exception
- */
- public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
-
- /**
- * Post.
- *
- * @param <T> the generic type
- * @param t the t
- * @param r the r
- * @param sourceID the source ID
- * @param path the path
- * @param restObject the rest object
- * @throws Exception the exception
- */
- public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
-
- /**
- * Put.
- *
- * @param <T> the generic type
- * @param t the t
- * @param r the r
- * @param sourceID the source ID
- * @param path the path
- * @param restObject the rest object
- * @throws Exception the exception
- */
- public <T> void Put(T t, ChangeManagementRequest r, String sourceID, String path, RestObject<T> restObject) throws Exception ;
- /***
- * Log request.
- *
- * @param r the r
- */
- public void logRequest ( RequestDetails r );
-}
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/RestObject.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/RestObject.java deleted file mode 100755 index 881409e1a..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/RestObject.java +++ /dev/null @@ -1,68 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso;
-
-/**
- * The Class RestObject.
- *
- * @param <T> the generic type
- */
-public class RestObject<T> {
-
- /**
- * Generic version of the RestObject class.
- *
- */
- // T stands for "Type"
- private T t;
-
- /** The status code. */
- private int statusCode= 0;
-
- /**
- * Sets the.
- *
- * @param t the t
- */
- public void set(T t) { this.t = t; }
-
- /**
- * Gets the.
- *
- * @return the t
- */
- public T get() { return t; }
-
- /**
- * Sets the status code.
- *
- * @param v the new status code
- */
- public void setStatusCode(int v) { this.statusCode = v; }
-
- /**
- * Gets the status code.
- *
- * @return the status code
- */
- public int getStatusCode() { return this.statusCode; }
-}
-
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/MsoBusinessLogicNew.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/MsoBusinessLogicNew.java deleted file mode 100644 index 1afb2df21..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/rest/MsoBusinessLogicNew.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.openecomp.vid.mso.rest; - -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.mso.MsoClientFactory; -import org.openecomp.vid.mso.MsoInterface; -import org.openecomp.vid.mso.MsoResponseWrapper; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Date; - -/** - * Created by pickjonathan on 21/06/2017. - * This class was created only for testing the new logic. - * It is not used by any of the controllers binded to the ui. - * This can be deleted in the future in order to keep a cleaner project. - * If deleting please dont forget to delete the controllers, factory and all involved in the assert test. - */ -public class MsoBusinessLogicNew { - - /** - * \ - * The MSO Client - */ - private MsoInterface msoClient; - - private MsoInterface msoRestTempClient; - - /** - * The logger. - */ - EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoBusinessLogicNew.class); - - /** - * The Constant dateFormat. - */ - final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); - - public MsoBusinessLogicNew() { - msoClient = MsoClientFactory.getInstance(); - msoRestTempClient = new MsoRestClientNew(); - } - - public MsoResponseWrapper createSvcInstance(RequestDetails msoRequest) throws Exception { - String methodName = "createSvcInstance "; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - -// String endpoint = SystemProperties.getProperty(MsoProperties.MSO_REST_API_SVC_INSTANCE); -// -// MsoResponseWrapper w = createInstance(msoRequest, p); - - MsoResponseWrapper w = msoClient.createSvcInstance(msoRequest, ""); - - return w; - } - - - public MsoResponseWrapper createSvcInstanceRest(RequestDetails msoRequest) throws Exception { - String methodName = "createSvcInstance "; - logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start"); - - - MsoResponseWrapper w = msoRestTempClient.createSvcInstance(msoRequest, ""); - - return w; - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/roles/RoleProvider.java b/vid-app-common/src/main/java/org/openecomp/vid/roles/RoleProvider.java deleted file mode 100644 index 2ed5bdbbf..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/roles/RoleProvider.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.openecomp.vid.roles; - -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.portalsdk.core.web.support.UserUtils; - -import javax.servlet.http.HttpServletRequest; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; - -/** - * Created by Oren on 7/1/17. - */ -public class RoleProvider { - - private static final EELFLoggerDelegate LOG = EELFLoggerDelegate.getLogger(RoleProvider.class); - final String readPermissionString = "read"; - final String roleStringDelimiter = "_"; - - public static List<String> extractRoleFromSession(HttpServletRequest request) { - - return new ArrayList<String>(); - - } - - public List<Role> getUserRoles(HttpServletRequest request) { - List<Role> roleList = new ArrayList<>(); - //Disable roles until AAF integration finishes - /*HashMap roles = UserUtils.getRoles(request); - for (Object role : roles.keySet()) { - org.openecomp.portalsdk.core.domain.Role sdkRol = (org.openecomp.portalsdk.core.domain.Role) roles.get(role); - try { - if (sdkRol.getName().contains(readPermissionString)) - continue; - String[] roleParts = splitRole((sdkRol.getName())); - roleList.add(createRoleFromStringArr(roleParts)); - } catch (Exception e) { - LOG.error("Failed to parse permission", e); - - } - }*/ - - return roleList; - } - - public String[] splitRole(String roleAsString) { - return roleAsString.split(roleStringDelimiter); - } - - public boolean userPermissionIsReadOnly(List<Role> roles) { - - return (!(roles.size() > 0)); - } - - public Role createRoleFromStringArr(String[] roleParts) { - if (roleParts.length > 2) { - return new Role(EcompRole.READ, roleParts[0], roleParts[1], roleParts[2]); - } else { - return new Role(EcompRole.READ, roleParts[0], roleParts[1], null); - } - } - -} - diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObject.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObject.java deleted file mode 100644 index 614b557a0..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObject.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -public class GetTimeSlotsRestObject<T> extends org.openecomp.vid.scheduler.RestObject<T> { - - public String uuid; - - public void setUUID(String uuid) { this.uuid = uuid; } - - public String getUUID() { return this.uuid; } - -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObject.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObject.java deleted file mode 100644 index 86cbab8a6..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObject.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -public class PostCreateNewVnfRestObject<T> extends RestObject<T> { - - public String uuid; - - public void setUUID(String uuid) { this.uuid = uuid; } - - public String getUUID() { return this.uuid; } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObject.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObject.java deleted file mode 100644 index 6fb56f67d..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObject.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -public class PostSubmitVnfChangeRestObject<T> extends RestObject<T> { - - public String uuid; - - public void setUUID(String uuid) { this.uuid = uuid; } - - public String getUUID() { return this.uuid; } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrapper.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrapper.java deleted file mode 100644 index 5f148c06b..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrapper.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.openecomp.vid.scheduler; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.ToStringBuilder; - -/** - * This wrapper encapsulates the Scheduler response - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "status", - "entity", - "uuid" -}) - -public class SchedulerResponseWrapper { - - @JsonProperty("status") - private int status; - - @JsonProperty("entity") - private String entity; - - @JsonProperty("uuid") - private String uuid; - - @JsonProperty("entity") - public String getEntity() { - return entity; - } - - @JsonProperty("status") - public int getStatus() { - return status; - } - - @JsonProperty("uuid") - public String getUuid() { - return uuid; - } - - @JsonProperty("status") - public void setStatus(int v) { - this.status = v; - } - - @JsonProperty("entity") - public void setEntity(String v) { - this.entity = v; - } - - @JsonProperty("uuid") - public void setUuid(String v) { - this.uuid = v; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - public String getResponse () { - - StringBuilder b = new StringBuilder ("{ \"status\": "); - b.append(getStatus()).append(", \"entity\": \" " ).append(this.getEntity()).append("\" ,\"uuid\": \"" ).append(this.getUuid()).append("\"}"); - return (b.toString()); - } - -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/GetTimeSlotsWrapper.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/GetTimeSlotsWrapper.java deleted file mode 100644 index e5001d41f..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/GetTimeSlotsWrapper.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -public class GetTimeSlotsWrapper extends SchedulerResponseWrapper { - -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapper.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapper.java deleted file mode 100644 index f1baeaf6e..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapper.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.apache.commons.lang.builder.ToStringBuilder; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "uuid" -}) -public class PostCreateNewVnfWrapper extends SchedulerResponseWrapper { - - @JsonProperty("uuid") - private String uuid; - - @JsonProperty("uuid") - public String getUuid() { - return uuid; - } - - @JsonProperty("uuid") - public void setUuid(String v) { - this.uuid = v; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - public String getResponse () { - - StringBuilder b = new StringBuilder ("{ \"status\": "); - b.append(getStatus()).append(", \"entity\": \" " ).append(this.getEntity()).append("\" ,\"uuid\": \"" ).append(this.getUuid()).append("\"}"); - return (b.toString()); - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapper.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapper.java deleted file mode 100644 index 86e4c0a74..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapper.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.apache.commons.lang.builder.ToStringBuilder; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "uuid" -}) -public class PostSubmitVnfChangeTimeSlotsWrapper extends SchedulerResponseWrapper { - @JsonProperty("uuid") - private String uuid; - - @JsonProperty("uuid") - public String getUuid() { - return uuid; - } - - @JsonProperty("uuid") - public void setUuid(String v) { - this.uuid = v; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - public String getResponse () { - - StringBuilder b = new StringBuilder ("{ \"status\": "); - b.append(getStatus()).append(", \"entity\": \" " ).append(this.getEntity()).append("\" ,\"uuid\": \"" ).append(this.getUuid()).append("\"}"); - return (b.toString()); - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapper.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapper.java deleted file mode 100644 index 081ed3dc4..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapper.java +++ /dev/null @@ -1,57 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.ToStringBuilder; - -/** - * This wrapper encapsulates the Scheduler response - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "status", - "entity" -}) - -public class SchedulerResponseWrapper { - - @JsonProperty("status") - private int status; - - @JsonProperty("entity") - private String entity; - - @JsonProperty("entity") - public String getEntity() { - return entity; - } - - @JsonProperty("status") - public int getStatus() { - return status; - } - - @JsonProperty("status") - public void setStatus(int v) { - this.status = v; - } - - @JsonProperty("entity") - public void setEntity(String v) { - this.entity = v; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - public String getResponse () { - - StringBuilder b = new StringBuilder ("{ \"status\": "); - - b.append(getStatus()).append(", \"entity\": " ).append(this.getEntity()).append("}"); - return (b.toString()); - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInt.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInt.java deleted file mode 100644 index 32b3a9c8c..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerRestInt.java +++ /dev/null @@ -1,42 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * VID - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.vid.scheduler; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; - -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; - -public class SchedulerRestInt { - - /** The logger. */ - EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(SchedulerRestInterface.class); - - /** The Constant dateFormat. */ - final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); - - /** The request date format. */ - public DateFormat requestDateFormat = new SimpleDateFormat("EEE, dd MMM YYYY HH:mm:ss z"); - - public SchedulerRestInt() { - requestDateFormat.setTimeZone(java.util.TimeZone.getTimeZone("GMT")); - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerUtil.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerUtil.java deleted file mode 100644 index f82f474f6..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/SchedulerUtil.java +++ /dev/null @@ -1,100 +0,0 @@ -package org.openecomp.vid.scheduler; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Date; - -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.scheduler.SchedulerResponseWrappers.GetTimeSlotsWrapper; -import org.openecomp.vid.scheduler.SchedulerResponseWrappers.PostCreateNewVnfWrapper; -import org.openecomp.vid.scheduler.SchedulerResponseWrappers.PostSubmitVnfChangeTimeSlotsWrapper; -import org.openecomp.vid.scheduler.SchedulerUtil; -import org.openecomp.vid.scheduler.RestObjects.GetTimeSlotsRestObject; -import org.openecomp.vid.scheduler.RestObjects.PostCreateNewVnfRestObject; -import org.openecomp.vid.scheduler.RestObjects.PostSubmitVnfChangeRestObject; - -import com.fasterxml.jackson.databind.ObjectMapper; - -public class SchedulerUtil { - - private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(SchedulerUtil.class); - - final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS"); - - public static GetTimeSlotsWrapper getTimeSlotsWrapResponse (GetTimeSlotsRestObject<String> rs) { - - String resp_str = ""; - int status = 0; - - if ( rs != null ) { - resp_str = rs.get(); - status = rs.getStatusCode(); - } - - GetTimeSlotsWrapper w = new GetTimeSlotsWrapper(); - - w.setEntity(resp_str); - w.setStatus (status); - - return (w); - } - - public static PostSubmitVnfChangeTimeSlotsWrapper postSubmitNewVnfWrapResponse (PostSubmitVnfChangeRestObject<String> rs) { - - String resp_str = ""; - int status = 0; - String uuid = ""; - - if ( rs != null ) { - resp_str = rs.get(); - status = rs.getStatusCode(); - uuid = rs.getUUID(); - } - - PostSubmitVnfChangeTimeSlotsWrapper w = new PostSubmitVnfChangeTimeSlotsWrapper(); - - w.setEntity(resp_str); - w.setStatus (status); - w.setUuid(uuid); - - return (w); - } - - public static PostCreateNewVnfWrapper postCreateNewVnfWrapResponse (PostCreateNewVnfRestObject<String> rs) { - - String resp_str = ""; - int status = 0; - String uuid = ""; - - if ( rs != null ) { - resp_str = rs.get(); - status = rs.getStatusCode(); - uuid = rs.getUUID(); - } - - PostCreateNewVnfWrapper w = new PostCreateNewVnfWrapper(); - - w.setEntity(resp_str); - w.setStatus (status); - w.setUuid(uuid); - - return (w); - } - - public static <T> String convertPojoToString ( T t ) throws com.fasterxml.jackson.core.JsonProcessingException { - - String methodName = "convertPojoToString"; - ObjectMapper mapper = new ObjectMapper(); - String r_json_str = ""; - if ( t != null ) { - try { - r_json_str = mapper.writeValueAsString(t); - } - catch ( com.fasterxml.jackson.core.JsonProcessingException j ) { - logger.debug(EELFLoggerDelegate.debugLogger,dateFormat.format(new Date()) + "<== " + methodName + " Unable to parse object as json"); - } - } - return (r_json_str); - } - -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/rest/RequestDetails.java b/vid-app-common/src/main/java/org/openecomp/vid/scheduler/rest/RequestDetails.java deleted file mode 100644 index 746fd9b24..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/scheduler/rest/RequestDetails.java +++ /dev/null @@ -1,106 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * VID - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.vid.scheduler.rest; - -import java.util.HashMap; -import java.util.Map; -import java.util.List; -//import javax.annotation.Generated; - -import org.openecomp.vid.domain.mso.CloudConfiguration; -import org.openecomp.vid.domain.mso.ModelInfo; -import org.openecomp.vid.domain.mso.RequestInfo; -import org.openecomp.vid.domain.mso.RequestParameters; -import org.openecomp.vid.domain.mso.SubscriberInfo; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - -/* - * "domain" : "ChangeManagement", - "scheduleId" : "3569b875-d40e-4adb-a288-a74f4b59ec1c", - "scheduleName" : "VnfUpgrade/DWF", - "userId" : "jf9860@att.com", - "domainData" : { - "WorkflowName" : "HEAT Stack Software Update for vNFs" - }, - "status" : "PendingOptimization", - "schedulingInfo" : { - "scheduleId" : "ChangeManagement.3569b875-d40e-4adb-a288-a74f4b59ec1c", - "normalDurationInSecs" : 60, - "AdditionalDurationInSecs" : 0, - "concurrencyLimit" : 10, - "policyId" : ["SNIRO.TimeLimitAndVerticalTopology"], - "groups" : [{ - "groupId" : " group1", - "node" : ["satmo415vbc", "satmo455vbc"], - "changeWindows" : [{ - "startTime" : "2017-02-15T01:00:00Z", - "finishTime" : "2017-02-15T02:00:00Z" - } - ] - }, { - "groupId" : " group2", - "node" : ["satmo555vbc"], - "changeWindows" : [{ - "startTime" : "2017-02-15T01:00:00Z", - "finishTime" : "2017-02-15T02:00:00Z" - }, { - "startTime" : "2017-02-15T05:00:00Z", - "finishTime" : "2017-02-15T05:30:00Z" - } - ] - } - ] -*/ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "domain", - "scheduleId", - "scheduleName", - "userId", - "domainData", - "status", - "schcedulingInfo" -}) -public class RequestDetails { - - @JsonProperty("domain") - private String domain; - - - - @JsonProperty("domain") - public String getDomain() { - return domain; - } - - @JsonProperty("domain") - public void setDomain(String domain) { - this.domain = domain; - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/services/AaiService.java b/vid-app-common/src/main/java/org/openecomp/vid/services/AaiService.java deleted file mode 100644 index d3bacadec..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/services/AaiService.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.openecomp.vid.services; - -import org.openecomp.vid.aai.AaiResponse; -import org.openecomp.vid.aai.SubscriberFilteredResults; -import org.openecomp.vid.aai.model.AaiGetTenatns.GetTenantsResponse; -import org.openecomp.vid.roles.RoleValidator; - -import javax.ws.rs.core.Response; -import java.util.List; - -/** - * Created by Oren on 7/4/17. - */ -public interface AaiService { - - - SubscriberFilteredResults getFullSubscriberList(RoleValidator roleValidator); - - AaiResponse getSubscriberData(String subscriberId, RoleValidator roleValidator); - - AaiResponse getServices(RoleValidator roleValidator); - - AaiResponse getAaiZones(); - - AaiResponse getAicZoneForPnf(String globalCustomerId , String serviceType , String serviceId); - - Response getVNFData(String globalSubscriberId, String serviceType); - - AaiResponse<GetTenantsResponse[]> getTenants(String globalCustomerId, String serviceType, RoleValidator roleValidator); - - AaiResponse getVNFData(String globalSubscriberId, String serviceType, String serviceInstanceId); - - Response getVersionByInvariantId(List<String> modelInvariantId); -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/services/AaiServiceImpl.java b/vid-app-common/src/main/java/org/openecomp/vid/services/AaiServiceImpl.java deleted file mode 100644 index cb0962869..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/services/AaiServiceImpl.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.openecomp.vid.services; - -import org.ecomp.aai.model.AaiAICZones.AicZones; -import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.vid.aai.*; -import org.openecomp.vid.aai.model.AaiGetServicesRequestModel.*; -import org.openecomp.vid.aai.model.AaiGetTenatns.GetTenantsResponse; -import org.openecomp.vid.model.*; -import org.openecomp.vid.roles.RoleValidator; -import org.openecomp.vid.scheduler.SchedulerProperties; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.ResponseEntity; - -import javax.ws.rs.core.Response; - -import java.util.List; - -/** - * Created by Oren on 7/4/17. - */ -public class AaiServiceImpl implements AaiService { - - - @Autowired - private AaiClientInterface aaiClient; - - - @Override - public SubscriberFilteredResults getFullSubscriberList(RoleValidator roleValidator) { - AaiResponse<SubscriberList> subscriberResponse = aaiClient.getAllSubscribers(); - SubscriberFilteredResults subscriberFilteredResults = - new SubscriberFilteredResults(roleValidator,subscriberResponse.getT(), - subscriberResponse.getErrorMessage(), - subscriberResponse.getHttpCode()); - - return subscriberFilteredResults; - } - - @Override - public AaiResponse getSubscriberData(String subscriberId, RoleValidator roleProvider) { - AaiResponse<Services> subscriberResponse = aaiClient.getSubscriberData(subscriberId); - String subscriberGlobalId = subscriberResponse.getT().globalCustomerId; - for (ServiceSubscription serviceSubscription : subscriberResponse.getT().serviceSubscriptions.serviceSubscription) { - String serviceType = serviceSubscription.serviceType; - serviceSubscription.isPermitted = roleProvider.isServicePermitted(subscriberGlobalId,serviceType); - } - return subscriberResponse; - - } - - @Override - public Response getVersionByInvariantId(List<String> modelInvariantId) { - try { - return aaiClient.getVersionByInvariantId(modelInvariantId); - }catch (Exception e){ - e.printStackTrace(); - } - return null; - } - - @Override - public AaiResponse getServices(RoleValidator roleValidator) { - AaiResponse<GetServicesAAIRespone> subscriberResponse = aaiClient.getServices(); - for (org.openecomp.vid.aai.model.AaiGetServicesRequestModel.Service service :subscriberResponse.getT().service){ - service.isPermitted = true; - } - return subscriberResponse; - } - - @Override - public AaiResponse<GetTenantsResponse[]> getTenants(String globalCustomerId, String serviceType, RoleValidator roleValidator) { - AaiResponse<GetTenantsResponse[]> aaiGetTenantsResponse = aaiClient.getTenants(globalCustomerId,serviceType); - GetTenantsResponse[] tenants = aaiGetTenantsResponse.getT(); - for (int i=0;i<tenants.length;i++){ - tenants[i].isPermitted = roleValidator.isTenantPermitted(globalCustomerId,serviceType, tenants[i].tenantID); - } - return aaiGetTenantsResponse; - } - - @Override - public AaiResponse getVNFData(String globalSubscriberId, String serviceType, String serviceInstanceId) { - return aaiClient.getVNFData(globalSubscriberId,serviceType,serviceInstanceId); - } - - @Override - public Response getVNFData(String globalSubscriberId, String serviceType) { - return aaiClient.getVNFData(globalSubscriberId,serviceType); - } - - @Override - public AaiResponse getAaiZones() { - AaiResponse<AicZones> response = aaiClient.getAllAicZones(); - return response; - } - - @Override - public AaiResponse getAicZoneForPnf(String globalCustomerId , String serviceType , String serviceId) { - AaiResponse<AicZones> response = aaiClient.getAicZoneForPnf(globalCustomerId , serviceType , serviceId); - return response; - } -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/services/ChangeManagementService.java b/vid-app-common/src/main/java/org/openecomp/vid/services/ChangeManagementService.java deleted file mode 100644 index 3ac528282..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/services/ChangeManagementService.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.openecomp.vid.services; - -import org.openecomp.vid.changeManagement.ChangeManagementRequest; -import org.json.simple.JSONArray; -import org.openecomp.vid.mso.rest.Request; -import org.springframework.http.ResponseEntity; - -import java.util.Collection; - -public interface ChangeManagementService { - Collection<Request> getMSOChangeManagements(); - ResponseEntity<String> doChangeManagement(ChangeManagementRequest request, String vnfName); - JSONArray getSchedulerChangeManagements(); -} diff --git a/vid-app-common/src/main/java/org/openecomp/vid/services/ChangeManagementServiceImpl.java b/vid-app-common/src/main/java/org/openecomp/vid/services/ChangeManagementServiceImpl.java deleted file mode 100644 index 7e69d8fec..000000000 --- a/vid-app-common/src/main/java/org/openecomp/vid/services/ChangeManagementServiceImpl.java +++ /dev/null @@ -1,109 +0,0 @@ -package org.openecomp.vid.services; - -import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate; -import org.openecomp.vid.changeManagement.ChangeManagementRequest; -import org.openecomp.vid.changeManagement.RequestDetails; -import org.openecomp.vid.mso.MsoBusinessLogic; -import org.openecomp.vid.mso.MsoResponseWrapper; -import org.openecomp.vid.controller.MsoController; -import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.vid.scheduler.*; - -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.openecomp.vid.mso.rest.Request; -import org.springframework.stereotype.Service; -import org.json.simple.JSONArray; -import org.json.simple.parser.JSONParser; - -import java.util.Date; -import java.util.List; -import java.util.Collection; - - -@Service -public class ChangeManagementServiceImpl implements ChangeManagementService { - @Override - public Collection<Request> getMSOChangeManagements() { - Collection<Request> result = null; - MsoBusinessLogic msoBusinessLogic = new MsoBusinessLogic(); - try { - result = msoBusinessLogic.getOrchestrationRequestsForDashboard(); - } catch (Exception e) { - e.printStackTrace(); - } - - return result; - } - - private RequestDetails findRequestByVnfName(List<RequestDetails> requests, String vnfName){ - - if (requests == null) - return null; - - for(RequestDetails requestDetails: requests){ - if(requestDetails.getVnfName().equals(vnfName)){ - return requestDetails; - } - } - - return null; - } - - @Override - public ResponseEntity<String> doChangeManagement(ChangeManagementRequest request, String vnfName) { - if (request == null) - return null; - ResponseEntity<String> response = null; - RequestDetails currentRequestDetails = findRequestByVnfName(request.getRequestDetails(), vnfName); - MsoResponseWrapper msoResponseWrapperObject = null; - if(currentRequestDetails != null){ - MsoBusinessLogic msoBusinessLogicObject = new MsoBusinessLogic(); - String serviceInstanceId = currentRequestDetails.getRelatedInstList().get(0).getRelatedInstance().getInstanceId(); - String vnfInstanceId = currentRequestDetails.getVnfInstanceId(); - try { - if (request.getRequestType().equalsIgnoreCase("update")) { - - msoResponseWrapperObject = msoBusinessLogicObject.updateVnf(currentRequestDetails, serviceInstanceId, vnfInstanceId); - } - else if (request.getRequestType().equalsIgnoreCase("replace")) - { - msoResponseWrapperObject = msoBusinessLogicObject.replaceVnf(currentRequestDetails, serviceInstanceId, vnfInstanceId); -// throw new NotImplementedException(); - } - response = new ResponseEntity<String>(msoResponseWrapperObject.getResponse(), HttpStatus.OK); - return response; - } catch (Exception e) { - e.printStackTrace(); - } - - } - - // AH:TODO: return ChangeManagementResponse - return null; - } - - @Override - public JSONArray getSchedulerChangeManagements() { - JSONArray result = null; - try { - String path = SystemProperties.getProperty(SchedulerProperties.SCHEDULER_GET_SCHEDULES); - org.openecomp.vid.scheduler.RestObject<String> restObject = new org.openecomp.vid.scheduler.RestObject<>(); - SchedulerRestInterfaceIfc restClient = SchedulerRestInterfaceFactory.getInstance(); - - String str = new String(); - restObject.set(str); - restClient.Get(str, "", path, restObject); - String restCallResult = restObject.get(); - JSONParser parser = new JSONParser(); - Object parserResult = parser.parse(restCallResult); - result = (JSONArray) parserResult; - } catch (Exception e) { - e.printStackTrace(); - } - - return result; - } - - -} diff --git a/vid-app-common/src/main/resources/2f80c596.zip b/vid-app-common/src/main/resources/2f80c596.zip Binary files differnew file mode 100644 index 000000000..30935c6b9 --- /dev/null +++ b/vid-app-common/src/main/resources/2f80c596.zip diff --git a/vid-app-common/src/main/resources/aai_config_instance_view_edit.json b/vid-app-common/src/main/resources/aai_config_instance_view_edit.json new file mode 100644 index 000000000..7920c6dfb --- /dev/null +++ b/vid-app-common/src/main/resources/aai_config_instance_view_edit.json @@ -0,0 +1,81 @@ +{ + "model-name":"Proxy-Config-Instance", + "configuration":{ + "configuration-id": "9533-config-LB1113", + "configuration-name": "configuration-name-9533", + "configuration-type": "configuration-type-9533", + "configuration-sub-type": "configuration-sub-type-9533", + "model-invariant-id": "model-invariant-id-9533", + "model-version-id": "model-version-id-9533", + "orchestration-status": "Active", + "operational-status": "", + "configuration-selflink": "", + "model-customization-id": "model-customization-id-9533", + "resource-version": "1504038855716" + }, + "extra-properties": { + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "l-interface": { + "interface-name": "9533lInterface-LB1113", + "interface-role": "8ni", + "v6-wan-link-ip": "Pnr", + "selflink": "Un56B", + "interface-id": "o74n", + "macaddr": "8an6", + "network-name": "kjOn", + "management-option": "0Rn7", + "interface-description": "XPnLr", + "is-port-mirrored": true, + "resource-version": "1504038598348", + "in-maint": false, + "is-ip-unnumbered": false, + "relationship-list": { + "relationship": [ + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/logicallink-987654321-21-LB1113", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "logicallink-987654321-21-LB1113" + } + ] + } + ] + }, + "l3-interface-ipv4-address-list": [ + { + "l3-interface-ipv4-address": "112.121.144.16", + "l3-interface-ipv4-prefix-length": 59, + "vlan-id-inner": 917, + "vlan-id-outer": 519, + "is-floating": true, + "resource-version": "1504038598353", + "neutron-network-id": "HX6m54p1akX", + "neutron-subnet-id": "nbmX5okGg" + } + ], + "l3-interface-ipv6-address-list": [ + { + "l3-interface-ipv6-address": "2001:232E:2333:2322:122C:CDD:2AE3:3E4", + "l3-interface-ipv6-prefix-length": 76, + "vlan-id-inner": 27, + "vlan-id-outer": 710, + "is-floating": true, + "resource-version": "1504038598364", + "neutron-network-id": "xBR0OOToQ", + "neutron-subnet-id": "4E0gZLH" + } + ] + }, + "extra-properties":{ + + } + } + ] + } +}
\ No newline at end of file diff --git a/vid-app-common/src/main/resources/aai_get_node_template_instances.json b/vid-app-common/src/main/resources/aai_get_node_template_instances.json new file mode 100644 index 000000000..97c452aa3 --- /dev/null +++ b/vid-app-common/src/main/resources/aai_get_node_template_instances.json @@ -0,0 +1,101 @@ +{"results": [ + { + "id": "1976357096", + "node-type": "generic-vnf", + "url": "/aai/v11/network/generic-vnfs/generic-vnf/VNF-1-9887-jc689q", + "properties": { + "vnf-id": "0846287b-65bf-45a6-88f6-6a1af4149fac", + "vnf-name": "vnf9887-1jc689q", + "vnf-name2": "notused", + "vnf-type": "VRR", + "service-id": "VRRaaS", + "regional-resource-zone": "notusedforMobility", + "prov-status": "PREPROV", + "operational-status": "", + "license-key": "novalue", + "equipment-role": "VRR", + "orchestration-status": "Created", + "heat-stack-id": "1234", + "mso-catalog-key": "msokey", + "ipv4-oam-address": "135.60.77.25", + "ipv4-loopback0-address": "12.60.77.25", + "nm-lan-v6-address": "2001:1890:1F8:2075::1:4", + "management-v6-address": "2001:1890:1F8:2075::1:5", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1505337418309", + "model-invariant-id": "96129eb9-f0de-4e05-8af2-73146473f766", + "model-version-id": "5761e0a7-c6df-4d8a-9ebd-b8f445054dec", + "widget-model-id": "78789", + "widget-model-version": "7", + "nf-function": "nf-function in ASDC", + "nf-role": "nf-role in ASDC", + "nf-naming-code": "code in ASDC", + "selflink": "pathToController" + }, + "related-to": [ + { + "id": "1689710648", + "node-type": "service-instance", + "url": "/aai/v11/business/customers/customer/customer-9887-jc689q/service-subscriptions/service-subscription/VRR/service-instances/service-instance/SI-9887-jc689q" + }, + { + "id": "1362120784", + "node-type": "vserver", + "url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloudOwner-id-9887-jc689q/cloudRegion-id-9887-jc689q/tenants/tenant/tenant-id-9887-jc689q/vservers/vserver/vserver-id-2-9887-jc689q" + }, + { + "id": "2017317104", + "node-type": "vserver", + "url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloudOwner-id-9887-jc689q/cloudRegion-id-9887-jc689q/tenants/tenant/tenant-id-9887-jc689q/vservers/vserver/vserver-id-1-9887-jc689q" + } + ] + }, + { + "id": "2362269792", + "node-type": "generic-vnf", + "url": "/aai/v11/network/generic-vnfs/generic-vnf/VNF-2-9887-jc689q", + "properties": { + "vnf-id": "c187e9fe-40c3-4862-b73e-84ff056205f6", + "vnf-name": "vnf9887-2jc689q", + "vnf-name2": "notused", + "vnf-type": "VRR", + "service-id": "VRRaaS", + "regional-resource-zone": "notusedforMobility", + "prov-status": "PREPROV", + "operational-status": "", + "license-key": "novalue", + "equipment-role": "VRR", + "orchestration-status": "Created", + "heat-stack-id": "1234", + "mso-catalog-key": "msokey", + "ipv4-oam-address": "135.60.77.25", + "ipv4-loopback0-address": "12.60.77.25", + "nm-lan-v6-address": "2001:1890:1F8:2075::1:4", + "management-v6-address": "2001:1890:1F8:2075::1:5", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1505337418754", + "model-invariant-id": "96129eb9-f0de-4e05-8af2-73146473f766", + "model-version-id": "5761e0a7-c6df-4d8a-9ebd-b8f445054dec", + "widget-model-id": "78789", + "widget-model-version": "7", + "nf-function": "nf-function in ASDC", + "nf-role": "nf-role in ASDC", + "nf-naming-code": "code in ASDC", + "selflink": "pathToController" + }, + "related-to": [ + { + "id": "1689710648", + "node-type": "service-instance", + "url": "/aai/v11/business/customers/customer/customer-9887-jc689q/service-subscriptions/service-subscription/VRR/service-instances/service-instance/SI-9887-jc689q" + }, + { + "id": "1689706552", + "node-type": "vserver", + "url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloudOwner-id-9887-jc689q/cloudRegion-id-9887-jc689q/tenants/tenant/tenant-id-9887-jc689q/vservers/vserver/vserver-id-3-9887-jc689q" + } + ] + } +]}
\ No newline at end of file diff --git a/vid-app-common/src/main/resources/adiod.zip b/vid-app-common/src/main/resources/adiod.zip Binary files differnew file mode 100644 index 000000000..415fa4833 --- /dev/null +++ b/vid-app-common/src/main/resources/adiod.zip diff --git a/vid-app-common/src/main/resources/csar317927061915233480.zip b/vid-app-common/src/main/resources/csar317927061915233480.zip Binary files differnew file mode 100644 index 000000000..36ac9f9bc --- /dev/null +++ b/vid-app-common/src/main/resources/csar317927061915233480.zip diff --git a/vid-app-common/src/main/resources/generateRoleScript.sh b/vid-app-common/src/main/resources/generateRoleScript.sh new file mode 100644 index 000000000..cf73b7412 --- /dev/null +++ b/vid-app-common/src/main/resources/generateRoleScript.sh @@ -0,0 +1,3 @@ +firstRun=${1-false} +url=http://127.0.0.1:8080/vid/generateRoleScript/$firstRun +wget -O roles.sql $url
\ No newline at end of file diff --git a/vid-app-common/src/main/resources/json/mso/modelInfo b/vid-app-common/src/main/resources/json/mso/modelInfo index dcb31128d..d368e3532 100755 --- a/vid-app-common/src/main/resources/json/mso/modelInfo +++ b/vid-app-common/src/main/resources/json/mso/modelInfo @@ -33,6 +33,7 @@ "description": "short description of the entity being operated on",
"type": "string",
"enum": [
+ "pnf",
"network",
"service",
"vfModule",
diff --git a/vid-app-common/src/main/resources/json/mso/requestStatus b/vid-app-common/src/main/resources/json/mso/requestStatus index 11b285636..75b72151b 100755 --- a/vid-app-common/src/main/resources/json/mso/requestStatus +++ b/vid-app-common/src/main/resources/json/mso/requestStatus @@ -8,15 +8,6 @@ },
"requestState": {
"description": "short description of the instantiation state",
- "enum": [
- "COMPLETE",
- "FAILED",
- "IN_PROGRESS",
- "PENDING",
- "UNLOCKED",
- "COMPLETED",
- ""
- ],
"type": "string"
},
"statusMessage": {
diff --git a/vid-app-common/src/main/resources/owning-entity-properties.JSON b/vid-app-common/src/main/resources/owning-entity-properties.JSON new file mode 100644 index 000000000..a86c28c6c --- /dev/null +++ b/vid-app-common/src/main/resources/owning-entity-properties.JSON @@ -0,0 +1,17 @@ +{ + "owningEntityProperties" : { + "platform": { + "Platform-name": "Platform-name" + }, + "project": { + "Project-name": "Project-name" + }, + "lineOfBusiness": { + "Line-of-business-name": "Line-of-business-name" + }, + "owningEntity": { + "Owning-entity-id": "Owning-entity-name" + } + } +} + diff --git a/vid-app-common/src/main/resources/pnf.csar b/vid-app-common/src/main/resources/pnf.zip Binary files differindex eb4248469..eb4248469 100644 --- a/vid-app-common/src/main/resources/pnf.csar +++ b/vid-app-common/src/main/resources/pnf.zip diff --git a/vid-app-common/src/main/resources/scripts/category_parameter.sh b/vid-app-common/src/main/resources/scripts/category_parameter.sh new file mode 100644 index 000000000..0ff1c73c3 --- /dev/null +++ b/vid-app-common/src/main/resources/scripts/category_parameter.sh @@ -0,0 +1,64 @@ +#!/bin/bash +usage() { echo -e "Usage: $0 [-o <ADD|GET>] [-p <FILE_PATH>] [-c category_name] [-f FAMILY]" 1>&2; exit 1; } +while getopts ":o:p:c:f:" opt; do + case ${opt} in + o) + OPERATION=${OPTARG} + ;; + p) + FILE=${OPTARG} + ;; + c) + CATEGORY=${OPTARG} + ;; + f) + FAMILY=${OPTARG} + ;; + *) + usage + ;; + esac +done +shift $((OPTIND-1)) +if [ -z "${FILE}" ] || [ -z "${OPERATION}" ]; then + usage +fi +if [ ${OPERATION} != 'ADD' ] && [ ${OPERATION} != 'GET' ]; then + usage +fi +if [ ${OPERATION} = 'ADD' ]; then + if [ -z "${CATEGORY}" ] ; then + usage + fi + OPERATION='POST' +fi +if [ ${OPERATION} = 'GET' ]; then + if [ -z "${FAMILY}" ] ; then + usage + fi +fi +URL="http://127.0.0.1:8080/vid/maintenance/category_parameter" +if [ ${OPERATION} = 'GET' ]; then + FULLURL="${URL}?familyName=${FAMILY}" + echo "Sending request: ${FULLURL}" + echo -e "------------------------\nwget output:" + wget -nv -O "${FILE}" "${FULLURL}" + RC=$? + echo "---------------------------" + if [ $RC -eq 0 ]; then + echo "Result saved to ${FILE}" + else + echo "Failed to get category parameters list" + fi +else + BODY=$(cat ${FILE} | awk ' BEGIN { ; print " {\"options\" : [ "} { gsub(/ /, "", $0) ; printf "%s\"%s\"",separator,$1 ;separator = ", ";} END { printf " ]} "}') + FULLURL="${URL}/${CATEGORY}" + echo "Sending request: ${FULLURL} ${OPERATION} ${BODY}" + echo -e "------------------------\nwget output:" + wget --method="${OPERATION}" --body-data="${BODY}" --header=Content-Type:application/json --content-on-error -nv -O - "${FULLURL}" + RC=$? + echo "---------------------------" + if [ $RC -ne 0 ]; then + echo "Failed to ADD options to category ${CATEGORY}" + fi +fi diff --git a/vid-app-common/src/main/resources/scripts/update_category_option_name.sh b/vid-app-common/src/main/resources/scripts/update_category_option_name.sh new file mode 100644 index 000000000..5ff505800 --- /dev/null +++ b/vid-app-common/src/main/resources/scripts/update_category_option_name.sh @@ -0,0 +1,34 @@ +#!/bin/bash +usage() { echo -e "Usage: $0 [-c category_name] [-i option_id] [-n option_updated_name]" 1>&2; exit 1; } +while getopts ":c:i:n:" opt; do + case ${opt} in + i) + ID=${OPTARG} + ;; + n) + NAME=${OPTARG} + ;; + c) + CATEGORY=${OPTARG} + ;; + *) + usage + ;; + esac +done +shift $((OPTIND-1)) +if [ -z "${ID}" ] || [ -z "${NAME}" ] || [ -z "${CATEGORY}" ]; then + usage +fi +URL="http://127.0.0.1:8080/vid/maintenance/category_parameter/" +OPERATION="PUT" +FULLURL="${URL}${CATEGORY}" +BODY="{\"id\":\"${ID}\",\"name\":\"${NAME}\"}" +echo "Sending request: ${FULLURL} ${OPERATION} ${BODY}" +echo -e "------------------------\nwget output:" +wget --method="${OPERATION}" --body-data="${BODY}" --header=Content-Type:application/json --content-on-error -nv -O - "${FULLURL}" +RC=$? +echo "---------------------------" +if [ $RC -ne 0 ]; then + echo "Failed to update option name ${NAME} for option id ${ID} of category ${CATEGORY}" +fi
\ No newline at end of file diff --git a/vid-app-common/src/main/resources/scripts/vnf_wf.sh b/vid-app-common/src/main/resources/scripts/vnf_wf.sh new file mode 100644 index 000000000..69cb595b5 --- /dev/null +++ b/vid-app-common/src/main/resources/scripts/vnf_wf.sh @@ -0,0 +1,49 @@ +#!/bin/bash +usage() { echo -e "Usage: $0 [-o <ADD|DELETE|GET>] [-p <FILE_PATH>]\nCSV File Format: VNF_UUID,VNF_invariantUUID,workflowName" 1>&2; exit 1; } +while getopts ":o:p:" opt; do + case ${opt} in + o) + OPERATION=${OPTARG} + ;; + p) + FILE=${OPTARG} + ;; + *) + usage + ;; + esac +done +shift $((OPTIND-1)) +if [ -z "${FILE}" ] || [ -z "${OPERATION}" ]; then + usage +fi +if [ ${OPERATION} != 'ADD' ] && [ ${OPERATION} != 'DELETE' ] && [ ${OPERATION} != 'GET' ]; then + usage +fi +if [ ${OPERATION} = 'ADD' ]; then + OPERATION='POST' +fi +URL="http://127.0.0.1:8080/vid/change-management/vnf_workflow_relation" +if [ ${OPERATION} = 'GET' ]; then + echo "Sending request for get all vnf_workflow_relation" + echo -e "------------------------\nwget output:" + wget -nv -O "${FILE}" "${URL}" + RC=$? + echo "---------------------------" + if [ $RC -eq 0 ]; then + echo "Result saved to ${FILE}" + else + echo "Failed to get vnf to workflows relations" + fi +else + BODY=$(cat ${FILE} | awk ' BEGIN { FS=","; print " {\"workflowsDetails\" : [ "} { gsub(/ /, "", $1) ; gsub(/ /, "", $2) ; gsub(/^[ \t]+/,"",$3); gsub(/[ \t]+$/,"",$3); printf "%s{\"vnfDetails\":{\"UUID\":\"%s\",\"invariantUUID\":\"%s\"},\"workflowName\":\"%s\"}",separator,$1,$2,$3 ;separator = ", ";} END { printf " ]} "}') + echo "Sending request: ${OPERATION} ${BODY}" + echo -e "------------------------\nwget output:" + wget --method="${OPERATION}" --body-data="${BODY}" --header=Content-Type:application/json --content-on-error -nv -O - "${URL}" + RC=$? + echo "---------------------------" + if [ $RC -ne 0 ]; then + echo "Failed to ADD/DELETE vnf to workflows relations" + fi +fi + diff --git a/vid-app-common/src/main/resources/sdcservices.json b/vid-app-common/src/main/resources/sdcservices.json index 81a08d931..1d936f630 100644 --- a/vid-app-common/src/main/resources/sdcservices.json +++ b/vid-app-common/src/main/resources/sdcservices.json @@ -4,7 +4,7 @@ "uuid": "48a52540-8772-4368-9cdb-1f124ea5c931", "invariantUUID": "f430728a-4530-42be-a577-1206b9484cef", "name": "4-27_vMME_Service", - "version": "0.1", + "version": "1.0", "toscaModelURL": "./service-vf-csar.zip", "category": "Mobility", "lifecycleState": "CERTIFIED", @@ -15,10 +15,10 @@ "resources": null }, { - "uuid": "68101369-6f08-4e99-9a28-fa6327d344f3", + "uuid": "cb49608f-5a24-4789-b0f7-2595473cb997", "invariantUUID": "0311f998-9268-4fd6-bbba-afff15087b72", "name": "4-27_vMME_Service", - "version": "0.1", + "version": "1.0", "toscaModelURL": "./service-vl-csar.zip", "category": "Mobility", "lifecycleState": "CERTIFIED", @@ -32,8 +32,78 @@ "uuid": "73e1322a-8a9a-49dc-9558-b0c5c5770e4a", "invariantUUID": "f430728a-4530-42be-a577-1206b9484cef", "name": "4-27_vMME_Service", - "version": "0.1", - "toscaModelURL": "./pnf.csar", + "version": "1.0", + "toscaModelURL": "./pnf.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + }, + { + "uuid": "240376de-870e-48df-915a-31f140eedd2c", + "invariantUUID": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "name": "Demo Service", + "version": "1.0", + "toscaModelURL": "./service-DemoService1-csar.csar", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + }, + { + "uuid": "32671332-a7ee-4df6-9609-db50ce5eaee7", + "invariantUUID": "598e3f9e-3244-4d8f-a8e0-0e5d7a29eda9", + "name": "ADIOD vMX vPE_BV Service 488", + "version": "1.0", + "toscaModelURL": "./adiod.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + }, + { + "uuid": "55a48870-d99e-41a8-a3b4-a8d748333139", + "invariantUUID": "3d89efc0-19ca-4df7-9818-028e1fc6f708", + "name": "AMP PH SVC", + "version": "1.0", + "toscaModelURL": "./service-AmpPhSvc-csar.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + }, + { + "uuid": "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd", + "invariantUUID": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "name": "action-data", + "version": "1.0", + "toscaModelURL": "./2f80c596.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + }, + { + "uuid": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "invariantUUID": "b7d923c9-6175-41f1-91ba-4565c4953408", + "name": "Multiple pProbes", + "version": "1.0", + "toscaModelURL": "./service-Servicecontainermultiplepprobes-csar.csar", "category": "Mobility", "lifecycleState": "CERTIFIED", "lastUpdaterUserId": "rg276b", diff --git a/vid-app-common/src/main/resources/service-AmpPhSvc-csar.zip b/vid-app-common/src/main/resources/service-AmpPhSvc-csar.zip Binary files differnew file mode 100644 index 000000000..6d5002c6c --- /dev/null +++ b/vid-app-common/src/main/resources/service-AmpPhSvc-csar.zip diff --git a/vid-app-common/src/main/resources/service-David-csar.csar b/vid-app-common/src/main/resources/service-David-csar.csar Binary files differnew file mode 100644 index 000000000..fcf1c647b --- /dev/null +++ b/vid-app-common/src/main/resources/service-David-csar.csar diff --git a/vid-app-common/src/main/resources/service-DemoService1-csar.csar b/vid-app-common/src/main/resources/service-DemoService1-csar.csar Binary files differnew file mode 100644 index 000000000..0e34dc5ce --- /dev/null +++ b/vid-app-common/src/main/resources/service-DemoService1-csar.csar diff --git a/vid-app-common/src/main/resources/service-Servicecontainermultiplepprobes-csar.csar b/vid-app-common/src/main/resources/service-Servicecontainermultiplepprobes-csar.csar Binary files differnew file mode 100644 index 000000000..81691fe1f --- /dev/null +++ b/vid-app-common/src/main/resources/service-Servicecontainermultiplepprobes-csar.csar diff --git a/vid-app-common/src/main/resources/test.csv b/vid-app-common/src/main/resources/test.csv new file mode 100644 index 000000000..a0b09b77c --- /dev/null +++ b/vid-app-common/src/main/resources/test.csv @@ -0,0 +1,5 @@ +ee6d61be-4841-4f98-8f23-5de9da846ca7,95c75a48-6f86-498f-b1a6-e9179a83d9c7,Update +ee6d61be-4841-4f98-8f23-5de9da846ca7,95c75a48-6f86-498f-b1a6-e9179a83d9c7, VNF In Place Software Update +418f32e5-484a-4073-8fa9-fab7d497459f,709d1be4-9a3f-4a29-8c4d-a20465e808a3, VNF In Place Software Update +fa06db34-f8e3-42d9-8e51-a76816eb0f0d,0ebfb706-a846-4715-b0d0-fe0be09458d7, VNF In Place Software Update +fa06db34-f8e3-42d9-8e51-a76816eb0f0d, 87447b67-29e3-4244-8038-990a8c70259a,Replace
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/external/upload-file/ng-file-upload.min.js b/vid-app-common/src/main/webapp/app/vid/external/upload-file/ng-file-upload.min.js new file mode 100644 index 000000000..4bfe94221 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/external/upload-file/ng-file-upload.min.js @@ -0,0 +1,3 @@ +/*! 12.2.13 */ +!window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=function(a){return function(b,c){if("__setXHR_"===b){var d=c(this);d instanceof Function&&d(this)}else a.apply(this,arguments)}}(window.XMLHttpRequest.prototype.setRequestHeader));var ngFileUpload=angular.module("ngFileUpload",[]);ngFileUpload.version="12.2.13",ngFileUpload.service("UploadBase",["$http","$q","$timeout",function(a,b,c){function d(d){function e(a){j.notify&&j.notify(a),k.progressFunc&&c(function(){k.progressFunc(a)})}function h(a){return null!=d._start&&g?{loaded:a.loaded+d._start,total:d._file&&d._file.size||a.total,type:a.type,config:d,lengthComputable:!0,target:a.target}:a}function i(){a(d).then(function(a){if(g&&d._chunkSize&&!d._finished&&d._file){var b=d._file&&d._file.size||0;e({loaded:Math.min(d._end,b),total:b,config:d,type:"progress"}),f.upload(d,!0)}else d._finished&&delete d._finished,j.resolve(a)},function(a){j.reject(a)},function(a){j.notify(a)})}d.method=d.method||"POST",d.headers=d.headers||{};var j=d._deferred=d._deferred||b.defer(),k=j.promise;return d.disableProgress||(d.headers.__setXHR_=function(){return function(a){a&&a.upload&&a.upload.addEventListener&&(d.__XHR=a,d.xhrFn&&d.xhrFn(a),a.upload.addEventListener("progress",function(a){a.config=d,e(h(a))},!1),a.upload.addEventListener("load",function(a){a.lengthComputable&&(a.config=d,e(h(a)))},!1))}}),g?d._chunkSize&&d._end&&!d._finished?(d._start=d._end,d._end+=d._chunkSize,i()):d.resumeSizeUrl?a.get(d.resumeSizeUrl).then(function(a){d._start=d.resumeSizeResponseReader?d.resumeSizeResponseReader(a.data):parseInt((null==a.data.size?a.data:a.data.size).toString()),d._chunkSize&&(d._end=d._start+d._chunkSize),i()},function(a){throw a}):d.resumeSize?d.resumeSize().then(function(a){d._start=a,d._chunkSize&&(d._end=d._start+d._chunkSize),i()},function(a){throw a}):(d._chunkSize&&(d._start=0,d._end=d._start+d._chunkSize),i()):i(),k.success=function(a){return k.then(function(b){a(b.data,b.status,b.headers,d)}),k},k.error=function(a){return k.then(null,function(b){a(b.data,b.status,b.headers,d)}),k},k.progress=function(a){return k.progressFunc=a,k.then(null,null,function(b){a(b)}),k},k.abort=k.pause=function(){return d.__XHR&&c(function(){d.__XHR.abort()}),k},k.xhr=function(a){return d.xhrFn=function(b){return function(){b&&b.apply(k,arguments),a.apply(k,arguments)}}(d.xhrFn),k},f.promisesCount++,k["finally"]&&k["finally"]instanceof Function&&k["finally"](function(){f.promisesCount--}),k}function e(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}var f=this;f.promisesCount=0,this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};var g=this.isResumeSupported();this.isUploadInProgress=function(){return f.promisesCount>0},this.rename=function(a,b){return a.ngfName=b,a},this.jsonBlob=function(a){null==a||angular.isString(a)||(a=JSON.stringify(a));var b=new window.Blob([a],{type:"application/json"});return b._ngfBlob=!0,b},this.json=function(a){return angular.toJson(a)},this.isFile=function(a){return null!=a&&(a instanceof window.Blob||a.flashId&&a.name&&a.size)},this.upload=function(a,b){function c(b,c){if(b._ngfBlob)return b;if(a._file=a._file||b,null!=a._start&&g){a._end&&a._end>=b.size&&(a._finished=!0,a._end=b.size);var d=b.slice(a._start,a._end||b.size);return d.name=b.name,d.ngfName=b.ngfName,a._chunkSize&&(c.append("_chunkSize",a._chunkSize),c.append("_currentChunkSize",a._end-a._start),c.append("_chunkNumber",Math.floor(a._start/a._chunkSize)),c.append("_totalSize",a._file.size)),d}return b}function h(b,d,e){if(void 0!==d)if(angular.isDate(d)&&(d=d.toISOString()),angular.isString(d))b.append(e,d);else if(f.isFile(d)){var g=c(d,b),i=e.split(",");i[1]&&(g.ngfName=i[1].replace(/^\s+|\s+$/g,""),e=i[0]),a._fileKey=a._fileKey||e,b.append(e,g,g.ngfName||g.name)}else if(angular.isObject(d)){if(d.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+e;d.$$ngfCircularDetection=!0;try{for(var j in d)if(d.hasOwnProperty(j)&&"$$ngfCircularDetection"!==j){var k=null==a.objectKey?"[i]":a.objectKey;d.length&&parseInt(j)>-1&&(k=null==a.arrayKey?k:a.arrayKey),h(b,d[j],e+k.replace(/[ik]/g,j))}}finally{delete d.$$ngfCircularDetection}}else b.append(e,d)}function i(){a._chunkSize=f.translateScalars(a.resumeChunkSize),a._chunkSize=a._chunkSize?parseInt(a._chunkSize.toString()):null,a.headers=a.headers||{},a.headers["Content-Type"]=void 0,a.transformRequest=a.transformRequest?angular.isArray(a.transformRequest)?a.transformRequest:[a.transformRequest]:[],a.transformRequest.push(function(b){var c,d=new window.FormData;b=b||a.fields||{},a.file&&(b.file=a.file);for(c in b)if(b.hasOwnProperty(c)){var e=b[c];a.formDataAppender?a.formDataAppender(d,c,e):h(d,e,c)}return d})}return b||(a=e(a)),a._isDigested||(a._isDigested=!0,i()),d(a)},this.http=function(b){return b=e(b),b.transformRequest=b.transformRequest||function(b){return window.ArrayBuffer&&b instanceof window.ArrayBuffer||b instanceof window.Blob?b:a.defaults.transformRequest[0].apply(this,arguments)},b._chunkSize=f.translateScalars(b.resumeChunkSize),b._chunkSize=b._chunkSize?parseInt(b._chunkSize.toString()):null,d(b)},this.translateScalars=function(a){if(angular.isString(a)){if(a.search(/kb/i)===a.length-2)return parseFloat(1024*a.substring(0,a.length-2));if(a.search(/mb/i)===a.length-2)return parseFloat(1048576*a.substring(0,a.length-2));if(a.search(/gb/i)===a.length-2)return parseFloat(1073741824*a.substring(0,a.length-2));if(a.search(/b/i)===a.length-1)return parseFloat(a.substring(0,a.length-1));if(a.search(/s/i)===a.length-1)return parseFloat(a.substring(0,a.length-1));if(a.search(/m/i)===a.length-1)return parseFloat(60*a.substring(0,a.length-1));if(a.search(/h/i)===a.length-1)return parseFloat(3600*a.substring(0,a.length-1))}return a},this.urlToBlob=function(c){var d=b.defer();return a({url:c,method:"get",responseType:"arraybuffer"}).then(function(a){var b=new Uint8Array(a.data),e=a.headers("content-type")||"image/WebP",f=new window.Blob([b],{type:e}),g=c.match(/.*\/(.+?)(\?.*)?$/);g.length>1&&(f.name=g[1]),d.resolve(f)},function(a){d.reject(a)}),d.promise},this.setDefaults=function(a){this.defaults=a||{}},this.defaults={},this.version=ngFileUpload.version}]),ngFileUpload.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(a,b,c,d,e){function f(a,b,c){var e=[i.emptyPromise()];return angular.forEach(a,function(d,f){0===d.type.indexOf("image/jpeg")&&i.attrGetter("ngfFixOrientation",b,c,{$file:d})&&e.push(i.happyPromise(i.applyExifRotation(d),d).then(function(b){a.splice(f,1,b)}))}),d.all(e)}function g(a,b,c,e){var f=i.attrGetter("ngfResize",b,c);if(!f||!i.isResizeSupported()||!a.length)return i.emptyPromise();if(f instanceof Function){var g=d.defer();return f(a).then(function(d){h(d,a,b,c,e).then(function(a){g.resolve(a)},function(a){g.reject(a)})},function(a){g.reject(a)})}return h(f,a,b,c,e)}function h(a,b,c,e,f){function g(d,g){if(0===d.type.indexOf("image")){if(a.pattern&&!i.validatePattern(d,a.pattern))return;a.resizeIf=function(a,b){return i.attrGetter("ngfResizeIf",c,e,{$width:a,$height:b,$file:d})};var j=i.resize(d,a);h.push(j),j.then(function(a){b.splice(g,1,a)},function(a){d.$error="resize",(d.$errorMessages=d.$errorMessages||{}).resize=!0,d.$errorParam=(a?(a.message?a.message:a)+": ":"")+(d&&d.name),f.$ngfValidations.push({name:"resize",valid:!1}),i.applyModelValidation(f,b)})}}for(var h=[i.emptyPromise()],j=0;j<b.length;j++)g(b[j],j);return d.all(h)}var i=e;return i.getAttrWithDefaults=function(a,b){if(null!=a[b])return a[b];var c=i.defaults[b];return null==c?c:angular.isString(c)?c:JSON.stringify(c)},i.attrGetter=function(b,c,d,e){var f=this.getAttrWithDefaults(c,b);if(!d)return f;try{return e?a(f)(d,e):a(f)(d)}catch(g){if(b.search(/min|max|pattern/i))return f;throw g}},i.shouldUpdateOn=function(a,b,c){var d=i.attrGetter("ngfModelOptions",b,c);return d&&d.updateOn?d.updateOn.split(" ").indexOf(a)>-1:!0},i.emptyPromise=function(){var a=d.defer(),c=arguments;return b(function(){a.resolve.apply(a,c)}),a.promise},i.rejectPromise=function(){var a=d.defer(),c=arguments;return b(function(){a.reject.apply(a,c)}),a.promise},i.happyPromise=function(a,c){var e=d.defer();return a.then(function(a){e.resolve(a)},function(a){b(function(){throw a}),e.resolve(c)}),e.promise},i.updateModel=function(c,d,e,h,j,k,l){function m(f,g,j,l,m){d.$$ngfPrevValidFiles=f,d.$$ngfPrevInvalidFiles=g;var n=f&&f.length?f[0]:null,o=g&&g.length?g[0]:null;c&&(i.applyModelValidation(c,f),c.$setViewValue(m?n:f)),h&&a(h)(e,{$files:f,$file:n,$newFiles:j,$duplicateFiles:l,$invalidFiles:g,$invalidFile:o,$event:k});var p=i.attrGetter("ngfModelInvalid",d);p&&b(function(){a(p).assign(e,m?o:g)}),b(function(){})}function n(){function a(a,b){return a.name===b.name&&(a.$ngfOrigSize||a.size)===(b.$ngfOrigSize||b.size)&&a.type===b.type}function b(b){var c;for(c=0;c<r.length;c++)if(a(b,r[c]))return!0;for(c=0;c<s.length;c++)if(a(b,s[c]))return!0;return!1}if(j){q=[],t=[];for(var c=0;c<j.length;c++)b(j[c])?t.push(j[c]):q.push(j[c])}}function o(a){return angular.isArray(a)?a:[a]}function p(){function a(){b(function(){m(w?r.concat(v):v,w?s.concat(u):u,j,t,x)},z&&z.debounce?z.debounce.change||z.debounce:0)}var f=y?q:v;g(f,d,e,c).then(function(){y?i.validate(q,w?r.length:0,c,d,e).then(function(b){v=b.validsFiles,u=b.invalidsFiles,a()}):a()},function(){for(var b=0;b<f.length;b++){var c=f[b];if("resize"===c.$error){var d=v.indexOf(c);d>-1&&(v.splice(d,1),u.push(c)),a()}}})}var q,r,s,t=[],u=[],v=[];r=d.$$ngfPrevValidFiles||[],s=d.$$ngfPrevInvalidFiles||[],c&&c.$modelValue&&(r=o(c.$modelValue));var w=i.attrGetter("ngfKeep",d,e);q=(j||[]).slice(0),("distinct"===w||i.attrGetter("ngfKeepDistinct",d,e)===!0)&&n(d,e);var x=!w&&!i.attrGetter("ngfMultiple",d,e)&&!i.attrGetter("multiple",d);if(!w||q.length){i.attrGetter("ngfBeforeModelChange",d,e,{$files:j,$file:j&&j.length?j[0]:null,$newFiles:q,$duplicateFiles:t,$event:k});var y=i.attrGetter("ngfValidateAfterResize",d,e),z=i.attrGetter("ngfModelOptions",d,e);i.validate(q,w?r.length:0,c,d,e).then(function(a){l?m(q,[],j,t,x):(z&&z.allowInvalid||y?v=q:(v=a.validFiles,u=a.invalidFiles),i.attrGetter("ngfFixOrientation",d,e)&&i.isExifSupported()?f(v,d,e).then(function(){p()}):p())})}},i}]),ngFileUpload.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(a,b,c,d){function e(a){var b=a.match(/Android[^\d]*(\d+)\.(\d+)/);if(b&&b.length>2){var c=d.defaults.androidFixMinorVersion||4;return parseInt(b[1])<4||parseInt(b[1])===c&&parseInt(b[2])<c}return-1===a.indexOf("Chrome")&&/.*Windows.*Safari.*/.test(a)}function f(a,b,c,d,f,h,i,j){function k(){return"input"===b[0].tagName.toLowerCase()&&c.type&&"file"===c.type.toLowerCase()}function l(){return t("ngfChange")||t("ngfSelect")}function m(b){if(j.shouldUpdateOn("change",c,a)){var e=b.__files_||b.target&&b.target.files,f=[];if(!e)return;for(var g=0;g<e.length;g++)f.push(e[g]);j.updateModel(d,c,a,l(),f.length?f:null,b)}}function n(a,d){function e(b){a.attr("id","ngf-"+b),d.attr("id","ngf-label-"+b)}for(var f=0;f<b[0].attributes.length;f++){var g=b[0].attributes[f];"type"!==g.name&&"class"!==g.name&&"style"!==g.name&&("id"===g.name?(e(g.value),u.push(c.$observe("id",e))):a.attr(g.name,g.value||"required"!==g.name&&"multiple"!==g.name?g.value:g.name))}}function o(){if(k())return b;var a=angular.element('<input type="file">'),c=angular.element("<label>upload</label>");return c.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),n(a,c),g.push({el:b,ref:c}),document.body.appendChild(c.append(a)[0]),a}function p(c){if(b.attr("disabled"))return!1;if(!t("ngfSelectDisabled",a)){var d=q(c);if(null!=d)return d;r(c);try{k()||document.body.contains(x[0])||(g.push({el:b,ref:x.parent()}),document.body.appendChild(x.parent()[0]),x.bind("change",m))}catch(f){}return e(navigator.userAgent)?setTimeout(function(){x[0].click()},0):x[0].click(),!1}}function q(a){var b=a.changedTouches||a.originalEvent&&a.originalEvent.changedTouches;if(b){if("touchstart"===a.type)return w=b[0].clientX,v=b[0].clientY,!0;if("touchend"===a.type){var c=b[0].clientX,d=b[0].clientY;if(Math.abs(c-w)>20||Math.abs(d-v)>20)return a.stopPropagation(),a.preventDefault(),!1}return!0}}function r(b){j.shouldUpdateOn("click",c,a)&&x.val()&&(x.val(null),j.updateModel(d,c,a,l(),null,b,!0))}function s(a){if(x&&!x.attr("__ngf_ie10_Fix_")){if(!x[0].parentNode)return void(x=null);a.preventDefault(),a.stopPropagation(),x.unbind("click");var b=x.clone();return x.replaceWith(b),x=b,x.attr("__ngf_ie10_Fix_","true"),x.bind("change",m),x.bind("click",s),x[0].click(),!1}x.removeAttr("__ngf_ie10_Fix_")}var t=function(a,b){return j.attrGetter(a,c,b)};j.registerModelChangeValidator(d,c,a);var u=[];t("ngfMultiple")&&u.push(a.$watch(t("ngfMultiple"),function(){x.attr("multiple",t("ngfMultiple",a))})),t("ngfCapture")&&u.push(a.$watch(t("ngfCapture"),function(){x.attr("capture",t("ngfCapture",a))})),t("ngfAccept")&&u.push(a.$watch(t("ngfAccept"),function(){x.attr("accept",t("ngfAccept",a))})),u.push(c.$observe("accept",function(){x.attr("accept",t("accept"))}));var v=0,w=0,x=b;k()||(x=o()),x.bind("change",m),k()?b.bind("click",r):b.bind("click touchstart touchend",p),-1!==navigator.appVersion.indexOf("MSIE 10")&&x.bind("click",s),d&&d.$formatters.push(function(a){return(null==a||0===a.length)&&x.val()&&x.val(null),a}),a.$on("$destroy",function(){k()||x.parent().remove(),angular.forEach(u,function(a){a()})}),h(function(){for(var a=0;a<g.length;a++){var b=g[a];document.body.contains(b.el[0])||(g.splice(a,1),b.ref.remove())}}),window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(b,x,m)}var g=[];return{restrict:"AEC",require:"?ngModel",link:function(e,g,h,i){f(e,g,h,i,a,b,c,d)}}}]),function(){function a(a){return"img"===a.tagName.toLowerCase()?"image":"audio"===a.tagName.toLowerCase()?"audio":"video"===a.tagName.toLowerCase()?"video":/./}function b(b,c,d,e,f,g,h,i){function j(a){var g=b.attrGetter("ngfNoObjectUrl",f,d);b.dataUrl(a,g)["finally"](function(){c(function(){var b=(g?a.$ngfDataUrl:a.$ngfBlobUrl)||a.$ngfDataUrl;i?e.css("background-image","url('"+(b||"")+"')"):e.attr("src",b),b?e.removeClass("ng-hide"):e.addClass("ng-hide")})})}c(function(){var c=d.$watch(f[g],function(c){var k=h;if("ngfThumbnail"===g&&(k||(k={width:e[0].naturalWidth||e[0].clientWidth,height:e[0].naturalHeight||e[0].clientHeight}),0===k.width&&window.getComputedStyle)){var l=getComputedStyle(e[0]);l.width&&l.width.indexOf("px")>-1&&l.height&&l.height.indexOf("px")>-1&&(k={width:parseInt(l.width.slice(0,-2)),height:parseInt(l.height.slice(0,-2))})}return angular.isString(c)?(e.removeClass("ng-hide"),i?e.css("background-image","url('"+c+"')"):e.attr("src",c)):void(!c||!c.type||0!==c.type.search(a(e[0]))||i&&0!==c.type.indexOf("image")?e.addClass("ng-hide"):k&&b.isResizeSupported()?(k.resizeIf=function(a,e){return b.attrGetter("ngfResizeIf",f,d,{$width:a,$height:e,$file:c})},b.resize(c,k).then(function(a){j(a)},function(a){throw a})):j(c))});d.$on("$destroy",function(){c()})})}ngFileUpload.service("UploadDataUrl",["UploadBase","$timeout","$q",function(a,b,c){var d=a;return d.base64DataUrl=function(a){if(angular.isArray(a)){var b=c.defer(),e=0;return angular.forEach(a,function(c){d.dataUrl(c,!0)["finally"](function(){if(e++,e===a.length){var c=[];angular.forEach(a,function(a){c.push(a.$ngfDataUrl)}),b.resolve(c,a)}})}),b.promise}return d.dataUrl(a,!0)},d.dataUrl=function(a,e){if(!a)return d.emptyPromise(a,a);if(e&&null!=a.$ngfDataUrl||!e&&null!=a.$ngfBlobUrl)return d.emptyPromise(e?a.$ngfDataUrl:a.$ngfBlobUrl,a);var f=e?a.$$ngfDataUrlPromise:a.$$ngfBlobUrlPromise;if(f)return f;var g=c.defer();return b(function(){if(window.FileReader&&a&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 8")||a.size<2e4)&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 9")||a.size<4e6)){var c=window.URL||window.webkitURL;if(c&&c.createObjectURL&&!e){var f;try{f=c.createObjectURL(a)}catch(h){return void b(function(){a.$ngfBlobUrl="",g.reject()})}b(function(){if(a.$ngfBlobUrl=f,f){g.resolve(f,a),d.blobUrls=d.blobUrls||[],d.blobUrlsTotalSize=d.blobUrlsTotalSize||0,d.blobUrls.push({url:f,size:a.size}),d.blobUrlsTotalSize+=a.size||0;for(var b=d.defaults.blobUrlsMaxMemory||268435456,e=d.defaults.blobUrlsMaxQueueSize||200;(d.blobUrlsTotalSize>b||d.blobUrls.length>e)&&d.blobUrls.length>1;){var h=d.blobUrls.splice(0,1)[0];c.revokeObjectURL(h.url),d.blobUrlsTotalSize-=h.size}}})}else{var i=new FileReader;i.onload=function(c){b(function(){a.$ngfDataUrl=c.target.result,g.resolve(c.target.result,a),b(function(){delete a.$ngfDataUrl},1e3)})},i.onerror=function(){b(function(){a.$ngfDataUrl="",g.reject()})},i.readAsDataURL(a)}}else b(function(){a[e?"$ngfDataUrl":"$ngfBlobUrl"]="",g.reject()})}),f=e?a.$$ngfDataUrlPromise=g.promise:a.$$ngfBlobUrlPromise=g.promise,f["finally"](function(){delete a[e?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),f},d}]),ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(a,c){return{restrict:"AE",link:function(d,e,f){b(a,c,d,e,f,"ngfSrc",a.attrGetter("ngfResize",f,d),!1)}}}]),ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(a,c){return{restrict:"AE",link:function(d,e,f){b(a,c,d,e,f,"ngfBackground",a.attrGetter("ngfResize",f,d),!0)}}}]),ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(a,c){return{restrict:"AE",link:function(d,e,f){var g=a.attrGetter("ngfSize",f,d);b(a,c,d,e,f,"ngfThumbnail",g,a.attrGetter("ngfAsBackground",f,d))}}}]),ngFileUpload.config(["$compileProvider",function(a){a.imgSrcSanitizationWhitelist&&a.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/),a.aHrefSanitizationWhitelist&&a.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/)}]),ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(a,b){return function(c,d,e){if(angular.isString(c))return b.trustAsResourceUrl(c);var f=c&&((d?c.$ngfDataUrl:c.$ngfBlobUrl)||c.$ngfDataUrl);return c&&!f?(!c.$ngfDataUrlFilterInProgress&&angular.isObject(c)&&(c.$ngfDataUrlFilterInProgress=!0,a.dataUrl(c,d)),""):(c&&delete c.$ngfDataUrlFilterInProgress,(c&&f?e?b.trustAsResourceUrl(f):f:c)||"")}}])}(),ngFileUpload.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(a,b,c){function d(a){var b="",c=[];if(a.length>2&&"/"===a[0]&&"/"===a[a.length-1])b=a.substring(1,a.length-1);else{var e=a.split(",");if(e.length>1)for(var f=0;f<e.length;f++){var g=d(e[f]);g.regexp?(b+="("+g.regexp+")",f<e.length-1&&(b+="|")):c=c.concat(g.excludes)}else 0===a.indexOf("!")?c.push("^((?!"+d(a.substring(1)).regexp+").)*$"):(0===a.indexOf(".")&&(a="*"+a),b="^"+a.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",b=b.replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:b,excludes:c}}function e(a,b){null==b||a.$dirty||(a.$setDirty?a.$setDirty():a.$dirty=!0)}var f=a;return f.validatePattern=function(a,b){if(!b)return!0;var c=d(b),e=!0;if(c.regexp&&c.regexp.length){var f=new RegExp(c.regexp,"i");e=null!=a.type&&f.test(a.type)||null!=a.name&&f.test(a.name)}for(var g=c.excludes.length;g--;){var h=new RegExp(c.excludes[g],"i");e=e&&(null==a.type||h.test(a.type))&&(null==a.name||h.test(a.name))}return e},f.ratioToFloat=function(a){var b=a.toString(),c=b.search(/[x:]/i);return b=c>-1?parseFloat(b.substring(0,c))/parseFloat(b.substring(c+1)):parseFloat(b)},f.registerModelChangeValidator=function(a,b,c){a&&a.$formatters.push(function(d){if(a.$dirty){var e=d;d&&!angular.isArray(d)&&(e=[d]),f.validate(e,0,a,b,c).then(function(){f.applyModelValidation(a,e)})}return d})},f.applyModelValidation=function(a,b){e(a,b),angular.forEach(a.$ngfValidations,function(b){a.$setValidity(b.name,b.valid)})},f.getValidationAttr=function(a,b,c,d,e){var g="ngf"+c[0].toUpperCase()+c.substr(1),h=f.attrGetter(g,a,b,{$file:e});if(null==h&&(h=f.attrGetter("ngfValidate",a,b,{$file:e}))){var i=(d||c).split(".");h=h[i[0]],i.length>1&&(h=h&&h[i[1]])}return h},f.validate=function(a,c,d,e,g){function h(b,c,h){if(a){for(var i=a.length,j=null;i--;){var n=a[i];if(n){var o=f.getValidationAttr(e,g,b,c,n);null!=o&&(h(n,o,i)||(-1===k.indexOf(b)?(n.$error=b,(n.$errorMessages=n.$errorMessages||{})[b]=!0,n.$errorParam=o,-1===m.indexOf(n)&&m.push(n),l||a.splice(i,1),j=!1):a.splice(i,1)))}}null!==j&&d.$ngfValidations.push({name:b,valid:j})}}function i(c,h,i,n,o){function p(b,d,e){function f(f){if(f())if(-1===k.indexOf(c)){if(d.$error=c,(d.$errorMessages=d.$errorMessages||{})[c]=!0,d.$errorParam=e,-1===m.indexOf(d)&&m.push(d),!l){var g=a.indexOf(d);g>-1&&a.splice(g,1)}b.resolve(!1)}else{var h=a.indexOf(d);h>-1&&a.splice(h,1),b.resolve(!0)}else b.resolve(!0)}null!=e?n(d,e).then(function(a){f(function(){return!o(a,e)})},function(){f(function(){return j("ngfValidateForce",{$file:d})})}):b.resolve(!0)}var q=[f.emptyPromise(!0)];a&&(a=void 0===a.length?[a]:a,angular.forEach(a,function(a){var d=b.defer();return q.push(d.promise),!i||null!=a.type&&0===a.type.search(i)?void("dimensions"===c&&null!=f.attrGetter("ngfDimensions",e)?f.imageDimensions(a).then(function(b){p(d,a,j("ngfDimensions",{$file:a,$width:b.width,$height:b.height}))},function(){d.resolve(!1)}):"duration"===c&&null!=f.attrGetter("ngfDuration",e)?f.mediaDuration(a).then(function(b){p(d,a,j("ngfDuration",{$file:a,$duration:b}))},function(){d.resolve(!1)}):p(d,a,f.getValidationAttr(e,g,c,h,a))):void d.resolve(!0)}));var r=b.defer();return b.all(q).then(function(a){for(var b=!0,e=0;e<a.length;e++)if(!a[e]){b=!1;break}d.$ngfValidations.push({name:c,valid:b}),r.resolve(b)}),r.promise}d=d||{},d.$ngfValidations=d.$ngfValidations||[],angular.forEach(d.$ngfValidations,function(a){a.valid=!0});var j=function(a,b){return f.attrGetter(a,e,g,b)},k=(f.attrGetter("ngfIgnoreInvalid",e,g)||"").split(" "),l=f.attrGetter("ngfRunAllValidations",e,g);if(null==a||0===a.length)return f.emptyPromise({validFiles:a,invalidFiles:[]});a=void 0===a.length?[a]:a.slice(0);var m=[];h("pattern",null,f.validatePattern),h("minSize","size.min",function(a,b){return a.size+.1>=f.translateScalars(b)}),h("maxSize","size.max",function(a,b){return a.size-.1<=f.translateScalars(b)});var n=0;if(h("maxTotalSize",null,function(b,c){return n+=b.size,n>f.translateScalars(c)?(a.splice(0,a.length),!1):!0}),h("validateFn",null,function(a,b){return b===!0||null===b||""===b}),!a.length)return f.emptyPromise({validFiles:[],invalidFiles:m});var o=b.defer(),p=[];return p.push(i("maxHeight","height.max",/image/,this.imageDimensions,function(a,b){return a.height<=b})),p.push(i("minHeight","height.min",/image/,this.imageDimensions,function(a,b){return a.height>=b})),p.push(i("maxWidth","width.max",/image/,this.imageDimensions,function(a,b){return a.width<=b})),p.push(i("minWidth","width.min",/image/,this.imageDimensions,function(a,b){return a.width>=b})),p.push(i("dimensions",null,/image/,function(a,b){return f.emptyPromise(b)},function(a){return a})),p.push(i("ratio",null,/image/,this.imageDimensions,function(a,b){for(var c=b.toString().split(","),d=!1,e=0;e<c.length;e++)Math.abs(a.width/a.height-f.ratioToFloat(c[e]))<.01&&(d=!0);return d})),p.push(i("maxRatio","ratio.max",/image/,this.imageDimensions,function(a,b){return a.width/a.height-f.ratioToFloat(b)<1e-4})),p.push(i("minRatio","ratio.min",/image/,this.imageDimensions,function(a,b){return a.width/a.height-f.ratioToFloat(b)>-1e-4})),p.push(i("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(a,b){return a<=f.translateScalars(b)})),p.push(i("minDuration","duration.min",/audio|video/,this.mediaDuration,function(a,b){return a>=f.translateScalars(b)})),p.push(i("duration",null,/audio|video/,function(a,b){return f.emptyPromise(b)},function(a){return a})),p.push(i("validateAsyncFn",null,null,function(a,b){return b},function(a){return a===!0||null===a||""===a})),b.all(p).then(function(){if(l)for(var b=0;b<a.length;b++){var d=a[b];d.$error&&a.splice(b--,1)}l=!1,h("maxFiles",null,function(a,b,d){return b>c+d}),o.resolve({validFiles:a,invalidFiles:m})}),o.promise},f.imageDimensions=function(a){if(a.$ngfWidth&&a.$ngfHeight){var d=b.defer();return c(function(){d.resolve({width:a.$ngfWidth,height:a.$ngfHeight})}),d.promise}if(a.$ngfDimensionPromise)return a.$ngfDimensionPromise;var e=b.defer();return c(function(){return 0!==a.type.indexOf("image")?void e.reject("not image"):void f.dataUrl(a).then(function(b){function d(){var b=h[0].naturalWidth||h[0].clientWidth,c=h[0].naturalHeight||h[0].clientHeight;h.remove(),a.$ngfWidth=b,a.$ngfHeight=c,e.resolve({width:b,height:c})}function f(){h.remove(),e.reject("load error")}function g(){c(function(){h[0].parentNode&&(h[0].clientWidth?d():i++>10?f():g())},1e3)}var h=angular.element("<img>").attr("src",b).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");h.on("load",d),h.on("error",f);var i=0;g(),angular.element(document.getElementsByTagName("body")[0]).append(h)},function(){e.reject("load error")})}),a.$ngfDimensionPromise=e.promise,a.$ngfDimensionPromise["finally"](function(){delete a.$ngfDimensionPromise}),a.$ngfDimensionPromise},f.mediaDuration=function(a){if(a.$ngfDuration){var d=b.defer();return c(function(){d.resolve(a.$ngfDuration)}),d.promise}if(a.$ngfDurationPromise)return a.$ngfDurationPromise;var e=b.defer();return c(function(){return 0!==a.type.indexOf("audio")&&0!==a.type.indexOf("video")?void e.reject("not media"):void f.dataUrl(a).then(function(b){function d(){var b=h[0].duration;a.$ngfDuration=b,h.remove(),e.resolve(b)}function f(){h.remove(),e.reject("load error")}function g(){c(function(){h[0].parentNode&&(h[0].duration?d():i>10?f():g())},1e3)}var h=angular.element(0===a.type.indexOf("audio")?"<audio>":"<video>").attr("src",b).css("visibility","none").css("position","fixed");h.on("loadedmetadata",d),h.on("error",f);var i=0;g(),angular.element(document.body).append(h)},function(){e.reject("load error")})}),a.$ngfDurationPromise=e.promise,a.$ngfDurationPromise["finally"](function(){delete a.$ngfDurationPromise}),a.$ngfDurationPromise},f}]),ngFileUpload.service("UploadResize",["UploadValidate","$q",function(a,b){var c=a,d=function(a,b,c,d,e){var f=e?Math.max(c/a,d/b):Math.min(c/a,d/b);return{width:a*f,height:b*f,marginX:a*f-c,marginY:b*f-d}},e=function(a,e,f,g,h,i,j,k){var l=b.defer(),m=document.createElement("canvas"),n=document.createElement("img");return n.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(n),n.onload=function(){var a=n.width,b=n.height;if(n.parentNode.removeChild(n),null!=k&&k(a,b)===!1)return void l.reject("resizeIf");try{if(i){var o=c.ratioToFloat(i),p=a/b;o>p?(e=a,f=e/o):(f=b,e=f*o)}e||(e=a),f||(f=b);var q=d(a,b,e,f,j);m.width=Math.min(q.width,e),m.height=Math.min(q.height,f);var r=m.getContext("2d");r.drawImage(n,Math.min(0,-q.marginX/2),Math.min(0,-q.marginY/2),q.width,q.height),l.resolve(m.toDataURL(h||"image/WebP",g||.934))}catch(s){l.reject(s)}},n.onerror=function(){n.parentNode.removeChild(n),l.reject()},n.src=a,l.promise};return c.dataUrltoBlob=function(a,b,c){for(var d=a.split(","),e=d[0].match(/:(.*?);/)[1],f=atob(d[1]),g=f.length,h=new Uint8Array(g);g--;)h[g]=f.charCodeAt(g);var i=new window.Blob([h],{type:e});return i.name=b,i.$ngfOrigSize=c,i},c.isResizeSupported=function(){var a=document.createElement("canvas");return window.atob&&a.getContext&&a.getContext("2d")&&window.Blob},c.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(a){this.$ngfName=a},configurable:!0}),c.resize=function(a,d){if(0!==a.type.indexOf("image"))return c.emptyPromise(a);var f=b.defer();return c.dataUrl(a,!0).then(function(b){e(b,d.width,d.height,d.quality,d.type||a.type,d.ratio,d.centerCrop,d.resizeIf).then(function(e){if("image/jpeg"===a.type&&d.restoreExif!==!1)try{e=c.restoreExif(b,e)}catch(g){setTimeout(function(){throw g},1)}try{var h=c.dataUrltoBlob(e,a.name,a.size);f.resolve(h)}catch(g){f.reject(g)}},function(b){"resizeIf"===b&&f.resolve(a),f.reject(b)})},function(a){f.reject(a)}),f.promise},c}]),function(){function a(a,c,d,e,f,g,h,i,j,k){function l(){return c.attr("disabled")||s("ngfDropDisabled",a)}function m(b,c,d){if(b){var e;try{e=b&&b.getData&&b.getData("text/html")}catch(f){}q(b.items,b.files,s("ngfAllowDir",a)!==!1,s("multiple")||s("ngfMultiple",a)).then(function(a){a.length?n(a,c):o(d,e).then(function(a){n(a,c)})})}}function n(b,c){i.updateModel(e,d,a,s("ngfChange")||s("ngfDrop"),b,c)}function o(b,c){if(!i.shouldUpdateOn(b,d,a)||"string"!=typeof c)return i.rejectPromise([]);var e=[];c.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,function(a,b,c){e.push(c)});var f=[],g=[];if(e.length){angular.forEach(e,function(a){f.push(i.urlToBlob(a).then(function(a){g.push(a)}))});var h=k.defer();return k.all(f).then(function(){h.resolve(g)},function(a){h.reject(a)}),h.promise}return i.emptyPromise()}function p(a,b,c,d){var e=s("ngfDragOverClass",a,{$event:c}),f="dragover";if(angular.isString(e))f=e;else if(e&&(e.delay&&(w=e.delay),e.accept||e.reject)){var g=c.dataTransfer.items;if(null!=g&&g.length)for(var h=e.pattern||s("ngfPattern",a,{$event:c}),j=g.length;j--;){if(!i.validatePattern(g[j],h)){f=e.reject;break}f=e.accept}else f=e.accept}d(f)}function q(b,c,e,f){function g(a,b){var c=k.defer();if(null!=a)if(a.isDirectory){var d=[i.emptyPromise()];if(m){var e={type:"directory"};e.name=e.path=(b||"")+a.name,n.push(e)}var f=a.createReader(),h=[],p=function(){f.readEntries(function(e){try{e.length?(h=h.concat(Array.prototype.slice.call(e||[],0)),p()):(angular.forEach(h.slice(0),function(c){n.length<=j&&l>=o&&d.push(g(c,(b?b:"")+a.name+"/"))}),k.all(d).then(function(){c.resolve()},function(a){c.reject(a)}))}catch(f){c.reject(f)}},function(a){c.reject(a)})};p()}else a.file(function(a){try{a.path=(b?b:"")+a.name,m&&(a=i.rename(a,a.path)),n.push(a),o+=a.size,c.resolve()}catch(d){c.reject(d)}},function(a){c.reject(a)});return c.promise}var j=i.getValidationAttr(d,a,"maxFiles");null==j&&(j=Number.MAX_VALUE);var l=i.getValidationAttr(d,a,"maxTotalSize");null==l&&(l=Number.MAX_VALUE);var m=s("ngfIncludeDir",a),n=[],o=0,p=[i.emptyPromise()];if(b&&b.length>0&&"file:"!==h.location.protocol)for(var q=0;q<b.length;q++){if(b[q].webkitGetAsEntry&&b[q].webkitGetAsEntry()&&b[q].webkitGetAsEntry().isDirectory){var r=b[q].webkitGetAsEntry();if(r.isDirectory&&!e)continue;null!=r&&p.push(g(r))}else{var t=b[q].getAsFile();null!=t&&(n.push(t),o+=t.size)}if(n.length>j||o>l||!f&&n.length>0)break}else if(null!=c)for(var u=0;u<c.length;u++){var v=c.item(u);if((v.type||v.size>0)&&(n.push(v),o+=v.size),n.length>j||o>l||!f&&n.length>0)break}var w=k.defer();return k.all(p).then(function(){if(f||m||!n.length)w.resolve(n);else{for(var a=0;n[a]&&"directory"===n[a].type;)a++;w.resolve([n[a]])}},function(a){w.reject(a)}),w.promise}var r=b(),s=function(a,b,c){return i.attrGetter(a,d,b,c)};if(s("dropAvailable")&&g(function(){a[s("dropAvailable")]?a[s("dropAvailable")].value=r:a[s("dropAvailable")]=r}),!r)return void(s("ngfHideOnDropNotAvailable",a)===!0&&c.css("display","none"));null==s("ngfSelect")&&i.registerModelChangeValidator(e,d,a);var t,u=null,v=f(s("ngfStopPropagation")),w=1;c[0].addEventListener("dragover",function(b){if(!l()&&i.shouldUpdateOn("drop",d,a)){if(b.preventDefault(),v(a)&&b.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var e=b.dataTransfer.effectAllowed;b.dataTransfer.dropEffect="move"===e||"linkMove"===e?"move":"copy"}g.cancel(u),t||(t="C",p(a,d,b,function(d){t=d,c.addClass(t),s("ngfDrag",a,{$isDragging:!0,$class:t,$event:b})}))}},!1),c[0].addEventListener("dragenter",function(b){!l()&&i.shouldUpdateOn("drop",d,a)&&(b.preventDefault(),v(a)&&b.stopPropagation())},!1),c[0].addEventListener("dragleave",function(b){!l()&&i.shouldUpdateOn("drop",d,a)&&(b.preventDefault(), +v(a)&&b.stopPropagation(),u=g(function(){t&&c.removeClass(t),t=null,s("ngfDrag",a,{$isDragging:!1,$event:b})},w||100))},!1),c[0].addEventListener("drop",function(b){!l()&&i.shouldUpdateOn("drop",d,a)&&(b.preventDefault(),v(a)&&b.stopPropagation(),t&&c.removeClass(t),t=null,m(b.dataTransfer,b,"dropUrl"))},!1),c[0].addEventListener("paste",function(b){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&s("ngfEnableFirefoxPaste",a)&&b.preventDefault(),!l()&&i.shouldUpdateOn("paste",d,a)&&m(b.clipboardData||b.originalEvent.clipboardData,b,"pasteUrl")},!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&s("ngfEnableFirefoxPaste",a)&&(c.attr("contenteditable",!0),c.on("keypress",function(a){a.metaKey||a.ctrlKey||a.preventDefault()}))}function b(){var a=document.createElement("div");return"draggable"in a&&"ondrop"in a&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$window","Upload","$http","$q",function(b,c,d,e,f,g){return{restrict:"AEC",require:"?ngModel",link:function(h,i,j,k){a(h,i,j,k,b,c,d,e,f,g)}}}]),ngFileUpload.directive("ngfNoFileDrop",function(){return function(a,c){b()&&c.css("display","none")}}),ngFileUpload.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(a,c,d){return function(e,f,g){if(b()){var h=a(d.attrGetter("ngfDropAvailable",g));c(function(){h(e),h.assign&&h.assign(e,!0)})}}}])}(),ngFileUpload.service("UploadExif",["UploadResize","$q",function(a,b){function c(a,b,c,d){switch(b){case 2:return a.transform(-1,0,0,1,c,0);case 3:return a.transform(-1,0,0,-1,c,d);case 4:return a.transform(1,0,0,-1,0,d);case 5:return a.transform(0,1,1,0,0,0);case 6:return a.transform(0,1,-1,0,d,0);case 7:return a.transform(0,-1,-1,0,d,c);case 8:return a.transform(0,-1,1,0,0,c)}}function d(a){for(var b="",c=new Uint8Array(a),d=c.byteLength,e=0;d>e;e++)b+=String.fromCharCode(c[e]);return window.btoa(b)}var e=a;return e.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&e.isResizeSupported()},e.readOrientation=function(a){var c=b.defer(),d=new FileReader,e=a.slice?a.slice(0,65536):a;return d.readAsArrayBuffer(e),d.onerror=function(a){return c.reject(a)},d.onload=function(a){var b={orientation:1},d=new DataView(this.result);if(65496!==d.getUint16(0,!1))return c.resolve(b);for(var e=d.byteLength,f=2;e>f;){var g=d.getUint16(f,!1);if(f+=2,65505===g){if(1165519206!==d.getUint32(f+=2,!1))return c.resolve(b);var h=18761===d.getUint16(f+=6,!1);f+=d.getUint32(f+4,h);var i=d.getUint16(f,h);f+=2;for(var j=0;i>j;j++)if(274===d.getUint16(f+12*j,h)){var k=d.getUint16(f+12*j+8,h);return k>=2&&8>=k&&(d.setUint16(f+12*j+8,1,h),b.fixedArrayBuffer=a.target.result),b.orientation=k,c.resolve(b)}}else{if(65280!==(65280&g))break;f+=d.getUint16(f,!1)}}return c.resolve(b)},c.promise},e.applyExifRotation=function(a){if(0!==a.type.indexOf("image/jpeg"))return e.emptyPromise(a);var f=b.defer();return e.readOrientation(a).then(function(b){return b.orientation<2||b.orientation>8?f.resolve(a):void e.dataUrl(a,!0).then(function(g){var h=document.createElement("canvas"),i=document.createElement("img");i.onload=function(){try{h.width=b.orientation>4?i.height:i.width,h.height=b.orientation>4?i.width:i.height;var g=h.getContext("2d");c(g,b.orientation,i.width,i.height),g.drawImage(i,0,0);var j=h.toDataURL(a.type||"image/WebP",.934);j=e.restoreExif(d(b.fixedArrayBuffer),j);var k=e.dataUrltoBlob(j,a.name);f.resolve(k)}catch(l){return f.reject(l)}},i.onerror=function(){f.reject()},i.src=g},function(a){f.reject(a)})},function(a){f.reject(a)}),f.promise},e.restoreExif=function(a,b){var c={};return c.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c.encode64=function(a){var b,c,d,e,f,g="",h="",i="",j=0;do b=a[j++],c=a[j++],h=a[j++],d=b>>2,e=(3&b)<<4|c>>4,f=(15&c)<<2|h>>6,i=63&h,isNaN(c)?f=i=64:isNaN(h)&&(i=64),g=g+this.KEY_STR.charAt(d)+this.KEY_STR.charAt(e)+this.KEY_STR.charAt(f)+this.KEY_STR.charAt(i),b=c=h="",d=e=f=i="";while(j<a.length);return g},c.restore=function(a,b){a.match("data:image/jpeg;base64,")&&(a=a.replace("data:image/jpeg;base64,",""));var c=this.decode64(a),d=this.slice2Segments(c),e=this.exifManipulation(b,d);return"data:image/jpeg;base64,"+this.encode64(e)},c.exifManipulation=function(a,b){var c=this.getExifArray(b),d=this.insertExif(a,c);return new Uint8Array(d)},c.getExifArray=function(a){for(var b,c=0;c<a.length;c++)if(b=a[c],255===b[0]&225===b[1])return b;return[]},c.insertExif=function(a,b){var c=a.replace("data:image/jpeg;base64,",""),d=this.decode64(c),e=d.indexOf(255,3),f=d.slice(0,e),g=d.slice(e),h=f;return h=h.concat(b),h=h.concat(g)},c.slice2Segments=function(a){for(var b=0,c=[];;){if(255===a[b]&218===a[b+1])break;if(255===a[b]&216===a[b+1])b+=2;else{var d=256*a[b+2]+a[b+3],e=b+d+2,f=a.slice(b,e);c.push(f),b=e}if(b>a.length)break}return c},c.decode64=function(a){var b,c,d,e,f,g="",h="",i=0,j=[],k=/[^A-Za-z0-9\+\/\=]/g;k.exec(a)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding."),a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");do d=this.KEY_STR.indexOf(a.charAt(i++)),e=this.KEY_STR.indexOf(a.charAt(i++)),f=this.KEY_STR.indexOf(a.charAt(i++)),h=this.KEY_STR.indexOf(a.charAt(i++)),b=d<<2|e>>4,c=(15&e)<<4|f>>2,g=(3&f)<<6|h,j.push(b),64!==f&&j.push(c),64!==h&&j.push(g),b=c=g="",d=e=f=h="";while(i<a.length);return j},c.restore(a,b)},e}]);
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/icons/collapse-change-managment.svg b/vid-app-common/src/main/webapp/app/vid/icons/collapse-change-managment.svg new file mode 100644 index 000000000..7a774e123 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/icons/collapse-change-managment.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="11px" height="3px" viewBox="0 0 11 3" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --> + <title>Shape</title> + <desc>Created with Sketch.</desc> + <defs></defs> + <g id="vid-" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="Change-Managment" transform="translate(-262.000000, -238.000000)" fill="#000000"> + <g id="fab-copy" transform="translate(234.000000, 230.000000)"> + <g id="add-copy" transform="translate(24.000000, 0.000000)"> + <polygon id="Shape" points="10.2857143 8.71428571 8.71428571 8.71428571 4 8.71428571 4 10.2857143 8.71428571 10.2857143 10.2857143 10.2857143 15 10.2857143 15 8.71428571"></polygon> + </g> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/icons/expand-change-managment.svg b/vid-app-common/src/main/webapp/app/vid/icons/expand-change-managment.svg new file mode 100644 index 000000000..784714839 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/icons/expand-change-managment.svg @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="11px" height="11px" viewBox="0 0 11 11" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --> + <title>add</title> + <desc>Created with Sketch.</desc> + <defs></defs> + <g id="vid-" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="Change-Managment" transform="translate(-238.000000, -234.000000)"> + <g id="fab-copy" transform="translate(234.000000, 230.000000)"> + <g id="add"> + <polygon id="bounds" points="19 0 0 0 0 19 19 19"></polygon> + <polygon id="Shape" fill="#5A5A5A" points="10.2857143 8.71428571 10.2857143 4 8.71428571 4 8.71428571 8.71428571 4 8.71428571 4 10.2857143 8.71428571 10.2857143 8.71428571 15 10.2857143 15 10.2857143 10.2857143 15 10.2857143 15 8.71428571"></polygon> + <polygon id="Shape" fill="#323943" points="10.2857143 8.71428571 10.2857143 4 8.71428571 4 8.71428571 8.71428571 4 8.71428571 4 10.2857143 8.71428571 10.2857143 8.71428571 15 10.2857143 15 10.2857143 10.2857143 15 10.2857143 15 8.71428571"></polygon> + </g> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/icons/refresh-change-managment.svg b/vid-app-common/src/main/webapp/app/vid/icons/refresh-change-managment.svg new file mode 100644 index 000000000..174a52eb8 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/icons/refresh-change-managment.svg @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="36px" height="33px" viewBox="0 0 36 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --> + <title>Group 4</title> + <desc>Created with Sketch.</desc> + <defs></defs> + <g id="vid-" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="Change-Managment" transform="translate(-1544.000000, -167.000000)" fill="#000000"> + <g id="Group-4" transform="translate(1539.000000, 161.000000)"> + <path d="M46.8694358,24.175791 C45.9994856,16.2172262 38.8825787,10.2854851 30.7284339,10.8556784 C24.5237875,11.2895496 19.2775923,15.4204556 17.3664133,21.1365857 L15.9019754,17.1882236 L14.5076414,17.7168536 L16.9050052,24.0765655 L22.9818228,21.7507351 L22.4483333,20.3733764 L18.7132068,21.8122285 C20.3736452,16.5462395 25.1585967,12.7241599 30.8313525,12.3274822 C38.1718767,11.8141827 44.5815219,17.1455631 45.3812187,24.3059932 L46.8694358,24.175791 Z" id="Combined-Shape" transform="translate(30.688539, 17.561891) scale(-1, 1) rotate(-51.000000) translate(-30.688539, -17.561891) "></path> + <path d="M31.668351,33.8536511 C30.7984008,25.8950863 23.6814939,19.9633451 15.5273491,20.5335385 C9.32270268,20.9674096 4.07650747,25.0983156 2.16532847,30.8144457 L0.700890606,26.8660837 L-0.69344337,27.3947136 L1.70392039,33.7544255 L7.78073796,31.4285952 L7.24724852,30.0512364 L3.512122,31.4900885 C5.17256042,26.2240996 9.95751192,22.4020199 15.6302677,22.0053422 C22.9707919,21.4920428 29.3804371,26.8234231 30.1801339,33.9838532 L31.668351,33.8536511 Z" id="Combined-Shape-Copy-2" transform="translate(15.487454, 27.239751) scale(-1, 1) rotate(-232.000000) translate(-15.487454, -27.239751) "></path> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/images/attach.svg b/vid-app-common/src/main/webapp/app/vid/images/attach.svg new file mode 100644 index 000000000..ff28c9d32 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/attach.svg @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="14px" height="13px" viewBox="0 0 14 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch --> + <title>Page 1 Copy 2</title> + <desc>Created with Sketch.</desc> + <defs> + <polygon id="path-1" points="0 0 14 0 14 13 0 13"></polygon> + </defs> + <g id="vid-" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="Change-Managment" transform="translate(-1696.000000, -181.000000)"> + <g id="Page-1-Copy-2" transform="translate(1696.000000, 181.000000)"> + <mask id="mask-2" fill="white"> + <use xlink:href="#path-1"></use> + </mask> + <g id="Clip-2"></g> + <path d="M1.07738181,11.892665 C2.51371549,13.3691117 4.84984058,13.3691117 6.28634966,11.892665 L13.231757,4.75311054 C14.256081,3.70036026 14.256081,1.98141503 13.231757,0.928484448 C12.2076085,-0.124265836 10.5351892,-0.124265836 9.51104067,0.928484448 L2.56563328,8.06785861 C1.95366989,8.69691251 1.95366989,9.73361642 2.56563328,10.3628506 C3.17759667,10.9917242 4.18613479,10.9917242 4.79809819,10.3628506 L10.9992921,3.9882935 C11.2078403,3.78005124 11.2127514,3.4376685 11.0103422,3.22347646 C10.807933,3.00910412 10.4746769,3.00405582 10.2661288,3.21211779 C10.2624454,3.21590401 10.2589375,3.21969024 10.2552541,3.22347646 L4.05388475,9.59767299 C3.84130245,9.81619214 3.52242901,9.81619214 3.30984671,9.59767299 C3.09726442,9.37933413 3.09726442,9.0513751 3.30984671,8.83285595 L10.2550787,1.69348179 C10.8800215,1.05126625 11.8627762,1.05126625 12.487719,1.69348179 C13.1124865,2.33569732 13.1124865,3.34607797 12.487719,3.9882935 L5.54231162,11.1276677 C4.50518364,12.1937599 2.85854783,12.1937599 1.82141985,11.1276677 C0.78446726,10.0615755 0.78446726,8.36913378 1.82141985,7.30304157 L8.0227892,0.928484448 C8.23098655,0.720061888 8.2355469,0.377679153 8.03261149,0.163667407 C7.82985148,-0.050524636 7.4967708,-0.0550320443 7.28857345,0.153390516 C7.28524089,0.156816146 7.28190833,0.160241776 7.27857577,0.163667407 L1.07738181,6.53804423 C-0.35912727,8.01467119 -0.35912727,10.416038 1.07738181,11.892665" id="Fill-1" fill="#000000" mask="url(#mask-2)"></path> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/images/elipsis_menu_icon.svg b/vid-app-common/src/main/webapp/app/vid/images/elipsis_menu_icon.svg new file mode 100644 index 000000000..984311d1e --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/elipsis_menu_icon.svg @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon --> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve"> +<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata> +<g><g transform="translate(0.000000,511.000000) scale(0.100000,-0.100000)"><path d="M671,1004.4C51.1,734.4-96.2-88.1,388.7-573c687.4-693.5,1816.7-73.6,1638.8,896.1C1916.9,900,1223.4,1249.9,671,1004.4z"/><path d="M4599.1,1004.4C3979.2,734.4,3831.9-88.1,4316.8-573c687.4-693.5,1816.7-73.6,1638.8,896.1C5845,900,5151.5,1249.9,4599.1,1004.4z"/><path d="M8527.2,1004.4C7907.3,734.4,7760-88.1,8244.9-573c399-399,963.6-399,1362.5,0C10368.5,188.1,9515.4,1434,8527.2,1004.4z"/></g></g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/images/emptyData.svg b/vid-app-common/src/main/webapp/app/vid/images/emptyData.svg new file mode 100644 index 000000000..9f639aadb --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/emptyData.svg @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="94px" height="88px" viewBox="0 0 94 88" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch --> + <title>Page 1 Copy 15</title> + <desc>Created with Sketch.</desc> + <defs> + <polygon id="path-1" points="69 88 0 88 0 44.000352 0 0.000704 69 0.000704"></polygon> + </defs> + <g id="vid-" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="Test-Environments-NO-INFO" transform="translate(-1561.000000, -357.000000)"> + <g id="Page-1-Copy-15" transform="translate(1561.000000, 357.000000)"> + <g id="Group-3"> + <mask id="mask-2" fill="white"> + <use xlink:href="#path-1"></use> + </mask> + <g id="Clip-2"></g> + <path d="M65.4615385,84.480704 L3.53846154,84.480704 L3.53846154,8.800704 L12.3846154,8.800704 L12.3846154,12.320704 C12.3846154,13.292224 13.1754615,14.080704 14.1538462,14.080704 L54.8461538,14.080704 C55.8245385,14.080704 56.6153846,13.292224 56.6153846,12.320704 L56.6153846,8.800704 L65.4615385,8.800704 L65.4615385,84.480704 Z M15.9230769,3.520704 L53.0769231,3.520704 L53.0769231,5.280704 L53.0769231,8.800704 L53.0769231,10.560704 L15.9230769,10.560704 L15.9230769,8.800704 L15.9230769,5.280704 L15.9230769,3.520704 Z M67.2307692,5.280704 L56.6153846,5.280704 L56.6153846,1.760704 C56.6153846,0.787424 55.8245385,0.000704 54.8461538,0.000704 L14.1538462,0.000704 C13.1754615,0.000704 12.3846154,0.787424 12.3846154,1.760704 L12.3846154,5.280704 L1.76923077,5.280704 C0.790846154,5.280704 0,6.067424 0,7.040704 L0,86.240704 C0,87.213984 0.790846154,88.000704 1.76923077,88.000704 L67.2307692,88.000704 C68.2091538,88.000704 69,87.213984 69,86.240704 L69,7.040704 C69,6.067424 68.2091538,5.280704 67.2307692,5.280704 L67.2307692,5.280704 Z" id="Fill-1" fill="#191919" mask="url(#mask-2)"></path> + </g> + <path d="M90.6,67.2135388 L85.5,77.7785266 L80.4,67.2135388 L80.4,14.8041564 C80.4,11.8917415 82.6882,9.52166257 85.5,9.52166257 C88.3118,9.52166257 90.6,11.8917415 90.6,14.8041564 L90.6,67.2135388 Z M85.5,6 C80.8131,6 77,9.94954458 77,14.8041564 L77,67.6308559 C77,67.9037847 77.0612,68.1731919 77.1785,68.4179474 L83.8,82.1330623 L83.8,85.2391687 C83.8,86.2129084 84.5599,87 85.5,87 C86.4401,87 87.2,86.2129084 87.2,85.2391687 L87.2,82.1330623 L93.8215,68.4179474 C93.9388,68.1731919 94,67.9037847 94,67.6308559 L94,14.8041564 C94,9.94954458 90.1869,6 85.5,6 L85.5,6 Z" id="Fill-4" fill="#191919"></path> + <path d="M14,25 C15.104,25 16,25.896 16,27 C16,28.104 15.104,29 14,29 C12.896,29 12,28.104 12,27 C12,25.896 12.896,25 14,25" id="Fill-6" fill="#191919"></path> + <path d="M52.2631579,24.1818182 L22.7368421,24.1818182 C21.7763684,24.1818182 21,25.0351818 21,26.0909091 C21,27.1466364 21.7763684,28 22.7368421,28 L52.2631579,28 C53.2236316,28 54,27.1466364 54,26.0909091 C54,25.0351818 53.2236316,24.1818182 52.2631579,24.1818182 L52.2631579,7" id="Fill-8" fill="#191919"></path> + <path d="M14,38 C15.104,38 16,38.896 16,40 C16,41.104 15.104,42 14,42 C12.896,42 12,41.104 12,40 C12,38.896 12.896,38 14,38" id="Fill-10" fill="#191919"></path> + <path d="M52.2631579,38 L22.7368421,38 C21.7763684,38 21,38.894 21,40 C21,41.106 21.7763684,42 22.7368421,42 L52.2631579,42 C53.2236316,42 54,41.106 54,40 C54,38.894 53.2236316,38 52.2631579,38" id="Fill-12" fill="#191919"></path> + <path d="M14,52 C15.104,52 16,52.896 16,54 C16,55.104 15.104,56 14,56 C12.896,56 12,55.104 12,54 C12,52.896 12.896,52 14,52" id="Fill-14" fill="#191919"></path> + <path d="M52.2631579,52 L22.7368421,52 C21.7763684,52 21,52.894 21,54 C21,55.106 21.7763684,56 22.7368421,56 L52.2631579,56 C53.2236316,56 54,55.106 54,54 C54,52.894 53.2236316,52 52.2631579,52" id="Fill-16" fill="#191919"></path> + <path d="M14,67 C15.104,67 16,67.894 16,69 C16,70.104 15.104,71 14,71 C12.896,71 12,70.104 12,69 C12,67.894 12.896,67 14,67" id="Fill-18" fill="#191919"></path> + <path d="M52.2631579,67 L22.7368421,67 C21.7763684,67 21,67.894 21,69 C21,70.106 21.7763684,71 22.7368421,71 L52.2631579,71 C53.2236316,71 54,70.106 54,69 C54,67.894 53.2236316,67 52.2631579,67" id="Fill-20" fill="#191919"></path> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/images/icon_noconnection.svg b/vid-app-common/src/main/webapp/app/vid/images/icon_noconnection.svg new file mode 100644 index 000000000..6966076d1 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/icon_noconnection.svg @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="102px" height="83px" viewBox="0 0 102 83" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch --> + <title>Group 6</title> + <desc>Created with Sketch.</desc> + <defs></defs> + <g id="vid-" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="Test-Environments-ERROR" transform="translate(-770.000000, -360.000000)" fill="#191919"> + <g id="Page-1-Copy-15" transform="translate(770.000000, 360.000000)"> + <g id="Group-6"> + <path d="M84.3719292,80.6944444 L93.618168,80.6944444 L93.618168,71.4722222 L84.3719292,71.4722222 L84.3719292,80.6944444 Z M82.0603695,69.1666667 L82.0603695,74.9305556 L18.3768996,74.9305556 C9.59297277,74.9305556 2.3115597,67.7833333 2.3115597,58.9069444 L2.3115597,58.6763889 C2.3115597,49.8 9.59297277,42.6527778 18.3768996,42.6527778 L34.6733955,42.6527778 L34.6733955,40.3472222 L18.3768996,40.3472222 C8.32161493,40.3472222 0,48.5319444 0,58.6763889 L0,58.9069444 C0,69.0513889 8.32161493,77.2361111 18.3768996,77.2361111 L82.0603695,77.2361111 L82.0603695,83 L95.9297277,83 L95.9297277,80.6944444 L95.9297277,78.3888889 L95.9297277,73.7777778 L95.9297277,71.4722222 L95.9297277,69.1666667 L82.0603695,69.1666667 Z" id="Fill-3"></path> + <path d="M9.24623881,11.5277778 L18.4924776,11.5277778 L18.4924776,2.30555556 L9.24623881,2.30555556 L9.24623881,11.5277778 Z M83.5628833,5.76388889 L20.8040373,5.76388889 L20.8040373,4.61111111 L20.8040373,2.30555556 L20.8040373,0 L6.93467911,0 L6.93467911,5.76388889 L6.93467911,8.06944444 L6.93467911,13.8333333 L20.8040373,13.8333333 L20.8040373,11.5277778 L20.8040373,9.22222222 L20.8040373,8.06944444 L83.5628833,8.06944444 C92.4623881,8.06944444 99.6282232,15.2166667 99.6282232,24.0930556 L99.6282232,24.3236111 C99.6282232,33.2 92.4623881,40.3472222 83.5628833,40.3472222 L63.5678918,40.3472222 L63.5678918,42.6527778 L83.5628833,42.6527778 C93.733746,42.6527778 101.939783,34.4680556 101.939783,24.3236111 L101.939783,24.0930556 C101.939783,13.9486111 93.618168,5.76388889 83.5628833,5.76388889 L83.5628833,5.76388889 Z" id="Fill-5"></path> + </g> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/images/refresh.svg b/vid-app-common/src/main/webapp/app/vid/images/refresh.svg new file mode 100644 index 000000000..4868d0614 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/refresh.svg @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="36px" height="32px" viewBox="0 0 36 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --> + <title>Page 1</title> + <desc>Created with Sketch.</desc> + <defs></defs> + <g id="vid-" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="Artboard-Copy-2" transform="translate(-127.000000, -48.000000)" fill="#000000"> + <g id="Page-1" transform="translate(127.000000, 47.000000)"> + <g id="Group-3" transform="translate(9.000000, 0.338800)"> + <path d="M0.7181,3.0151 C7.4501,-1.3179 16.5391,0.4801 21.2271,7.1761 C24.7951,12.2711 24.8861,18.9481 21.6461,24.0301 L25.6361,22.6831 L26.1031,24.1001 L19.6521,26.2391 L17.6351,20.0531 L19.0421,19.6001 L20.2741,23.4091 C23.3211,18.8051 23.2811,12.6811 20.0191,8.0221 C15.7991,1.9951 7.6211,0.3691 1.5531,4.2531 L0.7181,3.0151 Z" id="Fill-1"></path> + </g> + <g id="Group-6" transform="translate(0.000000, 6.338800)"> + <path d="M25.0135,23.7841 C18.2065,27.9991 9.1505,26.0421 4.5795,19.2651 C1.1015,14.1091 1.1275,7.4321 4.4545,2.4071 L0.4415,3.6831 L-0.0005,2.2591 L6.4875,0.2331 L8.3955,6.4531 L6.9825,6.8811 L5.8165,3.0521 C2.6885,7.6021 2.6225,13.7261 5.8035,18.4401 C9.9175,24.5411 18.0655,26.3091 24.2005,22.5311 L25.0135,23.7841 Z" id="Fill-4"></path> + </g> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/images/search.svg b/vid-app-common/src/main/webapp/app/vid/images/search.svg new file mode 100644 index 000000000..9dcc59086 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/search.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 17 17" style="enable-background:new 0 0 17 17;" xml:space="preserve"> +<title>Fill 1</title> +<desc>Created with Sketch.</desc> +<g id="vid-"> + <g id="Artboard-Copy-2" transform="translate(-197.000000, -61.000000)"> + <path id="Fill-1" d="M204,73.9c-1.6,0-3-0.6-4.2-1.7c-1.1-1.1-1.7-2.6-1.7-4.2s0.6-3,1.7-4.2c1.1-1.1,2.6-1.7,4.2-1.7 + c1.6,0,3,0.6,4.2,1.7c1.1,1.1,1.7,2.6,1.7,4.2s-0.6,3-1.7,4.2C207,73.3,205.6,73.9,204,73.9 M213.8,77.1l-4.5-4.5 + c1.1-1.3,1.7-2.9,1.7-4.5c0-1.9-0.7-3.6-2-4.9c-1.3-1.3-3.1-2-4.9-2c-1.9,0-3.6,0.7-4.9,2c-1.3,1.3-2,3.1-2,4.9 + c0,1.9,0.7,3.6,2,4.9c1.3,1.3,3.1,2,4.9,2c1.7,0,3.3-0.6,4.5-1.7l4.5,4.5c0.1,0.1,0.3,0.2,0.4,0.2c0.1,0,0.3-0.1,0.4-0.2 + C214.1,77.6,214.1,77.3,213.8,77.1"/> + </g> +</g> +</svg> diff --git a/vid-app-common/src/main/webapp/app/vid/images/sort_down.svg b/vid-app-common/src/main/webapp/app/vid/images/sort_down.svg new file mode 100644 index 000000000..3dfaba158 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/sort_down.svg @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 9 13" style="enable-background:new 0 0 9 13;" xml:space="preserve"> +<title>15 copy</title> +<desc>Created with Sketch.</desc> +<g id="vid-"> + <g id="Artboard-Copy-2" transform="translate(-90.000000, -61.000000)"> + <path id="_x31_5-copy" d="M93.6,61.9v8.2l-2.1-2.1c-0.2-0.2-0.4-0.3-0.6-0.3s-0.5,0.1-0.6,0.3c-0.4,0.4-0.4,0.9,0,1.3l3.6,3.6 + c0.4,0.4,0.9,0.4,1.3,0l3.6-3.6c0.4-0.4,0.4-0.9,0-1.3c-0.4-0.4-0.9-0.4-1.3,0l-2.1,2.1v-8.2c0-0.5-0.4-0.9-0.9-0.9 + C94,61,93.6,61.4,93.6,61.9z"/> + </g> +</g> +</svg> diff --git a/vid-app-common/src/main/webapp/app/vid/images/sort_up.svg b/vid-app-common/src/main/webapp/app/vid/images/sort_up.svg new file mode 100644 index 000000000..5f597dd41 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/sort_up.svg @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 9 13" style="enable-background:new 0 0 9 13;" xml:space="preserve"> +<title>15</title> +<desc>Created with Sketch.</desc> +<g id="vid-"> + <g id="Artboard-Copy-2" transform="translate(-53.000000, -61.000000)"> + <path id="_x31_5" d="M58.4,72.3v-8.2l2.1,2.1c0.2,0.2,0.4,0.3,0.6,0.3c0.2,0,0.5-0.1,0.6-0.3c0.4-0.4,0.4-0.9,0-1.3l-3.6-3.6 + c-0.4-0.4-0.9-0.4-1.3,0l-3.6,3.6c-0.4,0.4-0.4,0.9,0,1.3c0.4,0.4,0.9,0.4,1.3,0l2.1-2.1v8.2c0,0.5,0.4,0.9,0.9,0.9 + C58,73.2,58.4,72.8,58.4,72.3z"/> + </g> +</g> +</svg> diff --git a/vid-app-common/src/main/webapp/app/vid/images/sprite.png b/vid-app-common/src/main/webapp/app/vid/images/sprite.png Binary files differnew file mode 100644 index 000000000..26079b7c5 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/sprite.png diff --git a/vid-app-common/src/main/webapp/app/vid/images/v.svg b/vid-app-common/src/main/webapp/app/vid/images/v.svg new file mode 100644 index 000000000..b6f77b91e --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/images/v.svg @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="17px" height="17px" viewBox="0 0 17 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --> + <title>Combined Shape</title> + <desc>Created with Sketch.</desc> + <defs></defs> + <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="**POPUPS-" transform="translate(-790.000000, -457.000000)" fill="#191919"> + <g id="popup-medium-2" transform="translate(772.000000, 325.000000)"> + <path d="M26.5,149 C21.8055796,149 18,145.19442 18,140.5 C18,135.80558 21.8055796,132 26.5,132 C31.1944204,132 35,135.80558 35,140.5 C35,145.19442 31.1944204,149 26.5,149 Z M23.8535534,140.549776 C23.6582912,140.354514 23.3417088,140.354514 23.1464466,140.549776 C22.9511845,140.745038 22.9511845,141.061621 23.1464466,141.256883 L25.7146903,143.825127 C25.9311409,144.041577 26.2895239,144.01447 26.4709545,143.767924 L30.8653572,137.796384 C31.0290275,137.573973 30.9814087,137.260993 30.7589977,137.097322 C30.5365867,136.933652 30.223606,136.981271 30.0599357,137.203682 L26.0103833,142.706606 L23.8535534,140.549776 Z" id="Combined-Shape"></path> + </g> + </g> + </g> +</svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/componentConstants.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/componentConstants.js index 534cee505..fa9ff1c75 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/constants/componentConstants.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/componentConstants.js @@ -28,7 +28,9 @@ appDS2 CLOUD_REGION_ID : "cloudRegionID", COMPONENT_STATUS : "ComponentStatus", CREATE_COMPONENT : "createComponent", - DELETE_COMPONENT : "deleteComponent", + DELETE_RESUME_COMPONENT : "deleteResumeComponent", + DELETE:"Delete", + RESUME:"Resume", ENTITY : "entity", GET_COMPONENT_LIST : "getComponentList", GET_SUBS : "getSubs", @@ -43,8 +45,17 @@ appDS2 MODEL_VERSION_1 : "1", MSO_CREATE_REQ : "createInstance", MSO_DELETE_REQ : "deleteInstance", + MSO_CHANGE_CONFIG_STATUS_REQ: "changeConfigurationStatus", + MSO_CHANGE_PORT_STATUS_REQ: "changePortStatus", + MSO_CREATE_ENVIRONMENT: "createEnvironmentInstance", + MSO_DEACTIVATE_ENVIRONMENT: "deactivateEnvironmentInstance", + MSO_ACTIVATE_ENVIRONMENT: "activateEnvironmentInstance", + MSO_ACTIVATE_SERVICE_REQ: "activateServiceInstance", + MSO_DEACTIVATE_SERVICE_REQ: "deactivateServiceInstance", NAME : "name", NETWORK : "network", + CONFIGURATION : "configuration", + PORT: "port", NETWORKS : "networks", PRODUCT_NAME_TRINITY : "Trinity", QUERY_SERVICE_INSTANCE : "queryServiceInstance", @@ -69,8 +80,8 @@ appDS2 VNF_TYPE : "vnfType", VOLUME_GROUP : "volumeGroup", IS_PERMITTED: "is-permitted", - - + RESUME_STATUS: "PendingActivation", + PNF : "pnf", // IDs CIDR_MASK_1 : "255.255.255.000", //COMPONENT_LIST_NAMED_QUERY_ID : "ed0a0f5b-cf79-4784-88b2-911cd726cd3d", @@ -95,11 +106,12 @@ appDS2 SUBSCRIBER_NAME_GED12 : "General Electric Division 12", VNF_INSTANCE_ID : "VNF_INSTANCE_ID_12345", VPN_ID_1 : "1a2b3c4d5e6f", - + // PATHS - GET_WORKFLOW: "change-management/workflow?vnfs=@vnfs", + GET_WORKFLOW: "change-management/get_vnf_workflow_relation", GET_MSO_WORKFLOWS: "change-management/mso", GET_SCHEDULER_CHANGE_MANAGEMENTS: "change-management/scheduler", + CANCEL_SCHEDULE_REQUEST: "change-management/scheduler/schedules", ASSIGN : "?r=", AAI_GET_SERVICE_INSTANCE_PATH : "aai_get_service_instance/", AAI_GET_SERVICES : "aai_get_services", @@ -108,19 +120,31 @@ appDS2 AAI_GET_SERVICES_BY_TYPE : "aai_get_models_by_service_type", AAI_GET_TENANTS : "aai_get_tenants/", AAI_SUB_DETAILS_PATH : "aai_sub_details/", - AAI_GET_VERSION_BY_INVARIANT_ID:"aai_get_version_by_invariant_id/", - AAI_GET_VNF_DATA_PATH: "aai_get_vnf_data/", - AAI_GET_VNF_BY_CUSTOMERID_AND_SERVICETYPE: "get_vnf_data_by_globalid_and_service_type/", - AAI_SUB_VIEWEDIT_PATH : "aai_sub_viewedit", + AAI_GET_VERSION_BY_INVARIANT_ID:"aai_get_version_by_invariant_id/", + SEARCH_SERVICE_INSTANCES:"search_service_instances", + AAI_GET_VNF_DATA_PATH: "aai_get_vnf_data/", + AAI_GET_VNF_BY_CUSTOMERID_AND_SERVICETYPE: "get_vnf_data_by_globalid_and_service_type/", + AAI_GET_SERVICES_BY_OWNING_ENTITY_ID: 'aai_get_services_by_owning_entity_id', + AAI_SUB_VIEWEDIT_PATH : "aai_sub_viewedit", AAI_GET_VNF_INFO : "aai_get_vnf_information", + AAI_GET_PNF_INSTANCE: "aai_get_service_instance_pnfs", + AAI_GET_VNF_INSTANCES_LIST: "aai_get_vnf_instances", + AAI_GET_PNF_INSTANCES_LIST: "aai_get_pnf_instances", + AAI_GET_BY_URI: "aai_get_by_uri/", + AAI_GET_CONFIGURATION: "aai_get_configuration/", + AAI_GET_TEST_ENVIRONMENTS: "get_operational_environments?operationalEnvironmentType=", + GET_CATEGORY_PARAMETERS : "category_parameter", + PARAMETER_STANDARDIZATION_FAMILY: "PARAMETER_STANDARDIZATION", + TENANT_ISOLATION_FAMILY: "TENANT_ISOLATION", ASDC_GETMODEL_PATH : "asdc/getModel/", - CREATE_INSTANCE_PATH : "/models/services/createInstance", + CREATE_INSTANCE_PATH : "/models/services/createInstance", AAI_GET_PNF_BY_NAME : "aai_get_pnfs/pnf/", //1710 scheduler contants POST_CREATE_NEW_VNF_CHANGE:"post_create_new_vnf_change", GET_POLICY:"get_policy", + WORKFLOW: "workflow", GET_TIME_SLOTS:"get_time_slots", SUBMIT_VNF_CHANGE_TIMESLOTS:"submit_vnf_change_timeslots", - + FORWARD_SLASH : "/", GET_SYSTEM_PROP_VNF_PROV_STATUS_PATH : "get_system_prop_vnf_prov_status", GET_USER_ID : "getuserID", @@ -128,15 +152,20 @@ appDS2 INSTANTIATE_PATH : "/instantiate", INVALID_STRING : "/INVALID_STRING/", INVALID_STRING_MSO_CREATE_SVC_INSTANCE : "INVALID_STRING_mso_create_svc_instance", + MSO: "mso", MSO_CREATE_NW_INSTANCE : "mso_create_nw_instance", MSO_CREATE_NW_INSTANCE_PATH : "mso_create_nw_instance/", MSO_CREATE_SVC_INSTANCE : "mso_create_svc_instance", MSO_DELETE_SVC_INSTANCE_PATH : "mso_delete_svc_instance/", - MSO_ACTIVATE_INSTANCE: "mso/mso_activate_service_instance/@serviceInstanceId", - SELECTED_SERVICE_SUB_PATH : "#/instances/subdetails?selectedServiceSubscription=", - SELECTED_SUB_PATH : "#/instances/subdetails?selectedSubscriber=", - SELECTEDSERVICEINSTANCE_SUB_PATH : "&selectedServiceInstance=", - SELECTEDSUBSCRIBER_SUB_PATH : "&selectedSubscriber=", + MSO_ACTIVATE_INSTANCE: "mso/mso_activate_service_instance/@serviceInstanceId", + MSO_DEACTIVATE_INSTANCE: "mso/mso_deactivate_service_instance/@serviceInstanceId", + MSO_CREATE_REALATIONSHIP : "mso_add_relationship", + MSO_REMOVE_RELATIONSHIP: "mso_remove_relationship", + SELECTED_SERVICE_SUB_PATH : "#/instances/subdetails?", + SELECTED_SERVICE_INSTANCE_SUB_PATH : "serviceInstanceIdentifier=", + SELECTED_SUBSCRIBER_SUB_PATH : "subscriberId=", + OWNING_ENTITY_SUB_PATH : "owningEntity=", + PROJECT_SUB_PATH : "project=", SERVICE_TYPE_LIST_PATH : "#/instances/serviceTypes?serviceTypeList=", SERVICE_MODLES_INSTANCES_SUBSCRIBERS_PATH : 'serviceModels.htm#/instances/subscribers', SERVICES_DIST_STATUS_PATH : "rest/models/services?distributionStatus=", @@ -150,6 +179,12 @@ appDS2 WELCOME_PATH : "welcome.htm", IS_PERMITTED_SUB_PATH: "&isPermitted=", + //Test Environment Urls: + OPERATIONAL_ENVIRONMENT_CREATE : "operationalEnvironment/create", + OPERATIONAL_ENVIRONMENT_DEACTIVATE : "operationalEnvironment/deactivate?operationalEnvironment=", + OPERATIONAL_ENVIRONMENT_ACTIVATE : "operationalEnvironment/activate?operationalEnvironment=", + OPERATIONAL_ENVIRONMENT_STATUS : "operationalEnvironment/requestStatus?requestId=", + //Template Urls AAI_GET_SUBS_URL : "app/vid/scripts/view-models/aaiGetSubs.htm", AAI_GET_SUBSCRIBER_URL : "app/vid/scripts/view-models/aaiGetSubscriberList.htm", @@ -158,9 +193,9 @@ appDS2 CREATE_INSTANCE_SERVICE_MODELS_URL : "app/vid/scripts/view-models/createInstanceServiceModels.htm", INSTANTIATE_URL : "app/vid/scripts/view-models/instantiate.htm", SERVICE_MODELS : "app/vid/scripts/view-models/serviceModels.htm", - - - + + + FULL_NAME_MAP : { "model-invariant-id" : "Model ID", "model-version-id" : "Model Version ID" @@ -174,11 +209,18 @@ appDS2 }, MANUAL_TASKS: { - "retry": "retry", - "rollback": "rollback", - "abort": "abort", - "skip": "skip" + "retry": "retry", + "rollback": "rollback", + "abort": "abort", + "skip": "skip" + }, + + WORKFLOWS: { + vnfConfigUpdate: "VNF Config Update", + vnfInPlace: "VNF In Place Software Update", + update: "update", + replace: "replace" } - + }; })()) diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js index 9e3f44cc2..d7f429a6e 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js @@ -37,6 +37,10 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { SUBSCRIBER_NAME: "subscriberName",
SUPPRESS_ROLLBACK: "suppressRollback",
TENANT: "tenant",
+ PROJECT: "project",
+ OWNING_ENTITY : "owningEntity",
+ LINE_OF_BUSINESS : "lineOfBusiness",
+ PLATFORM : "platform",
VNF_TARGETPROVSTATUS: "target",
AAI_GET_FULL_SUBSCRIBERS: "aai_get_full_subscribers",
@@ -83,7 +87,7 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { NETWORKS: "networks",
OPERATIONAL_STATUS: "operational-status",
ORCHESTRATION_STATUS: "orchestration-status",
- PERCENT_PROGRESS: "precentProgress",
+ PERCENT_PROGRESS: "percent-progress",
PERSONA_MODEL_ID: "persona-model-id",
PERSONA_MODEL_VERSION: "persona-model-version",
PERSONA_MODEL_CUSTOMIZATION_ID: "persona-model-customization-id",
@@ -129,7 +133,16 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { SUPPLEMENTORY_DATA_FILE: "supplementoryDataFile",
ZONE_ID: "zone-id",
ZONE_NAME: "zone-name",
-
+ GENERIC_CONFIGURATION: "configuration",
+ CONFIGURATIONS: "configurations",
+ CONFIGURATION: "configuration",
+ CONFIGURATION_NAME: "configuration-name",
+ CONFIGURATION_TYPE: "configuration-type",
+ CONFIGURATION_ID: "configuration-id",
+ PORT: "l-interface",
+ PORT_ID: "interface-id",
+ PORT_NAME: "interface-name",
+ PORT_MIRRORED: "is-port-mirrored"
};
var KEY = {
@@ -140,58 +153,62 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { * NAME values are displayed on GUI pages.
*/
var NAME = {
- AVAILABLE_VOLUME_GROUP: "Available Volume Group",
- INSTANCE_NAME: "Instance Name",
- CUSTOMER_ID: "Customer ID",
- LCP_REGION: "LCP Region",
- LCP_REGION_TEXT: "Legacy Region",
- MODEL_INVARIANT_UUID: "Model Invariant UUID",
- MODEL_NAME: "Model Name",
- MODEL_VERSION: "Model Version",
- MODEL_UUID: "Model UUID",
- MODEL_CUSTOMIZATION_UUID: "Model Customization UUID",
- MODEL_VNF_TYPE: "NF Type",
- MODEL_VNF_ROLE: "NF Role",
- MODEL_VNF_FUNCTION: "NF Function",
- MODEL_VNF_CODE: "NF Naming Code",
- MODEL_CUSTOMIZATION_NAME: "Resource Name",
- PRODUCT_FAMILY: "Product Family",
- AIC_ZONES: "AIC Zone",
- RESOURCE_DESCRIPTION: "Resource Description",
- RESOURCE_NAME: "Resource Name",
- SERVICE_CATEGORY: "Service Category",
- SERVICE_DESCRIPTION: "Service Description",
- SERVICE_INSTANCE_ID: "Service Instance ID",
- SERVICE_INSTANCE_Id: "Service Instance Id",
- SERVICE_INSTANCE_NAME: "Service Instance Name",
- SERVICE_INVARIANT_UUID: "Service Invariant UUID",
- SERVICE_NAME: "Service Name",
- SERVICE_TYPE: "Service Type",
- SERVICE_ROLE: "Service Role",
- SERVICE_UUID: "Service UUID",
- SERVICE_VERSION: "Service Version",
- SUBSCRIBER_NAME: "Subscriber Name",
- MOBILITY: "Mobility",
- SUPPRESS_ROLLBACK: "Suppress Rollback on Failure",
- SDN_C_PRELOAD: "SDN-C Pre-Load",
- UPLOAD_SUPPLEMENTORY_DATA_FILE: "Upload Supplementary Data file",
- SUPPLEMENTORY_DATA_FILE: "Supplementory Data file (JSON format)",
- TENANT: "Tenant",
- USER_SERVICE_INSTANCE_NAME: "User Service Instance Name",
- VF_MODULE_DESCRIPTION: "VF Module Description",
- VF_MODULE_LABEL: "VF Module Label",
- VF_MODULE_TYPE: "VF Module Type",
- VNF_ORCHESTRATION_STATUS: "Orchestration Status",
- VNF_Operational_Status: "Operational Status",
- VNF_Current_Prov_Status: "Current Prov_Status",
- VNF_Target_Prov_Status: "Target Prov Status",
- VNF_VNF_ID: "VNF ID",
- VNF_VNF_Name: "VNF Name",
- VNF_VNF_Type: "VNF Type",
- VNF_Service_ID: "Service ID",
- VNF_In_Maint: "In Maint",
- VFMDULE_CUSTOMIZATIONUUID: "VF Module Model Customization UUID",
- RESOURCE_CUSTOMIZATION_UUID: "Resource Model Customization UUID"
+ AVAILABLE_VOLUME_GROUP: "Available Volume Group",
+ INSTANCE_NAME: "Instance Name",
+ CUSTOMER_ID: "Customer ID",
+ LCP_REGION: "LCP Region",
+ LCP_REGION_TEXT: "Legacy Region",
+ MODEL_INVARIANT_UUID: "Model Invariant UUID",
+ MODEL_NAME: "Model Name",
+ MODEL_VERSION: "Model Version",
+ MODEL_UUID: "Model UUID",
+ MODEL_CUSTOMIZATION_UUID: "Model Customization UUID",
+ MODEL_VNF_TYPE: "NF Type",
+ MODEL_VNF_ROLE: "NF Role",
+ MODEL_VNF_FUNCTION: "NF Function",
+ MODEL_VNF_CODE: "NF Naming Code",
+ MODEL_CUSTOMIZATION_NAME: "Resource Name",
+ PRODUCT_FAMILY: "Product Family",
+ AIC_ZONES: "AIC Zone",
+ RESOURCE_DESCRIPTION : "Resource Description",
+ RESOURCE_NAME : "Resource Name",
+ SERVICE_CATEGORY : "Service Category",
+ SERVICE_DESCRIPTION : "Service Description",
+ SERVICE_INSTANCE_ID : "Service Instance ID",
+ SERVICE_INSTANCE_Id : "Service Instance Id",
+ SERVICE_INSTANCE_NAME : "Service Instance Name",
+ SERVICE_INVARIANT_UUID : "Service Invariant UUID",
+ SERVICE_NAME : "Service Name",
+ SERVICE_TYPE : "Service Type",
+ SERVICE_ROLE: "Service Role",
+ SERVICE_UUID : "Service UUID",
+ SERVICE_VERSION : "Service Version",
+ SUBSCRIBER_NAME : "Subscriber Name",
+ MOBILITY : "Mobility",
+ SUPPRESS_ROLLBACK : "Suppress Rollback on Failure",
+ SDN_C_PRELOAD : "SDN-C Pre-Load",
+ UPLOAD_SUPPLEMENTORY_DATA_FILE : "Upload Supplementary Data file",
+ SUPPLEMENTORY_DATA_FILE : "Supplementory Data file (JSON format)",
+ TENANT : "Tenant",
+ PROJECT : "Project",
+ OWNING_ENTITY : "Owning Entity",
+ LINE_OF_BUSINESS : "Line Of Business",
+ PLATFORM : "Platform",
+ USER_SERVICE_INSTANCE_NAME : "User Service Instance Name",
+ VF_MODULE_DESCRIPTION : "VF Module Description",
+ VF_MODULE_LABEL : "VF Module Label",
+ VF_MODULE_TYPE : "VF Module Type",
+ VNF_ORCHESTRATION_STATUS : "Orchestration Status",
+ VNF_Operational_Status: "Operational Status",
+ VNF_Current_Prov_Status: "Current Prov_Status",
+ VNF_Target_Prov_Status: "Target Prov Status",
+ VNF_VNF_ID : "VNF ID",
+ VNF_VNF_Name: "VNF Name",
+ VNF_VNF_Type: "VNF Type",
+ VNF_Service_ID: "Service ID",
+ VNF_In_Maint: "In Maint",
+ VFMDULE_CUSTOMIZATIONUUID: "VF Module Model Customization UUID",
+ RESOURCE_CUSTOMIZATION_UUID: "Resource Model Customization UUID"
};
/*
@@ -211,6 +228,10 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { SUBSCRIBER_NAME: "Select Subscriber Name",
TARGETPROVSTATUS: "Select Target Prov Status",
TENANT: "Select Tenant Name",
+ PROJECT: "Select Project Name",
+ OWNING_ENTITY: "Select Owning Entity",
+ LINE_OF_BUSINESS : "Select Line Of Business",
+ PLATFORM : "Select Platform",
TEXT_INPUT: "Enter data",
SELECT_SERVICE: "Select a service type",
SELECT_SUB: "Select a subscriber name",
@@ -244,7 +265,11 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { SUBMITTING_REQUEST: "Submitting Request",
SUCCESS_VNF_PROV_STATUS: "Successfully set the VNF's Prov_Status to ",
UNLOCKED: "Unlocked",
-
+ AAI_ACTIVE: "Active",
+ AAI_INACTIVE: "Inactive",
+ AAI_CREATED: "Created",
+ AAI_ENABLED: "Enabled",
+ AAI_DISABLED: "Disabled"
};
var STYLE = {
@@ -416,8 +441,8 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { id: ID.SUBSCRIBER_NAME,
type: PARAMETER.SELECT,
prompt: PROMPT.SUBSCRIBER_NAME,
- isRequired : true,
- isSingleOptionAutoSelected : false
+ isRequired: true,
+ isSingleOptionAutoSelected : false
},
TENANT_DISABLED: {
name: NAME.TENANT,
@@ -433,6 +458,38 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) { isEnabled: true,
prompt: PROMPT.TENANT,
isRequired: true
+ },
+ PROJECT: {
+ name: NAME.PROJECT,
+ id: ID.PROJECT,
+ type: PARAMETER.SELECT,
+ isEnabled: true,
+ prompt: PROMPT.PROJECT,
+ isRequired: false
+ },
+ OWNING_ENTITY: {
+ name: NAME.OWNING_ENTITY,
+ id: ID.OWNING_ENTITY,
+ type: PARAMETER.SELECT,
+ isEnabled: true,
+ prompt: PROMPT.OWNING_ENTITY,
+ isRequired: true
+ },
+ LINE_OF_BUSINESS: {
+ name: NAME.LINE_OF_BUSINESS,
+ id: ID.LINE_OF_BUSINESS,
+ type: PARAMETER.MULTI_SELECT,
+ isEnabled: true,
+ prompt: PROMPT.LINE_OF_BUSINESS,
+ isRequired: false
+ },
+ PLATFORM: {
+ name: NAME.PLATFORM,
+ id: ID.PLATFORM,
+ type: PARAMETER.SELECT,
+ isEnabled: true,
+ prompt: PROMPT.PLATFORM,
+ isRequired: true
}
};
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/parameterConstants.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/parameterConstants.js index 693186af4..785f3caba 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/constants/parameterConstants.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/parameterConstants.js @@ -24,6 +24,7 @@ appDS2.constant("PARAMETER", (function() { return {
BOOLEAN : "boolean",
SELECT : "select",
+ MULTI_SELECT : "multi_select",
STRING : "string",
NUMBER : "number",
VALID_VALUES : "valid_values",
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/version.json b/vid-app-common/src/main/webapp/app/vid/scripts/constants/version.json new file mode 100644 index 000000000..5e843e91d --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/version.json @@ -0,0 +1 @@ +{"Version": "BUILD_NUMBER"}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js index 6ed410a8f..0b69ed556 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/vidConfiguration.js @@ -64,6 +64,12 @@ appDS2.constant("VIDCONFIGURATION", (function() { "orchestrationStatus": "active",
"inMaint": false,
"operationalStatus": "out-of-service-path"
+ },
+ {
+ "provStatus": "prov",
+ "orchestrationStatus": "activated",
+ "inMaint": false,
+ "operationalStatus": "out-of-service-path"
}
];
/*
@@ -96,6 +102,11 @@ appDS2.constant("VIDCONFIGURATION", (function() { */
var COMPONENT_LIST_NAMED_QUERY_ID = "0367193e-c785-4d5f-9cb8-7bc89dc9ddb7";
var MACRO_SERVICES = [];
+
+ var SCHEDULER_CALLBACK_URL = "";
+
+ var SCHEDULER_PORTAL_URL = "";
+
return {
ASDC_MODEL_STATUS : ASDC_MODEL_STATUS,
MSO_MAX_POLLS : MSO_MAX_POLLS,
@@ -106,6 +117,8 @@ appDS2.constant("VIDCONFIGURATION", (function() { VNF_VALID_STATUS_LIST : vnfValidStatusList,
UPLOAD_SUPPLEMENTARY_STATUS_CHECK_ENABLED : UPLOAD_SUPPLEMENTARY_STATUS_CHECK_ENABLED,
MACRO_SERVICES : MACRO_SERVICES,
- COMPONENT_LIST_NAMED_QUERY_ID : COMPONENT_LIST_NAMED_QUERY_ID
+ COMPONENT_LIST_NAMED_QUERY_ID : COMPONENT_LIST_NAMED_QUERY_ID,
+ SCHEDULER_CALLBACK_URL: SCHEDULER_CALLBACK_URL,
+ SCHEDULER_PORTAL_URL: SCHEDULER_PORTAL_URL
};
})())
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/AddNetworkNodeController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/AddNetworkNodeController.js new file mode 100644 index 000000000..458da3f75 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/AddNetworkNodeController.js @@ -0,0 +1,78 @@ +/*- +* ============LICENSE_START======================================================= +* VID +* ================================================================================ +* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +* ================================================================================ +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* ============LICENSE_END========================================================= +*/ + +/** + * The Instantiation (or View/Edit) Controller controls the instantiation/removal of + * deployable objects (Services, VNFs, VF-Modules, Networks, and Volume-Groups) + */ + +"use strict"; + +appDS2.controller("AddNetworkNodeController", ["COMPONENT", "FIELD", "PARAMETER", "DataService", "CreationService", "$scope", "$window", "$location", + function (COMPONENT, FIELD, PARAMETER, DataService, CreationService, $scope, $window, $location) { + + $scope.serviceMetadataFields = []; + $scope.tenantList = []; + $scope.nodeTemplateFields = {}; + + $scope.regexInstanceName = /^([a-z])+([0-9a-z\-_\.]*)$/i; + $scope.errorMsg = FIELD.ERROR.INSTANCE_NAME_VALIDATE; + + var handleGetParametersResponse = function(parameters) { + $scope.serviceMetadataFields = parameters.summaryList; + $scope.tenantList = DataService.getCloudRegionTenantList(); + + if(DataService.getPortMirroningConfigFields()){ + $scope.nodeTemplateFields =DataService.getPortMirroningConfigFields(); + }else { + $scope.nodeTemplateFields = angular.copy(_.keyBy(parameters.userProvidedList, 'id')); + } + + $scope.modelName = DataService.getModelInfo(COMPONENT.VNF).modelCustomizationName; + }; + + CreationService.initializeComponent(COMPONENT.VNF); + + CreationService.getParameters(handleGetParametersResponse); + + $scope.setTenant = function(field) { + $scope.nodeTemplateFields.tenant.optionList = _.filter($scope.tenantList, {'cloudRegionId': field.value, 'isPermitted': true}); + }; + + $scope.cancel = function() { + $window.history.back(); + }; + + $scope.next = function() { + // DataService.setLcpRegion($scope.nodeTemplateFields.lcpRegion.value); + // DataService.setModelInstanceName($scope.nodeTemplateFields.instanceName.value); + // DataService.setTenant($scope.nodeTemplateFields.tenant.value); + // var suppressRollback = ($scope.nodeTemplateFields.suppressRollback.value) ? true : false; + // DataService.setSuppressRollback(suppressRollback); + DataService.setPortMirroningConfigFields($scope.nodeTemplateFields); + $location.path("/serviceProxyConfig"); + }; + + $scope.$on('$routeChangeStart', function (event, next, current) { + if(next.$$route.originalPath !=="/serviceProxyConfig"){ + DataService.setPortMirroningConfigFields(null); + } + }); + }]); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js index f0653f680..f1dc384c6 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js @@ -26,14 +26,18 @@ "use strict";
appDS2.requires.push('ui.tree');
-
- appDS2.controller("InstantiationController", function ($scope, $route, $location, $timeout, COMPONENT, VIDCONFIGURATION, FIELD, DataService, PropertyService, UtilityService, VnfService, $http, vidService) {
-
+
+ appDS2.controller("InstantiationController", function ($scope, $route, $location, $timeout, COMPONENT, VIDCONFIGURATION, FIELD, DataService, PropertyService, UtilityService, VnfService, $http, vidService, AaiService,PnfService, $q) {
+
$scope.popup = new Object();
$scope.defaultBaseUrl = "";
$scope.responseTimeoutMsec = 60000;
$scope.properties = UtilityService.getProperties();
- $scope.isPermitted = $location.search().isPermitted;
+ $scope.resumeStatus = COMPONENT.RESUME_STATUS;
+ //isPermitted - returned as string from url and converted into boolean
+ $scope.isPermitted = $location.search().isPermitted == "true";
+ $scope.STATUS_CONSTANTS = FIELD.STATUS;
+ $scope.pnfs = [];// PNF data init;
$scope.init = function() {
/*
@@ -63,8 +67,9 @@ // DataService.setServiceInstanceId("mmsc-test-service-instance");
// DataService.setServiceUuid("XXXX-YYYY-ZZZZ");
// DataService.setUserServiceInstanceName("USER_SERVICE_INSTANCE_NAME");
+
}
-
+
//PropertyService.setMsoBaseUrl("testmso");
$scope.convertModel = function(asdcModel) {
@@ -78,7 +83,23 @@ "convertedModel": $scope.convertModel(vidService.getModel()),
"instance": vidService.getInstance()
};
-
+
+ preparePnfs();
+
+
+ function preparePnfs(){
+ var serviceInstance = {
+ globalCustomerId: $location.search().subscriberId,
+ serviceType: $location.search().serviceType,
+ serviceInstanceId: $location.search().serviceInstanceId
+ };
+
+ _setPnf(serviceInstance).then(function(data){
+ $scope.pnfs = data;
+ });
+ }
+
+
$scope.returnVfModules = function (vnfInstance) {
var svcModel = $scope.service.convertedModel;
@@ -213,9 +234,10 @@ DataService.setServiceUuid($scope.service.model.service.uuid);
DataService.setNetworkInstanceId(network.object[FIELD.ID.NETWORK_ID]);
- $scope.$broadcast(COMPONENT.DELETE_COMPONENT, {
+ $scope.$broadcast(COMPONENT.DELETE_RESUME_COMPONENT, {
componentId : COMPONENT.NETWORK,
- callbackFunction : deleteCallbackFunction
+ callbackFunction : deleteOrResumeCallback,
+ dialogMethod: COMPONENT.DELETE
});
};
@@ -233,14 +255,8 @@ }
DataService.setMacro($scope.isMacro());
DataService.setInventoryItem(serviceInstance);
-
- DataService.setModelInfo(COMPONENT.SERVICE, {
- "modelInvariantId": $scope.service.model.service.invariantUuid,
- "modelVersion": $scope.service.model.service.version,
- "modelNameVersionId": $scope.service.model.service.uuid,
- "modelName": $scope.service.model.service.name,
- "inputs": ""
- });
+ setCurrentServiceModelInfoFromScope();
+
DataService.setSubscriberName(serviceObject[FIELD.ID.SUBSCRIBER_NAME]);
DataService.setServiceType(serviceObject[COMPONENT.SERVICE_TYPE]);
@@ -253,105 +269,150 @@ DataService.setServiceUuid($scope.service.model.service.uuid);
- $scope.$broadcast(COMPONENT.DELETE_COMPONENT, {
+ $scope.$broadcast(COMPONENT.DELETE_RESUME_COMPONENT, {
componentId : COMPONENT.SERVICE,
- callbackFunction : deleteServiceInstanceCallbackFunction
+ callbackFunction : deleteServiceInstanceCallbackFunction,
+ dialogMethod: COMPONENT.DELETE
});
};
- $scope.deleteVfModule = function(serviceObject, vfModule, vnf) {
-
- console.log("Removing VF-Module " + vfModule.name);
-
+ function populate_popup_vfModule(serviceObject, vfModule, vnf){
var serviceInstance = serviceObject.object;
- DataService.setInventoryItem(vfModule.object);
-
- var svcModel = $scope.service.convertedModel;
+ DataService.setInventoryItem(vfModule.object);
- //var vnfModelInvariantUuid = vnf.object[FIELD.ID.MODEL_INVAR_ID];
- var vnfModelVersionId = vnf.object[FIELD.ID.MODEL_VERSION_ID];
- var vnfModelCustomizationUuid = vnf.object[FIELD.ID.MODEL_CUSTOMIZATION_ID];;
- var vfModuleInstanceID = vfModule.object[FIELD.ID.VF_MODULE_ID];
- if (vfModuleInstanceID == null) {
- vfModuleInstanceID = "";
- }
-
- var vnfModel = null;
- var vfModuleModel = null;
-
- DataService.setModelInfo(COMPONENT.VF_MODULE, {
- "modelInvariantId": "",
- "modelVersion": "",
- "modelNameVersionId": "",
- "modelCustomizationName": "",
- "customizationUuid": "",
- "modelName": "",
- "inputs": ""
- });
-
- if ( (!($scope.isObjectEmpty(svcModel))) && ( !($scope.isObjectEmpty(svcModel.vnfs) ) ) ) {
- if ( (svcModel.isNewFlow) && (vnfModelCustomizationUuid != null ) ) {
- vnfModel = svcModel.vnfs[vnfModelCustomizationUuid];
-
- var vfModuleCustomizationUuid = vfModule.object[FIELD.ID.MODEL_CUSTOMIZATION_ID];
- if ( !($scope.isObjectEmpty(vnfModel.vfModules) ) && UtilityService.hasContents(vfModuleCustomizationUuid) ) {
-
- vfModuleModel = vnfModel.vfModules[vfModuleCustomizationUuid];
-
- }
- }
- else {
- // old flow
- if (vnfModelVersionId != null ) {
- vnfModel = svcModel.vnfs[vnfModelVersionId];
- }
- //var vfModuleInvariantUuid = vfModule.object[FIELD.ID.MODEL_INVAR_ID];
- var vfModuleModelVersionId = vfModule.object[FIELD.ID.MODEL_VERSION_ID];
- if ( (!($scope.isObjectEmpty(vnfModel))) && (!($scope.isObjectEmpty(vnfModel.vfModules))) &&
- UtilityService.hasContents(vfModuleModelVersionId) ) {
- vfModuleModel = vnfModel.vfModules[vfModuleModelVersionId];
- }
- }
- if ( !($scope.isObjectEmpty(vfModuleModel)) ) {
- DataService.setModelInfo(COMPONENT.VF_MODULE, {
- "modelInvariantId": vfModuleModel.invariantUuid,
- "modelVersion": vfModuleModel.version,
- "modelNameVersionId": vfModuleModel.uuid,
- "modelCustomizationName": vfModuleModel.modelCustomizationName,
- "customizationUuid": vfModuleModel.customizationUuid,
- "modelName": vfModuleModel.name,
- "inputs": ""
- });
- }
- }
+ var svcModel = $scope.service.convertedModel;
- DataService.setVnfInstanceId(vnf.object[FIELD.ID.VNF_ID]);
- DataService.setVfModuleInstanceId(vfModuleInstanceID);
-
- DataService.setSubscriberName(serviceObject[COMPONENT.SUBSCRIBER_NAME]);
- DataService.setServiceType(serviceObject[COMPONENT.SERVICE_TYPE]);
- DataService.setServiceInstanceId(serviceInstance[FIELD.ID.SERVICE_INSTANCE_ID]);
-
- DataService.setGlobalCustomerId(serviceObject[FIELD.ID.GLOBAL_CUST_ID]);
- DataService.setServiceInstanceName($scope.service.instance.name);
-
- DataService.setServiceName($scope.service.model.service.name);
-
- DataService.setServiceUuid($scope.service.model.service.uuid);
+ //var vnfModelInvariantUuid = vnf.object[FIELD.ID.MODEL_INVAR_ID];
+ var vnfModelVersionId = vnf.object[FIELD.ID.MODEL_VERSION_ID];
+ var vnfModelCustomizationUuid = vnf.object[FIELD.ID.MODEL_CUSTOMIZATION_ID];;
+ var vfModuleInstanceID = vfModule.object[FIELD.ID.VF_MODULE_ID];
+ if (vfModuleInstanceID == null) {
+ vfModuleInstanceID = "";
+ }
+
+ var vnfModel = null;
+ var vfModuleModel = null;
+
+ DataService.setModelInfo(COMPONENT.VF_MODULE, {
+ "modelInvariantId": "",
+ "modelVersion": "",
+ "modelNameVersionId": "",
+ "modelCustomizationName": "",
+ "customizationUuid": "",
+ "modelName": "",
+ "inputs": ""
+ });
+
+ if ( (!($scope.isObjectEmpty(svcModel))) && ( !($scope.isObjectEmpty(svcModel.vnfs) ) ) ) {
+ if ( (svcModel.isNewFlow) && (vnfModelCustomizationUuid != null ) ) {
+ vnfModel = svcModel.vnfs[vnfModelCustomizationUuid];
+
+ var vfModuleCustomizationUuid = vfModule.object[FIELD.ID.MODEL_CUSTOMIZATION_ID];
+ if ( !($scope.isObjectEmpty(vnfModel.vfModules) ) && UtilityService.hasContents(vfModuleCustomizationUuid) ) {
+
+ vfModuleModel = vnfModel.vfModules[vfModuleCustomizationUuid];
+
+ }
+ }
+ else {
+ // old flow
+ if (vnfModelVersionId != null ) {
+ vnfModel = svcModel.vnfs[vnfModelVersionId];
+ }
+ //var vfModuleInvariantUuid = vfModule.object[FIELD.ID.MODEL_INVAR_ID];
+ var vfModuleModelVersionId = vfModule.object[FIELD.ID.MODEL_VERSION_ID];
+ if ( (!($scope.isObjectEmpty(vnfModel))) && (!($scope.isObjectEmpty(vnfModel.vfModules))) &&
+ UtilityService.hasContents(vfModuleModelVersionId) ) {
+ vfModuleModel = vnfModel.vfModules[vfModuleModelVersionId];
+ }
+ }
+ if ( !($scope.isObjectEmpty(vfModuleModel)) ) {
+ DataService.setModelInfo(COMPONENT.VF_MODULE, {
+ "modelInvariantId": vfModuleModel.invariantUuid,
+ "modelVersion": vfModuleModel.version,
+ "modelNameVersionId": vfModuleModel.uuid,
+ "modelCustomizationName": vfModuleModel.modelCustomizationName,
+ "customizationUuid": vfModuleModel.customizationUuid,
+ "modelName": vfModuleModel.name,
+ "inputs": ""
+ });
+ }
+ }
+
+ DataService.setVnfInstanceId(vnf.object[FIELD.ID.VNF_ID]);
+ DataService.setVfModuleInstanceId(vfModuleInstanceID);
+
+ DataService.setSubscriberName(serviceObject[COMPONENT.SUBSCRIBER_NAME]);
+ DataService.setServiceType(serviceObject[COMPONENT.SERVICE_TYPE]);
+ DataService.setServiceInstanceId(serviceInstance[FIELD.ID.SERVICE_INSTANCE_ID]);
+
+ DataService.setGlobalCustomerId(serviceObject[FIELD.ID.GLOBAL_CUST_ID]);
+ DataService.setServiceInstanceName($scope.service.instance.name);
+
+ DataService.setServiceName($scope.service.model.service.name);
+
+ DataService.setServiceUuid($scope.service.model.service.uuid);
+ }
+
+ $scope.deleteVfModule = function(serviceObject, vfModule, vnf) {
+
+ console.log("Removing VF-Module " + vfModule.name);
+
+ populate_popup_vfModule(serviceObject, vfModule, vnf);
- $scope.$broadcast(COMPONENT.DELETE_COMPONENT, {
+ $scope.$broadcast(COMPONENT.DELETE_RESUME_COMPONENT, {
componentId : COMPONENT.VF_MODULE,
- callbackFunction : deleteCallbackFunction
+ callbackFunction : deleteOrResumeCallback,
+ dialogMethod: COMPONENT.DELETE
});
return;
};
- $scope.deleteVnf = function(serviceObject, vnf) {
+ function setCurrentServiceModelInfoFromScope(){
+ DataService.setModelInfo(COMPONENT.SERVICE, {
+ "modelInvariantId": $scope.service.model.service.invariantUuid,
+ "modelVersion": $scope.service.model.service.version,
+ "modelNameVersionId": $scope.service.model.service.uuid,
+ "modelName": $scope.service.model.service.name,
+ "inputs": ""
+ });
+ };
+
+ function setCurrentVNFModelInfo(vnf){
+ var svcModel = $scope.service.convertedModel;
+ var vnfModel;
+ var vnfModelCustomizationUuid = vnf.object[FIELD.ID.MODEL_CUSTOMIZATION_ID];
+ var vnfModelVersionId = vnf.object[FIELD.ID.MODEL_VERSION_ID];
+ if ( (!($scope.isObjectEmpty(svcModel))) && ( !($scope.isObjectEmpty(svcModel.vnfs) ) ) ) {
+ if ( (svcModel.isNewFlow) && (vnfModelCustomizationUuid != null ) ) {
+ vnfModel = svcModel.vnfs[vnfModelCustomizationUuid];
+ }
+ else {
+ vnfModel = svcModel.vnfs[vnfModelVersionId];
+ }
+ if ( !($scope.isObjectEmpty(vnfModel) ) ) {
+
+ DataService.setModelInfo(COMPONENT.VNF, {
+ "modelInvariantId": vnfModel.invariantUuid,
+ "modelVersion": vnfModel.version,
+ "modelNameVersionId": vnfModel.uuid,
+ "modelCustomizationName": vnfModel.modelCustomizationName,
+ "customizationUuid": vnfModel.customizationUuid,
+ "modelName": vnfModel.name,
+ "inputs": ""
+ });
+ }
+ }
+
+
+
+ }
+ $scope.deleteVnf = function(serviceObject, vnf) {
console.log("Removing VNF " + vnf.name);
var serviceInstance = serviceObject.object;
@@ -424,9 +485,10 @@ DataService.setServiceUuid($scope.service.model.service.uuid);
- $scope.$broadcast(COMPONENT.DELETE_COMPONENT, {
+ $scope.$broadcast(COMPONENT.DELETE_RESUME_COMPONENT, {
componentId : COMPONENT.VNF,
- callbackFunction : deleteCallbackFunction
+ callbackFunction : deleteOrResumeCallback,
+ dialogMethod: COMPONENT.DELETE
});
};
@@ -517,8 +579,9 @@ DataService.setVnfInstanceId(vnf.nodeId);
DataService.setVolumeGroupInstanceId(volumeGroup.nodeId);
- $scope.$broadcast(COMPONENT.DELETE_COMPONENT, {
+ $scope.$broadcast(COMPONENT.DELETE_RESUME_COMPONENT, {
componentId : COMPONENT.VOLUME_GROUP,
+ dialogMethod: COMPONENT.DELETE
});
};
@@ -585,10 +648,11 @@ DataService.setVnfInstanceId(vnf.nodeId);
DataService.setVolumeGroupInstanceId(volumeGroup.nodeId);
- $scope.$broadcast(COMPONENT.DELETE_COMPONENT, {
- componentId : COMPONENT.VOLUME_GROUP,
- callbackFunction : deleteCallbackFunction
- });
+ $scope.$broadcast(COMPONENT.DELETE_RESUME_COMPONENT, {
+ componentId : COMPONENT.VOLUME_GROUP,
+ callbackFunction : deleteOrResumeCallback,
+ dialogMethod: COMPONENT.DELETE
+ });
};
$scope.describeNetwork = function(serviceObject, networkObject) {
@@ -783,14 +847,8 @@ "inputs": "",
"displayInputs": netModel.displayInputs
});
-
- DataService.setModelInfo(COMPONENT.SERVICE, {
- "modelInvariantId": $scope.service.model.service.invariantUuid,
- "modelVersion": $scope.service.model.service.version,
- "modelNameVersionId": $scope.service.model.service.uuid,
- "modelName": $scope.service.model.service.name,
- "inputs": ""
- });
+ setCurrentServiceModelInfoFromScope();
+
$scope.$broadcast(COMPONENT.CREATE_COMPONENT, {
componentId : COMPONENT.NETWORK,
@@ -814,6 +872,8 @@ DataService.setServiceInstanceId($scope.service.instance.id);
DataService.setServiceName($scope.service.model.service.name);
+ console.log ( "existingVnfs: " );
+ console.log (JSON.stringify ( existingVnfs, null, 4));
console.log ( "existingVnfs: " ); console.log (JSON.stringify ( existingVnfs, null, 4));
var vnf_type = "";
var vnf_role = "";
@@ -833,7 +893,7 @@ vnf_code = vnf.nfCode;
}
DataService.setModelInfo(COMPONENT.VNF, {
- "modelType": "vnf",
+ "modelType": vnf.isPnf ? "pnf" : "vnf",
"modelInvariantId": vnf.invariantUuid,
"modelVersion": vnf.version,
"modelNameVersionId": vnf.uuid,
@@ -845,23 +905,27 @@ "vnfType": vnf_type,
"vnfRole": vnf_role,
"vnfFunction": vnf_function,
- "vnfCode": vnf_code
+ "vnfCode": vnf_code,
+ "properties": vnf.properties
});
DataService.setModelInstanceName($scope.service.model.service.name);
-
- DataService.setModelInfo(COMPONENT.SERVICE, {
- "modelInvariantId": $scope.service.model.service.invariantUuid,
- "modelVersion": $scope.service.model.service.version,
- "modelNameVersionId": $scope.service.model.service.uuid,
- "modelName": $scope.service.model.service.name,
- "inputs": ""
- });
-
- $scope.$broadcast(COMPONENT.CREATE_COMPONENT, {
- componentId : COMPONENT.VNF,
- callbackFunction : createVnfCallbackFunction
- });
+ setCurrentServiceModelInfoFromScope();
+
+ if (vnf.isConfig) {
+ DataService.setServiceProxies($scope.service.model.serviceProxies);
+ DataService.setSourceServiceProxies(vnf.sourceNodes);
+ DataService.setCollectorServiceProxies(vnf.collectorNodes);
+ DataService.setConfigurationByPolicy(vnf.isConfigurationByPolicy);
+ $location.path("/addNetworkNode");
+ } else if(vnf.isPnf){
+ $location.path("/pnfSearchAssociation");
+ } else {
+ $scope.$broadcast(COMPONENT.CREATE_COMPONENT, {
+ componentId: COMPONENT.VNF,
+ callbackFunction: createVnfCallbackFunction
+ });
+ }
};
$scope.addVfModuleInstance = function(vnfInstance, vfModuleModel) {
@@ -898,20 +962,11 @@ availableVolumeGroupList.push({"instance": volumeGroupInstance});
});
- if (vfModuleModel.volumeGroupAllowed) {
- DataService.setAvailableVolumeGroupList(availableVolumeGroupList);
- }
-
- DataService.setModelInfo(COMPONENT.SERVICE, {
- "modelInvariantId": $scope.service.model.service.invariantUuid,
- "modelVersion": $scope.service.model.service.version,
- "modelNameVersionId": $scope.service.model.service.uuid,
- "modelName": $scope.service.model.service.name,
- "inputs": ""
- });
+ DataService.setAvailableVolumeGroupList(availableVolumeGroupList);
+ setCurrentServiceModelInfoFromScope();
DataService.setVnfInstanceId(vnfInstance.object[FIELD.ID.VNF_ID]);
-
+
DataService.setModelInfo(COMPONENT.VNF, {
"modelInvariantId": vnfModel.invariantUuid,
"modelVersion": vnfModel.version,
@@ -954,6 +1009,7 @@ DataService.setServiceInstanceName($scope.service.instance.name);
DataService.setServiceInstanceId($scope.service.instance.id);
DataService.setServiceName($scope.service.model.service.name);
+ setCurrentServiceModelInfoFromScope();
DataService.setModelInfo(COMPONENT.SERVICE, {
"modelInvariantId": $scope.service.model.service.invariantUuid,
@@ -976,7 +1032,7 @@ else {
vnfModel = svcModel.vnfs[vnfModelVersionId];
}
-
+
DataService.setModelInfo(COMPONENT.VNF, {
"modelInvariantId": vnfModel.invariantUuid,
"modelVersion": vnfModel.version,
@@ -1003,6 +1059,76 @@ });
};
+ $scope.resume = function(serviceObject, vfModule, vnfModel) {
+ populate_popup_vfModule(serviceObject, vfModule, vnfModel);
+ setCurrentVNFModelInfo(vnfModel);
+ DataService.setVfModuleInstanceName(vfModule.object[FIELD.ID.VF_MODULE_NAME]);
+ setCurrentServiceModelInfoFromScope();
+ $scope.$broadcast(COMPONENT.DELETE_RESUME_COMPONENT, {
+ componentId : COMPONENT.VF_MODULE,
+ callbackFunction : deleteOrResumeCallback,
+ dialogMethod: COMPONENT.RESUME
+ });
+ };
+
+ $scope.deleteConfiguration = function (serviceObject, configuration) {
+ console.log("Deleting Configuration " + configuration.name);
+
+ var serviceInstance = serviceObject.object;
+ var svcModel = $scope.service.convertedModel;
+ var configModel;
+ DataService.setInventoryItem(configuration.object);
+ // set model default and override later if found
+ DataService.setModelInfo(COMPONENT.CONFIGURATION, {});
+
+ if ( configuration.object != null ) {
+
+ //var netModelInvariantUuid = network.object[FIELD.ID.MODEL_INVAR_ID];
+ var configModelVersionId = configuration.object[FIELD.ID.MODEL_VERSION_ID]; // model uuid
+ var configModelCustomizationUuid = configuration.object[FIELD.ID.MODEL_CUSTOMIZATION_ID];
+
+ //configurations added to vnfs list, in order to be part of the "Add VNF" drop-down list
+ if ( (!($scope.isObjectEmpty(svcModel))) && ( !($scope.isObjectEmpty(svcModel.vnfs) ) ) ) {
+ if ( (svcModel.isNewFlow) && (UtilityService.hasContents(configModelCustomizationUuid) ) ) {
+ configModel = svcModel.vnfs[configModelCustomizationUuid];
+ }
+ else {
+
+ if ( UtilityService.hasContents(configModelVersionId) ) {
+ configModel = svcModel.vnfs[configModelVersionId];
+ }
+
+ }
+ }
+ }
+ if (!($scope.isObjectEmpty(configModel) ) ) {
+ DataService.setModelInfo(COMPONENT.CONFIGURATION, {
+ "modelInvariantId": configModel.invariantUuid,
+ "modelVersion": configModel.version,
+ "modelNameVersionId": configModel.uuid,
+ "modelCustomizationName": configModel.modelCustomizationName,
+ "customizationUuid": configModel.customizationUuid,
+ "modelName": configModel.name,
+ "inputs": ""
+ });
+ }
+
+ DataService.setSubscriberName(serviceObject[COMPONENT.SUBSCRIBER_NAME]);
+ DataService.setServiceType(serviceObject[COMPONENT.SERVICE_TYPE]);
+ DataService.setServiceInstanceId(serviceInstance[FIELD.ID.SERVICE_INSTANCE_ID]);
+
+ DataService.setGlobalCustomerId(serviceObject[FIELD.ID.GLOBAL_CUST_ID]);
+ DataService.setServiceInstanceName($scope.service.instance.name);
+ DataService.setServiceName($scope.service.model.service.name);
+ DataService.setServiceUuid($scope.service.model.service.uuid);
+ DataService.setConfigurationInstanceId(configuration.object[FIELD.ID.CONFIGURATION_ID]);
+
+ $scope.$broadcast(COMPONENT.DELETE_COMPONENT, {
+ componentId : COMPONENT.CONFIGURATION,
+ callbackFunction : deleteCallbackFunction
+ });
+ };
+
$scope.resetProgress = function() {
$scope.percentProgress = 0;
$scope.progressClass = FIELD.STYLE.PROGRESS_BAR_INFO;
@@ -1055,7 +1181,35 @@ $scope.reloadRoute = function() {
$route.reload();
}
-
+
+
+
+ /*
+ Private metthods
+ */
+
+ /*
+ setPnf
+ * set the controller pnf param using api call
+ * return: void
+ */
+ function _setPnf(data){ // data is the $scope.service.instance object
+ return PnfService.getPnfs(data)
+ .then(
+ function success(response){
+ return response.data;
+ // * can add here changes on the data that are needed to the view ( filter, ect..)
+ },
+ function error(error){
+ console.error(error);
+ }
+ );
+ }
+
+ /*
+ Callbaks functions
+
+ */
var updateProvStatusVnfCallbackFunction = function(response) {
$scope.callbackResults = "";
var color = FIELD.ID.COLOR_NONE;
@@ -1112,7 +1266,7 @@ };
- var deleteCallbackFunction = function(response) {
+ var deleteOrResumeCallback = function(response) {
$scope.callbackResults = "";
var color = FIELD.ID.COLOR_NONE;
$scope.callbackStyle = {
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js index 8844d40a8..967a39002 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js @@ -41,14 +41,13 @@ $scope.services = [];
if (response.data && angular.isArray(response.data.services)) {
wholeData = response.data.services;
- $scope.services = $scope.filterDataWithHigerVersion(wholeData);
+ $scope.services = $scope.filterDataWithHigherVersion(wholeData);
$scope.viewPerPage=10;
$scope.totalPage=$scope.services.length/$scope.viewPerPage;
$scope.sortBy=COMPONENT.NAME;
$scope.scrollViewPerPage=2;
$scope.currentPage=1;
$scope.searchCategory;
- $scope.searchString="";
$scope.currentPageNum=1;
$scope.isSpinnerVisible = false;
$scope.isProgressVisible = false;
@@ -61,67 +60,35 @@ }, function errorCallback(response) {
console.log("Error: " + response);
});
- }
- $scope.isFiltered=function(arr,obj){
- var filtered = false;
- if(arr.length>0){
- for(var i=0;i<arr.length;i++){
- if((arr[i].name == obj.name) && (obj.invariantUUID == arr[i].invariantUUID)){
- filtered = true;
- }
- }
- }
- return filtered;
- }
+ };
+
var wholeData=[];
- $scope.filterDataWithHigerVersion = function(serviceData){
- var fiterDataServices = [];
- for(var i=0;i<serviceData.length;i++){
- var higherVersion = serviceData[i];
- if(!$scope.isFiltered(fiterDataServices,serviceData[i])){
- for(var j=i;j<serviceData.length;j++){
- if((serviceData[i].invariantUUID.trim() == serviceData[j].invariantUUID.trim()) && (serviceData[i].name.trim() == serviceData[j].name.trim()) && (parseFloat(serviceData[j].version.trim())>=parseFloat(serviceData[i].version.trim()))){
- var data = $scope.isThisHigher(fiterDataServices,serviceData[j]);
- if(data.isHigher){
- fiterDataServices[data.index] = serviceData[j];
- }
- }
- }
- }
- }
- return fiterDataServices;
- }
- $scope.isThisHigher = function(arr,obj){
- var returnObj = {
- isHigher:false,
- index:0
- };
- if(arr.length>0){
- var isNotMatched = true;
- for(var i=0;i<arr.length;i++){
- if((arr[i].name == obj.name) && (arr[i].invariantUUID == obj.invariantUUID ) && (arr[i].version<obj.version) ){
- isNotMatched = false;
- returnObj = {
- isHigher:true,
- index:i
- };
+ $scope.filterDataWithHigherVersion = function(serviceData){
+ var delimiter = '$$';
+ var fiterDataServices = {};
+ for(var i=0;i<serviceData.length;i++) {
+ var index = serviceData[i].invariantUUID.trim() + delimiter + serviceData[i].name.trim();
+ if(!fiterDataServices[index]) {
+ var hasPreviousVersion = false;
+ fiterDataServices[index] = {
+ service: serviceData[i],
+ hasPreviousVersion: false
+ };
+ }
+ else {
+ fiterDataServices[index].hasPreviousVersion = true;
+ if(parseFloat(serviceData[i].version.trim())>parseFloat(fiterDataServices[index].service.version.trim())) {
+ fiterDataServices[index].service = serviceData[i];
}
}
- if(isNotMatched && !$scope.isFiltered(arr,obj)){
- returnObj = {
- isHigher:true,
- index:arr.length
- };
- }
- }else{
- returnObj = {
- isHigher:true,
- index:0
- }
}
- return returnObj;
- }
+ return Object.keys(fiterDataServices).map(function(key) {
+ var service = fiterDataServices[key].service;
+ service.hasPreviousVersion = fiterDataServices[key].hasPreviousVersion;
+ return service;
+ });
+ };
$scope.init = function() {
var msecs = PropertyService.retrieveMsoMaxPollingIntervalMsec();
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceProxyConfigController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceProxyConfigController.js new file mode 100644 index 000000000..6e7ad50cf --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceProxyConfigController.js @@ -0,0 +1,342 @@ +/*- +* ============LICENSE_START======================================================= +* VID +* ================================================================================ +* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +* ================================================================================ +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* ============LICENSE_END========================================================= +*/ + +/** + * The Instantiation (or View/Edit) Controller controls the instantiation/removal of + * deployable objects (Services, VNFs, VF-Modules, Networks, and Volume-Groups) + */ + +"use strict"; + +appDS2.controller("ServiceProxyConfigController", ["COMPONENT", "$log", "FIELD", "PARAMETER", "DataService", "CreationService", "$scope", "$window", "$location", "AaiService", "$uibModal", "UtilityService", "$timeout", + function (COMPONENT, $log, FIELD, PARAMETER, DataService, CreationService, $scope, $window, $location, AaiService, $uibModal, UtilityService, $timeout) { + + $scope.selectedMetadata = {}; + + $scope.serviceMetadataFields = []; + $scope.nodeTemplateFields = {}; + + $scope.configurationByPolicy = DataService.getConfigurationByPolicy(); + + $scope.collectorType = $scope.configurationByPolicy ? 'pnf' : 'vnf'; //default + $scope.collectorInstance; + $scope.collectorInstanceName = ""; + $scope.collectorInstanceList = null; + $scope.collectorMetadata = []; + $scope.collectorNoResults = false; + + $scope.sourceInstance; + $scope.sourceInstanceName = ""; + $scope.sourceInstanceList = null; + $scope.sourceMetadata = []; + $scope.sourceNoResults = false; + + $scope.errorMsg = FIELD.ERROR.INSTANCE_NAME_VALIDATE; + + $scope.modelName = DataService.getModelInfo(COMPONENT.VNF).modelCustomizationName; + + $scope.serviceTypes = []; + + function init() { + loadServiceTypes(); + + generateMetadata(sourceServiceProxy); + generateMetadata(collectorServiceProxy); + + } + + function setDefaultCollectorServiceType() { + const configServiceType = DataService.getServiceType(); + $scope.collectorServiceType = mustFind($scope.serviceTypes, {"service-type": configServiceType}); + loadCollectorProxies(); + } + + function handleGetServiceTypesResponse(response) { + $scope.serviceTypes = response.data; + setDefaultCollectorServiceType(); + } + + var handleGetParametersResponse = function(parameters) { + $scope.serviceMetadataFields = parameters.summaryList; + $scope.nodeTemplateFields = DataService.getPortMirroningConfigFields(); + }; + + var mustFind = function (collection, predicate) { + const result = _.find(collection, predicate); + const description = "result for find " + JSON.stringify(predicate); + UtilityService.checkUndefined(description, result); + $log.debug(description, result); + return result; + }; + + + $scope.back = function() { + $window.history.back(); + }; + + + function loadServiceTypes() { + const subscriberId = DataService.getGlobalCustomerId(); + AaiService.getSubscriberServiceTypes(subscriberId) + .then(handleGetServiceTypesResponse) + .catch(function (error) { + $log.error(error); + }); + } + + var modalInstance; + + $scope.create = function() { + $scope.disableCreate= true; + var portMirroringConfigFields = DataService.getPortMirroningConfigFields(); + portMirroringConfigFields.sourceInstance = mustFind($scope.sourceInstanceList, {'id': $scope.sourceInstance}); + portMirroringConfigFields.destinationInstance = mustFind($scope.collectorInstanceList, {'id': $scope.collectorInstance}); + + var selectedVnfsList; + + if ($scope.configurationByPolicy) { + selectedVnfsList = [ + portMirroringConfigFields.sourceInstance.properties + ]; + } else { + selectedVnfsList = [ + portMirroringConfigFields.sourceInstance.properties, + portMirroringConfigFields.destinationInstance.properties + ]; + } + + AaiService.getVnfVersionsByInvariantId( + selectedVnfsList.map(function(x) { + return UtilityService.checkUndefined("model-invariant-id", x['model-invariant-id']); + }) + ) + .then(function (response) { + $log.debug("getVnfVersionsByInvariantId: response", response); + + selectedVnfsList + .map(function (inOutProperties) { + const model = mustFind(response.data.model, {'model-invariant-id': inOutProperties['model-invariant-id']}); + + const modelVer = mustFind(model["model-vers"]["model-ver"], {'model-version-id': inOutProperties['model-version-id']}); + + inOutProperties['model-version'] = modelVer['model-version']; + inOutProperties['model-name'] = modelVer['model-name']; + UtilityService.checkUndefined("model-version", modelVer); + }); + }) + + .then(function () { + var requestParams = { + configurationModelInfo: DataService.getModelInfo(COMPONENT.VNF), + relatedTopModelsInfo: DataService.getModelInfo(COMPONENT.SERVICE), + portMirroringConfigFields:portMirroringConfigFields, + attuuid: DataService.getLoggedInUserId(), + topServiceInstanceId: DataService.getServiceInstanceId(), + configurationByPolicy: $scope.configurationByPolicy, + callbackFunction: updateViewCallbackFunction + }; + + modalInstance = $uibModal.open({ + templateUrl: 'app/vid/scripts/modals/mso-commit/mso-commit.html', + controller : "msoCommitModalController", + backdrop: true, + resolve: { + msoType: function () { + return COMPONENT.MSO_CREATE_REQ; + }, + requestParams: function () { + return requestParams; + } + } + }); + }) + .catch(function (error) { + $log.error("error while configuration create", error); + $scope.disableCreate= false; + }); + }; + + $scope.openMetadataModal = function(name) { + $scope.selectedMetadata = $scope[name]; + modalInstance = $uibModal.open({ + templateUrl: 'app/vid/scripts/modals/service-metadata/service-metadata.html', + backdrop: false, + scope : $scope, + resolve: { + } + }); + }; + + $scope.cancel = function() { + modalInstance.dismiss('cancel'); + }; + + var updateViewCallbackFunction = function(response) { + $scope.callbackResults = ""; + var color = FIELD.ID.COLOR_NONE; + $scope.callbackStyle = { + "background-color" : color + }; + + /* + * This 1/2 delay was only added to visually highlight the status + * change. Probably not needed in the real application code. + */ + $timeout(function() { + $scope.callbackResults = UtilityService.getCurrentTime() + + FIELD.STATUS.IS_SUCCESSFUL + response.isSuccessful; + if (response.isSuccessful) { + color = FIELD.ID.COLOR_8F8; + $window.history.go(-2); + } else { + $scope.disableCreate=false; + color = FIELD.ID.COLOR_F88; + } + $scope.callbackStyle = { + "background-color" : color + }; + }, 500); + }; + + CreationService.initializeComponent(COMPONENT.VNF); + CreationService.initializeComponent(COMPONENT.SERVICE); + CreationService.getParameters(handleGetParametersResponse); + + var sourceServiceProxies = DataService.getSourceServiceProxies(); + var collectorServiceProxies = DataService.getCollectorServiceProxies(); + var serviceProxiesList = DataService.getServiceProxies(); + + var sourceServiceProxy = { + serviceList: sourceServiceProxies, + instanceListScopePropertyName: "sourceInstanceList", + name: "sourceInstanceName", + metadata: "sourceMetadata", + noResults: "sourceNoResults" + }; + + var collectorServiceProxy = { + serviceList: collectorServiceProxies, + instanceListScopePropertyName: "collectorInstanceList", + name: "collectorInstanceName", + metadata: "collectorMetadata", + noResults: "collectorNoResults" + }; + + $scope.onSourceServiceTypeSelected = function() { + clearSourceProxySelection(); + loadSourceProxies(); + }; + + $scope.onCollectorServiceTypeSelected = function() { + clearCollectorProxySelection(); + loadCollectorProxies(); + }; + + function clearSourceProxySelection() { + $scope.sourceInstance = undefined; + } + + function clearCollectorProxySelection() { + $scope.collectorInstance = undefined; + } + + function loadSourceProxies() { + var serviceProxy = serviceProxiesList[(sourceServiceProxy.serviceList)[0]]; + var selectedServiceType = $scope.sourceServiceType['service-type']; + loadProxyInstances(sourceServiceProxy, selectedServiceType, serviceProxy); + } + + function loadCollectorProxies() { + var serviceProxy = serviceProxiesList[(collectorServiceProxy.serviceList)[0]]; + var selectedServiceType = $scope.collectorServiceType['service-type']; + loadProxyInstances(collectorServiceProxy, selectedServiceType, serviceProxy); + } + + function loadProxyInstances(service, serviceType, serviceProxy) { + $scope[service.instanceListScopePropertyName] = null; + // $scope.collectorType = $scope.configurationByPolicy ? 'pnf' : 'vnf'; + var configNodeTemplateFields = DataService.getPortMirroningConfigFields(); + if (service.name == "collectorInstanceName" && $scope.configurationByPolicy) { + var configurationModel = DataService.getModelInfo(COMPONENT.VNF); + AaiService.getPnfInstancesList( + DataService.getGlobalCustomerId(), + serviceType, + serviceProxy.sourceModelUuid, + serviceProxy.sourceModelInvariant, + configNodeTemplateFields.lcpRegion.value, + configurationModel.properties.equip_vendor, + configurationModel.properties.equip_model + ) + .then(function (response) { + var results = response.results || []; + $scope[service.instanceListScopePropertyName] = results; + $scope[service.noResults] = (results.length === 0); + }) + .catch(function (error) { + $scope[service.noResults] = true; + $log.error("No pnf instance found for " + service.name, error); + }); + } else { + AaiService.getVnfInstancesList( + DataService.getGlobalCustomerId(), + serviceType, + serviceProxy.sourceModelUuid, + serviceProxy.sourceModelInvariant, + configNodeTemplateFields.lcpRegion.value + ) + .then(function (response) { + var results = response.results || []; + $scope[service.instanceListScopePropertyName] = results; + $scope[service.noResults] = (results.length === 0); + }) + .catch(function (error) { + $scope[service.noResults] = true; + $log.error("No vnf instance found for " + service.name, error); + }); + } + } + + function generateMetadata(service) { + const serviceProxy = serviceProxiesList[(service.serviceList)[0]]; + $scope[service.name] = serviceProxy.name; + + $scope[service.metadata] = [ + {"name" :"Name" ,"value" : serviceProxy.name}, + {"name" :"Version",value : serviceProxy.version}, + {"name" :"Description", value : serviceProxy.description}, + {"name" :"Type", value : serviceProxy.type}, + {"name" :"Invariant UUID", value : serviceProxy.invariantUuid}, + {"name" :"UUID", value : serviceProxy.uuid}, + {"name" :"Customization UUID", value : serviceProxy.customizationUuid}, + {"name" :"Source Model Uuid", value : serviceProxy.sourceModelUuid}, + {"name" :"Source Model Invariant", value : serviceProxy.sourceModelInvariant}, + {"name" :"Source Model Name", value : serviceProxy.sourceModelName} + ]; + } + + init(); + $scope.$on('$routeChangeStart', function (event, next, current) { + if(next.$$route.originalPath!=="/addNetworkNode"){ + DataService.setPortMirroningConfigFields(null); + } + }); + }]); + + diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/VidApp.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/VidApp.js index b611def42..6129fd96a 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/VidApp.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/VidApp.js @@ -20,7 +20,7 @@ (function () {
'use strict';
-
+
appDS2.config(['$routeProvider', '$locationProvider', function ($routeProvider) {
$routeProvider
.when('/models/services', {
@@ -32,30 +32,47 @@ templateUrl: 'app/vid/scripts/view-models/createInstanceServiceModels.htm'
})
.when('/instances/services', {
- templateUrl : "app/vid/scripts/view-models/aaiGetSubs.htm",
+ templateUrl : "app/vid/scripts/view-models/aaiGetSubs.htm",
controller : "aaiSubscriberController"
})
.when('/instances/subscribers', {
- templateUrl : "app/vid/scripts/view-models/aaiGetSubscriberList.htm",
+ templateUrl : "app/vid/scripts/view-models/aaiGetSubscriberList.htm",
controller : "aaiSubscriberController"
})
.when('/instances/serviceTypes', {
- templateUrl : "app/vid/scripts/view-models/aaiServiceTypes.htm",
+ templateUrl : "app/vid/scripts/view-models/aaiServiceTypes.htm",
controller : "aaiSubscriberController"
})
.when('/instances/subdetails', {
- templateUrl : "app/vid/scripts/view-models/aaiSubDetails.htm",
+ templateUrl : "app/vid/scripts/view-models/aaiSubDetails.htm",
controller : "aaiSubscriberController"
})
.when('/change-management', {
templateUrl : "app/vid/scripts/view-models/change-management.html",
controller : "changeManagementController",
controllerAs: 'vm'
- })
+ })
+ .when('/testEnvironments', {
+ templateUrl : "app/vid/scripts/view-models/testEnvironments.htm",
+ controller : "testEnvironmentsController",
+ controllerAs: 'vm'
+ })
.when('/instantiate', {
controller: 'InstantiationController',
templateUrl: 'app/vid/scripts/view-models/instantiate.htm'
})
+ .when('/addNetworkNode', {
+ controller: 'AddNetworkNodeController',
+ templateUrl: 'app/vid/scripts/view-models/addNetworkNode.htm'
+ })
+ .when('/pnfSearchAssociation', {
+ controller: 'pnfSearchAssociationController',
+ templateUrl: 'app/vid/scripts/view-models/pnfSearchAssociation.htm'
+ })
+ .when('/serviceProxyConfig', {
+ controller: 'ServiceProxyConfigController',
+ templateUrl: 'app/vid/scripts/view-models/serviceProxyConfig.htm'
+ })
.otherwise({
redirectTo: '/models/services'
});
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js index a86c1b1b4..d58b83f69 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js @@ -20,8 +20,8 @@ "use strict";
-appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", "DataService", "PropertyService", "$scope", "$http", "$timeout", "$location", "$log", "$route", "VIDCONFIGURATION", "UtilityService", "vidService", "AaiService", "MsoService",
- function (COMPONENT, FIELD, PARAMETER, DataService, PropertyService, $scope, $http, $timeout, $location, $log, $route, VIDCONFIGURATION, UtilityService, vidService, AaiService, MsoService) {
+appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", "DataService", "PropertyService", "$scope", "$http", "$timeout", "$location", "$log", "$route", "$uibModal", "VIDCONFIGURATION", "UtilityService", "vidService", "AaiService", "MsoService", "OwningEntityService", "$q",
+ function (COMPONENT, FIELD, PARAMETER, DataService, PropertyService, $scope, $http, $timeout, $location, $log, $route, $uibModal, VIDCONFIGURATION, UtilityService, vidService, AaiService, MsoService, OwningEntityService, $q) {
$scope.showVnfDetails = function (vnf) {
console.log("showVnfDetails");
@@ -121,253 +121,215 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", DataService.setSubscribers($scope.custSubList);
- if (selectedServicetype !== "" && selectedServicetype !== 'undefined') {
- $location.path(COMPONENT.CREATE_INSTANCE_PATH);
- }
- };
-
- $scope.serviceTypeName="";
- $scope.getAaiServiceModelsList = function(){
- var globalCustomerId="";
- var serviceTypeId = DataService.getGlobalCustomerId();
- $scope.serviceTypeList = DataService.getServiceIdList();
- $scope.createSubscriberName = DataService.getSubscriberName();
- $scope.status = FIELD.STATUS.FETCHING_SERVICE_CATALOG;
- $scope.custSubList = DataService.getSubscribers();
- for(var i=0; i<$scope.serviceTypeList.length;i++){
- if(parseInt(serviceTypeId) === i ){
- $scope.serviceTypeName = $scope.serviceTypeList[i].name;
+ if (selectedServicetype !== "" && selectedServicetype !== 'undefined'&& selectedServicetype !== undefined) {
+ $location.path(COMPONENT.CREATE_INSTANCE_PATH);
+ }
+ };
+
+ $scope.serviceTypeName = "";
+ $scope.getAaiServiceModelsList = function () {
+ var globalCustomerId = "";
+ var serviceTypeId = DataService.getGlobalCustomerId();
+ $scope.serviceTypeList = DataService.getServiceIdList();
+ $scope.createSubscriberName = DataService.getSubscriberName();
+ $scope.status = FIELD.STATUS.FETCHING_SERVICE_CATALOG;
+ $scope.custSubList = DataService.getSubscribers();
+ for (var i = 0; i < $scope.serviceTypeList.length; i++) {
+ if (parseInt(serviceTypeId) === i) {
+ $scope.serviceTypeName = $scope.serviceTypeList[i].name;
+ }
+ }
+ ;
+ for (var i = 0; i < $scope.custSubList.length; i++) {
+ if ($scope.createSubscriberName === $scope.custSubList[i].subscriberName) {
+ globalCustomerId = $scope.custSubList[i].globalCustomerId;
+ globalCustId = globalCustomerId;
+ }
+ }
+ ;
+ var pathQuery = "";
+
+ if (null !== globalCustomerId && "" !== globalCustomerId && undefined !== globalCustomerId
+ && null !== serviceTypeId && "" !== serviceTypeId && undefined !== serviceTypeId) {
+ pathQuery = COMPONENT.SERVICES_PATH + globalCustomerId + "/" + $scope.serviceTypeName;
+ }
+
+ var namedQueryId = '6e806bc2-8f9b-4534-bb68-be91267ff6c8';
+ AaiService.getServiceModelsByServiceType(namedQueryId, globalCustomerId, $scope.serviceTypeName, function (response) { // success
+ $scope.services = [];
+ if (angular.isArray(response.data['inventory-response-item']) && response.data['inventory-response-item'].length > 0 && response.data['inventory-response-item'][0]['inventory-response-items']) {
+ wholeData = response.data['inventory-response-item'][0]['inventory-response-items']['inventory-response-item'];
+ $scope.services = $scope.filterDataWithHigerVersion(response.data['inventory-response-item'][0]['inventory-response-items']['inventory-response-item']);
+ $scope.serviceType = response.data['inventory-response-item'][0]['service-subscription']['service-type'];
+ $scope.viewPerPage = 10;
+ $scope.totalPage = $scope.services.length / $scope.viewPerPage;
+ $scope.sortBy = "name";
+ $scope.scrollViewPerPage = 2;
+ $scope.currentPage = 1;
+ $scope.searchCategory;
+ $scope.searchString = "";
+ $scope.currentPageNum = 1;
+ $scope.isSpinnerVisible = false;
+ $scope.isProgressVisible = false;
+ } else {
+ $scope.status = "Failed to get service models from ASDC.";
+ $scope.error = true;
+ $scope.isSpinnerVisible = false;
}
- }
- ;
- for(var i=0; i<$scope.custSubList.length;i++){
- if($scope.createSubscriberName === $scope.custSubList[i].subscriberName){
- globalCustomerId = $scope.custSubList[i].globalCustomerId;
- globalCustId = globalCustomerId;
- }
- }
- ;
- var pathQuery ="";
-
- if(null !== globalCustomerId && "" !== globalCustomerId && undefined !== globalCustomerId
- && null !== serviceTypeId && "" !== serviceTypeId && undefined !== serviceTypeId){
- pathQuery = COMPONENT.SERVICES_PATH +globalCustomerId+"/"+$scope.serviceTypeName;
- }
-
- var namedQueryId='6e806bc2-8f9b-4534-bb68-be91267ff6c8';
- AaiService.getServiceModelsByServiceType(namedQueryId,globalCustomerId,$scope.serviceTypeName,function(response) { // success
- $scope.services = [];
- if (angular.isArray(response.data['inventory-response-item']) && response.data['inventory-response-item'].length > 0 && response.data['inventory-response-item'][0]['inventory-response-items']) {
- wholeData = response.data['inventory-response-item'][0]['inventory-response-items']['inventory-response-item'];
- $scope.services = $scope.filterDataWithHigerVersion(response.data['inventory-response-item'][0]['inventory-response-items']['inventory-response-item']);
- $scope.serviceType = response.data['inventory-response-item'][0]['service-subscription']['service-type'];
- $scope.viewPerPage=10;
- $scope.totalPage=$scope.services.length/$scope.viewPerPage;
- $scope.sortBy="name";
- $scope.scrollViewPerPage=2;
- $scope.currentPage=1;
- $scope.searchCategory;
- $scope.searchString="";
- $scope.currentPageNum=1;
- $scope.isSpinnerVisible = false;
- $scope.isProgressVisible = false;
- } else {
- $scope.status = "Failed to get service models from A&AI.";
- $scope.error = true;
- $scope.isSpinnerVisible = false;
- }
- DataService.setServiceIdList(response);
- }, function(response) { // failure
- $scope.showError(FIELD.ERROR.AAI);
- $scope.errorMsg = FIELD.ERROR.FETCHING_SERVICES+ response.status;
- $scope.errorDetails = response.data;
- });
-
- };
-
- var globalCustId;// This value will be assigned only on create new service instance screen-macro
- $scope.createType = "a la carte";
- $scope.deployService = function(service,hideServiceFields) {
- hideServiceFields = hideServiceFields|| false;
- var temp = service;
- service.uuid = service['service-instance']['model-version-id'];
-
- console.log("Instantiating ASDC service " + service.uuid);
-
- $http.get('rest/models/services/' + service.uuid)
- .then(function successCallback(getServiceResponse) {
- getServiceResponse.data['service'].serviceTypeName =$scope.serviceTypeName ;
- getServiceResponse.data['service'].createSubscriberName =$scope.createSubscriberName ;
- var serviceModel = getServiceResponse.data;
- DataService.setServiceName(serviceModel.service.name);
-
- DataService.setModelInfo(COMPONENT.SERVICE, {
- "modelInvariantId": serviceModel.service.invariantUuid,
- "modelVersion": serviceModel.service.version,
- "modelNameVersionId": serviceModel.service.uuid,
- "modelName": serviceModel.service.name,
- "description": serviceModel.service.description,"serviceType": serviceModel.service.serviceType,
+ DataService.setServiceIdList(response);
+ }, function (response) { // failure
+ $scope.showError(FIELD.ERROR.AAI);
+ $scope.errorMsg = FIELD.ERROR.FETCHING_SERVICES + response.status;
+ $scope.errorDetails = response.data;
+ });
+
+ };
+
+ var globalCustId;// This value will be assigned only on create new service instance screen-macro
+ $scope.createType = "a la carte";
+ $scope.deployService = function (service, hideServiceFields) {
+ hideServiceFields = hideServiceFields || false;
+ var temp = service;
+ service.uuid = service['service-instance']['model-version-id'];
+
+ console.log("Instantiating ASDC service " + service.uuid);
+
+ $http.get('rest/models/services/' + service.uuid)
+ .then(function successCallback(getServiceResponse) {
+ getServiceResponse.data['service'].serviceTypeName = $scope.serviceTypeName;
+ getServiceResponse.data['service'].createSubscriberName = $scope.createSubscriberName;
+ var serviceModel = getServiceResponse.data;
+ DataService.setServiceName(serviceModel.service.name);
+
+ DataService.setModelInfo(COMPONENT.SERVICE, {
+ "modelInvariantId": serviceModel.service.invariantUuid,
+ "modelVersion": serviceModel.service.version,
+ "modelNameVersionId": serviceModel.service.uuid,
+ "modelName": serviceModel.service.name,
+ "description": serviceModel.service.description,
+ "serviceType": serviceModel.service.serviceType,
"serviceRole": serviceModel.service.serviceRole,
- "category":serviceModel.service.category,
- "serviceTypeName":serviceModel.service.serviceTypeName,
- "createSubscriberName":serviceModel.service.createSubscriberName
- });
- DataService.setHideServiceFields(hideServiceFields);
- if(hideServiceFields){
- DataService.setServiceType($scope.serviceTypeName);
- DataService.setGlobalCustomerId(globalCustId);
- }
-
- DataService.setALaCarte (true);
- $scope.createType = "a la carte";
- var broadcastType = "createComponent";
-
- if (UtilityService.arrayContains (VIDCONFIGURATION.MACRO_SERVICES, serviceModel.service.invariantUuid )) {
- DataService.setALaCarte (false);
- $scope.createType = "Macro";
- var convertedAsdcModel = UtilityService.convertModel(serviceModel);
-
- //console.log ("display inputs ");
- //console.log (JSON.stringify ( convertedAsdcModel.completeDisplayInputs));
-
- DataService.setModelInfo(COMPONENT.SERVICE, {
- "modelInvariantId": serviceModel.service.invariantUuid,
- "modelVersion": serviceModel.service.version,
- "modelNameVersionId": serviceModel.service.uuid,
- "modelName": serviceModel.service.name,
- "description": serviceModel.service.description,
- "category":serviceModel.service.category,
- "serviceEcompNaming": serviceModel.service.serviceEcompNaming,
- "inputs": serviceModel.service.inputs,
- "displayInputs": convertedAsdcModel.completeDisplayInputs,
- "serviceTypeName":serviceModel.service.serviceTypeName,
- "createSubscriberName":serviceModel.service.createSubscriberName,
- "serviceType": serviceModel.service.serviceType,
+ "category": serviceModel.service.category,
+ "serviceTypeName": serviceModel.service.serviceTypeName,
+ "createSubscriberName": serviceModel.service.createSubscriberName
+ });
+ DataService.setHideServiceFields(hideServiceFields);
+ if (hideServiceFields) {
+ DataService.setServiceType($scope.serviceTypeName);
+ DataService.setGlobalCustomerId(globalCustId);
+ }
+
+ DataService.setALaCarte(true);
+ $scope.createType = "a la carte";
+ var broadcastType = "createComponent";
+
+ if (UtilityService.arrayContains(VIDCONFIGURATION.MACRO_SERVICES, serviceModel.service.invariantUuid)) {
+ DataService.setALaCarte(false);
+ $scope.createType = "Macro";
+ var convertedAsdcModel = UtilityService.convertModel(serviceModel);
+
+ //console.log ("display inputs ");
+ //console.log (JSON.stringify ( convertedAsdcModel.completeDisplayInputs));
+
+ DataService.setModelInfo(COMPONENT.SERVICE, {
+ "modelInvariantId": serviceModel.service.invariantUuid,
+ "modelVersion": serviceModel.service.version,
+ "modelNameVersionId": serviceModel.service.uuid,
+ "modelName": serviceModel.service.name,
+ "description": serviceModel.service.description,
+ "category": serviceModel.service.category,
+ "serviceEcompNaming": serviceModel.service.serviceEcompNaming,
+ "inputs": serviceModel.service.inputs,
+ "displayInputs": convertedAsdcModel.completeDisplayInputs,
+ "serviceTypeName": serviceModel.service.serviceTypeName,
+ "createSubscriberName": serviceModel.service.createSubscriberName,
+ "serviceType": serviceModel.service.serviceType,
"serviceRole": serviceModel.service.serviceRole
- });}
- ;
-
- $scope.$broadcast(broadcastType, {
- componentId : COMPONENT.SERVICE,
- callbackFunction : function(response) {
- if (response.isSuccessful) {
- vidService.setModel(serviceModel);
-
- var subscriberId = "Not Found";
- var serviceType = "Not Found";
-
- var serviceInstanceId = response.instanceId;
-
- for (var i = 0; i < response.control.length; i++) {
- if (response.control[i].id == "subscriberName") {
- subscriberId = response.control[i].value;
- } else if (response.control[i].id == "serviceType") {
- serviceType = response.control[i].value;
- }
- }
-
-
- $scope.refreshSubs(subscriberId,serviceType,serviceInstanceId);
-
- }
- }
- });
-
- }, function errorCallback(response) {
- console.log("Error: " + response);
- });
- };
- $scope.isFiltered=function(arr,obj){
- var filtered = false;
- if(arr.length>0){
- for(var i=0;i<arr.length;i++){
- if(obj['extra-properties']['extra-property'] && (obj['extra-properties']['extra-property'][2]['property-value'] == arr[i]['extra-properties']['extra-property'][2]['property-value'])
- && (obj['extra-properties']['extra-property'][4]['property-value'] == arr[i]['extra-properties']['extra-property'][4]['property-value'])){
- filtered = true;
- }
- }
- }
- return filtered;
- }
- var wholeData=[];
- $scope.filterDataWithHigerVersion = function(serviceData){
- var fiterDataServices = [];
- for(var i=0;i<serviceData.length;i++){
- var higherVersion = serviceData[i];
- if(!$scope.isFiltered(fiterDataServices,serviceData[i])){
- for(var j=i;j<serviceData.length;j++){
- if(serviceData[i]['extra-properties']['extra-property'] && serviceData[j]['extra-properties']['extra-property'] && (serviceData[i]['extra-properties']['extra-property'][4]['property-value'] == serviceData[j]['extra-properties']['extra-property'][4]['property-value'])
- && (serviceData[i]['extra-properties']['extra-property'][2]['property-value'] == serviceData[j]['extra-properties']['extra-property'][2]['property-value'])
- && (parseFloat(serviceData[j]['extra-properties']['extra-property'][6]['property-value'])>=parseFloat(serviceData[i]['extra-properties']['extra-property'][6]['property-value']))){
- var data = $scope.isThisHigher(fiterDataServices,serviceData[j]);
- if(data.isHigher){
- fiterDataServices[data.index] = serviceData[j];
- }
- }
- }
- }
- }
- return fiterDataServices;
- }
-
- $scope.isThisHigher = function(arr,obj){
- var returnObj = {
- isHigher:false,
- index:0
- };
- if(arr.length>0){
- var isNotMatched = true;
- for(var i=0;i<arr.length;i++){
- if(arr[i]['extra-properties']['extra-property'] && (arr[i]['extra-properties']['extra-property'][2]['property-value'] == obj['extra-properties']['extra-property'][2]['property-value'])
- && (arr[i]['extra-properties']['extra-property'][4]['property-value'] == obj['extra-properties']['extra-property'][4]['property-value'] )
- && (arr[i]['extra-properties']['extra-property'][6]['property-value'] < obj['extra-properties']['extra-property'][6]['property-value']) ){
- isNotMatched = false;
- returnObj = {
- isHigher:true,
- index:i
- };
- }
- }
- if(isNotMatched && !$scope.isFiltered(arr,obj)){
- returnObj = {
- isHigher:true,
- index:arr.length
- };
- }
- }else{
- returnObj = {
- isHigher:true,
- index:0
- }
- }
- return returnObj;
- }
-
- $scope.tableData=[];
- var oldData=[];
- $scope.loadPreviousVersionData=function(version,invariantUUID){
- $scope.tableData =[];
- oldData=[];
- for(var i=0;i<wholeData.length;i++){
- if(wholeData[i]['extra-properties']['extra-property'] && wholeData[i]['extra-properties']['extra-property'][4]['property-value'] == invariantUUID && version!=wholeData[i]['extra-properties']['extra-property'][6]['property-value']){
- oldData.push(wholeData[i]);
- }
- }
- $scope.tableData = oldData;
- $scope.createType = "Previous Version";
- var broadcastType = "createTableComponent";
- $scope.componentName = invariantUUID;
- $scope.$broadcast(broadcastType, {
- componentId : COMPONENT.OLDVERSION,
- callbackFunction : function(response) {
- }
- });
- }
- $scope.cancelCreateSIType = function(){
-
- window.location.href = COMPONENT.SERVICE_MODLES_INSTANCES_SUBSCRIBERS_PATH;
-
- }
+ });
+ }
+ ;
+
+ $scope.$broadcast(broadcastType, {
+ componentId: COMPONENT.SERVICE,
+ callbackFunction: function (response) {
+ if (response.isSuccessful) {
+ vidService.setModel(serviceModel);
+
+ var subscriberId = "Not Found";
+ var serviceType = "Not Found";
+
+ var serviceInstanceId = response.instanceId;
+
+ for (var i = 0; i < response.control.length; i++) {
+ if (response.control[i].id == "subscriberName") {
+ subscriberId = response.control[i].value;
+ } else if (response.control[i].id == "serviceType") {
+ serviceType = response.control[i].value;
+ }
+ }
+
+
+ $scope.refreshSubs(subscriberId, serviceType, serviceInstanceId);
+
+ }
+ }
+ });
+
+ }, function errorCallback(response) {
+ $log.error("Error: ", response);
+ });
+ };
+
+ var wholeData=[];
+ //extract all models from service instances properties and filter by the higher model version
+ $scope.filterDataWithHigerVersion = function(serviceData){
+
+ //get all service instances & models collected into array. key = model invariant id
+ var servicesByModelInvariant = _.reduce(serviceData, function(result, item) {
+ if (item['extra-properties']['extra-property']) {
+ var invariantId = item['extra-properties']['extra-property'][4];
+ if (invariantId) {
+ (result[invariantId["property-value"]] || (result[invariantId["property-value"]] = [])).push(item);
+ }
+ }
+ return result;
+ }, {});
+
+ //iterate over the array and get the highest model version for each group of services
+ var filterDataServicesByVersion = [];
+ _.forEach(servicesByModelInvariant, function(items) {
+ var maxVersionItem = _.maxBy(items, function(item) { return parseFloat(item['extra-properties']['extra-property'][6]["property-value"]); });
+ filterDataServicesByVersion.push(maxVersionItem);
+ });
+
+ return filterDataServicesByVersion;
+ };
+
+ $scope.tableData = [];
+ var oldData = [];
+ $scope.loadPreviousVersionData = function (version, invariantUUID) {
+ $scope.tableData = [];
+ oldData = [];
+ for (var i = 0; i < wholeData.length; i++) {
+ if (wholeData[i]['extra-properties']['extra-property'] && wholeData[i]['extra-properties']['extra-property'][4]['property-value'] == invariantUUID && version != wholeData[i]['extra-properties']['extra-property'][6]['property-value']) {
+ oldData.push(wholeData[i]);
+ }
+ }
+ $scope.tableData = oldData;
+ $scope.createType = "Previous Version";
+ var broadcastType = "createTableComponent";
+ $scope.componentName = invariantUUID;
+ $scope.$broadcast(broadcastType, {
+ componentId: COMPONENT.OLDVERSION,
+ callbackFunction: function (response) {
+ }
+ });
+ }
+ $scope.cancelCreateSIType = function () {
+
+ window.location.href = COMPONENT.SERVICE_MODLES_INSTANCES_SUBSCRIBERS_PATH;
+
+ }
$scope.fetchServices = function () {
var serviceIdList = [];
@@ -379,7 +341,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", $scope.errorMsg = FIELD.ERROR.FETCHING_SERVICES + response.status;
$scope.errorDetails = response.data;
});
- }
+ };
$scope.refreshSubs = function () {
$scope.init();
@@ -387,10 +349,20 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", $scope.fetchServices();
};
+ $scope.loadOwningEntity = function () {
+ OwningEntityService.getOwningEntityProperties(function (response) {
+ $scope.owningEntities = response.owningEntity;
+ $scope.projects = response.project;
+
+ // working project name: owning-entity-id-val-cp8128
+ // working owning entity name: owning-entity-id-val-cp8128
+ });
+ };
+
$scope.fetchSubs = function (status) {
$scope.status = status;
- AaiService.getSubList(function (response) { // sucesss
+ AaiService.getSubList(function (response) {
$scope.setProgress(100); // done
$scope.status = FIELD.STATUS.DONE;
$scope.isSpinnerVisible = false;
@@ -408,16 +380,23 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", }
- $scope.getSubDetails = function (request) {
+ $scope.getSubDetails = function () {
$scope.init();
- $scope.selectedSubscriber = $location.search().selectedSubscriber;
- $scope.selectedServiceInstance = $location.search().selectedServiceInstance;
+ //$scope.selectedSubscriber = $location.search().selectedSubscriber;
+ // $scope.selectedServiceInstance = $location.search().selectedServiceInstance;
$scope.status = FIELD.STATUS.FETCHING_SUB_DETAILS + $scope.selectedSubscriber;
+ var query = $location.url().replace($location.path(),'');
$scope.displayData = [];
- AaiService.getSubDetails($scope.selectedSubscriber, $scope.selectedServiceInstance, function (displayData, subscriberName) {
- $scope.displayData = displayData;
+ AaiService.searchServiceInstances(query).then(function (response) {
+ $scope.displayData = response.displayData;
+ if (response.displayData.length)
+ {
+ var first = response.displayData[0];
+ $scope.selectedSubscriberId = first.globalCustomerId;
+ $scope.selectedSubscriberName = first.subscriberName;
+ }
$scope.viewPerPage = 10;
$scope.totalPage = $scope.displayData.length / $scope.viewPerPage;
$scope.scrollViewPerPage = 2;
@@ -429,13 +408,13 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", $scope.setProgress(100); // done
$scope.status = FIELD.STATUS.DONE;
$scope.isSpinnerVisible = false;
- $scope.subscriberName = subscriberName;
- }, function (response) {
+
+ }).catch(function (response) {
$scope.showError(FIELD.ERROR.AAI);
$scope.errorMsg = FIELD.ERROR.AAI_FETCHING_CUST_DATA + response.status;
$scope.errorDetails = response.data;
});
- }
+ };
$scope.$on(COMPONENT.MSO_DELETE_REQ, function (event, request) {
@@ -452,7 +431,6 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", });
$scope.init = function () {
-
//PropertyService.setAaiBaseUrl("testaai");
//PropertyService.setAsdcBaseUrl("testasdc");
@@ -529,37 +507,67 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", alert(response.statusText);
}
- $scope.getAsdcModel = function (disData) {
+ function getModelVersionIdForServiceInstance(instance) {
+ if (UtilityService.hasContents(instance.aaiModelVersionId)) {
+ return $q.resolve(instance.aaiModelVersionId);
+ } else {
+ return AaiService.getModelVersionId(instance.globalCustomerId, instance.serviceInstanceId);
+ }
+ }
- console.log("disData");
- console.log(JSON.stringify(disData, null, 4));
+ $scope.onViewEditClick = function (disData) {
+ $log.debug("disData", disData, null, 4);
- // if ( !(UtilityService.hasContents (disData.aaiModelVersionId)) ) {
- // $scope.errorMsg = FIELD.ERROR.MODEL_VERSION_ID_MISSING;
- // alert($scope.errorMsg);
- // return;
- // }
+ getModelVersionIdForServiceInstance(disData)
+ .then(getAsdcModelByVersionId, handleErrorGettingModelVersion)
+ .then(navigateToViewEditPage);
- // aaiModelVersionId is the model uuid
- var pathQuery = COMPONENT.SERVICES_PATH + disData.aaiModelVersionId;
- $http({
- method: 'GET',
- url: pathQuery
- }).then(function successCallback(response) {
- vidService.setModel(response.data);
+
+ function navigateToViewEditPage() {
window.location.href =
COMPONENT.INSTANTIATE_ROOT_PATH + disData.globalCustomerId +
COMPONENT.SUBSCRIBERNAME_SUB_PATH + disData.subscriberName +
COMPONENT.SERVICETYPE_SUB_PATH + disData.serviceType +
COMPONENT.SERVICEINSTANCEID_SUB_PATH + disData.serviceInstanceId +
COMPONENT.IS_PERMITTED_SUB_PATH + disData.isPermitted;
+ }
+ };
+
+ function handleErrorGettingModelVersion(err) {
+ $log.error("aaiSubscriber getModelVersionIdForServiceInstance - " + err);
+ $scope.errorMsg = err;
+ alert($scope.errorMsg);
+ return $q.reject();
+ }
+
+ function getAsdcModelByVersionId(aaiModelVersionId) {
+ // aaiModelVersionId is the model uuid
+ var pathQuery = COMPONENT.SERVICES_PATH + aaiModelVersionId;
+ return $http({
+ method: 'GET',
+ url: pathQuery
+ }).then(function successCallback(response) {
+ vidService.setModel(response.data);
console.log("aaiSubscriber getAsdcModel DONE!!!!");
}, function errorCallback(response) {
- console.log("aaiSubscriber getAsdcModel - No matching model found matching the A&AI model version ID = " + disData.aaiModelVersionId);
- $scope.errorMsg = FIELD.ERROR.NO_MATCHING_MODEL_AAI + disData.aaiModelVersionId;
+ $log.error("aaiSubscriber getAsdcModel - " + FIELD.ERROR.NO_MATCHING_MODEL_AAI + aaiModelVersionId);
+ $scope.errorMsg = FIELD.ERROR.NO_MATCHING_MODEL_AAI + aaiModelVersionId;
alert($scope.errorMsg);
});
+ }
+ function returnMatchingServiceSubscription(serviceSubs, serviceId){
+ var orchStatus;
+ serviceSubs.forEach(function(item){
+ if (item[FIELD.ID.SERVICE_INSTANCES] != null) {
+ item[FIELD.ID.SERVICE_INSTANCES][FIELD.ID.SERVICE_INSTANCE].forEach(function (service) {
+ if (service[FIELD.ID.SERVICE_INSTANCE_ID] === serviceId) {
+ orchStatus = service['orchestration-status']
+ }
+ })
+ }
+ });
+ return orchStatus;
}
$scope.getTenants = function (globalCustomerId) {
@@ -572,10 +580,26 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", });
}
+ $scope.isActivateDeactivateEnabled = function(btnType) {
+ if ($scope.serviceOrchestrationStatus && $scope.service.model.service.serviceType.toLowerCase().indexOf('transport') != -1) {
+ switch (btnType) {
+ case "activate":
+ return $scope.serviceOrchestrationStatus === 'Created' ||
+ $scope.serviceOrchestrationStatus.toLowerCase() === 'pendingdelete' || $scope.serviceOrchestrationStatus.toLowerCase() === 'pending-delete';
+ break;
+ case "deactivate":
+ return $scope.serviceOrchestrationStatus === 'Active';
+ break;
+ }
+ }
+
+ return false;
+ };
+
$scope.handleInitialResponseInventoryItems = function (response) {
$scope.inventoryResponseItemList = response.data[FIELD.ID.INVENTORY_RESPONSE_ITEM]; // get data from json
- console.log($scope.inventoryResponseItemList.toString());
+ $log.debug($scope.inventoryResponseItemList);
$scope.displayData = [];
$scope.vnfs = [];
@@ -585,8 +609,9 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", $scope.subscriberName = "";
// just look up the subscriber name in A&AI here...
AaiService.getSubscriberName($scope.globalCustomerId, function (response) {
- $scope.subscriberName = response;
+ $scope.subscriberName = response.subscriberName;
DataService.setSubscriberName($scope.subscriberName);
+ $scope.serviceOrchestrationStatus = returnMatchingServiceSubscription(response.serviceSubscriptions[FIELD.ID.SERVICE_SUBSCRIPTION], $scope.serviceInstanceId);
angular.forEach($scope.inventoryResponseItemList, function (inventoryResponseItem, key) {
@@ -609,12 +634,13 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", "type": PARAMETER.STRING,
"description": FIELD.PROMPT.VAR_DESCRIPTION_B,
"default": FIELD.PROMPT.DEFAULT_B
- },
+ }
},
"object": $scope.inventoryResponseItem[FIELD.ID.SERVICE_INSTANCE],
"vnfs": [],
- "networks": []
- }
+ "networks": [],
+ "configurations": []
+ };
if (inventoryResponseItem[FIELD.ID.INVENTORY_RESPONSE_ITEMS] != null) {
@@ -760,6 +786,44 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", });
}
}
+
+ if (subInventoryResponseItem[FIELD.ID.GENERIC_CONFIGURATION] != null) {
+ var configObject = subInventoryResponseItem[FIELD.ID.GENERIC_CONFIGURATION];
+ var config = {
+ "id": $scope.counter++,
+ "name": configObject[FIELD.ID.CONFIGURATION_NAME],
+ "itemType": FIELD.ID.CONFIGURATION,
+ "nodeId": configObject[FIELD.ID.CONFIGURATION_ID],
+ "nodeType": configObject[FIELD.ID.CONFIGURATION_TYPE],
+ "nodeStatus": configObject[FIELD.ID.ORCHESTRATION_STATUS],
+ "modelInvariantId": configObject[FIELD.ID.MODEL_INVAR_ID],
+ "modelVersionId": configObject[FIELD.ID.MODEL_VERSION_ID],
+ "modelCustomizationId": configObject[FIELD.ID.MODEL_CUSTOMIZATION_ID],
+ "object": configObject,
+ "ports": []
+ };
+
+ $scope.allowConfigurationActions = [FIELD.STATUS.AAI_ACTIVE, FIELD.STATUS.AAI_INACTIVE, FIELD.STATUS.AAI_CREATED].indexOf(config.nodeStatus) != -1;
+
+ if (subInventoryResponseItem[FIELD.ID.INVENTORY_RESPONSE_ITEMS] != null) {
+ angular.forEach(subInventoryResponseItem[FIELD.ID.INVENTORY_RESPONSE_ITEMS][FIELD.ID.INVENTORY_RESPONSE_ITEM], function (subSubInventoryResponseItem, key) {
+ var port = {};
+ var portObject;
+ if (subSubInventoryResponseItem[FIELD.ID.PORT] != null) {
+ portObject = subSubInventoryResponseItem[FIELD.ID.PORT];
+ port = {
+ "portId": portObject[FIELD.ID.PORT_ID],
+ "portName": portObject[FIELD.ID.PORT_NAME],
+ "portStatus": portObject[FIELD.ID.PORT_MIRRORED] === true ? FIELD.STATUS.AAI_ENABLED : FIELD.ID.AAI_DISABLED,
+ "object": portObject
+ };
+ config.ports.push(port);
+ }
+ });
+ }
+ $scope.service.instance[FIELD.ID.CONFIGURATIONS].push(config);
+ }
+
});
}
});
@@ -901,63 +965,239 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", $scope.currentPage--;
}
- $scope.activateMSOInstance = function() {
- MsoService.activateInstance($scope.service.instance, $scope.service.model)
- .then(function(response) {
- alert("Activation succeeded");
- })
- .catch(function (error) {
- $log.error(error);
+ var getAicZoneAndSendToMso = function (msoType, requestParams) {
+ AaiService.getAicZoneForPNF(
+ $scope.service.instance.globalCustomerId,
+ $scope.service.instance.serviceType,
+ $scope.service.instance.serviceInstanceId, function (aicZone) {
+
+ requestParams.aicZone = aicZone;
+
+ openMsoModal(msoType, requestParams);
});
- ;
+ };
+
+ var activateDeactivateServiceInstance = function(msoType) {
+ var requestParams = {
+ model: $scope.service.model,
+ instance: $scope.service.instance
+ };
+
+ if (DataService.getLoggedInUserId()) {
+ requestParams.userId = DataService.getLoggedInUserId();
+ getAicZoneAndSendToMso(msoType, requestParams)
+ } else {
+ AaiService.getLoggedInUserID(function (response) {
+ var userID = response.data;
+ DataService.setLoggedInUserId(userID);
+ requestParams.userId = userID;
+
+ getAicZoneAndSendToMso(msoType, requestParams);
+ });
+ }
+ };
+
+ $scope.activateMSOInstance = function() {
+
+ activateDeactivateServiceInstance(COMPONENT.MSO_ACTIVATE_SERVICE_REQ);
+ };
+
+ $scope.deactivateMSOInstance = function() {
+
+ activateDeactivateServiceInstance(COMPONENT.MSO_DEACTIVATE_SERVICE_REQ);
+ };
+
+ $scope.toggleConfigurationStatus = function (serviceObject, configuration) {
+
+
+ AaiService.getLoggedInUserID(function (response) {
+ DataService.setLoggedInUserId(response.data);
+ var requestParams = {
+ serviceModel: {
+ "modelType": "service",
+ "modelInvariantId": serviceObject.model.service.invariantUuid,
+ "modelVersionId": "uuid",
+ "modelName": serviceObject.model.service.name,
+ "modelVersion": serviceObject.model.service.version
+ },
+ configurationModel: {
+ "modelType": "configuration",
+ "modelInvariantId": configuration.modelInvariantId,
+ "modelVersionId": configuration.modelVersionId,
+ "modelCustomizationId": configuration.modelCustomizationId
+ },
+ serviceInstanceId: serviceObject.instance.serviceInstanceId,
+ configurationId: configuration.nodeId,
+ configStatus: configuration.nodeStatus,
+ userId: DataService.getLoggedInUserId()
+ };
+
+ openMsoModal(COMPONENT.MSO_CHANGE_CONFIG_STATUS_REQ, requestParams);
+ });
+
+ };
+
+ $scope.togglePortStatus = function(serviceObject, configuration, port) {
+
+ var requestParams = {
+ serviceInstanceId: serviceObject.instance.serviceInstanceId,
+ configurationId: configuration.nodeId,
+ portId: port.portId,
+ portStatus: port.portStatus,
+ serviceModel: {
+ "modelType": "service",
+ "modelInvariantId": serviceObject.model.service.invariantUuid,
+ "modelVersionId": "uuid",
+ "modelName": serviceObject.model.service.name,
+ "modelVersion": serviceObject.model.service.version
+ },
+ configurationModel: {
+ "modelType": "configuration",
+ "modelInvariantId": configuration.modelInvariantId,
+ "modelVersionId": configuration.modelVersionId,
+ "modelCustomizationId": configuration.modelCustomizationId
+ },
+ userId: DataService.getLoggedInUserId()
+ };
+
+ openMsoModal(COMPONENT.MSO_CHANGE_PORT_STATUS_REQ, requestParams);
+ };
+
+ $scope.dissociatePnf = function(pnfName) {
+
+ var jobInfo = {
+ status: "confirm",
+ message: "Are you sure you would like to dissociate " + pnfName + " from the service instance?"
+ };
+
+ var modalInstance = $uibModal.open({
+ templateUrl: 'app/vid/scripts/modals/alert-modal/alert-modal.html',
+ controller: 'alertModalController',
+ controllerAs: 'vm',
+ appendTo: angular.element("#pnfs-tree"),
+ resolve: {
+ jobInfo: function () {
+ return jobInfo;
+ }
+ }
+ });
+
+ modalInstance.result.then(function (result) {
+ console.log("This is the result of the alert modal.", result);
+
+ if (result) {
+ var requestParams = {
+ pnf: pnfName,
+ serviceModelInfo: {
+ invariantUuid: $scope.service.model.service.invariantUuid,
+ uuid: $scope.service.model.service.uuid,
+ version: $scope.service.model.service.version,
+ name: $scope.service.model.service.name
+ },
+ serviceInstanceId: $scope.service.instance.serviceInstanceId
+ };
+
+ if (DataService.getLoggedInUserId()) {
+ requestParams.attuuid = DataService.getLoggedInUserId();
+ openMsoModal(COMPONENT.MSO_REMOVE_RELATIONSHIP, requestParams);
+ } else {
+ AaiService.getLoggedInUserID(function (response) {
+ DataService.setLoggedInUserId(response.data);
+
+ requestParams.attuuid = response.data;
+ openMsoModal(COMPONENT.MSO_REMOVE_RELATIONSHIP, requestParams);
+ });
+ }
+ }
+ });
+
+
+ };
+
+ var openMsoModal = function (msoType, requestParams) {
+ var modalInstance = $uibModal.open({
+ templateUrl: 'app/vid/scripts/modals/mso-commit/mso-commit.html',
+ controller : "msoCommitModalController",
+ backdrop: false,
+ resolve: {
+ msoType: function () {
+ return msoType;
+ },
+ requestParams: function() {
+ requestParams.callbackFunction = updateViewCallbackFunction;
+ return requestParams;
+ }
+ }
+ });
+ };
+
+ var updateViewCallbackFunction = function(response) {
+ $scope.callbackResults = "";
+ var color = FIELD.ID.COLOR_NONE;
+ $scope.callbackStyle = {
+ "background-color" : color
+ };
+
+ /*
+ * This 1/2 delay was only added to visually highlight the status
+ * change. Probably not needed in the real application code.
+ */
+ $timeout(function() {
+ $scope.callbackResults = UtilityService.getCurrentTime()
+ + FIELD.STATUS.IS_SUCCESSFUL + response.isSuccessful;
+ if (response.isSuccessful) {
+ color = FIELD.ID.COLOR_8F8;
+ $scope.reloadRoute();
+ } else {
+ color = FIELD.ID.COLOR_F88;
+ }
+ $scope.callbackStyle = {
+ "background-color" : color
+ };
+ }, 500);
};
$scope.nextPage = function () {
$scope.currentPage++;
+ };
+
+ $scope.serviceInstanceses = [{"sinstance": FIELD.NAME.SERVICE_INSTANCE_Id}, {"sinstance": FIELD.NAME.SERVICE_INSTANCE_NAME}];
+
+ function navigateToSearchResultsPage(globalCustomerId, selectedServiceInstance, selectedProjects, selectedOwningEntities) {
+ var projectQuery = AaiService.getMultipleValueParamQueryString(_.map(selectedProjects, 'id'), COMPONENT.PROJECT_SUB_PATH);
+ var owningEntityQuery = AaiService.getMultipleValueParamQueryString(_.map(selectedOwningEntities, 'id'), COMPONENT.OWNING_ENTITY_SUB_PATH);
+ var globalCustomerIdQuery = globalCustomerId ? COMPONENT.SELECTED_SUBSCRIBER_SUB_PATH + globalCustomerId : null;
+ var serviceInstanceQuery = selectedServiceInstance ? COMPONENT.SELECTED_SERVICE_INSTANCE_SUB_PATH + selectedServiceInstance : null;
+ var query = AaiService.getJoinedQueryString([projectQuery, owningEntityQuery, globalCustomerIdQuery, serviceInstanceQuery]);
+
+ window.location.href = COMPONENT.SELECTED_SERVICE_SUB_PATH + query;
}
- $scope.serviceInstanceses = [{"sinstance": FIELD.NAME.SERVICE_INSTANCE_Id}, {"sinstance": FIELD.NAME.SERVICE_INSTANCE_NAME}]
- $scope.getSubscriberDet = function (selectedCustomer, selectedserviceinstancetype, selectedServiceInstance) {
-
- var sintype = selectedserviceinstancetype;
- if (selectedServiceInstance != "" && selectedServiceInstance != undefined) {
- selectedServiceInstance.trim();
-
- // check with A&AI
- $http.get(COMPONENT.AAI_GET_SERVICE_INSTANCE_PATH + selectedServiceInstance + "/" + sintype + "?r=" + Math.random(), {}, {
- timeout: $scope.responseTimeoutMsec
- }).then(function (response) {
- var notFound = true;
- if (angular.isArray(response.data[FIELD.ID.RESULT_DATA])) {
- var item = [];
- var urlParts = [];
- item = response.data[FIELD.ID.RESULT_DATA][0];
- var url = item[FIELD.ID.RESOURCE_LINK];
- var globalCustomerId = "";
- var serviceSubscription = "";
- // split it and find the customer Id and service-subscription
- urlParts = url.split("/");
- if (urlParts[7] === FIELD.ID.CUSTOMER) {
- globalCustomerId = urlParts[8];
- }
- if (urlParts[10] === FIELD.ID.SERVICE_SUBSCRIPTION) {
- serviceSubscription = urlParts[11];
- }
- if (globalCustomerId !== "") {
- notFound = false;
- window.location.href = COMPONENT.SELECTED_SERVICE_SUB_PATH + serviceSubscription + COMPONENT.SELECTEDSUBSCRIBER_SUB_PATH + globalCustomerId + COMPONENT.SELECTEDSERVICEINSTANCE_SUB_PATH + selectedServiceInstance;
- }
+ $scope.getServiceInstancesSearchResults =
+ function (selectedCustomer, selectedInstanceIdentifierType, selectedServiceInstance, selectedProject, selectedOwningEntity) {
+ var isSelectionValid = UtilityService.hasContents(selectedCustomer) || UtilityService.hasContents(selectedProject)
+ || UtilityService.hasContents(selectedOwningEntity) || UtilityService.hasContents(selectedServiceInstance);
+
+ if (isSelectionValid) {
+ if (UtilityService.hasContents(selectedServiceInstance)) {
+ AaiService
+ .getGlobalCustomerIdByInstanceIdentifier(selectedServiceInstance, selectedInstanceIdentifierType)
+ .then(handleCustomerIdResponse);
+ } else {
+ navigateToSearchResultsPage(selectedCustomer, null, selectedProject, selectedOwningEntity);
}
- if (notFound) {
+ } else {
+ alert(FIELD.ERROR.SELECT);
+ }
+
+ function handleCustomerIdResponse(globalCustomerId) {
+ if (UtilityService.hasContents(globalCustomerId)) {
+ navigateToSearchResultsPage(globalCustomerId, selectedServiceInstance, selectedProject, selectedOwningEntity);
+ } else {
alert(FIELD.ERROR.SERVICE_INST_DNE);
}
- }); // add a failure callback...
- } else if (selectedCustomer != null) {
- window.location.href = COMPONENT.SELECTED_SUB_PATH + selectedCustomer;
- } else {
- alert(FIELD.ERROR.SELECT);
- }
- };
+ }
+ };
}]).directive('restrictInput', function () {
return {
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/change-management.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/change-management.controller.js index 662b10ecd..273f13017 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/change-management.controller.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/change-management.controller.js @@ -1,12 +1,15 @@ (function () { 'use strict'; - appDS2.controller("changeManagementController", ["$uibModal", "changeManagementService", "_", "$log", changeManagementController]); + appDS2.controller("changeManagementController", ["$uibModal", "changeManagementService", "_", "$log", "SchedulerService", "$filter", changeManagementController]); - function changeManagementController($uibModal, changeManagementService, _, $log) { + function changeManagementController($uibModal, changeManagementService, _, $log, SchedulerService, $filter) { var vm = this; - var init = function() { + vm.lastTimeUpdated = ""; + + vm.init = function() { + vm.lastTimeUpdated = $filter('date')(new Date(), "MM/dd/yyyy | HH:mm:ss"); loadMSOChangeManagements(); loadSchedulerChangeManagements(); }; @@ -26,16 +29,16 @@ .then(function(response) { vm.pendingChangeManagements = response.data; _.forEach(vm.pendingChangeManagements, function(changeManagement) { - var callbackData = _.filter(changeManagement.scheduleRequest.domainData, {name: "CallbackData"}); + var callbackData = _.filter(changeManagement.scheduleRequest.domainData, {name: "WorkflowName"}); if(callbackData) { var parsedModel = {}; try { - parsedModel = JSON.parse(callbackData[0].value); + parsedModel = callbackData[0].value; } catch(exception) { $log.error(exception); } - changeManagement.workflow = parsedModel.requestType || 'No workflow'; + changeManagement.workflow = parsedModel; } }); }) @@ -57,10 +60,6 @@ }); }; - vm.openScheduler = function() { - console.log("function for opening the scheduler app") - }; - vm.searchChanges = function() { console.log("function for searching changes: " + vm.searchChangesTerm) }; @@ -74,7 +73,8 @@ jobInfo: function () { return jobInfo; } - } + }, + }); modalInstance.result.then(function (result) { @@ -115,12 +115,12 @@ console.log("This is the result of the alert change management modal.", result); }); }; - - vm.openPendingModal = function(jobInfo) { + vm.openBasicAlertModal = function(jobInfo) { var modalInstance = $uibModal.open({ - templateUrl: 'app/vid/scripts/modals/pending-change-management/pending-change-management.html', - controller: 'changeManagementManualTasksController', + templateUrl: 'app/vid/scripts/modals/alert-modal/alert-modal.html', + controller: 'alertModalController', controllerAs: 'vm', + appendTo: angular.element(".jobs-table").eq(0), resolve: { jobInfo: function () { return jobInfo; @@ -129,10 +129,51 @@ }); modalInstance.result.then(function (result) { - console.log("This is the result of the pending change management modal.", result); + console.log("This is the result of the alert change management modal.", result); }); }; + vm.openPendingModal = function($event, changeManagement) { + var modalInstance = $uibModal.open({ + templateUrl: 'app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.html', + controller: 'cancelPendingWorkflowController', + controllerAs: 'vm', + backdrop: false, + animation: true, + appendTo: angular.element($event.currentTarget).parent(), + resolve: { + changeManagement: function () { + return changeManagement; + } + } + }); + + modalInstance.result.then(function (result) { + // send to service + if(result){ + SchedulerService.cancelScheduleRequest(changeManagement.scheduleRequest.scheduleId, + function(response) { + + //success popup + var jobInfo= { + status:"success", + message: "Cancel workflow "+changeManagement.scheduleRequest.scheduleName+" succeeded."}; + vm.openBasicAlertModal(jobInfo); + + return response; + }, function(error) { + + //failed popup + var jobInfo = { + status:"failed", + message: "Cancel workflow "+changeManagement.scheduleRequest.scheduleName+" failed due to an unexpected error."}; + vm.openBasicAlertModal(jobInfo); + + }); + }}); + + }; + - init(); + vm.init(); } })();
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/deletionDialogController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js index 499a1ec02..9715484d4 100755..100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/deletionDialogController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js @@ -1,123 +1,148 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-"use strict";
-
-var deletionDialogController = function( COMPONENT, FIELD, $scope, $http, $timeout, $log,
- DeletionService, UtilityService) {
-
- $scope.isDialogVisible = false;
- $scope.summaryControl = {};
- $scope.userProvidedControl = {};
-
- var callbackFunction = undefined;
- var componentId = undefined;
-
- $scope.$on(COMPONENT.DELETE_COMPONENT, function(event, request) {
-
- $scope.isDataVisible = false;
- $scope.isSpinnerVisible = false;
- $scope.isErrorVisible = false;
- $scope.isDialogVisible = true;
- $scope.popup.isVisible = true;
- $scope.isConfirmEnabled = false;
-
- callbackFunction = request.callbackFunction;
- componentId = request.componentId;
-
- DeletionService.initializeComponent(request.componentId);
-
- $scope.componentName = DeletionService.getComponentDisplayName();
-
- $scope.summaryControl.setList(DeletionService.getSummaryList());
-
- DeletionService.getParameters(handleGetParametersResponse);
-
- });
-
- var handleGetParametersResponse = function(parameters, dontshow) {
- $scope.summaryControl.setList(parameters.summaryList);
- $scope.userProvidedControl.setList(parameters.userProvidedList);
-
- $scope.isSpinnerVisible = false;
- if (dontshow)
- $scope.isDataVisible = false;
- else
- $scope.isDataVisible = true;
- $scope.isConfirmEnabled = true;
- };
-
- $scope.userParameterChanged = function(id) {
- DeletionService.updateUserParameterList(id, $scope.userProvidedControl);
- }
-
- $scope.confirm = function() {
-
- var requiredFields = $scope.userProvidedControl.getRequiredFields();
- if (requiredFields === "") {
- $scope.isErrorVisible = false;
- } else {
- showError(FIELD.ERROR.MISSING_DATA, requiredFields);
- return;
- }
-
-
- var requestDetails = DeletionService.getMsoRequestDetails($scope.userProvidedControl.getList());
-
- if(DeletionService.isMacro === true){
- requestDetails.requestParameters.aLaCarte = false;
- }
-
- $scope.isDialogVisible = false;
-
- $scope.$broadcast(COMPONENT.MSO_DELETE_REQ, {
- url : DeletionService.getMsoUrl(),
- requestDetails : requestDetails,
- componentId: componentId,
- callbackFunction : function(isSuccessful) {
- if (isSuccessful) {
- $scope.popup.isVisible = false;
- runCallback(true);
- } else {
- $scope.isDialogVisible = true;
- }
- }
- });
-
- }
-
- $scope.cancel = function() {
- $scope.isDialogVisible = false;
- $scope.popup.isVisible = false;
- runCallback(false);
- }
-
- var runCallback = function(isSuccessful) {
- if (angular.isFunction(callbackFunction)) {
- callbackFunction({
- isSuccessful : isSuccessful
- });
- }
- }
-}
-
-appDS2.controller("deletionDialogController", [ "COMPONENT", "FIELD", "$scope", "$http",
- "$timeout", "$log", "DeletionService", "UtilityService",
- deletionDialogController ]);
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +"use strict"; + +var deleteResumeDialogController = function( COMPONENT, FIELD, $scope, $http, $timeout, $log, + DeleteResumeService, CreationService, UtilityService) { + + $scope.isDialogVisible = false; + $scope.summaryControl = {}; + $scope.userProvidedControl = {}; + + var callbackFunction = undefined; + var componentId = undefined; + + $scope.$on(COMPONENT.DELETE_RESUME_COMPONENT, function(event, request) { + + $scope.isDataVisible = false; + $scope.isSpinnerVisible = false; + $scope.isErrorVisible = false; + $scope.isDialogVisible = true; + $scope.popup.isVisible = true; + $scope.isConfirmEnabled = false; + $scope.dialogMethod = request.dialogMethod; + callbackFunction = request.callbackFunction; + componentId = request.componentId; + + DeleteResumeService.initializeComponent(request.componentId); + + $scope.componentName = DeleteResumeService.getComponentDisplayName(); + + $scope.summaryControl.setList(DeleteResumeService.getSummaryList()); + + DeleteResumeService.getParameters(handleGetParametersResponse); + + }); + + var handleGetParametersResponse = function(parameters, dontshow) { + $scope.summaryControl.setList(parameters.summaryList); + $scope.userProvidedControl.setList(parameters.userProvidedList); + + $scope.isSpinnerVisible = false; + if (dontshow) + $scope.isDataVisible = false; + else + $scope.isDataVisible = true; + $scope.isConfirmEnabled = true; + }; + + $scope.userParameterChanged = function(id) { + DeleteResumeService.updateUserParameterList(id, $scope.userProvidedControl); + } + + $scope.confirm = function() { + var requiredFields = $scope.userProvidedControl.getRequiredFields(); + if (requiredFields === "") { + $scope.isErrorVisible = false; + } else { + showError(FIELD.ERROR.MISSING_DATA, requiredFields); + return; + } + + + + var callbackAfterMSO = function(isSuccessful) { + if (isSuccessful) { + $scope.popup.isVisible = false; + runCallback(true); + } else { + $scope.isDialogVisible = true; + } + }; + + + $scope.isDialogVisible = false; + + if ($scope.dialogMethod == COMPONENT.DELETE) + { + + var requestDetails = DeleteResumeService.getMsoRequestDetails($scope.userProvidedControl.getList()); + + if(DeleteResumeService.isMacro === true){ + requestDetails.requestParameters.aLaCarte = false; + } + + $scope.$broadcast(COMPONENT.MSO_DELETE_REQ, { + url : DeleteResumeService.getMsoUrl(), + requestDetails : requestDetails, + componentId: componentId, + callbackFunction : callbackAfterMSO + }); + } + else + if ($scope.dialogMethod == COMPONENT.RESUME) + { + CreationService.initializeComponent(componentId); + CreationService.setInventoryInfo(); + + var requestDetails = CreationService.getMsoRequestDetails($scope.userProvidedControl.getList()); + + + $scope.$broadcast(COMPONENT.MSO_CREATE_REQ, { + url : CreationService.getMsoUrl(), + requestDetails : requestDetails, + componentId: componentId, + callbackFunction : callbackAfterMSO + }); + + + } + + } + + $scope.cancel = function() { + $scope.isDialogVisible = false; + $scope.popup.isVisible = false; + runCallback(false); + } + + var runCallback = function(isSuccessful) { + if (angular.isFunction(callbackFunction)) { + callbackFunction({ + isSuccessful : isSuccessful + }); + } + } +} + +appDS2.controller("deleteResumeDialogController", [ "COMPONENT", "FIELD", "$scope", "$http", + "$timeout", "$log", "DeleteResumeService","CreationService", "UtilityService", + deleteResumeDialogController]); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/msoCommitController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/msoCommitController.js index 65fac289a..dd3ba50f0 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/msoCommitController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/msoCommitController.js @@ -64,25 +64,42 @@ */
var msoCommitController = function(COMPONENT, FIELD, $scope, $http, $timeout, $window, $log,
- MsoService, PropertyService, UtilityService, DataService) {
+ MsoService, PropertyService, UtilityService, TestEnvironmentsService) {
$scope.isViewVisible = false;
$scope.progressBarControl = {};
$scope.popupWindowControl = {};
-
+ var getRequestStatusFunc = getOrchestrationRequestStatus; //default
var _this = this;
$scope.$on("createInstance", function(event, request) {
- init(request, COMPONENT.MSO_CREATE_REQ );
+ init(request, COMPONENT.MSO_CREATE_REQ, getOrchestrationRequestStatus );
MsoService.createInstance(request, handleInitialResponse);
});
$scope.$on("deleteInstance", function(event, request) {
- init(request, COMPONENT.MSO_DELETE_REQ);
+ init(request, COMPONENT.MSO_DELETE_REQ, getOrchestrationRequestStatus);
MsoService.deleteInstance(request, handleInitialResponse);
});
- var init = function(request, msoRequestType ) {
+ $scope.$on(COMPONENT.MSO_CREATE_ENVIRONMENT, function(event, request) {
+ init(request, COMPONENT.MSO_CREATE_ENVIRONMENT, getCloudResourcesRequestStatus);
+ TestEnvironmentsService.createApplicationEnv(request).then(handleInitialResponse);
+ });
+
+ $scope.$on(COMPONENT.MSO_DEACTIVATE_ENVIRONMENT, function(event, request) {
+ init(request, COMPONENT.MSO_DEACTIVATE_ENVIRONMENT, getCloudResourcesRequestStatus);
+ TestEnvironmentsService.deactivateApplicationEnv(request).then(handleInitialResponse)
+ });
+
+ $scope.$on(COMPONENT.MSO_ACTIVATE_ENVIRONMENT, function(event, request) {
+ init(request, COMPONENT.MSO_ACTIVATE_ENVIRONMENT, getCloudResourcesRequestStatus);
+ TestEnvironmentsService.activateApplicationEnv(request).then(handleInitialResponse)
+ });
+
+
+ var init = function(request, msoRequestType, getStatusRequest ) {
+ getRequestStatusFunc = getStatusRequest;
$scope.status = FIELD.STATUS.SUBMITTING_REQUEST;
$scope.isSpinnerVisible = true;
$scope.isProgressVisible = true;
@@ -109,13 +126,13 @@ var msoCommitController = function(COMPONENT, FIELD, $scope, $http, $timeout, $w showError(FIELD.ERROR.SYSTEM_FAILURE, UtilityService
.getHttpErrorMessage(response));
});
- }
+ };
var handleInitialResponse = function(response) {
try {
updateViewAfterInitialResponse(response);
- _this.timer = $timeout(getRequestStatus, PropertyService
+ _this.timer = $timeout(getRequestStatusFunc, PropertyService
.getMsoMaxPollingIntervalMsec());
$scope.instanceId = response.data.entity.instanceId;
@@ -133,11 +150,16 @@ var msoCommitController = function(COMPONENT, FIELD, $scope, $http, $timeout, $w }
}
- var getRequestStatus = function() {
- MsoService.getOrchestrationRequest(_this.requestId, handleGetResponse);
+ function getOrchestrationRequestStatus() {
+ MsoService.getOrchestrationRequest(_this.requestId, handleGetStatusResponse);
}
- var handleGetResponse = function(response) {
+ function getCloudResourcesRequestStatus() {
+ TestEnvironmentsService.getRequestStatus(_this.requestId, handleGetStatusResponse);
+ }
+
+
+ var handleGetStatusResponse = function(response) {
try {
if (isUpdateViewAfterGetResponseComplete(response)) {
return;
@@ -147,7 +169,7 @@ var msoCommitController = function(COMPONENT, FIELD, $scope, $http, $timeout, $w _this.isMsoError = true;
showError(FIELD.ERROR.MAX_POLLS_EXCEEDED);
} else {
- _this.timer = $timeout(getRequestStatus, PropertyService
+ _this.timer = $timeout(getRequestStatusFunc, PropertyService
.getMsoMaxPollingIntervalMsec());
}
} catch (error) {
@@ -296,5 +318,5 @@ var msoCommitController = function(COMPONENT, FIELD, $scope, $http, $timeout, $w }
appDS2.controller("msoCommitController", [ "COMPONENT", "FIELD", "$scope", "$http", "$timeout",
- "$window", "$log", "MsoService", "PropertyService", "UtilityService",
+ "$window", "$log", "MsoService", "PropertyService", "UtilityService", "TestEnvironmentsService",
msoCommitController ]);
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/msoCommitModalController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/msoCommitModalController.js new file mode 100644 index 000000000..148b4ccec --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/msoCommitModalController.js @@ -0,0 +1,237 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +"use strict"; + +var msoCommitModalController = function(COMPONENT, FIELD, $scope, $http, $timeout, $window, $log, + MsoService, PropertyService, UtilityService, DataService, $uibModalInstance, msoType, requestParams, vidService) { + + $scope.isSpinnerVisible = true; + $scope.isProgressVisible = true; + $scope.status = FIELD.STATUS.SUBMITTING_REQUEST; + $scope.error = ""; + $scope.log = ""; + $scope.progressBarControl = {}; + $scope.isCloseEnabled = false; + + var _this = this; + _this.pollAttempts = 0; + _this.callbackFunction = requestParams.callbackFunction; + _this.isMsoError = false; + + + if (angular.isFunction($scope.progressBarControl.reset)) { + $scope.progressBarControl.reset(); + } + $scope.percentProgress = 2; // Show "a little" progress + + + /* + * Updates the view and returns "true" if the MSO operation has returned a + * "Complete" status. + */ + var isUpdateViewAfterGetResponseComplete = function(response) { + //console.log("msoCommitController isUpdateViewAfterGetResponseComplete"); + updateLogFinalResponse(response); + + var requestStatus = UtilityService.checkUndefined(FIELD.ID.REQUEST_STATUS, + UtilityService.checkUndefined(FIELD.ID.REQUEST, + response.data.entity.request).requestStatus); + + var requestState = requestStatus.requestState; + console.log("msoCommitController requestState=" + requestState); + // look for "progress" or "pending" + var patt1 = /progress/i; + var patt2 = /pending/i; + var result1 = patt1.test(requestState); + var result2 = patt2.test(requestState); + if (result1 || result2) { + requestState = FIELD.STATUS.IN_PROGRESS; + } + var statusMessage = requestStatus.statusMessage; + console.log("msoCommitController statusMessage=" + statusMessage); + if (UtilityService.hasContents(statusMessage)) { + $scope.status = requestState + " - " + statusMessage; + } else { + $scope.status = requestState; + } + if (UtilityService.hasContents(requestStatus.percentProgress)) { + $scope.percentProgress = requestStatus.percentProgress; + } + + if ( (requestState.toLowerCase() === FIELD.STATUS.FAILED.toLowerCase()) || (requestState.toLowerCase() === FIELD.STATUS.UNLOCKED.toLowerCase())) { + throw { + type : FIELD.STATUS.MSO_FAILURE + }; + } + + if (requestState.toLowerCase() === FIELD.STATUS.COMPLETE.toLowerCase()) { + $scope.isSpinnerVisible = false; + return true; + } + + return false; + }; + + var handleGetResponse = function(response) { + try { + if (isUpdateViewAfterGetResponseComplete(response)) { + return; + } + if (++_this.pollAttempts > PropertyService.getMsoMaxPolls()) { + _this.isMsoError = true; + showError(FIELD.ERROR.MAX_POLLS_EXCEEDED); + } else { + _this.timer = $timeout(getRequestStatus, PropertyService + .getMsoMaxPollingIntervalMsec()); + } + } catch (error) { + _this.isMsoError = true; + MsoService.showResponseContentError(error, showError); + } + }; + + var showError = function(summary, details) { + var message = summary; + if (UtilityService.hasContents(details)) { + message += " (" + details + ")"; + } + $scope.isSpinnerVisible = false; + $scope.isProgressVisible = false; + $scope.error = message; + $scope.status = FIELD.STATUS.ERROR; + }; + + var getRequestStatus = function() { + MsoService.getOrchestrationRequest(_this.requestId, handleGetResponse); + }; + + var updateLog = function(response) { + $scope.log = MsoService.getFormattedCommonResponse(response) + + $scope.log; + UtilityService.checkUndefined("entity", response.data.entity); + UtilityService.checkUndefined("status", response.data.status); + MsoService.checkValidStatus(response); + }; + + var updateLogFinalResponse = function(response) { + $scope.log = MsoService.getFormattedSingleGetOrchestrationRequestResponse(response) + + $scope.log; + UtilityService.checkUndefined("entity", response.data.entity); + UtilityService.checkUndefined("status", response.data.status); + MsoService.checkValidStatus(response); + }; + + var updateViewAfterInitialResponse = function(response) { + $scope.isCloseEnabled = true; + updateLog(response); + + _this.requestId = UtilityService.checkUndefined(FIELD.ID.REQUEST_ID, + UtilityService.checkUndefined(FIELD.ID.REQUEST_REFERENCES, + response.data.entity.requestReferences).requestId); + + $scope.percentProgress = 4; // Show "a little more" progress + $scope.status = FIELD.STATUS.IN_PROGRESS; + }; + + var init = function(msoType) { + switch(msoType) { + case COMPONENT.MSO_CREATE_REQ: + return MsoService.createConfigurationInstance(requestParams); + case COMPONENT.MSO_CHANGE_CONFIG_STATUS_REQ: + return MsoService.toggleConfigurationStatus(requestParams); + case COMPONENT.MSO_CHANGE_PORT_STATUS_REQ: + return MsoService.togglePortStatus(requestParams); + case COMPONENT.MSO_CREATE_REALATIONSHIP: + return MsoService.associatePnf(requestParams); + case COMPONENT.MSO_REMOVE_RELATIONSHIP: + return MsoService.dissociatePnf(requestParams); + case COMPONENT.MSO_ACTIVATE_SERVICE_REQ: + return MsoService.activateInstance(requestParams); + case COMPONENT.MSO_DEACTIVATE_SERVICE_REQ: + return MsoService.deactivateInstance(requestParams); + } + }; + + var successCallbackFunction = function(response) { + try { + updateViewAfterInitialResponse(response); + _this.timer = $timeout(getRequestStatus, PropertyService + .getMsoMaxPollingIntervalMsec()); + + $scope.instanceId = response.data.entity.instanceId; + if ($scope.instanceId == null) { + $scope.instanceId = response.data.entity.requestReferences.instanceId; + } + } catch (error) { + if ( response.data != null && response.data.status != null ) { + if (response.data.status > 299 || response.data.status < 200 ) { + // MSO returned an error + _this.isMsoError = true; + } + } + MsoService.showResponseContentError(error, showError); + } + }; + + var errorCallbackFunction = function (error) { + UtilityService.setHttpErrorHandler(function(error) { + $scope.isCloseEnabled = true; + _this.isMsoError = true; + showError(FIELD.ERROR.SYSTEM_FAILURE, UtilityService + .getHttpErrorMessage(error)); + }); + }; + + $scope.close = function() { + $uibModalInstance.dismiss('cancel'); + + if (_this.timer !== undefined) { + $timeout.cancel(_this.timer); + } + + if (angular.isFunction(_this.callbackFunction)) { + if ($scope.error === "") { + _this.callbackFunction({ + isSuccessful : true, + instanceId : $scope.instanceId + }); + } else { + _this.callbackFunction({ + isSuccessful : false + }); + } + } + }; + + _this.msoRequestType = msoType; + + init(_this.msoRequestType) + .then(function (response) { + successCallbackFunction(response); + }) + .catch(function (error) { + errorCallbackFunction(error); + }); +}; + +appDS2.controller("msoCommitModalController", [ "COMPONENT", "FIELD", "$scope", "$http", "$timeout", + "$window", "$log", "MsoService", "PropertyService", "UtilityService", "DataService", "$uibModalInstance", "msoType", "requestParams", "vidService", + msoCommitModalController ]); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/pnfSearchAssociationController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/pnfSearchAssociationController.js new file mode 100644 index 000000000..22a20abf8 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/pnfSearchAssociationController.js @@ -0,0 +1,138 @@ +/*- +* ============LICENSE_START======================================================= +* VID +* ================================================================================ +* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +* ================================================================================ +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* ============LICENSE_END========================================================= +*/ + +/** + * The Instantiation (or View/Edit) Controller controls the instantiation/removal of + * deployable objects (Services, VNFs, VF-Modules, Networks, and Volume-Groups) + */ + +"use strict"; + +appDS2.controller("pnfSearchAssociationController", ["COMPONENT", "$log", "FIELD", "PARAMETER", "DataService", "CreationService", "$scope", "$window", "$location", "AaiService", "$uibModal", "UtilityService", "vidService", "$timeout", + function (COMPONENT, $log, FIELD, PARAMETER, DataService, CreationService, $scope, $window, $location, AaiService, $uibModal, UtilityService, vidService, $timeout) { + + var requestParams = {}; + + $scope.selectedMetadata = {}; + + $scope.serviceMetadataFields = []; + $scope.nodeTemplateFields = {}; + + $scope.pnfInstance= false; + $scope.notFound= false; + + $scope.pnfMetadata = []; + + $scope.errorMsg = FIELD.ERROR.INSTANCE_NAME_VALIDATE; + + $scope.modelName = DataService.getModelInfo(COMPONENT.VNF).modelCustomizationName; + + var handleGetParametersResponse = function(parameters) { + $scope.serviceMetadataFields = parameters.summaryList; + $scope.serviceMetadataFields.forEach(function (t, number) { + $scope.serviceMetadataFields[number].key = $scope.serviceMetadataFields[number].name.split(' ').join('') + }) + $scope.nodeTemplateFields = _.keyBy(parameters.userProvidedList, 'id'); + }; + + CreationService.initializeComponent(COMPONENT.VNF); + + CreationService.getParameters(handleGetParametersResponse); + + $scope.back = function() { + $window.history.back(); + }; + + $scope.searchPnf = function(pnfName) { + $scope.pnfInstance= false; + $scope.notFound=false; + + AaiService.getPnfByName(pnfName) + .then(function (response) { + $scope.pnfInstance = response.data; + requestParams.pnf = response.data.pnfName; + }) + .catch(function (error) { + $scope.pnfNameNotFound= pnfName; + $scope.notFound= true; + }); + + } + var modalInstance; + + $scope.associate = function() { + + requestParams.serviceModelInfo = vidService.getModel().service; + requestParams.attuuid = DataService.getLoggedInUserId(); + requestParams.instanceId = DataService.getServiceInstanceId(); + + modalInstance = $uibModal.open({ + templateUrl: 'app/vid/scripts/modals/mso-commit/mso-commit.html', + controller: "msoCommitModalController", + backdrop: false, + resolve: { + msoType: function () { + return COMPONENT.MSO_CREATE_REALATIONSHIP; + }, + requestParams: function () { + requestParams.callbackFunction = updateViewCallbackFunction; + return requestParams; + } + } + }) + + + }; + + var updateViewCallbackFunction = function(response) { + $scope.callbackResults = ""; + var color = FIELD.ID.COLOR_NONE; + $scope.callbackStyle = { + "background-color" : color + }; + + /* + * This 1/2 delay was only added to visually highlight the status + * change. Probably not needed in the real application code. + */ + $timeout(function() { + $scope.callbackResults = UtilityService.getCurrentTime() + + FIELD.STATUS.IS_SUCCESSFUL + response.isSuccessful; + if (response.isSuccessful) { + color = FIELD.ID.COLOR_8F8; + $scope.back(); + } else { + color = FIELD.ID.COLOR_F88; + } + $scope.callbackStyle = { + "background-color" : color + }; + }, 500); + }; + + + $scope.cancel = function() { + modalInstance.dismiss('cancel'); + }; + + + }]); + + diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/testEnvironmentsController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/testEnvironmentsController.js new file mode 100644 index 000000000..f5c3a0e0a --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/testEnvironmentsController.js @@ -0,0 +1,102 @@ +(function () { + 'use strict'; + + appDS2.controller("testEnvironmentsController", ["$uibModal", "TestEnvironmentsService", "$log", "$rootScope", "$scope", "COMPONENT", testEnvironmentsController]); + + function testEnvironmentsController($uibModal, TestEnvironmentsService, $log, $rootScope, $scope, COMPONENT) { + var vm = this; + + var toggleValue; + + var init = function() { + vm.loadAAIestEnvironments(); + }; + + vm.loadAAIestEnvironments = function() { + TestEnvironmentsService.loadAAIestEnvironments("VNF") + .then(function(response) { + vm.environments = response.operationalEnvironment; + vm.connectError = false; + if(!vm.environments.length) { + vm.emptyData = true; + } + }) + .catch(function (error) { + vm.connectError = error.message || "Unknown error"; + $log.error(error); + }); + }; + + function handleEnvActionComplete(result) { + if (result.isSuccessful) { + vm.loadAAIestEnvironments(); + } + $scope.popup.isVisible = false; + } + + vm.onTestEnvActivateClick = function(testEnv) { + var modalInstance = $uibModal.open({ + templateUrl: 'app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.html', + controller: 'attachTestEnvManifestController', + controllerAs: 'vm', + resolve: {} + }); + + modalInstance.result.then(function (result) { + if (result) { + + var relatedEcompEnv = _.find(testEnv.relationshipList.relationship, { relatedTo: "operational-environment" }); + + var manifest = result; + var envId = testEnv.operationalEnvironmentId; + var relatedInstanceId = + _.find(relatedEcompEnv.relationshipData, {"relationshipKey": "operational-environment.operational-environment-id"}) + .relationshipValue; + var relatedInstanceName = + _.find(relatedEcompEnv.relatedToProperty, {"propertyKey": "operational-environment.operational-name"}) + .propertyValue; + var workloadContext = testEnv.workloadContext; + + $rootScope.$broadcast(COMPONENT.MSO_ACTIVATE_ENVIRONMENT, { + url: COMPONENT.MSO_ACTIVATE_ENVIRONMENT, + envId: envId, + relatedInstanceId: relatedInstanceId, + relatedInstanceName: relatedInstanceName, + workloadContext: workloadContext, + manifest: manifest, + callbackFunction: handleEnvActionComplete + }); + + } + }); + }; + + vm.onTestEnvDeactivateClick = function(testEnv) { + var envId = testEnv.operationalEnvironmentId; + $rootScope.$broadcast(COMPONENT.MSO_DEACTIVATE_ENVIRONMENT, { + url : COMPONENT.MSO_DEACTIVATE_ENVIRONMENT, + envId : envId, + callbackFunction: handleEnvActionComplete + }); + }; + + vm.isEnvActive = function(testEnv) { + return testEnv.operationalEnvironmentStatus==='Activate'; + }; + + vm.getEnvStatus = function (testEnv) { + return this.isEnvActive(testEnv) ? "Active" : "Inactive"; + }; + + vm.createNewTestEnvironment = function() { + var modalInstance = $uibModal.open({ + templateUrl: 'app/vid/scripts/modals/new-test-environment/new-test-environment.html', + controller: 'newTestEnvironmentModalController', + controllerAs: 'vm', + resolve: {} + }); + }; + + init(); + } +})();
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/directives/messageViewer.js b/vid-app-common/src/main/webapp/app/vid/scripts/directives/messageViewer.js new file mode 100644 index 000000000..8ff67fac1 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/directives/messageViewer.js @@ -0,0 +1,17 @@ +"use strict"; + +appDS2.directive('messageViewer', function() { + return { + restrict : "E", + templateUrl: 'app/vid/scripts/view-models/messageViewer.htm', + scope: { + primaryMessage:'@', + icon:'@', + secondaryMessage:'@', + tryAgain:'&' + }, + link: function(scope, elem, attrs) { + scope.showTryAgain = angular.isDefined(attrs.tryAgain); + } + } +});
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js index e57b43ec4..d36b3823f 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js @@ -20,7 +20,7 @@ "use strict";
-var parameterBlockDirective = function($log, PARAMETER, UtilityService) {
+var parameterBlockDirective = function($log, PARAMETER, UtilityService, $compile) {
/*
* If "IS_SINGLE_OPTION_AUTO_SELECTED" is set to "true" ...
*
@@ -221,6 +221,9 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) { + additionalStyle + "'>" + getOptionListHtml(parameter)
+ "</select>";
break;
+ case PARAMETER.MULTI_SELECT:
+ return '<multiselect id="' + parameter.id + '"' + attributeString + ' ng-model="multiselectModel.' + parameter.id + '" options="getOptionsList(\'' + parameter.id + '\')" display-prop="name" id-prop="id"></multiselect>';
+ break;
case PARAMETER.STRING:
default:
var value = "";
@@ -255,9 +258,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) { }
if (UtilityService.hasContents(parameter.prompt)) {
- if (!(IS_SINGLE_OPTION_AUTO_SELECTED && parameter.optionList.length === 1) || !(parameter.isSingleOptionAutoSelected && parameter.optionList.length === 1)) {
html += "<option value=''>" + parameter.prompt + "</option>";
- }
}
for (var i = 0; i < parameter.optionList.length; i++) {
@@ -298,7 +299,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) { var getParameter = function(element, expectedId) {
var id = $(element).attr("parameter-id");
- if (expectedId !== undefined && expectedId !== id) {
+ if (!id || (expectedId !== undefined && expectedId !== id)) {
return undefined;
}
var parameter = {
@@ -327,14 +328,20 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) { };
var getRequiredField = function(element) {
- if ($(element).prop("type") === "text") {
- $(element).val($(element).val().trim());
+ if($(element).is("multiselect")) {
+ if(!$(element).find(".active").text().trim()) {
+ return '"' + $(element).attr("parameter-name") + '"';
+ }
}
- if ($(element).val() === "" || $(element).val() === null) {
- return '"' + $(element).attr("parameter-name") + '"';
- } else {
- return "";
+ else {
+ if ($(element).prop("type") === "text") {
+ $(element).val($(element).val().trim());
+ }
+ if ($(element).val() === "" || $(element).val() === null) {
+ return '"' + $(element).attr("parameter-name") + '"';
+ }
}
+ return "";
};
var callback = function(element, scope) {
@@ -354,13 +361,20 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) { link : function(scope, element, attrs) {
var control = scope.control || {};
+ scope.multiselectModel = {};
+ scope.getOptionsList = function (parameterId) {
+ return _.find(scope.parameterList, {'id': parameterId})["optionList"];
+ };
control.setList = function(parameterList) {
+ scope.parameterList = parameterList;
+ scope.multiselectModel = {};
var html = "";
for (var i = 0; i < parameterList.length; i++) {
html += getParameterHtml(parameterList[i], attrs.editable);
}
- element.html(html);
+ element.replaceWith($compile(element.html(html))(scope));
+
element.find("input, select").bind("change", function() {
callback(this, scope);
});
@@ -390,13 +404,16 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) { parameterList.push(parameter);
}
});
+ angular.forEach(scope.multiselectModel, function(value, key) {
+ parameterList.push({id: key, value: value});
+ });
return parameterList;
}
control.getRequiredFields = function() {
var requiredFields = "";
var count = 0;
- element.find("input, select").each(function() {
+ element.find("input, select, multiselect").each(function() {
if ($(this).attr("is-required") === "true") {
var requiredField = getRequiredField(this);
if (requiredField !== "") {
@@ -418,7 +435,7 @@ var parameterBlockDirective = function($log, PARAMETER, UtilityService) { }
}
-appDS2.directive('parameterBlock', [ "$log", "PARAMETER", "UtilityService",
+appDS2.directive('parameterBlock', [ "$log", "PARAMETER", "UtilityService", "$compile",
parameterBlockDirective ]);
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js.orig b/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js.orig deleted file mode 100644 index 0e937826a..000000000 --- a/vid-app-common/src/main/webapp/app/vid/scripts/directives/parameterBlockDirective.js.orig +++ /dev/null @@ -1,507 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * VID - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -"use strict"; - -var parameterBlockDirective = function($log, PARAMETER, UtilityService) { - /* - * If "IS_SINGLE_OPTION_AUTO_SELECTED" is set to "true" ... - * - * IF these 3 conditions all exist: - * - * 1) The parameter type is PARAMETER.SELECT - * - * 2) AND the "prompt" attribute is set to a string. - * - * 3) AND the optionList" only contains a single entry - * - * THEN the "prompt" will not be displayed as an initial select option. - */ - - var IS_SINGLE_OPTION_AUTO_SELECTED = true; - - /* - * Optionally remove "nameStyle" and "valueStyle" "width" entries to set - * dynamic sizing. - */ - var tableStyle = "width: auto; margin: 0 auto; border-collapse: collapse; border: none;"; - var nameStyle = "width: 220px; text-align: left; vertical-align: middle; font-weight: bold; padding: 3px 5px; border: none;"; - var valueStyle = "width: 400px; text-align: left; vertical-align: middle; padding: 3px 5px; border: none;"; - var checkboxValueStyle = "width: 400px; text-align: center; vertical-align: middle; padding: 3px 5px; border: none;" - var textInputStyle = "height: 25px; padding: 2px 5px;"; - var checkboxInputStyle = "height: 18px; width: 18px; padding: 2px 5px;"; - var selectStyle = "height: 25px; padding: 2px; text-align: center;"; - var requiredLabelStyle = "width: 25px; padding: 5px 10px 10px 5px;"; - - - var getParameterHtml = function(parameter, editable) { - var style = valueStyle; - var attributeString = ""; - if (parameter.type === PARAMETER.BOOLEAN) { - style = checkboxValueStyle; - } - if (UtilityService.hasContents(parameter.description)) { - attributeString += " title=' " + parameter.description + " '"; - } - var rowstyle=''; - if(parameter.type == 'file' && !parameter.isVisiblity){ - rowstyle = ' style="display:none;"'; - } - var html = "<tr"+rowstyle+"><td style='" + nameStyle + "'" + attributeString + ">" - + getNameHtml(parameter) + "</td>"; - if (editable === undefined) { - if (UtilityService.hasContents(parameter.value)) { - html += "<td data-tests-id='" + getParameterName(parameter) + "' style='" + style + "'>" + parameter.value; - } else { - html += "<td data-tests-id='" + getParameterName(parameter) + "' style='" + style + "'>"; - } - } else { - html += "<td style='" + style + "'>" + getValueHtml(parameter); - } - html += "</td></tr>"; - return html; - }; - - var updateParameter = function(parameter, element, editable) { - $(element).parent().parent().children("td").first().html( - getNameHtml(parameter)); - if (editable === undefined) { - $(element).html(parameter.value); - } else { - $(element).parent().html(getValueHtml(parameter)); - } - }; - - var getNameHtml = function(parameter) { - if (parameter.isVisible === false) { - return ""; - } - var name = getParameterName(parameter); - - var requiredLabel = ""; - if (parameter.isRequired) { - requiredLabel = "<img src='app/vid/images/asterisk.png' style='" - + requiredLabelStyle + "'></img>"; - } - return name + ":" + requiredLabel; - }; - - var getParameterName = function(parameter) { - var name = ""; - if (UtilityService.hasContents(parameter.name)) { - name = parameter.name; - } else { - name = parameter.id; - } - return name; - } - - var getValueHtml = function(parameter) { - - var textInputPrompt = "Enter data"; - var attributeString = " data-tests-id='" + parameter.id +"' parameter-id='" + parameter.id + "'"; - var additionalStyle = ""; - if (parameter.isEnabled === false) { - attributeString += " disabled='disabled'"; - } - if (parameter.isRequired) { - attributeString += " is-required='true'"; - } - if (UtilityService.hasContents(parameter.description)) { - attributeString += " title=' " + parameter.description + " '"; - } - if (UtilityService.hasContents(parameter.isReadOnly) && (parameter.isReadOnly === true)) { - attributeString += " readonly"; - } - if ( (UtilityService.hasContents(parameter.maxLength)) && (UtilityService.hasContents(parameter.minLength)) ) { - attributeString += " pattern='.{" + parameter.minLength + "," + parameter.maxLength + "}' required"; - } - else if (UtilityService.hasContents(parameter.maxLength)) { - attributeString += " maxlength='" + parameter.maxLength + "'"; - } - else if (UtilityService.hasContents(parameter.minLength)) { - attributeString += " pattern='.{" + parameter.minLength + ",}'" - } - if (parameter.isVisible === false) { - additionalStyle = " visibility: hidden;"; - } - - var name = ""; - if (UtilityService.hasContents(parameter.name)) { - name = parameter.name; - } else { - name = parameter.id; - } - attributeString += " parameter-name='" + name + "'"; - - if ( parameter.type === PARAMETER.MAP ) { - textInputPrompt = "{<key1>: <value1>,\.\.\.,<keyN>: <valueN>}"; - } - - if ( parameter.type === PARAMETER.LIST ) { - textInputPrompt = "[<value1>,\.\.\.,<valueN>]"; - } - - switch (parameter.type) { - case PARAMETER.BOOLEAN: - if (parameter.value) { - return "<select" + attributeString + " style='" + selectStyle - + additionalStyle + "'>" + "<option value=true>true</option>" - + "<option value=false>false</option>"; - + "</select>"; - }else{ - return "<select" + attributeString + " style='" + selectStyle - + additionalStyle + "'>" + "<option value=false>false</option>" - + "<option value=true>true</option>" - + "</select>"; - } - break; - case PARAMETER.CHECKBOX: - if (parameter.value) { - return "<input type='checkbox' "+attributeString+ " checked='checked' style='"+checkboxInputStyle+"'" - + " value='true'/>"; - }else{ - return "<input type='checkbox' "+attributeString+ "' style='"+checkboxInputStyle+"'" - + " value='false'/>"; - } - break; - case PARAMETER.FILE: - return "<input type='file' "+attributeString+ " id='"+parameter.id+"' value='"+parameter.value+"'/>"; - break; - case PARAMETER.NUMBER: - var value=parameter.value; - var parameterSpec = "<input type='number'" + attributeString + " style='" + textInputStyle + additionalStyle + "'"; - - if ( UtilityService.hasContents(parameter.min) ) { - parameterSpec += " min='" + parameter.min + "'"; - } - if ( UtilityService.hasContents(parameter.max) ) { - parameterSpec += " max='" + parameter.max + "'"; - } - if (UtilityService.hasContents(value)) { - parameterSpec += " value='" + value + "'"; - } - parameterSpec += ">"; - - /*if(!isNaN(value) && value.toString().index('.') != -1){ - //float - return "<input type='text'" + attributeString + " style='" - + textInputStyle + additionalStyle + "' only-integers" + value - + "></input>"; - } else { - //integer - return "<input type='text'" + attributeString + " style='" - + textInputStyle + additionalStyle + "' only-float" + value - + "></input>"; - }*/ - return (parameterSpec); - break; - case PARAMETER.SELECT: - if (UtilityService.hasContents(parameter.prompt)) { - attributeString += " prompt='" + parameter.prompt + "'"; - } - return "<select" + attributeString + " style='" + selectStyle - + additionalStyle + "'>" + getOptionListHtml(parameter) - + "</select>"; - break; - case PARAMETER.STRING: - default: - var value = ""; - if (UtilityService.hasContents(parameter.value)) { - value = " value='" + parameter.value + "'"; - } - if (UtilityService.hasContents(parameter.prompt)) { - attributeString += " placeholder='" + parameter.prompt + "'"; - } else if (textInputPrompt !== "") { - attributeString += " placeholder='" + textInputPrompt + "'"; - } - var finalString = "<input type='text'" + attributeString + " style='" - + textInputStyle + additionalStyle + "'" + value - + ">"; - return finalString; - } - }; - - - var getBooleanListHtml = function(parameter){ - var html = ""; - - }; - - var getOptionListHtml = function(parameter) { - -<<<<<<< HEAD - var html = ""; - - if (!angular.isArray(parameter.optionList) - || parameter.optionList.length === 0) { - return ""; - } - - if (UtilityService.hasContents(parameter.prompt)) { - if (!(IS_SINGLE_OPTION_AUTO_SELECTED && parameter.optionList.length === 1) || !(parameter.isSingleOptionAutoSelected && parameter.optionList.length === 1)) { - html += "<option value=''>" + parameter.prompt + "</option>"; - } - } - - for (var i = 0; i < parameter.optionList.length; i++) { - var option = parameter.optionList[i]; - var name = option.name; - var value = ""; - if (option.id === undefined) { - value = option.name; - } else { - if (name === undefined) { - name = option.id; - } - value = option.id; - } - if (option.isDefault === undefined || option.isDefault === false ) { - html += "<option value='" + value + "'>" + name + "</option>"; - } - else { - html += "<option value='" + value + "' selected>" + name + "</option>"; - } - } - return html; -======= - var html = ""; - - if (!angular.isArray(parameter.optionList) - || parameter.optionList.length === 0) { - return ""; - } - - if (UtilityService.hasContents(parameter.prompt)) { - if (!(IS_SINGLE_OPTION_AUTO_SELECTED && parameter.optionList.length === 1)) { - html += "<option value=''>" + parameter.prompt + "</option>"; - } - } - - for (var i = 0; i < parameter.optionList.length; i++) { - var option = parameter.optionList[i]; - var name = option.name; - var value = ""; - if (option.id === undefined) { - value = option.name; - } else { - if (name === undefined) { - name = option.id; - } - value = option.id; - } - html += getOptionHtml(option.isPermitted, option.isDataLoading, value, name, parameter); - } - return html; ->>>>>>> 7e45cad... merge - }; - - function getOptionHtml(isPermitted, isDefault, value, name, parameter) { - var html = ""; - if (isDefault === undefined || isDefault === false ) { - if(isPermitted) - html = "<option class='" + parameter.id + "Option' value='" + value + "'>" + name + "</option>"; - else { - html = "<option class='" + parameter.id + "Option' value='" + value + "' disabled>" + name + "</option>"; - } - } - else { - if(isPermitted) - html = "<option class='" + parameter.id + "Option' value='" + value + "'>" + "' selected>" + name + "</option>"; - else { - html = "<option class='" + parameter.id + "Option' value='" + value + "' disabled>" + "' selected>" + name + "</option>"; - } - } - return html; - } - - var getParameter = function(element, expectedId) { - var id = $(element).attr("parameter-id"); - if (expectedId !== undefined && expectedId !== id) { - return undefined; - } - var parameter = { - id : id - }; - if ($(element).prop("type") === "checkbox") { - parameter.value = $(element).prop("checked"); - }else if ($(element).prop("type") === "file") { - parameter.value = $('#'+id).attr("value"); - - } else { - if ($(element).prop("type") === "text") { - $(element).val($(element).val().trim()); - } - parameter.value = $(element).val(); - } - if ($(element).prop("selectedIndex") === undefined) { - parameter.selectedIndex = -1; - } else { - parameter.selectedIndex = $(element).prop("selectedIndex"); - if (UtilityService.hasContents($(element).attr("prompt"))) { - parameter.selectedIndex--; - } - } - return parameter; - }; - - var getRequiredField = function(element) { - if ($(element).prop("type") === "text") { - $(element).val($(element).val().trim()); - } - if ($(element).val() === "" || $(element).val() === null) { - return '"' + $(element).attr("parameter-name") + '"'; - } else { - return ""; - } - }; - - var callback = function(element, scope) { - scope.callback({ - id : $(element).attr("parameter-id") - }); - }; - - return { - restrict : "EA", - replace : true, - template : "<div><table style='" + tableStyle + "'></table></div>", - scope : { - control : "=", - callback : "&" - }, - link : function(scope, element, attrs) { - - var control = scope.control || {}; - - control.setList = function(parameterList) { - var html = ""; - for (var i = 0; i < parameterList.length; i++) { - html += getParameterHtml(parameterList[i], attrs.editable); - } - element.html(html); - element.find("input, select").bind("change", function() { - callback(this, scope); - }); - } - - control.updateList = function(parameterList) { - element.find("input, select").each( - function() { - for (var i = 0; i < parameterList.length; i++) { - if (parameterList[i].id === $(this).attr( - "parameter-id")) { - updateParameter(parameterList[i], this, - attrs.editable); - } - } - }); - element.find("input, select").bind("change", function() { - callback(this, scope); - }); - } - - control.getList = function(expectedId) { - var parameterList = new Array(); - element.find("input, select").each(function() { - var parameter = getParameter(this, expectedId); - if (parameter !== undefined) { - parameterList.push(parameter); - } - }); - return parameterList; - } - - control.getRequiredFields = function() { - var requiredFields = ""; - var count = 0; - element.find("input, select").each(function() { - if ($(this).attr("is-required") === "true") { - var requiredField = getRequiredField(this); - if (requiredField !== "") { - if (++count == 1) { - requiredFields = requiredField; - } - } - } - }); - if (--count <= 0) { - return requiredFields; - } else if (count == 1) { - return requiredFields + " and 1 other field"; - } else { - return requiredFields + " and " + count + " other fields"; - } - } - } - } -} - -appDS2.directive('parameterBlock', [ "$log", "PARAMETER", "UtilityService", - parameterBlockDirective ]); - - -appDS2.directive('onlyIntegers', function () { - return { - restrict: 'A', - link: function (scope, elm, attrs, ctrl) { - elm.on('keydown', function (event) { - if(event.shiftKey){event.preventDefault(); return false;} - //console.log(event.which); - if ([8, 13, 27, 37, 38, 39, 40].indexOf(event.which) > -1) { - // backspace, enter, escape, arrows - return true; - } else if (event.which >= 49 && event.which <= 57) { - // numbers - return true; - } else if (event.which >= 96 && event.which <= 105) { - // numpad number - return true; - } - // else if ([110, 190].indexOf(event.which) > -1) { - // // dot and numpad dot - // return true; - // } - else { - event.preventDefault(); - return false; - } - }); - } - } -}); - -appDS2.directive('onlyFloat', function () { - return { - restrict: 'A', - link: function (scope, elm, attrs, ctrl) { - elm.on('keydown', function (event) { - if ([110, 190].indexOf(event.which) > -1) { - // dot and numpad dot - event.preventDefault(); - return true; - } - else{ - return false; - } - }); - } - } -}); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/directives/progressBarDirective.js b/vid-app-common/src/main/webapp/app/vid/scripts/directives/progressBarDirective.js index ed71436bb..76585f4bc 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/directives/progressBarDirective.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/directives/progressBarDirective.js @@ -58,7 +58,7 @@ * called immediately after HTML is rendered. This is due to a timing-related
* behavior.
*
- * 3) The progress bar displays values of "0" and "100" if precentProgress is,
+ * 3) The progress bar displays values of "0" and "100" if percentProgress is,
* respectively, less than 0 or greater than 100.
*
* CUSTOM STYLING:
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/directives/search.js b/vid-app-common/src/main/webapp/app/vid/scripts/directives/search.js new file mode 100644 index 000000000..05ae1211c --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/directives/search.js @@ -0,0 +1,11 @@ +"use strict"; + +appDS2.directive('searchText', function() { + return { + restrict : "E", + templateUrl: 'app/vid/scripts/view-models/search.htm', + scope: { + searchString : '=' + } + } +});
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoClientFactory.java b/vid-app-common/src/main/webapp/app/vid/scripts/directives/serviceMetadata.js index fb0ead440..1c15f7034 100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoClientFactory.java +++ b/vid-app-common/src/main/webapp/app/vid/scripts/directives/serviceMetadata.js @@ -18,20 +18,17 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.vid.mso; +"use strict"; -import org.openecomp.vid.mso.rest.MsoRestClientNew; - -/** - * A factory for creating MsoRestInterface objects. - */ -public class MsoClientFactory { - - /** - * MSO client factory that creates the right client according to env. - * @return - */ - public static MsoInterface getInstance() { - return new MsoRestClientNew(); +appDS2.directive('serviceMetadata', function() { + return { + restrict : "E", + templateUrl: 'app/vid/scripts/view-models/serviceMetadata.htm', + scope: { + serviceMetadataFields : '=', + titleTxt: '@' + }, + link : function(scope, element, attrs) { + } } -} +});
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-change-management/alert-change-management.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-change-management/alert-change-management.html index bdc95c98e..60596f499 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-change-management/alert-change-management.html +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-change-management/alert-change-management.html @@ -1,4 +1,4 @@ -<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/new-change-management/new-change-management.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/modal-create-new.css" /> <link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/alert-change-management/alert-change-management.css" /> <div class="modal-header"> <h3 class="modal-title" id="alert-modal-header">On Hold</h3> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.controller.js new file mode 100644 index 000000000..6cb3f9c89 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.controller.js @@ -0,0 +1,33 @@ +(function () { + 'use strict'; + + appDS2.controller("alertModalController", ["$uibModalInstance", "jobInfo", + "$log", alertModalController]); + + function alertModalController($uibModalInstance, jobInfo, $log) { + var vm = this; + var init = function() { + if (jobInfo) { + vm.content = jobInfo.message; + vm.mode = jobInfo.status; + if (vm.mode == "failed") { + vm.Header = "Failed" + } else if (vm.mode == "confirm") { + vm.Header = "Confirm" + } else { + vm.Header = "Success" + } + } + }; + + vm.close = function () { + $uibModalInstance.close(); + }; + + vm.ok = function () { + $uibModalInstance.close(true); + }; + + init(); + } +})();
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.css b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.css new file mode 100644 index 000000000..85382b0ee --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.css @@ -0,0 +1,15 @@ +.modal-header { + border-bottom-color: #ffb81c; +} +.modal-header.success { + border-bottom: 3px solid #4ca90c; +} +.modal-header.failed { + border-bottom: 3px solid #cf2a2a; +} +.modal-header.confirm { + border-bottom: 3px solid #009FDB; +} +.modal-footer { + border-radius: 0 0 6px 6px; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.html new file mode 100644 index 000000000..4fa9d4587 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-modal/alert-modal.html @@ -0,0 +1,15 @@ +<link rel="stylesheet" type="text/css" href="app/vid/styles/modals.css"> +<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/alert-modal/alert-modal.css" /> +<div class="modal-header" ng-class="vm.mode"> + <span class="modal-title" id="alert-modal-header">{{vm.Header}}</span> + <span id="cancel" ng-click="vm.close()" class="pull-right modal-close" aria-hidden="true">×</span> +</div> +<div class="modal-body"> + <span id="failed-modal-content">{{vm.content}}</span> +</div> +<div class="modal-footer"> + <div class="pull-right"> + <button data-tests-id="ok" id="ok-button" name="ok" class="btn" + ng-click="vm.ok()">OK</button> + </div> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.controller.js deleted file mode 100644 index 2c5eabed9..000000000 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.controller.js +++ /dev/null @@ -1,33 +0,0 @@ -(function () { - 'use strict'; - - appDS2.controller("alertNewSchedulerController", ["$uibModalInstance", "jobInfo", "MsoService", "COMPONENT", - "$log", alertNewSchedulerController]); - - function alertNewSchedulerController($uibModalInstance, jobInfo, MsoService, COMPONENT, $log) { - var vm = this; - - vm.manualTasks = []; - vm.MANUAL_TASKS = COMPONENT.MANUAL_TASKS; - var init = function() { - if (jobInfo) { - vm.content = jobInfo; - } else { - vm.content = "Successfully"; - } - - - - }; - - - - - - vm.close = function () { - $uibModalInstance.close(); - }; - - init(); - } -})();
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.css b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.css deleted file mode 100644 index 316c2e46e..000000000 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.css +++ /dev/null @@ -1,3 +0,0 @@ -.modal-header h3 { - border-bottom: 3px solid #ffb81c; -}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.html deleted file mode 100644 index e6255cf36..000000000 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.html +++ /dev/null @@ -1,12 +0,0 @@ -<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/new-change-management/new-change-management.css" /> -<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/alert-change-management/alert-change-management.css" /> -<div class="modal-header"> - <h3 class="modal-title" id="alert-modal-header">Response From Server</h3> - <span id="cancel" ng-click="vm.close()" class="pull-right modal-close" aria-hidden="true">×</span> -</div> -<div class="modal-body"> - <span id="alert-modal-content">{{vm.content}}</span> -</div> -<div class="modal-footer"> -<!-- <div ng-include="'app/vid/scripts/modals/change-management-manual-tasks-controller/change-management-manual-tasks.html'"></div> --> -</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.controller.js new file mode 100644 index 000000000..930240437 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.controller.js @@ -0,0 +1,58 @@ +(function () { + 'use strict'; + + appDS2.controller("attachTestEnvManifestController", ["$uibModalInstance", "$uibModal", "$log", "$scope", + attachTestEnvManifestController]); + + function attachTestEnvManifestController($uibModalInstance, $uibModal, $log, $scope) { + var vm = this; + + var init = function () { + vm.manifest = ""; + vm.error=""; + }; + + vm.close = function () { + $uibModalInstance.close(); + }; + + vm.submit = function () { + $uibModalInstance.close(vm.manifest); + }; + + vm.isSubmitDisabled = function () { + return !(vm.manifest); + }; + + + + /* + Must be $scope because we bind to the onchange of the html (cannot attached to vm variable). + We use scope because angular doesn't support ng-change on input file + https://github.com/angular/angular.js/issues/1375 + https://stackoverflow.com/questions/17922557/angularjs-how-to-check-for-changes-in-file-input-fields + */ + $scope.selectAttachmentManifest = function (fileInput) { + if (fileInput && fileInput.id) { + vm.manifest = ""; + vm.error=""; + var file = fileInput.files[0]; + vm.filename=file.name; + var fileReader = new FileReader(); + fileReader.onload = function (load) { + try { + var lines = load.target.result; + vm.manifest = JSON.parse(lines); + } catch (error) { + $log.error(error); + vm.error = "file: " + vm.filename + " is not a valid JSON" + } + $scope.$apply(); + }; + fileReader.readAsText(file); + } + }; + + init(); + } +})();
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.css b/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.css new file mode 100644 index 000000000..ff06addbb --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.css @@ -0,0 +1,109 @@ +.modal-header { + border: none!important; + padding: 10px 20px 0px 20px!important; + font-family: "OpenSans-Light"; + font-size: 22px; + color: #000000; +} + +.modal-header h3 { + font-family: "OpenSans-Light"; + color: #000000; + color: #000000; + font-size: 22px; + font-weight: 300; + line-height: 16px; + padding-bottom: 20px; + border-bottom: 3px solid #009fdb; + +} + +.control-label { + font-family: "OpenSans-Light"; + color: #5a5a5a; + font-size: 13px; + font-weight: 400; +} + +.modal-content { + width: 468px; + height: 242px; + border-radius: 8px; + background-color: #ffffff; +} + +body .modal-body { + padding-bottom: 0; + padding-top: 0; + padding-left: 20px; + padding-right: 20px; + width: 468px; + height: 91px; +} + +.modal-footer { + margin-top: 0; + background-color: #fff; +} + + +.modal-close { + margin: -60px 5px 0 0; + color: #5a5a5a; + font-size: 20px; + cursor: pointer; +} + +.inputfile { + width: 0.1px; + height: 0.1px; + opacity: 0; + overflow: hidden; + position: absolute; + z-index: -1; +} + +.manifestName{ + font-family: OpenSans-Semibold; + font-size: 12px; + color: #191919; +} + +.manifestFileName { + width: 389px; + height: 37px; + background: #FFFFFF; + border: 1px solid #D2D2D2; + border-radius: 2px; + display: inline-block; + line-height: 37px; + font-weight: normal !important; + padding-left: 3px; + border-bottom-right-radius: 0; + border-top-right-radius: 0; +} + +.elipsisImg { + width: 37px; + padding: 10px; + background: #FFFFFF; + border: 1px solid #D2D2D2; + display: inline-block; + cursor: pointer; + vertical-align: top; + border-radius: 2px; + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} + +.labelForImage { + vertical-align: top; +} + +.errorLabel { + color: red; +} + + + + diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.html new file mode 100644 index 000000000..12e0ab33f --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.html @@ -0,0 +1,26 @@ +<link rel="stylesheet" type="text/css" href="app/vid/styles/modal-buttons.css"> +<link rel="stylesheet" type="text/css" + href="app/vid/scripts/modals/attach-test-env-manifest/attach-test-env-manifest.css"/> +<div class="modal-header"> + <h3 id="modal-title">Attach Manifest</h3> + <span ng-click="vm.close()" class="pull-right modal-close" aria-hidden="true">×</span> +</div> +<form name="Attach Manifest" ng-submit="vm.submit()"> + <div class="modal-body"> + <label id="manifestName" class="manifestName">Manifest Name</label> + <input onchange="angular.element(this).scope().selectAttachmentManifest(this)" type="file" + id="testEnvManifestFileInput" class="inputfile" accept=".json"/> + <label id="manifestFileName" class="manifestFileName">{{vm.filename}}</label><label for="testEnvManifestFileInput" class="labelForImage" > + <span class="icon-browse"></span> + </label><label id="errorLabel" class="errorLabel">{{vm.error}}</label> + + </div> + <div class="modal-footer"> + <div class="pull-right"> + <button type="submit" id="submit" name="submit" class="btn btn-primary" + ng-disabled="vm.isSubmitDisabled()">Attach + </button> + <button type="button" id="cancel" name="cancel" class="btn btn-white" ng-click="vm.close()">Cancel</button> + </div> + </div> +</form> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.controller.js new file mode 100644 index 000000000..a04e127db --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.controller.js @@ -0,0 +1,29 @@ +(function () { + 'use strict'; + + appDS2.controller("cancelPendingWorkflowController", ["$scope", "$uibModalInstance", "changeManagement", + "$log", cancelPendingWorkflowController]); + + function cancelPendingWorkflowController($scope, $uibModalInstance, changeManagement, $log) { + var vm = this; + + function init() { + if (changeManagement) { + vm.workflow = changeManagement; + } else { + console.log("Pending Workflow is undefined: ", changeManagement); + vm.workflow = null; + } + } + + vm.close = function () { + $uibModalInstance.close(); + }; + + vm.ok = function () { + $uibModalInstance.close(true); + }; + + init(); + } +})();
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.css b/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.css new file mode 100644 index 000000000..daf86538a --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.css @@ -0,0 +1,16 @@ +.modal { + position: inherit; + text-align: left; +} +.modal-dialog { + position: absolute; + right: 0; + display: inline; + margin-top: -243px; +} +.modal-header { + border-bottom-color: #009FDB; +} +.modal-content { + width: 540px; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.html new file mode 100644 index 000000000..6dca76d25 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.html @@ -0,0 +1,14 @@ +<link rel="stylesheet" type="text/css" href="app/vid/styles/modals.css"> +<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.css"/> +<div class="modal-header"> + <span class="modal-title" id="pending-modal-header">Pending</span> + <span id="cancel" ng-click="vm.close()" class="pull-right modal-close" aria-hidden="true">×</span> +</div> +<div class="modal-body" id="modal-body"> + Are you sure you want to delete workflow + <br/> + {{vm.workflow.scheduleRequest.scheduleName}}? +</div> +<div class="modal-footer"> + <button class="btn btn-cancel-workflow" data-tests-id="cancel" ng-click="vm.ok()">Cancel Workflow</button> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/failed-change-management/failed-change-management.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/failed-change-management/failed-change-management.html index 0deaf93d2..d51620d0c 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/failed-change-management/failed-change-management.html +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/failed-change-management/failed-change-management.html @@ -1,4 +1,4 @@ -<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/new-change-management/new-change-management.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/modal-create-new.css" /> <link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/failed-change-management/failed-change-management.css" /> <div class="modal-header"> <h3 class="modal-title" id="failed-modal-header">Failed</h3> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/in-progress-modal-management/in-progress-change-management.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/in-progress-modal-management/in-progress-change-management.html index 9b40db2a5..615c95ceb 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/in-progress-modal-management/in-progress-change-management.html +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/in-progress-modal-management/in-progress-change-management.html @@ -1,4 +1,4 @@ -<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/new-change-management/new-change-management.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/modal-create-new.css" /> <link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/in-progress-modal-management/in-progress-change-management.css" /> <div class="modal-header"> <h3 class="modal-title" id="in-progress-modal-header">In Progress</h3> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/mso-commit/mso-commit.css b/vid-app-common/src/main/webapp/app/vid/scripts/modals/mso-commit/mso-commit.css new file mode 100644 index 000000000..6af5a66ec --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/mso-commit/mso-commit.css @@ -0,0 +1,6 @@ +.modal-dialog .popupContents .log { + width: 560px; +} +.modal-dialog .cancel-btn { + width: 120px; +} diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/mso-commit/mso-commit.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/mso-commit/mso-commit.html new file mode 100644 index 000000000..7698981c3 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/mso-commit/mso-commit.html @@ -0,0 +1,48 @@ +<!-- + ============LICENSE_START======================================================= + VID + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ============LICENSE_END========================================================= + --> +<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/mso-commit/mso-commit.css"/> + +<div class="modal-wrapper popupContents" data-tests-id="msoPopup"> + + <div class="statusLine"> + <img src="app/vid/images/spinner.gif" + ngx-visible="{{isSpinnerVisible}}"> </img> <label>Status:</label><span + class="status" data-tests-id="msoRequestStatus">{{status}}</span> + </div> + + <div class="feedback"> + + <div progress-bar control="progressBarControl" + value="{{percentProgress}}" increases-only="true" + ngx-show="{{isProgressVisible}}"></div> + + <div class="error" ng-hide="isProgressVisible"> + <img src="app/vid/images/error.png"></img>{{error}} + </div> + + </div> + + <pre class="log">{{log}}</pre> + + <div class="buttonRow"> + <button data-tests-id="msoCommitDialogCloseButton" ngx-enabled="{{isCloseEnabled}}" att-button size="small" + ng-click="close();">Close</button> + </div> +</div> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js index 14ca43b56..f0b85a6e3 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js @@ -1,11 +1,16 @@ (function () { 'use strict'; - appDS2.controller("newChangeManagementModalController", ["$uibModalInstance", "$uibModal", "AaiService", "changeManagementService", - "$log", "$scope", "_", newChangeManagementModalController]); + appDS2.controller("newChangeManagementModalController", ["$uibModalInstance", "$uibModal",'$q', "AaiService", "changeManagementService", "Upload", + "$log", "$scope", "_", "COMPONENT", "VIDCONFIGURATION", newChangeManagementModalController]); + + function newChangeManagementModalController($uibModalInstance, $uibModal,$q, AaiService, changeManagementService, Upload, $log, $scope, _, COMPONENT, VIDCONFIGURATION) { - function newChangeManagementModalController($uibModalInstance, $uibModal, AaiService, changeManagementService, $log, $scope, _) { var vm = this; + vm.configUpdatePatternError = "Invalid file type. Please select a file with a CSV extension."; + vm.configUpdateContentError = "Invalid file structure."; + + vm.softwareVersionRegex = "[-a-zA-Z0-9\.]+"; var init = function () { vm.changeManagement = {}; @@ -46,8 +51,8 @@ availableVersions.push(extractVNFModel(vnf, response.data.service, newVNFName)); } }); - var versions = _.uniqBy(availableVersions, ['modelInfo.modelVersion']); - newVNFName.availableVersions = _.uniq(versions, response.data.service, true); + var versions = _.uniqBy(availableVersions, 'modelInfo.modelVersion'); + newVNFName.availableVersions = _.sortBy(_.uniq(versions, response.data.service, true),"modelInfo.modelVersion"); }).catch(function (error) { $log.error(error); }); @@ -107,23 +112,41 @@ $uibModalInstance.close(); }; - vm.schedule = function () { - $uibModalInstance.close(vm.changeManagement); - - var modalInstance = $uibModal.open({ - templateUrl: 'app/vid/scripts/modals/new-scheduler/new-scheduler.html', - controller: 'newSchedulerController', - controllerAs: 'vm', - resolve: { - changeManagement: function () { - return vm.changeManagement; - } - } + vm.uploadConfigFile = function (file) { + var defer = $q.defer(); + Upload.upload({ + url: "change-management/uploadConfigUpdateFile", + file: file, + transformResponse: [function (data) { + return data; + }] + }) + .then(function (configUpdateResponse) { + vm.changeManagement.configUpdateFile = configUpdateResponse && JSON.parse(configUpdateResponse.data).payload; + defer.resolve(true); + }) + .catch(function (error) { + defer.resolve(false); }); + return defer.promise; + }; - modalInstance.result.then(function (result) { - console.log("This is the result of the new change management modal.", result); - }) + + vm.openModal = function () { + $scope.widgetParameter = ""; // needed by the scheduler? + + // properties needed by the scheduler so it knows whether to show + // policy or sniro related features on the scheduler UI or not. + vm.changeManagement.policyYN = "Y"; + vm.changeManagement.sniroYN = "Y"; + + var data = { + widgetName: 'Portal-Common-Scheduler', + widgetData: vm.changeManagement, + widgetParameter: $scope.widgetParameter + }; + + window.parent.postMessage(data, VIDCONFIGURATION.SCHEDULER_PORTAL_URL); }; vm.loadSubscribers = function () { @@ -165,11 +188,11 @@ if (vnfsData[i]) { const nodeType = vnfsData[i]['node-type']; if (nodeType === "generic-vnf") { - _.forEach(vnfsData[i]['related-to'], function (node) { - if (node['node-type'] === 'vserver') { - vm.vnfs.push(vnfsData[i]); - } - }) + if (_.find(vnfsData[i]['related-to'], function (node) { + return node['node-type'] === 'vserver' + }) !== undefined) { + vm.vnfs.push(vnfsData[i]); + } } else if (nodeType === "service-instance") { vm.serviceInstances.push(vnfsData[i]); } @@ -197,63 +220,50 @@ ); }; + var fromVNFVersions = []; + vm.loadVNFVersions = function () { - vm.fromVNFVersions = []; + fromVNFVersions = []; vm.serviceInstancesToGetVersions = []; var versions = []; _.forEach(vm.vnfs, function (vnf) { if (vnf.properties['nf-role'] === vm.changeManagement['vnfType']) { - vm.serviceInstancesToGetVersions.push(vnf); - - versions.push(vnf.properties["model-invariant-id"]); - + vm.serviceInstancesToGetVersions.push({ + "model-invariant-id": vnf.properties["model-invariant-id"], + "model-version-id": vnf.properties["model-version-id"] } + ); + versions.push(vnf.properties["model-invariant-id"]); } }); - AaiService.getVnfVersionsByInvariantId(versions).then(function (response) { - if (response.data) { - var key = response.data.model["0"]["model-invariant-id"]; - var value = response.data.model["0"]["model-vers"]["model-ver"]["0"]["model-version"]; - var element = {"key": key, "value": value}; - vm.fromVNFVersions.push(element); - } - //TODO promise all and call the new api to get the versions. - // vm.fromVNFVersions.push(response.data.model["0"]["model-vers"]["model-ver"]["0"]["model-version"]); - // if(vm.serviceInstancesToGetVersions.length > 0){ - // - // var promiseArrOfGetVnfs = preparePromiseArrOfGetVersions('a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb'); - // - // Promise.all(promiseArrOfGetVnfs).then(function (allData) { - // vm.vnfs = _.flattenDeep(_.without(allData, null)); - // var filteredVnfs = _.sortedUniqBy(vm.vnfs, function (vnf) { - // return vnf.properties.vnfType; - // }); - // - // _.forEach(filteredVnfs, function (vnf) { - // vm.vnfTypes.push(vnf.properties.vnfType) - // }); - // - // }).catch(function (error) { - // $log(error); - // }); - // } - }) - // debugger; + if (versions.length > 0) { + AaiService.getVnfVersionsByInvariantId(versions).then(function (response) { + if (response.data) { + + $log.debug("getVnfVersionsByInvariantId: response", response); + + fromVNFVersions = vm.serviceInstancesToGetVersions + .map(function (serviceInstanceToGetVersion) { + const model = _.find(response.data.model, {'model-invariant-id': serviceInstanceToGetVersion['model-invariant-id']}); + $log.debug("getVnfVersionsByInvariantId: model for " + serviceInstanceToGetVersion['model-invariant-id'], model); + + const modelVer = _.find(model["model-vers"]["model-ver"], {'model-version-id': serviceInstanceToGetVersion['model-version-id']}); + $log.debug("getVnfVersionsByInvariantId: modelVer for " + serviceInstanceToGetVersion['model-version-id'], modelVer); + + var modelVersionId = serviceInstanceToGetVersion["model-version-id"]; + var modelVersion = modelVer["model-version"]; + return {"key": modelVersionId, "value": modelVersion}; + }); + + vm.fromVNFVersions = _.uniqBy(fromVNFVersions, 'value'); + } + }) + } }; - // function preparePromiseArrOfGetVersions(serviceInstances) { - // var promiseArr = []; - // for (var i = 0; i < serviceInstances.length; i++) { - // var modelInvariantId = serviceInstances[i].properties["model-invariant-id"]; - // promiseArr.push( - // getVnfs(modelInvariantId) - // ); - // } - // return promiseArr; - // } function getVnfs(modelInvariantId) { return new Promise(function (resolve, reject) { @@ -281,12 +291,20 @@ }); } + var getVersionNameForId = function(versionId) { + var version = _.find(fromVNFVersions, {"key": versionId}); + return version.value; + }; + vm.loadVNFNames = function () { vm.vnfNames = []; + const vnfs = vm.changeManagement.fromVNFVersion ? vm.vnfs : []; + _.forEach(vnfs, function (vnf) { - _.forEach(vm.vnfs, function (vnf) { + var selectedVersionNumber = getVersionNameForId(vm.changeManagement.fromVNFVersion); - if (vnf.properties['nf-role'] === vm.changeManagement.vnfType) { + if (vnf.properties['nf-role'] === vm.changeManagement.vnfType && + selectedVersionNumber === getVersionNameForId(vnf.properties["model-version-id"])) { var vServer = {}; _.forEach(vnf['related-to'], function (node) { @@ -295,11 +313,27 @@ } }); + var serviceInstancesIds = + _.filter(vnf['related-to'], {'node-type': 'service-instance'}) + .map(function (serviceInstance) { return serviceInstance.id }); + + var serviceInstances = _.filter(vm.serviceInstances, function(serviceInstance) { + return _.includes(serviceInstancesIds, serviceInstance.id); + }); + + // logging only + if (serviceInstancesIds.length === 0) { + $log.error("loadVNFNames: no serviceInstancesIds for vnf", vnf); + } else { + $log.debug("loadVNFNames: serviceInstancesIds", serviceInstancesIds); + $log.debug("loadVNFNames: serviceInstances", serviceInstances); + } + vm.vnfNames.push({ "id": vnf.properties["vnf-id"], "name": vnf.properties["vnf-name"], "invariant-id": vnf.properties["model-invariant-id"], - "service-instance-node": _.filter(vm.serviceInstances, {id: vnf["related-to"][0].id}), + "service-instance-node": serviceInstances, "modelVersionId": vnf.properties["model-version-id"], "properties": vnf.properties, 'cloudConfiguration': vServer, @@ -316,30 +350,32 @@ tenantId: '' }; - var splitedUrlByDash = _.split(url, '/', 100); + /* + e.g., in both URLs below - + Â - lcpCloudRegionId == 'rdm5b' + Â - tenantId == '0675e0709bd7444a9e13eba8b40edb3c' - cloudConfiguration.lcpCloudRegionId = splitedUrlByDash[7]; - cloudConfiguration.tenantId = splitedUrlByDash[10]; + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm5b/tenants/tenant/0675e0709bd7444a9e13eba8b40edb3c/vservers/vserver/932b330d-733e-427d-a519-14eebd261f70" + "url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm5b/tenants/tenant/0675e0709bd7444a9e13eba8b40edb3c/vservers/vserver/932b330d-733e-427d-a519-14eebd261f70" + */ + + var cloudRegionMatch = url.match(/\/cloud-regions\/cloud-region\/[^\/]+\/([^\/]+)/); + var tenantMatch = url.match(/\/tenants\/tenant\/([^\/]+)/); + + cloudConfiguration.lcpCloudRegionId = cloudRegionMatch[1]; + cloudConfiguration.tenantId = tenantMatch[1]; return cloudConfiguration; }; vm.loadWorkFlows = function () { - var vnfs = []; - angular.forEach(vm.changeManagement.vnfNames, function (vnfName) { - vnfs.push(vnfName.name) - }); - - //TODO: When we'll have the mappings, use the backend call to get the workflows - // changeManagementService.getWorkflows(vnfs) - // .then(function(response) { - // vm.workflows = response.data; - // }) - // .catch(function(error) { - // $log.error(error); - // }); - - vm.workflows = ["Update", "Replace"]; + changeManagementService.getWorkflows(vm.changeManagement.vnfNames) + .then(function(response) { + vm.workflows = response.data.workflows; + }) + .catch(function(error) { + $log.error(error); + }); }; //Must be $scope because we bind to the onchange of the html (cannot attached to vm variable). @@ -364,6 +400,14 @@ console.log("Will add version for selected vnf name: " + vnfName.name); }; + vm.isConfigUpdate = function () { + return vm.changeManagement.workflow === COMPONENT.WORKFLOWS.vnfConfigUpdate; + } + + vm.shouldShowVnfInPlaceFields = function () { + return vm.changeManagement.workflow === COMPONENT.WORKFLOWS.vnfInPlace; + }; + init(); } })();
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.css b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.css deleted file mode 100644 index 9d270987a..000000000 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.css +++ /dev/null @@ -1,130 +0,0 @@ -.btn-white { - font-family: "Open Sans"; - border-radius: 2px; - border: 1px solid #d8d8d8; - background-color: #ffffff; - width: 94px; - height: 30px; - color: #5a5a5a; - font-size: 13px; - font-weight: 400; - line-height: 36px; - text-align: center; - padding: 4px 12px !important; -} - -.btn-primary { - font-family: "Open Sans"; - border-radius: 2px; - border: 1px solid #0091c8; - background-color: #009fdb; - width: 94px; - height: 30px; - color: #ffffff; - font-size: 13px; - font-weight: 400; - line-height: 36px; - text-align: center; - padding: 4px 12px !important; -} - -.modal-header { - border: none!important; - padding: 15px 15px 0px 15px!important; -} - -.modal-header h3 { - font-family: "Open Sans"; - color: #191919; - font-size: 22px; - font-weight: 300; - line-height: 16px; - padding-bottom: 20px; - border-bottom: 3px solid #009fdb; - -} - -.control-label { - font-family: "Open Sans"; - color: #5a5a5a; - font-size: 13px; - font-weight: 400; -} - -.modal-footer { - background-color: #eaeaea; -} - -.modal-dialog { - width: 587px; - border-radius: 8px; -} - -.modal-content { - width: 587px; - border-radius: 8px; - background-color: #ffffff; -} - -button.dropdown-toggle { - text-align: left; -} - -button[disabled].dropdown-toggle { - opacity: 1; - cursor: not-allowed; - background-color: #eee; - border: 1px solid #aaa; - color: #a0a0a0; -} - -multiselect[disabled] { - cursor: not-allowed; -} - -a.item-unselected:before { - font-family: "icomoon"!important; - content: "\e90c"; - color: #4ca90c; -} - -.modal-close { - margin: -40px 5px 0 0; - color: #5a5a5a; - font-size: 20px; - cursor: pointer; -} - -.vnf-versions-container .table { - position: relative; - background-color: #f8f8f8; - background-clip: padding-box; - border-radius: 6px; - outline: 0; -} - -.vnf-versions-name { - padding-top: 6px; - font-family: "Open Sans"; - position: absolute; -} - -.vnf-versions-select-as-text { - font-family: "Open Sans"; - appearance: none; - -webkit-appearance: none; - -moz-appearance: none; - border: none; - overflow:hidden; - background-color: #f8f8f8; - height: 31px; -} - -.vnf-files-select { - z-index: 999; - opacity: 0.0; - position: absolute; - width: 23%; - cursor: pointer; - height:100%; -} diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html index 71c7eb331..4473ee3b8 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.html @@ -1,51 +1,51 @@ -<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/new-change-management/new-change-management.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/modal-create-new.css" /> <div class="modal-header"> <h3 class="modal-title" id="modal-title">New VNF Change</h3> <span ng-click="vm.close()" class="pull-right modal-close" aria-hidden="true">×</span> </div> -<form name="newChangeManagement" ng-submit="vm.schedule()"> +<form class="form-create" name="newChangeManagement" ng-submit="vm.openModal();vm.close();" novalidate> <div class="modal-body"> <div class="form-group"> <label class="control-label">Subscriber</label> <select class="form-control" ng-model="vm.changeManagement.subscriberId" ng-change="vm.loadServiceTypes()" name="subscriber" id="subscriber" data-tests-id="subscriberName" required> <option value="" disabled>Select subscriber</option> - <option data-tests-id="subscriberNameOption" ng-repeat="item in vm.subscribers" ng-value="item['global-customer-id']">{{item['subscriber-name']}}</option> + <option data-tests-id="subscriberNameOption" class="subscriberNameOption" ng-repeat="item in vm.subscribers" ng-value="item['global-customer-id']" ng-disabled="!(item['is-permitted'])">{{item['subscriber-name']}}</option> </select> </div> <div class="form-group"> <label class="control-label">Service type</label> - <select class="form-control" ng-model="vm.changeManagement.serviceType" ng-change="vm.loadVNFTypes()" name="serviceType" id="serviceType" ng-options="item['service-type'] for item in vm.serviceTypes" required data-ng-disabled="newChangeManagement.subscriber.$pristine"> + <select class="form-control" ng-model="vm.changeManagement.serviceType" ng-change="vm.loadVNFTypes()" name="serviceType" id="serviceType" ng-options="item['service-type'] disable when !(item['is-permitted']) for item in vm.serviceTypes" required data-ng-disabled="newChangeManagement.subscriber.$pristine" data-tests-id="serviceType"> <option value="" disabled>Select service type</option> </select> </div> <div class="form-group"> - <label class="control-label">VNF type</label> + <label class="control-label">NF Role</label> <select class="form-control" ng-model="vm.changeManagement.vnfType" ng-change="vm.loadVNFVersions()" name="vnfType" id="vnfType" ng-options="item for item in vm.vnfTypes" required data-ng-disabled="newChangeManagement.serviceType.$pristine"> - <option value="" disabled>Select VNF type</option> + <option value="" disabled>NF Role</option> </select> </div> <div class="form-group"> - <label class="control-label">Source Version</label> + <label class="control-label">Source VNF Model Version</label> <select class="form-control" ng-model="vm.changeManagement.fromVNFVersion" ng-change="vm.loadVNFNames()" name="fromVNFVersion" id="fromVNFVersion" ng-options="item.key as item.value for item in vm.fromVNFVersions" required data-ng-disabled="newChangeManagement.vnfType.$pristine"> - <option value="" disabled>Select from VNF version</option> + <option value="" disabled>Select VNF Model Version</option> </select> </div> <div class="form-group"> - <label class="control-label">VNF name</label> + <label class="control-label">Available VNF</label> <multiselect ng-model="vm.changeManagement.vnfNames" ng-change="vm.loadWorkFlows()" name="vnfName" id="vnfName" options="vm.vnfNames" display-prop="name" id-prop="id" required data-ng-disabled="newChangeManagement.fromVNFVersion.$pristine"></multiselect> </div> <div ng-show="vm.changeManagement.vnfNames && vm.changeManagement.vnfNames.length > 0" class="form-group vnf-versions-container"> <table class="table table-bordered"> <tbody> <tr ng-repeat="vnfName in vm.changeManagement.vnfNames"> - <td class="col-md-6"><span class="vnf-versions-name">{{vnfName.name}}</span></td> - <td class="col-md-3"> - <select ng-model="vnfName.version" ng-change="vm.selectVersionForVNFName(vnfName)" class="vnf-versions-select-as-text"> - <option value="" disabled="" selected="selected">Select Target Version</option> + <td class="col-md-2"><span class="vnf-versions-name">{{vnfName.name}}</span></td> + <td class="col-md-2"> + <select ng-model="vnfName.version" ng-change="vm.selectVersionForVNFName(vnfName)" class="vnf-versions-select-as-text" id="{{vnfName['invariant-id']}}-target-version-select"> + <option value="" disabled="" selected="selected">Select Target VNF Model Version</option> <option ng-repeat="version in vnfName.availableVersions">{{version.modelInfo.modelVersion}}</option> </select> </td> - <td class="col-md-3 vnf-versions-name"> + <td class="col-md-1 vnf-versions-name"> <input ng-model="vnfName.filePath" onchange="angular.element(this).scope().selectFileForVNFName(this)" type="file" id="{{vnfName['invariant-id']}}" class="vnf-files-select" /> <span class="vnf-versions-name">Select File<span class="caret"></span></span></td> </tr> @@ -58,6 +58,32 @@ <option value="" disabled>Select workflow</option> </select> </div> + <div class="form-group" ng-if="vm.isConfigUpdate()"> + <label class="control-label">Attach configuration file</label> + <div class="file-wrapper"> + <input id="config-update-input" class="file-input" type="file" ngf-select ng-model="vm.configUpdateFile" ngf-validate-async-fn="vm.uploadConfigFile($file)" name="configUpdateFile" + accept=".csv" ngf-pattern=".csv" required> </input> + <label id="config-update-label" class="file-input-label">{{vm.configUpdateFile&&vm.configUpdateFile.name||"Select File"}} </label> + <label for="config-update-input"><span class="icon-browse"></span></label> + </div> + <label id="errorLabel" class="icon-alert error" ng-if="newChangeManagement.configUpdateFile.$error.pattern">{{vm.configUpdatePatternError}}</label> + <label id="errorContentLabel" class="icon-alert error" ng-if="newChangeManagement.configUpdateFile.$error.validateAsyncFn">{{vm.configUpdateContentError}}</label> + </div> + <div ng-if="vm.shouldShowVnfInPlaceFields()"> + <div class="form-group"> + <label class="control-label">operations-timeout</label> + <input class="form-control" ng-model="vm.changeManagement.operationTimeout" name="operationTimeout" type="text" id="operations-timeout" pattern="[0-9]+" required> + </div> + <div class="form-group"> + <label class="control-label">existing-software-version</label> + <input class="form-control" ng-model="vm.changeManagement.existingSoftwareVersion" name="existingSoftwareVersion" type="text" id="existing-software-version" pattern="{{vm.softwareVersionRegex}}" required> + </div> + <div class="form-group"> + <label class="control-label">new-software-version</label> + <input class="form-control" ng-model="vm.changeManagement.newSoftwareVersion" name="newSoftwareVersion" type="text" id="new-software-version" pattern="{{vm.softwareVersionRegex}}" required> + </div> + + </div> </div> <div class="modal-footer"> <div class="pull-right"> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.controller.js deleted file mode 100644 index c8f44c715..000000000 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.controller.js +++ /dev/null @@ -1,455 +0,0 @@ -(function () { - 'use strict'; - - appDS2.controller("newSchedulerController", ["$scope", "$uibModal", "$uibModalInstance", "AaiService", "SchedulerService", "_", - "$log", "changeManagement", "$timeout", "$interval", "$filter", "VIDCONFIGURATION", "changeManagementService", newSchedulerController]); - - function newSchedulerController($scope, $uibModal, $uibModalInstance, AaiService, SchedulerService, _, $log, changeManagement, $timeout, $interval, $filter, VIDCONFIGURATION, changeManagementService) { - var vm = this; - var pollpromise; - - var init = function () { - vm.scheduler = {}; - vm.schedulingInfo = {}; - var callbackData = extractChangeManagementCallbackDataStr(changeManagement); - vm.vnfObject = changeManagement; - vm.schedulerObj = { - domain: 'ChangeManagement', - scheduleId: '', - scheduleName: 'VnfUpgrade/DWF', - userId: '', - domainData: [{ - 'WorkflowName': vm.scheduler.policy, - 'CallbackUrl': 'http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid', - 'CallbackData': callbackData - }], - - schedulingInfo: { - normalDurationInSeconds: '', - additionalDurationInSeconds: '', - concurrencyLimit: '', - policyId: '', - vnfDetails: [ - { - groupId: "", - node: [], - changeWindow: [{ - startTime: '', - endTime: '' - }] - - } - ] - }, - - } - vm.schedulerObj1 = { - "domain": "ChangeManagement", - "scheduleName": "VnfUpgrade/DWF", - "userId": "su7376", - "domainData": [ - { - "WorkflowName": "HEAT Stack Software Update for vNFs", - "CallbackUrl": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid", - "CallbackData": "testing" - } - ], - "schedulingInfo": { - "normalDurationInSeconds": 60, - "additionalDurationInSeconds": 60, - "concurrencyLimit": 60, - "policyId": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml", - "vnfDetails": [ - { - "groupId": "group1", - "node": ["satmo415vbc", "satmo455vbc"], - "changeWindow": [ - { - "startTime": "2017-08-08T16:37:30.521Z", - "endTime": "2017-08-08T16:37:30.521Z" - } - ] - } - ] - } - }; - - - vm.format = 'yyyy/MM/dd'; - vm.todate = new Date(); - vm.checkboxSelection = 'false'; - vm.fromDate = ''; - vm.toDate = ''; - vm.timeSlots = []; - - vm.changeManagement = {}; - - vm.subscribers = []; - - AaiService.getSubscribers(function (response) { - vm.subscribers = response; - }); - - vm.serviceTypes = []; - AaiService.getServices(function (response) { - vm.serviceTypes = response.data.service; - }); - - changeManagementService.getWorkflows() - .then(function (response) { - vm.workflows = response.data; - }) - .catch(function (error) { - $log.error(error); - }); - - //TODO: Get the VNF names from backend dynamically - vm.vnfNames = []; - - //TODO: Get the VNF types from backend dynamically - vm.vnfTypes = []; - - AaiService.getLoggedInUserID(function (response) { - vm.userID = response.data; - }); - vm.policys = []; - - var policyName = JSON.stringify({ - policyName: "SNIRO_1710.*", - configAttributes: { - service: "PlacementOptimizationPolicy" - } - }); - SchedulerService.getPolicyInfo(policyName, function (response) { - vm.policys = response.data.entity; - }); - }; - - vm.radioSelections = function (test) { - if (vm.checkboxSelection == "true") { - vm.fromDate = ''; - vm.toDate = '' - } - } - vm.close = function () { - $uibModalInstance.close(); - }; - - - function convertToSecs(number) { - var totalSecs; - if (vm.selectedOption === 'hours') { - totalSecs = number * 3600; - - } - else if (vm.selectedOption === 'minutes') { - totalSecs = number * 60; - } else { - totalSecs = number; - } - return totalSecs; - } - - vm.submit = function () { - vm.schedulingInfo = { - scheduleId: vm.schedulerID, - approvalDateTime: '2017-08-08T16:37:30.521Z', - approvalUserId: "sy6266", - approvalStatus: 'Accepted', - approvalType: 'Tier 2' - }; - - var approvalObj = JSON.stringify(vm.schedulingInfo); - SchedulerService.getSubmitForapprovedTimeslots(approvalObj, function (response) { - if (response.status == 200) { - openConfirmationModal("Successfully Sent for Approval"); - } - - }); - }; - - vm.reject = function () { - vm.schedulingInfo = { - scheduleId: vm.schedulerID, - approvalDateTime: '2017-08-08T16:37:30.521Z', - approvalUserId: "sy6266", - approvalStatus: 'Rejected', - approvalType: 'Tier 2' - } - - var approvalObj = JSON.stringify(vm.schedulingInfo) - SchedulerService.getSubmitForapprovedTimeslots(approvalObj, function (response) { - if (response.status == 200) { - openConfirmationModal("Successfully sent for Rejection"); - } - - }); - }; - - vm.schedule = function (myForm) { - $scope.$watch('fromDate', validateDates(myForm)); - $scope.$watch('toDate', validateDates(myForm)); - if (myForm.$valid) { - sendSchedulerReq() - } - }; - - - function sendSchedulerReq() { - var changeWindow = [{ - startTime: '', - endTime: '' - }]; - vm.timeSlots = []; - var fromDate = $filter('date')(new Date(vm.fromDate), "yyyy-MM-ddTHH:mmZ", "UTC"); - var toDate = $filter('date')(new Date(vm.toDate), "yyyy-MM-ddTHH:mmZ", "UTC"); - - changeWindow[0].startTime = fromDate; - changeWindow[0].endTime = toDate; - vm.schedulerObj.userId = vm.userID; - vm.schedulerObj.domainData[0].WorkflowName = changeManagement.workflow; - vm.schedulerObj.schedulingInfo.normalDurationInSeconds = convertToSecs(vm.scheduler.duration); - vm.schedulerObj.schedulingInfo.additionalDurationInSeconds = convertToSecs(vm.scheduler.fallbackDuration); - vm.schedulerObj.schedulingInfo.concurrencyLimit = vm.scheduler.concurrency; - vm.schedulerObj.schedulingInfo.policyId = vm.scheduler.policy.policyName; - vm.schedulerObj.schedulingInfo['vnfDetails'][0].groupId = 'groupId'; - vm.schedulerObj.schedulingInfo['vnfDetails'][0].node = getVnfData(changeManagement.vnfNames); - - vm.schedulerObj.schedulingInfo['vnfDetails'][0].changeWindow = changeWindow; - if (vm.checkboxSelection == "true") { //When Scheduled now we remove the changeWindow - delete vm.schedulerObj.schedulingInfo['vnfDetails'][0].changeWindow; - } - vm.schedulerObj.schedulingInfo['vnfDetails'][0].changeWindow = changeWindow; - delete vm.schedulerObj.schedulingInfo['vnfDetails'][0].changeWindow; - - var requestScheduler = JSON.stringify(vm.schedulerObj); - console.log(requestScheduler); - SchedulerService.getStatusSchedulerId(requestScheduler, function (response) { - vm.schedulerID = response.data.uuid; - vm.isSpinnerVisible = true; - if (vm.schedulerID) { - var scheduledID = JSON.stringify({scheduleId: vm.schedulerID}); - seviceCallToGetTimeSlots(); - } - }); - } - - function seviceCallToGetTimeSlots() { - - SchedulerService.getTimeSotsForSchedulerId(vm.schedulerID, function (response) { - if (vm.checkboxSelection == "false") { - if (response.data.entity.schedule) { - var scheduleColl = JSON.parse(response.data.entity.schedule); - if (scheduleColl.length > 0) { - vm.timeSlots = scheduleColl; - vm.isSpinnerVisible = false; - hasvaluereturnd = false; - $scope.stopPoll(); - openConfirmationModal(response.data.entity.scheduleId + " Successfully Returned TimeSlots."); - } - - } - else { - if (vm.timeSlots.length == 0 && hasthresholdreached == false) { - var polltime = VIDCONFIGURATION.SCHEDULER_POLLING_INTERVAL_MSECS; - pollpromise = poll(polltime, function () { - if (vm.timeSlots.length == 0) { - hasvaluereturnd = true; - seviceCallToGetTimeSlots() - } - else { - hasvaluereturnd = false; - } - - }); - - } else { - openConfirmationModal("Timeout error.") - } - } - - } - else { - if (response.data.entity) { - vm.isSpinnerVisible = false; - openConfirmationModal(response.data.entity.scheduleId + " Successfully Ready for Schedule.") - } - } - - }); - - } - - function openConfirmationModal(jobInfo) { - var modalInstance = $uibModal.open({ - templateUrl: 'app/vid/scripts/modals/alert-new-scheduler/alert-new-scheduler.html', - controller: 'alertNewSchedulerController', - controllerAs: 'vm', - resolve: { - jobInfo: function () { - return jobInfo; - } - } - }); - } - - var hasvaluereturnd = true; // Flag to check - var hasthresholdreached = false; - var thresholdvalue = VIDCONFIGURATION.SCHEDULER_MAX_POLLS; // interval threshold value - - function poll(interval, callback) { - return $interval(function () { - if (hasvaluereturnd) { //check flag before start new call - callback(hasvaluereturnd); - } - - thresholdvalue = thresholdvalue - 1; //Decrease threshold value - if (thresholdvalue == 0) { - $scope.stopPoll(); // Stop $interval if it reaches to threshold - } - }, interval) - } - - -// stop interval. - $scope.stopPoll = function () { - $interval.cancel(pollpromise); - thresholdvalue = 0; //reset all flags. - hasvaluereturnd = false; - hasthresholdreached = true; - vm.isSpinnerVisible = false; - } - - function getVnfData(arrColl) { - var vnfcolletion = []; - - for (var i = 0; i < arrColl.length; i++) { - vnfcolletion.push(arrColl[i].name); - } - - return vnfcolletion - } - - function validateDates(form) { - if (vm.checkboxSelection == "false") { - - if (form.startDate.$error.invalidDate || form.endDate.$error.invalidDate) { - form.startDate.$setValidity("endBeforeStart", true); //already invalid (per validDate directive) - } else { - //depending on whether the user used the date picker or typed it, this will be different (text or date type). - //creating a new date object takes care of that. - var endDate = new Date(vm.toDate); - var startDate = new Date(vm.fromDate); - form.startDate.$setValidity("endBeforeStart", endDate >= startDate); - } - } - } - - - function extractChangeManagementCallbackDataStr(changeManagement) { - var result = {}; - - result.requestType = changeManagement.workflow; - result.requestDetails = []; - - _.forEach(changeManagement.vnfNames, function (vnf) { - - var data = { - vnfName: vnf.name, - vnfInstanceId: vnf.id, - modelInfo: { - modelType: 'vnf', - modelInvariantId: vnf.properties['model-invariant-id'], - modelVersionId: vnf.modelVersionId, - modelName: vnf.properties['vnf-name'], - modelVersion: vnf.version, - modelCustomizationName: vnf.properties['model-customization-name'], - modelCustomizationId: vnf.properties['model-customization-id'] - }, - cloudConfiguration: { - lcpCloudRegionId: vnf.availableVersions[0].cloudConfiguration.lcpCloudRegionId, - tenantId: vnf.availableVersions[0].cloudConfiguration.tenantId - }, - requestInfo: { - source: vnf.availableVersions[0].requestInfo.source, - suppressRollback: vnf.availableVersions[0].requestInfo.suppressRollback, - requestorId: vnf.availableVersions[0].requestInfo.requestorId - }, - relatedInstanceList: [], - requestParameters: { - usePreload: vnf.availableVersions[0].requestParameters.usePreload - } - }; - - var serviceInstanceId = ''; - _.forEach(vnf['service-instance-node'], function (instanceNode) { - if(instanceNode['node-type'] === 'service-instance'){ - serviceInstanceId = instanceNode.properties['service-instance-id']; - } - }); - - - _.forEach(vnf.availableVersions[0].relatedInstanceList, function (related) { - - var rel = related.relatedInstance; - - var relatedInstance = { - instanceId: serviceInstanceId, - modelInfo: { - modelType: rel.modelInfo.modelType, - modelInvariantId: rel.modelInfo.modelInvariantId, - modelVersionId: rel.modelInfo.modelVersionId, - modelName: rel.modelInfo.modelName, - modelVersion: rel.modelInfo.modelVersion, - modelCustomizationName: rel.modelInfo.modelCustomizationName, - modelCustomizationId: rel.modelInfo.modelCustomizationId - } - }; - - if (rel.vnfInstanceId) - relatedInstance.instanceId = rel.vnfInstanceId; - - data.relatedInstanceList.push({relatedInstance: relatedInstance}); - }); - - - result.requestDetails.push(data); - } - ); - - - // _.forEach(changeManagement.vnfNames, function (vnfName) { - // if (vnfName && vnfName.version) { - // if (vnfName.selectedFile) { - // vnfName.version.requestParameters.userParams = vnfName.selectedFile; - // } - // result.requestDetails.push(vnfName.version) - // } - // }); - - return JSON.stringify(result); - } - - init(); - }; - - appDS2.directive('validDate', function () { - return { - restrict: 'A', - require: 'ngModel', - link: function (scope, element, attrs, control) { - control.$parsers.push(function (viewValue) { - var newDate = model.$viewValue; - control.$setValidity("invalidDate", true); - if (typeof newDate === "object" || newDate == "") return newDate; // pass through if we clicked date from popup - if (!newDate.match(/^\d{1,2}\/\d{1,2}\/((\d{2})|(\d{4}))$/)) - control.$setValidity("invalidDate", false); - return viewValue; - }); - } - }; - }) - - -})(); - diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.css b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.css deleted file mode 100644 index 8da5c55c5..000000000 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.css +++ /dev/null @@ -1,145 +0,0 @@ -.btn-white { - font-family: OpenSans; - border-radius: 2px; - border: 1px solid #d8d8d8; - background-color: #ffffff; - width: 94px; - height: 30px; - color: #5a5a5a; - font-size: 13px; - font-weight: 400; - line-height: 36px; - text-align: center; -} - -.btn-primary { - font-family: OpenSans; - border-radius: 2px; - border: 1px solid #0091c8; - background-color: #009fdb; - width: 94px; - height: 30px; - color: #ffffff; - font-size: 13px; - font-weight: 400; - line-height: 36px; - text-align: center; -} - -.modal-header { - border: none!important; - padding: 15px 15px 0px 15px!important; -} - -.modal-header h3 { - font-family: OpenSans; - color: #5a5a5a; - font-size: 22px; - font-weight: 300; - line-height: 16px; - padding-bottom: 20px; - border-bottom: 3px solid #009fdb; - -} - -.modal-footer { - background-color: #eaeaea; -} - -.modal-dialog { - width: 587px; - border-radius: 8px; -} - -.modal-content { - width: 587px; - border-radius: 8px; - background-color: #ffffff; -} -.label-font{ - font-size: 1em; -} -.calender-icon{ - background-image: url(../../../../../app/fusion/external/ebz/images/Calendar.svg); - background-repeat:no-repeat; - background-position:98%; - border-radius: 6px; - border: 1px solid #888; - color: #444; - font-family: clearview_att_regular; - width: 100%; - outline: 0; - padding: 7px 10px; - text-transform: none; - z-index: 0; - height: 40px; - position: relative; - -} - -input.calender-icon:focus{ - background-image: url(../../../../../app/fusion/external/ebz/images/Calendar_blue.svg); - background-repeat:no-repeat; -} - - - -.timeslots-content{ - margin-top: 0px; - margin-bottom: 0px; - height: 10em; -} -.find-block{ - float:5em; -} -.timeslots-block{ -/* margin-top: 1em; */ - height: 85px; - } - .policy-combo{ - background-image: none; - } - - div[ng-controller=newSchedulerController] .schedulerVisible { - visibility: visible; -} -div[ng-controller=newSchedulerController] .schedulerHidden { - visibility: hidden; -} - -.table { - border: 1px solid #eaeaea; - box-sizing: border-box; - background-color: #ffffff; - box-shadow: 0px 2px 7px 0px rgba(34, 31, 31, 0.17); - font-family: OpenSans; - color: #5a5a5a; - font-size: 14px; - font-weight: 400; -} -.table>thead { - background-color: #d2d2d2; - font-family: OpenSans; - color: #191919; - font-size: 13px; - font-weight: 600; - line-height: 40px; -} - -.table-headline-row { - font-family: OpenSans; - color: #5a5a5a; - font-size: 14px; - font-weight: 600; - background-color: #eaeaea; - box-shadow: 0px 1px 1px 0px rgba(34, 31, 31, 0.19); -} - -.table-bordered{border:1px solid #eaeaea;} -.table-bordered>tbody>tr>td, -.table-bordered>tbody>tr>th, -.table-bordered>tfoot>tr>td, -.table-bordered>tfoot>tr>th, -.table-bordered>thead>tr>td, -.table-bordered>thead>tr>th{border:1px solid #eaeaea;} - diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.html deleted file mode 100644 index 498ff2ec4..000000000 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-scheduler/new-scheduler.html +++ /dev/null @@ -1,101 +0,0 @@ -<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/new-scheduler/new-scheduler.css" /> -<div class="modal-header"> - <h3 class="modal-title" id="modal-title">Scheduler Change</h3> -</div> -<form name="newschedulermodalForm" ng-submit="vm.schedule(newschedulermodalForm)"> - <div class="modal-body"> - - <div class="form-group" > - <label><input type="radio" ng-model="vm.checkboxSelection" ng-change="vm.radioSelections()" value="true">Now</label> - <label><input type="radio" ng-model="vm.checkboxSelection" ng-change="vm.radioSelections()" value="false">Range</label> - </div> -<!-- <div class="form-group"> --> -<!-- <input type="radio" ng-model="checkboxSelection" value="false" ><label>Range</label> --> -<!-- </div> --> - - - <div class="form-group" > - <label class="control-label">From Date</label> - <input ng-disabled="(vm.checkboxSelection=='true')? true:false" valid-date name="startDate" ng-model="vm.fromDate" id="startDate" datetime-picker ng-required="false" hour="23" minute='59' class="calender-icon"/> - - </div> - <div class="form-group" > - <label class="control-label">To Date</label> - <input ng-disabled="(vm.checkboxSelection=='true')? true:false" valid-date name="endDate" ng-model="vm.toDate" id="endDate" datetime-picker ng-required="false" hour="23" minute='59' class="calender-icon" /> - <span ng-show="newschedulermodalForm.startDate.$error.endBeforeStart">To date must be on or after From date.</span> - <span ng-show="newschedulermodalForm.startDate.$error.invalidDate || newschedulermodalForm.endDate.$error.invalidDate">Check dates for validity</span> - <span ng-show="newschedulermodalForm.startDate.$error.required || newschedulermodalForm.endDate.$error.required">A required date is missing</span> - </div> - - <div class="form-group" > - <label>Please Select Option For Duration and FallBack</label> - - <select class="form-control" name="selecttime" data-tests-id="timeUnitSelect" ng-model="vm.selectedOption" ng-change="vm.updateMinMax()"> - <option value="hours">HOURS</option> - <option value="minutes">MINUTES</option> - <option value="seconds">SECONDS</option> - </select> - </div> - <div class="row"> - <div class="form-group col-md-6 col-xs-12"> - <label class="control-label">Duration</label> - <input type="number" style="font-size: 1em;" data-tests-id="durationInput" name="durationinput" ng-model="vm.scheduler.duration" ng-required="true"> - - </div> - <div class="form-group col-md-6 col-xs-12" > - <label class="control-label">Fallback Duration</label> - <input type="number" style="font-size: 1em;" name="fallbackinput" data-tests-id="fallbackInput" ng-model="vm.scheduler.fallbackDuration" ng-required="true"> - - - </div> - </div> - <div class="form-group"> - <label class="control-label">Concurrency Limit</label> - <input type="number" style="font-size: 1em;" name="input" data-tests-id="concurrencyLimitInput" ng-model="vm.scheduler.concurrency" min="1" max="30" ng-required="true"> - </div> - <div class="form-group"> - <label class="control-label">Policy</label> - <select class="policy-combo" ng-model="vm.scheduler.policy" id="policy" ng-options="item.policyName for item in vm.policys"> - <option value="">Select Policy</option> - </select> - </div> - <div class="form-group"> - <button type="submit" id="find" name="Find" ng-disabled="vm.isClicked" class="btn btn-primary find-block">Find</button> - <span class="spinner" ng-show="vm.isSpinnerVisible"> - <img src="app/vid/images/spinner.gif"> - </img> - - </span> - - </div> - - <div class="form-group" ng-show="(vm.checkboxSelection=='false')? true:false"> -<!-- <label class="control-label">Time Slots</label> --> -<!-- <textarea rows="10" cols="50" class="timeslots-block" ></textarea> --> - <table class="table table-bordered"> - <thead class="thead-default"> - <tr> - <th>Start Time</th> - <th>End Time</th> - </tr> - </thead> - <tbody> - - <tr class="table-headline-row" ng-repeat="timeslot in vm.timeSlots"> - <td>{{timeslot.startTime}}</td> - <td>{{timeslot.finishTime}}</td> - </tr> - </tbody> - </table> - </div> - - </div> - <div class="modal-footer"> - <div class="pull-right"> - <button type="button" id="btn" name="submit" class="btn btn-primary" ng-click="vm.submit()">Schedule</button> - <button type="button" id="btn" name="submit" class="btn btn-primary" ng-click="vm.reject()">Reject</button> - <button type="button" id="cancel" name="cancel" class="btn btn-white" ng-click="vm.close()">Cancel</button> - </div> - </div> -</form> - diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js new file mode 100644 index 000000000..daec9b2e9 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js @@ -0,0 +1,65 @@ +(function () { + 'use strict'; + + appDS2.controller("newTestEnvironmentModalController", ["$uibModalInstance", "$uibModal", "AaiService", "TestEnvironmentsService","OwningEntityService", + "$log", "$scope", "_", "COMPONENT","$rootScope", newTestEnvironmentsModalController]); + + function newTestEnvironmentsModalController($uibModalInstance, $uibModal, AaiService, TestEnvironmentsService,OwningEntityService, $log, $scope, _, COMPONENT, $rootScope) { + var vm = this; + vm.newEnvironment = {}; + + var init = function () { + vm.newEnvironment.operationalEnvironmentType = "VNF"; + loadCategoryParameters(); + loadEcompEnvironmentsList(); + }; + + var loadEcompEnvironmentsList = function () { + TestEnvironmentsService.loadAAIestEnvironments("ECOMP") + .then(function(response) { + vm.environments = response.operationalEnvironment; + }) + .catch(function (error) { + vm.aaiConnectError = error.message; + $log.error(error); + }); + }; + + var loadCategoryParameters = function () { + OwningEntityService.getOwningEntityProperties(function(response){ + vm.environmentsTypesList = response["operational-environment-type"].map(function (x){ + return x.name;}); + vm.workloadContextList = response["workload-context"].map(function (x){ + return x.name;}); + },COMPONENT.TENANT_ISOLATION_FAMILY); + } + + + vm.setEcompEnvironment = function (selectedIndex) { + var ecompEnvironment = vm.environments[selectedIndex]; + vm.newEnvironment.ecompInstanceId = ecompEnvironment.operationalEnvironmentId; + vm.newEnvironment.ecompInstanceName = ecompEnvironment.operationalEnvironmentName; + vm.newEnvironment.tenantContext = ecompEnvironment.tenantContext; + }; + + vm.close = function () { + $uibModalInstance.close(); + }; + + vm.createEnvironment = function () { + if($scope.newTestEnvironment.$valid) { + vm.newEnvironment.workloadContext = vm.newEnvironment.operationalEnvironmentType + '_' + vm.newEnvironment.workloadContext; + var requestDetails = vm.newEnvironment; + $rootScope.$broadcast(COMPONENT.MSO_CREATE_ENVIRONMENT, { + url : COMPONENT.OPERATIONAL_ENVIRONMENT_CREATE, + requestDetails : requestDetails + }); + vm.close(); + } + }; + + + + init(); + } +})();
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.html new file mode 100644 index 000000000..cd14a76cb --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.html @@ -0,0 +1,50 @@ +<link rel="stylesheet" type="text/css" href="app/vid/styles/modal-create-new.css" /> +<div class="modal-header"> + <h3 class="modal-title" id="modal-title">New Test Environment</h3> + <span ng-click="vm.close()" class="pull-right modal-close" aria-hidden="true">×</span> +</div> +<form class="form-create" data-tests-id="test-new-environment-form" name="newTestEnvironment" ng-submit="vm.createEnvironment()"> + <div class="modal-body"> + <div class="form-group"> + <label class="control-label" for="environmentName">Environment Name</label> + <input id="environmentName" class="form-control" ng-model="vm.newEnvironment.instanceName" name="instanceName" data-tests-id="environment-name" placeholder="Enter environment name" required> + </div> + <div class="form-group"> + <label class="control-label" for="ecompInstanceId">ECOMP Environment ID</label> + <select class="form-control" ng-class="{'grayedOut': !selectedIndex, 'connect-error': vm.aaiConnectError}" ng-model="selectedIndex" name="ecompInstanceId" id="ecompInstanceId" data-tests-id="ecomp-instance-id" required ng-change="vm.setEcompEnvironment(selectedIndex)"> + <option value="" disabled selected hidden>Select environment ID</option> + <option data-tests-id="environment-id-option" class="environmentIdOption" ng-repeat="item in vm.environments" ng-value="$index">{{item.operationalEnvironmentId}}</option> + </select> + </div> + <div class="form-group"> + <label class="control-label" for="ecompInstanceName">ECOMP Environment Name</label> + <input id="ecompInstanceName" class="form-control" ng-model="vm.newEnvironment.ecompInstanceName" name="ecompInstanceName" data-tests-id="ecomp-instance-name" required disabled> + </div> + <div class="form-group"> + <label class="control-label" for="tenantContext">Select VSP</label> + <input id="tenantContext" class="form-control" ng-model="vm.newEnvironment.tenantContext" name="tenantContext" data-tests-id="tenant-context" required disabled> + </div> + <div class="form-group"> + <label class="control-label" for="operationalEnvironmentType">Environment Type</label> + <select class="form-control" ng-class="{'grayedOut': !vm.newEnvironment.operationalEnvironmentType}" ng-model="vm.newEnvironment.operationalEnvironmentType" name="operationalEnvironmentType" id="operationalEnvironmentType" data-tests-id="operational-environment-type" required> + <option value="" disabled selected hidden>Enter environment type</option> + <option data-tests-id="environment-type-option" class="environmentTypeOption" ng-repeat="item in vm.environmentsTypesList" ng-value="item">{{item}}</option> + </select> + </div> + <div class="form-group"> + <label class="control-label" for="workloadContext">Workload Context</label> + <select class="form-control" ng-class="{'grayedOut': !vm.newEnvironment.workloadContext}" ng-model="vm.newEnvironment.workloadContext" name="workloadContext" id="workloadContext" data-tests-id="workload-context" required> + <option value="" disabled selected hidden>Select workload context</option> + <option data-tests-id="workload-context-option" class="workloadContextOption" ng-repeat="item in vm.workloadContextList" ng-value="item">{{vm.newEnvironment.operationalEnvironmentType + '_' + item}}</option> + </select> + </div> + <div data-tests-id="test-new-environment-error" class="connect-error" ng-if="vm.aaiConnectError">{{vm.aaiConnectError}}</div> + </div> + <div class="modal-footer"> + <div class="pull-right"> + <button data-tests-id="submit-button" type="submit" id="submit" name="submit" class="btn btn-primary" data-ng-disabled="newTestEnvironment.$invalid">Create</button> + <button data-tests-id="cancel-button" type="button" id="cancel" name="cancel" class="btn btn-white" ng-click="vm.close()">Cancel</button> + </div> + </div> +</form> + diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/pending-change-management/pending-change-management.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/pending-change-management/pending-change-management.html index 911e86c24..59c30c54d 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/pending-change-management/pending-change-management.html +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/pending-change-management/pending-change-management.html @@ -1,4 +1,4 @@ -<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/new-change-management/new-change-management.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/modal-create-new.css" /> <link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/pending-change-management/pending-change-management.css" /> <div class="modal-header"> <h3 class="modal-title" id="pending-modal-header">Pending</h3> @@ -8,5 +8,5 @@ <span id="pending-modal-content">{{vm.content}}</span> </div> <div class="modal-footer"> - <div ng-include="'app/vid/scripts/modals/change-management-manual-tasks-controller/change-management-manual-tasks.html'"></div> + <!--<div ng-include="'app/vid/scripts/modals/change-management-manual-tasks-controller/change-management-manual-tasks.html'"></div>--> </div> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/service-metadata/service-metadata.css b/vid-app-common/src/main/webapp/app/vid/scripts/modals/service-metadata/service-metadata.css new file mode 100644 index 000000000..2c7f3a106 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/service-metadata/service-metadata.css @@ -0,0 +1,37 @@ +.modal-dialog * { + font-family: OpenSans-Regular, sans-serif; +} +.modal-dialog { + width: 540px; +} +.modal-dialog service-metadata{ + background: white; +} +.modal-dialog .modal-footer { + background: #F8F8F8; + border-radius: 0 0 8px 8px; +} +.modal-dialog .cancel-btn { + width: 120px; +} +.modal-dialog .title { + font-size: 22px; + color: #000000; +} +.modal-dialog .top { + margin: 15px 20px; + border-bottom: 3px solid #009FDB; + padding-bottom: 15px; +} +.modal-dialog .modal-x { + float: right; + margin-top: 10px; + height: 15px; + cursor:pointer; +} +.modal-dialog service-metadata label { + margin-bottom: 3px; +} +.modal-dialog service-metadata .field { + margin-top: 11px; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/service-metadata/service-metadata.html b/vid-app-common/src/main/webapp/app/vid/scripts/modals/service-metadata/service-metadata.html new file mode 100644 index 000000000..47ed3e424 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/service-metadata/service-metadata.html @@ -0,0 +1,12 @@ +<link rel="stylesheet" type="text/css" href="app/vid/scripts/modals/service-metadata/service-metadata.css"/> +<div class="top"> + <span class="title">{{selectedMetadata[0].value}}</span> + <span class="top-btn sprite modal-x" data-ng-click="cancel()"></span> +</div> + +<div class="meatadata-modal-body" id="modal-body"> + <service-metadata service-metadata-fields="selectedMetadata"></service-metadata> +</div> +<div class="modal-footer"> + <button class="cancel-btn grey" data-tests-id="cancel" data-ng-click="cancel()">Close</button> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterfaceFactory.java b/vid-app-common/src/main/webapp/app/vid/scripts/services/OwningEntityService.js index ab12c7b14..ef48aa939 100755..100644 --- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterfaceFactory.java +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/OwningEntityService.js @@ -1,44 +1,40 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.vid.mso;
-
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.openecomp.vid.mso.rest.MsoRestClientNew;
-
-/**
- * A factory for creating MsoRestInterface objects.
- */
-public class MsoRestInterfaceFactory {
-
- /**
- * Gets the single instance of MsoRestInterfaceFactory.
- *
- * @return single instance of MsoRestInterfaceFactory
- */
- public static MsoInterface getInstance() {
- String msoPropertyName = "mso.client.type";
- if (SystemProperties.containsProperty(msoPropertyName) &&
- SystemProperties.getProperty(msoPropertyName).equals("LOCAL")) {
- return new MsoLocalClientNew();
- } else
- return new MsoRestClientNew();
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +"use strict"; + +var OwningEntityService = function ($http, $log, PropertyService, UtilityService, COMPONENT) { + return { + getOwningEntityProperties: function ( successCallbackFunction, familyName) { + $log.debug("OwningEntityService:getOwningEntityProperties"); + familyName = familyName || COMPONENT.PARAMETER_STANDARDIZATION_FAMILY; + var url = COMPONENT.GET_CATEGORY_PARAMETERS+"?familyName=" + familyName+ "&r=" + Math.random(); + var config = { timeout: PropertyService.getServerResponseTimeoutMsec() }; + + $http.get(url, config) + .then(function (response) { + successCallbackFunction(response.data.categoryParameters); + }).catch(UtilityService.runHttpErrorHandler); + } + } +}; + +appDS2.factory("OwningEntityService", ["$http", "$log", "PropertyService", + "UtilityService", "COMPONENT", "FIELD", OwningEntityService]); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js index a10f602bf..53a941bfb 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js @@ -21,6 +21,70 @@ "use strict";
var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONENT, FIELD, $q) {
+
+ function getServiceInstance(serviceInstanceIdentifier, findBy) {
+ serviceInstanceIdentifier.trim();
+
+ return $http.get(COMPONENT.AAI_GET_SERVICE_INSTANCE_PATH + serviceInstanceIdentifier + "/" + findBy + "?r=" + Math.random(), {}, {
+ timeout: PropertyService.getServerResponseTimeoutMsec()
+ });
+ }
+
+ function getPnfByName(pnfName) {
+ var deferred = $q.defer();
+ var url = COMPONENT.AAI_GET_PNF_BY_NAME+ encodeURIComponent(pnfName) ;
+ var config = { timeout: PropertyService.getServerResponseTimeoutMsec() };
+
+ $http.get(url, config)
+ .success(function (response) {
+ deferred.resolve({data: response});
+ })
+ .error(function(data, status, headers, config) {
+ deferred.reject({message: data, status: status});
+ });
+
+ return deferred.promise;
+ };
+
+
+ function getGlobalCustomerIdFromServiceInstanceResponse(response) {
+ var globalCustomerId = "";
+ if (angular.isArray(response.data[FIELD.ID.RESULT_DATA])) {
+ var customerIndex = 5;
+ var customerIdIndex = 6;
+ var itemIndex = 0;
+
+ var item = response.data[FIELD.ID.RESULT_DATA][itemIndex];
+ var url = item[FIELD.ID.RESOURCE_LINK];
+ var urlParts = url.split("/");
+ if (urlParts[customerIndex] === FIELD.ID.CUSTOMER) {
+ globalCustomerId = urlParts[customerIdIndex];
+ }
+ }
+ return globalCustomerId;
+ }
+
+ function searchServiceInstances(query) {
+ return $http.get( COMPONENT.SEARCH_SERVICE_INSTANCES + query, {}, {
+ timeout : PropertyService.getServerResponseTimeoutMsec()
+ }).then(function (response) {
+ var displayData = response.data[FIELD.ID.SERVICE_INSTANCES];
+ if (!displayData.length) {
+ displayData = [{
+ globalCustomerId : null,
+ subscriberName : null,
+ serviceType : FIELD.PROMPT.NO_SERVICE_SUB,
+ serviceInstanceId : FIELD.PROMPT.NO_SERVICE_INSTANCE
+ }];
+ }
+ return {displayData: displayData};
+ })
+ }
+
+ function getJoinedQueryString(queries) {
+ return queries.filter(function (val) {return val;}).join("&");
+ }
+
return {
getSubscriberName : function(globalCustomerId,
successCallbackFunction) {
@@ -34,16 +98,16 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE timeout : PropertyService
.getServerResponseTimeoutMsec()
}).then(function(response) {
- var subName = "";
+ var result = {};
if (response.data) {
- subName = response.data[FIELD.ID.SUBNAME];
+ result.subscriberName = response.data[FIELD.ID.SUBNAME];
+ result.serviceSubscriptions = response.data[FIELD.ID.SERVICE_SUBSCRIPTIONS];
}
- successCallbackFunction(subName);
+ successCallbackFunction(result);
})["catch"]
(UtilityService.runHttpErrorHandler);
},
-
runNamedQuery : function (namedQueryId, globalCustomerId, serviceType, serviceInstanceId, successCallback, errorCallback) {
var url = COMPONENT.AAI_SUB_VIEWEDIT_PATH +
@@ -86,6 +150,48 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE });
},
+ getPNFInformationByServiceTypeAndId : function (globalCustomerId, serviceType, serviceInstanceId, successCallback, errorCallback) {
+
+ var url = COMPONENT.AAI_GET_PNF_INSTANCE +
+ COMPONENT.FORWARD_SLASH + encodeURIComponent(globalCustomerId) +
+ COMPONENT.FORWARD_SLASH + encodeURIComponent(serviceType) +
+ COMPONENT.FORWARD_SLASH + encodeURIComponent(serviceInstanceId);
+ $http.get(url, {}, {
+ timeout : PropertyService.getServerResponseTimeoutMsec()
+ }).then(function(response) {
+ if (response.data != null) {
+ successCallback(response);
+ } else {
+ errorCallback(response);
+ }
+ }, function(response) {
+ errorCallback(response);
+ });
+ },
+
+ searchServiceInstances: searchServiceInstances,
+
+ getModelVersionId: function (subscriberId, instanceId) {
+ var globalCustomerIdQuery = COMPONENT.SELECTED_SUBSCRIBER_SUB_PATH + subscriberId;
+ var serviceInstanceQuery = COMPONENT.SELECTED_SERVICE_INSTANCE_SUB_PATH + instanceId;
+
+ var query = "?" + getJoinedQueryString([globalCustomerIdQuery, serviceInstanceQuery]);
+
+ var deferred = $q.defer();
+
+ searchServiceInstances(query).then(function (response) {
+ var displayData = response.displayData;
+ if (displayData[0] && displayData[0].aaiModelVersionId) {
+ deferred.resolve(displayData[0].aaiModelVersionId);
+ } else {
+ deferred.reject(FIELD.ERROR.MODEL_VERSION_ID_MISSING);
+ }
+ }).catch(function (err) {
+ deferred.reject(err);
+ });
+
+ return deferred.promise;
+ },
getSubDetails : function(selectedSubscriber, selectedServiceInstance, successCallback, errorCallback) {
var subscriber;
@@ -124,9 +230,7 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE }
});
} else {
- if (serviceInstanceId == []) {
- serviceInstanceId = [ FIELD.PROMPT.NO_SERVICE_INSTANCE ];
- }
+ serviceInstanceId = [ FIELD.PROMPT.NO_SERVICE_INSTANCE ];
}
angular.forEach(serviceInstanceId, function(subVal, subKey) {
displayData.push({
@@ -145,7 +249,7 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE } else {
displayData.push({
globalCustomerId : selectedSubscriber,
- subscriberName : selectedSubscriberName,
+ subscriberName : subscriberName,
serviceType : FIELD.PROMPT.NO_SERVICE_SUB,
serviceInstanceId : FIELD.PROMPT.NO_SERVICE_INSTANCE
});
@@ -178,6 +282,26 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE });
},
+ getServiceInstance : getServiceInstance,
+ getPnfByName : getPnfByName,
+
+ getGlobalCustomerIdByInstanceIdentifier : function(serviceInstanceIdentifier, findBy) {
+ serviceInstanceIdentifier.trim();
+
+ return getServiceInstance(serviceInstanceIdentifier, findBy)
+ .then(function (response) {
+ return getGlobalCustomerIdFromServiceInstanceResponse(response);
+ });
+ },
+
+ getMultipleValueParamQueryString: function(values, paramSubPath) {
+ if (values.length) {
+ return paramSubPath + values.filter(function (val) {return val;}).join("&" + paramSubPath);
+ }
+ },
+
+ getJoinedQueryString: getJoinedQueryString,
+
getServices2 : function(successCallback, errorCallback ) {
$http.get( FIELD.ID.AAI_GET_SERVICES, {}, {
@@ -252,12 +376,6 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE var lcpCloudRegionTenants = [];
var aaiLcpCloudRegionTenants = response.data;
- lcpCloudRegionTenants.push({
- "cloudRegionId": "",
- "tenantName": FIELD.PROMPT.REGION,
- "tenantId": ""
- });
-
for (var i = 0; i < aaiLcpCloudRegionTenants.length; i++) {
lcpCloudRegionTenants.push({
"cloudRegionId": aaiLcpCloudRegionTenants[i][COMPONENT.CLOUD_REGION_ID],
@@ -267,8 +385,9 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE }
successCallbackFunction(lcpCloudRegionTenants);
- })["catch"]
- (UtilityService.runHttpErrorHandler);
+ }).catch(function(error) {
+ (UtilityService.runHttpErrorHandler(error.data, error.status));
+ })
},
getSubscribers : function(successCallbackFunction) {
$log
@@ -306,7 +425,7 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE })["catch"]
(UtilityService.runHttpErrorHandler);
},
- getLoggedInUserID : function(successCallbackFunction) {
+ getLoggedInUserID : function(successCallbackFunction, catchCallbackFunction) {
$log
.debug("AaiService:getLoggedInUserID");
var url = COMPONENT.GET_USER_ID;
@@ -325,6 +444,9 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE successCallbackFunction([]);
}
},function(failure){console.log("failure")})["catch"]
+ if(catchCallbackFunction) {
+ catchCallbackFunction();
+ }
(UtilityService.runHttpErrorHandler);
},
getServices : function(successCallbackFunction) {
@@ -459,6 +581,8 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE return deferred.promise;
},
+
+
getSubscriberServiceTypes: function(subscriberUuid) {
var deferred = $q.defer();
$log.debug("AaiService:getSubscriberServiceTypes: subscriberUuid: " + subscriberUuid);
@@ -477,6 +601,61 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE }
return deferred.promise;
+ },
+ getVnfInstancesList: function(globalSubscriberId, serviceType, modelVersionId ,modelInvariantId, cloudRegionId) {
+ var deferred = $q.defer();
+ $http.get([COMPONENT.AAI_GET_VNF_INSTANCES_LIST,
+ globalSubscriberId,
+ serviceType,
+ modelVersionId,
+ modelInvariantId,
+ cloudRegionId]
+ .join(COMPONENT.FORWARD_SLASH))
+ .success(function (response) {
+ deferred.resolve(response);
+ }).error(function (data, status) {
+ deferred.reject({message: data, status: status});
+ });
+ return deferred.promise;
+ },
+ getPnfInstancesList: function (globalCustomerId, serviceType, modelVersionId, modelInvariantId, cloudRegionId, equipVendor, equipModel) {
+ var deferred = $q.defer();
+ $http.get([COMPONENT.AAI_GET_PNF_INSTANCES_LIST,
+ globalCustomerId, serviceType,
+ modelVersionId, modelInvariantId,
+ cloudRegionId,
+ equipVendor, equipModel
+ ].join(COMPONENT.FORWARD_SLASH))
+ .success(function (response) {
+ deferred.resolve(response);
+ }).error(function (data, status) {
+ deferred.reject({message: data, status: status});
+ });
+ return deferred.promise;
+ },
+ getByUri: function(uri) {
+ var deferred = $q.defer();
+
+ $http.get(COMPONENT.AAI_GET_BY_URI + uri)
+ .success(function (response) {
+ deferred.resolve({data: []});
+ }).error(function (data, status, headers, config) {
+ deferred.reject({message: data, status: status});
+ });
+
+ return deferred.promise;
+ },
+ getConfiguration: function(configurationId) {
+ var deferred = $q.defer();
+
+ $http.get(COMPONENT.AAI_GET_CONFIGURATION + configurationId)
+ .success(function (response) {
+ deferred.resolve({data: []});
+ }).error(function (data, status, headers, config) {
+ deferred.reject({message: data, status: status});
+ });
+
+ return deferred.promise;
}
}};
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js index f2282d69a..fdab6564b 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js @@ -5,16 +5,20 @@ function changeManagementService($http, $q, COMPONENT, VIDCONFIGURATION) { this.getWorkflows = function (vnfs) { - var deferred = $q.defer(); - - $http.get(COMPONENT.GET_WORKFLOW.replace("@vnfs", vnfs)) - .success(function (response) { - deferred.resolve({data: response}); - }).error(function (data, status, headers, config) { - deferred.reject({message: data, status: status}); + var requestVnfs = _.map(vnfs, function (vnf) { + return { + UUID: vnf["modelVersionId"], + invariantUUID: vnf["invariant-id"] + }; }); - - return deferred.promise; + var requestDetails = {vnfsDetails: requestVnfs}; + return $http.post(COMPONENT.GET_WORKFLOW, requestDetails) + .success(function (response) { + return {data: response}; + }) + .catch(function (err) { + return {data: []}; + }); }; this.getMSOChangeManagements = function() { diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/componentService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/componentService.js index ea46dcb9b..615f25ec2 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/componentService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/componentService.js @@ -25,22 +25,26 @@ var ComponentService = function($log, COMPONENT, UtilityService) { var _this = this;
var componentList = [ {
- id : COMPONENT.NETWORK,
- displayName : "Network"
+ id : COMPONENT.NETWORK,
+ displayName : "Network"
}, {
- id : COMPONENT.SERVICE,
- displayName : "Service Instance"
- }, {id : COMPONENT.OLDVERSION,
- displayName : "Previous Version"
+ id : COMPONENT.SERVICE,
+ displayName : "Service Instance"
+ }, {
+ id : COMPONENT.OLDVERSION,
+ displayName : "Previous Version"
}, {
- id : COMPONENT.VNF,
- displayName : "Virtual Network Function"
+ id : COMPONENT.VNF,
+ displayName : "Virtual Network Function"
+ }, {
+ id : COMPONENT.VF_MODULE,
+ displayName : "VF Module"
}, {
- id : COMPONENT.VF_MODULE,
- displayName : "VF Module"
+ id: COMPONENT.VOLUME_GROUP,
+ displayName: "Volume Group"
}, {
- id : COMPONENT.VOLUME_GROUP,
- displayName : "Volume Group"
+ id : COMPONENT.CONFIGURATION,
+ displayName : "Port Mirroring Configuration"
} ];
var getInventoryInfo = function(suffix, inventoryItem) {
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js index e171e2856..838ab3719 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js @@ -30,345 +30,355 @@ */
var CreationService = function($log, AaiService, AsdcService, DataService,VIDCONFIGURATION,
- ComponentService, COMPONENT, FIELD, PARAMETER, UtilityService) {
-
- var _this = this;
-
- var getAsyncOperationList = function() {
- if (DataService.getLoggedInUserId() == null)
- getLoggedInUserID();
- switch (_this.componentId) {
- case COMPONENT.SERVICE:
- return [ getSubscribers, getServices,getAicZones ];
- case COMPONENT.NETWORK:
- return [ getLcpCloudRegionTenantList ];
- case COMPONENT.VNF:
- return [ getLcpCloudRegionTenantList ];
- case COMPONENT.VF_MODULE:
- return [ getLcpCloudRegionTenantList ];
- case COMPONENT.VOLUME_GROUP:
- return [ getLcpCloudRegionTenantList ];
- }
- };
-
- /*
- * "getSummaryList" and "getUserProvidedList" return parameters that should
- * be displayed in the summary and user provided sections, respectively. The
- * functions are expected to return lists that are in the format needed by
- * the parameter-block directive.
- */
-
- var getSummaryList = function() {
-
- /*
- * These placeholders should be removed and their usage in
- * "getSummaryList" should be replaced by appropriate code as the
- * requirements and interfaces firm up.
- */
-
- var PLACEHOLDER_RESOURCE_DESCRIPTION = "Resource Description (PLACEHOLDER)";
- var PLACEHOLDER_SERVICE_CATEGORY = "Service Category (PLACEHOLDER)";
- var PLACEHOLDER_VF_MODULE_DESCRIPTION = "VF Module Description (PLACEHOLDER)";
- var PLACEHOLDER_VF_MODULE_LABEL = "VF Module Label (PLACEHOLDER)";
- var PLACEHOLDER_VF_MODULE_TYPE = "VF Module Type (PLACEHOLDER)";
-
- _this.parameterList = new Array();
-
- /*
- * Common fields displayed at the top of all create instance screens.
- */
- if(DataService.getModelInfo(_this.componentId)["serviceTypeName"]==null
- || DataService.getModelInfo(_this.componentId)["serviceTypeName"]==undefined
- || DataService.getModelInfo(_this.componentId)["serviceTypeName"]==''){
- addToList(FIELD.NAME.SERVICE_NAME, DataService.getServiceName());
- }
-
- switch (_this.componentId) {
- case COMPONENT.SERVICE:
- if ( !DataService.getALaCarte() ) {
- // for macro instantiation need to add the resource names under the node template list
- // this field is called modelCustomizationName in the asdc client code
- var p;
- var rlist = DataService.getResources();
- var res;
- if ( rlist != null ) {
- for (var i = 0; i < rlist.length; i++) {
- res = rlist[i];
-
- p = FIELD.NAME.RESOURCE_NAME.concat(" " + (i+1));
- addToList(p, res.name );
- p = FIELD.NAME.RESOURCE_DESCRIPTION.concat(" " + (i+1));
- addToList(p, res.description );
- }
- }
- }
- if(DataService.getModelInfo(_this.componentId)["createSubscriberName"]!=null && DataService.getModelInfo(_this.componentId)["createSubscriberName"]!=''){
- addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
- .getModelInfo(_this.componentId)["createSubscriberName"]);
- }
- if(DataService.getModelInfo(_this.componentId)["serviceTypeName"]!=null && DataService.getModelInfo(_this.componentId)["serviceTypeName"]!=''){
- addToList(FIELD.NAME.SERVICE_TYPE, DataService
- .getModelInfo(_this.componentId)["serviceTypeName"]);
- addToList(FIELD.NAME.SERVICE_NAME, DataService.getServiceName());
- }
- addToList(FIELD.NAME.SERVICE_INVARIANT_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
- addToList(FIELD.NAME.SERVICE_VERSION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
- addToList(FIELD.NAME.SERVICE_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
- addToList(FIELD.NAME.SERVICE_DESCRIPTION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.DESCRIPTION]);
- addToList(FIELD.NAME.SERVICE_CATEGORY, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.CATEGORY]);
- if (DataService.getModelInfo(_this.componentId)[FIELD.ID.SERVICE_TYPE] != "null") {
- addToList(FIELD.NAME.SERVICE_TYPE, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.SERVICE_TYPE]);
- addToList(FIELD.NAME.SERVICE_ROLE, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.SERVICE_ROLE]);
- }
-
- break;
- case COMPONENT.VF_MODULE:
- addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
- .getSubscriberName());
- addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService
- .getServiceInstanceName());
- addToList(FIELD.NAME.MODEL_NAME, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]);
- addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
- addToList(FIELD.NAME.MODEL_VERSION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
- addToList(FIELD.NAME.MODEL_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
- addToList(FIELD.NAME.MODEL_CUSTOMIZATION_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.CUSTOMIZATION_UUID]);
- break;
- case COMPONENT.VNF:
- addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
- .getSubscriberName());
- addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService
- .getServiceInstanceName());
- addToList(FIELD.NAME.MODEL_NAME, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]);
- addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
- addToList(FIELD.NAME.MODEL_VERSION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
- addToList(FIELD.NAME.MODEL_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
- addToList(FIELD.NAME.MODEL_CUSTOMIZATION_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.CUSTOMIZATION_UUID]);
- addToList(FIELD.NAME.MODEL_CUSTOMIZATION_NAME, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_CUSTOMIZATION_NAME]);
- addToList(FIELD.NAME.MODEL_VNF_TYPE, DataService
- .getModelInfo(_this.componentId)[COMPONENT.VNF_TYPE]);
- addToList(FIELD.NAME.MODEL_VNF_ROLE, DataService
- .getModelInfo(_this.componentId)[COMPONENT.VNF_ROLE]);
- addToList(FIELD.NAME.MODEL_VNF_FUNCTION, DataService
- .getModelInfo(_this.componentId)[COMPONENT.VNF_FUNCTION]);
- addToList(FIELD.NAME.MODEL_VNF_CODE, DataService
- .getModelInfo(_this.componentId)[COMPONENT.VNF_CODE]);
- break;
- case COMPONENT.NETWORK:
- case COMPONENT.VOLUME_GROUP:
- addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
- .getSubscriberName());
- addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService
- .getServiceInstanceName());
- addToList(FIELD.NAME.MODEL_NAME, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]);
- addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
- addToList(FIELD.NAME.MODEL_VERSION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
- addToList(FIELD.NAME.MODEL_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
- addToList(FIELD.NAME.MODEL_CUSTOMIZATION_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.CUSTOMIZATION_UUID]);
- break;
- }
-
- return _this.parameterList;
- };
-
- var getUserProvidedList = function() {
- var parameterList = [];
- var isUserProvidedNaming = false;
- if ( (DataService.getModelInfo(_this.componentId).serviceEcompNaming != null)
- && (DataService.getModelInfo(_this.componentId).serviceEcompNaming === "false") ) {
- isUserProvidedNaming = true;
- }
-
- var isInTop = DataService.getHideServiceFields() || false;
- if (_this.componentId === COMPONENT.SERVICE) {
- if ( DataService.getALaCarte() ) {
- parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ];
- if(!isInTop){
- parameterList = parameterList.concat([ getSubscribersParameter(),
- FIELD.PARAMETER.SERVICE_TYPE_DISABLED ]);
- }
- }
- else {
- // macro
-
- if(!isInTop){
- if (isUserProvidedNaming) {
- parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ];
-
- }
- parameterList = parameterList.concat([ getSubscribersParameter() ]);
- parameterList = parameterList.concat([ getServiceId(),
- FIELD.PARAMETER.SERVICE_TYPE,
- FIELD.PARAMETER.LCP_REGION,
- FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED,
- ]);
- parameterList = parameterList.concat([ getAICZones() ]);
-
-
- }else{
- parameterList = parameterList.concat([ getServiceId(),
- FIELD.PARAMETER.LCP_REGION,
- FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED ]);
- }
- }
- }
- else {
- parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ];
- switch (_this.componentId) {
- case COMPONENT.NETWORK:
- case COMPONENT.VNF:
- parameterList = parameterList.concat([ getServiceId(),
- getLcpRegion(), FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED ]);
- break;
- case COMPONENT.VF_MODULE:
- parameterList = parameterList.concat([
- getLcpRegion(),
- FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED
- ]);
-
- var availableVolumeGroupList = DataService.getAvailableVolumeGroupList();
-
- if (availableVolumeGroupList && availableVolumeGroupList.length > 0) {
- var availableVolumeGroupNames = [FIELD.STATUS.NONE];
-
- for (var i = 0; i < availableVolumeGroupList.length; i++) {
- availableVolumeGroupNames.push(availableVolumeGroupList[i].instance.name);
- }
-
- parameterList.push(addOptionList(
- FIELD.PARAMETER.AVAILABLE_VOLUME_GROUP,
- availableVolumeGroupNames));
- }
- break;
- case COMPONENT.VOLUME_GROUP:
- parameterList = parameterList.concat([ getLcpRegion(),
- FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED ]);
- }
- }
- parameterList.push(FIELD.PARAMETER.SUPPRESS_ROLLBACK);
- if(_this.componentId === COMPONENT.VF_MODULE ){
- parameterList.push({name: FIELD.NAME.SDN_C_PRELOAD,
- id: FIELD.ID.SDN_C_PRELOAD,
- type: "checkbox",
- isEnabled: true,
- isRequired: false,
- hideFieldAndLabel: true
- }
- );
- parameterList.push({name: FIELD.NAME.UPLOAD_SUPPLEMENTORY_DATA_FILE,
- id: FIELD.ID.UPLOAD_SUPPLEMENTORY_DATA_FILE,
- type: "checkbox",
- isEnabled: true,
- isRequired: false,
- value:false
- }
- );
-
- parameterList.push({name: FIELD.NAME.SUPPLEMENTORY_DATA_FILE,
- id: FIELD.ID.SUPPLEMENTORY_DATA_FILE,
- type: "file",
- isRequired: false,
- isVisiblity: false
- }
- );
- }
-
- if( VIDCONFIGURATION.UPLOAD_SUPPLEMENTARY_STATUS_CHECK_ENABLED && _this.componentId === COMPONENT.VOLUME_GROUP){
- parameterList.push({name: FIELD.NAME.UPLOAD_SUPPLEMENTORY_DATA_FILE,
- id: FIELD.ID.UPLOAD_SUPPLEMENTORY_DATA_FILE,
- type: "checkbox",
- isEnabled: true,
- isRequired: false
- }
- );
-
- parameterList.push({name: FIELD.NAME.SUPPLEMENTORY_DATA_FILE,
- id: FIELD.ID.SUPPLEMENTORY_DATA_FILE,
- type: "file",
- isRequired: false,
- isVisiblity: false
- }
- );
- }
-
- addArbitraryParameters(parameterList);
-
- return parameterList;
- };
+ ComponentService, COMPONENT, FIELD, PARAMETER, UtilityService, OwningEntityService) {
+
+ var _this = this;
+
+ var getAsyncOperationList = function() {
+ if (DataService.getLoggedInUserId() == null) {
+ getLoggedInUserID();
+ } else {
+ UtilityService.startNextAsyncOperation();
+ }
+ switch (_this.componentId) {
+ case COMPONENT.SERVICE:
+ return [ getSubscribers, getServices, getAicZones, getOwningEntityProperties ];
+ case COMPONENT.NETWORK:
+ return [ getLcpCloudRegionTenantList, getOwningEntityProperties ];
+ case COMPONENT.VNF:
+ return [ getLcpCloudRegionTenantList, getOwningEntityProperties ];
+ case COMPONENT.VF_MODULE:
+ return [ getLcpCloudRegionTenantList ];
+ case COMPONENT.VOLUME_GROUP:
+ return [ getLcpCloudRegionTenantList ];
+ }
+ };
+
+ /*
+ * "getSummaryList" and "getUserProvidedList" return parameters that should
+ * be displayed in the summary and user provided sections, respectively. The
+ * functions are expected to return lists that are in the format needed by
+ * the parameter-block directive.
+ */
+
+ var getSummaryList = function() {
+
+ /*
+ * These placeholders should be removed and their usage in
+ * "getSummaryList" should be replaced by appropriate code as the
+ * requirements and interfaces firm up.
+ */
+
+ var PLACEHOLDER_RESOURCE_DESCRIPTION = "Resource Description (PLACEHOLDER)";
+ var PLACEHOLDER_SERVICE_CATEGORY = "Service Category (PLACEHOLDER)";
+ var PLACEHOLDER_VF_MODULE_DESCRIPTION = "VF Module Description (PLACEHOLDER)";
+ var PLACEHOLDER_VF_MODULE_LABEL = "VF Module Label (PLACEHOLDER)";
+ var PLACEHOLDER_VF_MODULE_TYPE = "VF Module Type (PLACEHOLDER)";
+
+ _this.parameterList = new Array();
+
+ /*
+ * Common fields displayed at the top of all create instance screens.
+ */
+ if(DataService.getModelInfo(_this.componentId)["serviceTypeName"]==null
+ || DataService.getModelInfo(_this.componentId)["serviceTypeName"]==undefined
+ || DataService.getModelInfo(_this.componentId)["serviceTypeName"]==''){
+ addToList(FIELD.NAME.SERVICE_NAME, DataService.getServiceName());
+ }
+
+ switch (_this.componentId) {
+ case COMPONENT.SERVICE:
+ if ( !DataService.getALaCarte() ) {
+ // for macro instantiation need to add the resource names under the node template list
+ // this field is called modelCustomizationName in the asdc client code
+ var p;
+ var rlist = DataService.getResources();
+ var res;
+ if ( rlist != null ) {
+ for (var i = 0; i < rlist.length; i++) {
+ res = rlist[i];
+
+ p = FIELD.NAME.RESOURCE_NAME.concat(" " + (i+1));
+ addToList(p, res.name );
+ p = FIELD.NAME.RESOURCE_DESCRIPTION.concat(" " + (i+1));
+ addToList(p, res.description );
+ }
+ }
+ }
+ if(DataService.getModelInfo(_this.componentId)["createSubscriberName"]!=null && DataService.getModelInfo(_this.componentId)["createSubscriberName"]!=''){
+ addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
+ .getModelInfo(_this.componentId)["createSubscriberName"]);
+ }
+ if(DataService.getModelInfo(_this.componentId)["serviceTypeName"]!=null && DataService.getModelInfo(_this.componentId)["serviceTypeName"]!=''){
+ addToList(FIELD.NAME.SERVICE_TYPE, DataService
+ .getModelInfo(_this.componentId)["serviceTypeName"]);
+ addToList(FIELD.NAME.SERVICE_NAME, DataService.getServiceName());
+ }
+ addToList(FIELD.NAME.SERVICE_INVARIANT_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
+ addToList(FIELD.NAME.SERVICE_VERSION, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
+ addToList(FIELD.NAME.SERVICE_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
+ addToList(FIELD.NAME.SERVICE_DESCRIPTION, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.DESCRIPTION]);
+ addToList(FIELD.NAME.SERVICE_CATEGORY, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.CATEGORY]);
+ if (DataService.getModelInfo(_this.componentId)[FIELD.ID.SERVICE_TYPE] != "null") {
+ addToList(FIELD.NAME.SERVICE_TYPE, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.SERVICE_TYPE]);
+ addToList(FIELD.NAME.SERVICE_ROLE, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.SERVICE_ROLE]);
+ }
+
+ break;
+ case COMPONENT.VF_MODULE:
+ addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
+ .getSubscriberName());
+ addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService
+ .getServiceInstanceName());
+ addToList(FIELD.NAME.MODEL_NAME, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]);
+ addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
+ addToList(FIELD.NAME.MODEL_VERSION, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
+ addToList(FIELD.NAME.MODEL_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
+ addToList(FIELD.NAME.MODEL_CUSTOMIZATION_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.CUSTOMIZATION_UUID]);
+ break;
+ case COMPONENT.VNF:
+ addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
+ .getSubscriberName());
+ addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService
+ .getServiceInstanceName());
+ addToList(FIELD.NAME.MODEL_NAME, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]);
+ addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
+ addToList(FIELD.NAME.MODEL_VERSION, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
+ addToList(FIELD.NAME.MODEL_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
+ addToList(FIELD.NAME.MODEL_CUSTOMIZATION_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.CUSTOMIZATION_UUID]);
+ addToList(FIELD.NAME.MODEL_CUSTOMIZATION_NAME, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_CUSTOMIZATION_NAME]);
+ addToList(FIELD.NAME.MODEL_VNF_TYPE, DataService
+ .getModelInfo(_this.componentId)[COMPONENT.VNF_TYPE]);
+ addToList(FIELD.NAME.MODEL_VNF_ROLE, DataService
+ .getModelInfo(_this.componentId)[COMPONENT.VNF_ROLE]);
+ addToList(FIELD.NAME.MODEL_VNF_FUNCTION, DataService
+ .getModelInfo(_this.componentId)[COMPONENT.VNF_FUNCTION]);
+ addToList(FIELD.NAME.MODEL_VNF_CODE, DataService
+ .getModelInfo(_this.componentId)[COMPONENT.VNF_CODE]);
+ break;
+ case COMPONENT.NETWORK:
+ case COMPONENT.VOLUME_GROUP:
+ addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
+ .getSubscriberName());
+ addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService
+ .getServiceInstanceName());
+ addToList(FIELD.NAME.MODEL_NAME, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]);
+ addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
+ addToList(FIELD.NAME.MODEL_VERSION, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
+ addToList(FIELD.NAME.MODEL_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
+ addToList(FIELD.NAME.MODEL_CUSTOMIZATION_UUID, DataService
+ .getModelInfo(_this.componentId)[FIELD.ID.CUSTOMIZATION_UUID]);
+ break;
+ }
+
+ return _this.parameterList;
+ };
+
+ var getUserProvidedList = function() {
+ var parameterList = [];
+ var isUserProvidedNaming = false;
+ if ( (DataService.getModelInfo(_this.componentId).serviceEcompNaming != null)
+ && (DataService.getModelInfo(_this.componentId).serviceEcompNaming === "false") ) {
+ isUserProvidedNaming = true;
+ }
+
+ var isInTop = DataService.getHideServiceFields() || false;
+ if (_this.componentId === COMPONENT.SERVICE) {
+ if ( DataService.getALaCarte() ) {
+ parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ];
+ if(!isInTop){
+ parameterList = parameterList.concat([ getSubscribersParameter(),
+ FIELD.PARAMETER.SERVICE_TYPE_DISABLED ]);
+ }
+ }
+ else {
+ // macro
+
+ if(!isInTop){
+ if (isUserProvidedNaming) {
+ parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ];
- var addArbitraryParameters = function(parameterList) {
- if ( DataService.getModelInfo(_this.componentId).displayInputs != null ) {
- var inputs = DataService.getModelInfo(_this.componentId).displayInputs;
- for ( var key in inputs) {
- var parameter = {
- id : key,
- type : PARAMETER.STRING,
- name : ComponentService.getFieldDisplayName(key),
- value : inputs[key][PARAMETER.DEFAULT],
- isRequired : inputs[key][PARAMETER.REQUIRED],
- description : inputs[key][PARAMETER.DESCRIPTION]
- };
- if ( DataService.getALaCarte() ) {
- parameter.name = ComponentService.getFieldDisplayName(inputs[key][PARAMETER.DISPLAY_NAME]);
- }
- switch (inputs[key][PARAMETER.TYPE]) {
- case PARAMETER.INTEGER:
- parameter.type = PARAMETER.NUMBER;
- break;
- case PARAMETER.BOOLEAN:
- parameter.type = PARAMETER.BOOLEAN;
- break;
- case PARAMETER.RANGE:
- break;
- case PARAMETER.LIST:
- parameter.type = PARAMETER.LIST;
- break;
- case PARAMETER.MAP:
- parameter.type = PARAMETER.MAP;
- break;
- }
-
- if ( UtilityService.hasContents(inputs[key][PARAMETER.CONSTRAINTS])
- && ( inputs[key][PARAMETER.CONSTRAINTS].length > 0 ) ) {
- var constraintsArray = inputs[key][PARAMETER.CONSTRAINTS];
- //console.log ("Calling addConstraintParameters for input name=" + key);
- addConstraintParameters (parameterList, constraintsArray, key, inputs, parameter);
- }
- else {
-
- parameterList.push(parameter);
- }
- }
- DataService.setArbitraryParameters (parameterList);
- }
- };
+ }
+ parameterList = parameterList.concat([ getSubscribersParameter() ]);
+ parameterList = parameterList.concat([ getServiceId(),
+ FIELD.PARAMETER.SERVICE_TYPE,
+ FIELD.PARAMETER.LCP_REGION,
+ FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
+ FIELD.PARAMETER.TENANT_DISABLED
+ ]);
+ parameterList = parameterList.concat([ getAicZonesParameter() ]);
+
+
+ }else{
+ parameterList = parameterList.concat([ getServiceId(),
+ FIELD.PARAMETER.LCP_REGION,
+ FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
+ FIELD.PARAMETER.TENANT_DISABLED ]);
+ }
+ }
+
+ parameterList = parameterList.concat([ getProjectParameter() ]);
+ parameterList = parameterList.concat([ getOwningEntityParameter() ]);
+
+ }
+ else {
+ parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ];
+ switch (_this.componentId) {
+ case COMPONENT.NETWORK:
+ case COMPONENT.VNF:
+ parameterList = parameterList.concat([ getServiceId(),
+ getLcpRegionParameter(), FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
+ FIELD.PARAMETER.TENANT_DISABLED ]);
+ parameterList = parameterList.concat([ getLineOfBusinessParameter() ]);
+ parameterList = parameterList.concat([ getPlatformParameter() ]);
+
+ break;
+ case COMPONENT.VF_MODULE:
+ parameterList = parameterList.concat([
+ getLcpRegionParameter(),
+ FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
+ FIELD.PARAMETER.TENANT_DISABLED
+ ]);
+
+ var availableVolumeGroupList = DataService.getAvailableVolumeGroupList();
+
+ if (availableVolumeGroupList && availableVolumeGroupList.length > 0) {
+ var availableVolumeGroupNames = [FIELD.STATUS.NONE];
+
+ for (var i = 0; i < availableVolumeGroupList.length; i++) {
+ availableVolumeGroupNames.push(availableVolumeGroupList[i].instance.name);
+ }
+
+ parameterList.push(addOptionList(
+ FIELD.PARAMETER.AVAILABLE_VOLUME_GROUP,
+ availableVolumeGroupNames));
+ }
+ break;
+ case COMPONENT.VOLUME_GROUP:
+ parameterList = parameterList.concat([ getLcpRegionParameter(),
+ FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
+ FIELD.PARAMETER.TENANT_DISABLED ]);
+ }
+ }
+ parameterList.push(FIELD.PARAMETER.SUPPRESS_ROLLBACK);
+ if(_this.componentId === COMPONENT.VF_MODULE ){
+ parameterList.push({name: FIELD.NAME.SDN_C_PRELOAD,
+ id: FIELD.ID.SDN_C_PRELOAD,
+ type: "checkbox",
+ isEnabled: true,
+ isRequired: false,
+ hideFieldAndLabel: true
+ }
+ );
+ parameterList.push({name: FIELD.NAME.UPLOAD_SUPPLEMENTORY_DATA_FILE,
+ id: FIELD.ID.UPLOAD_SUPPLEMENTORY_DATA_FILE,
+ type: "checkbox",
+ isEnabled: true,
+ isRequired: false,
+ value:false
+ }
+ );
+
+ parameterList.push({name: FIELD.NAME.SUPPLEMENTORY_DATA_FILE,
+ id: FIELD.ID.SUPPLEMENTORY_DATA_FILE,
+ type: "file",
+ isRequired: false,
+ isVisiblity: false
+ }
+ );
+ }
+
+ if( VIDCONFIGURATION.UPLOAD_SUPPLEMENTARY_STATUS_CHECK_ENABLED && _this.componentId === COMPONENT.VOLUME_GROUP){
+ parameterList.push({name: FIELD.NAME.UPLOAD_SUPPLEMENTORY_DATA_FILE,
+ id: FIELD.ID.UPLOAD_SUPPLEMENTORY_DATA_FILE,
+ type: "checkbox",
+ isEnabled: true,
+ isRequired: false
+ }
+ );
+
+ parameterList.push({name: FIELD.NAME.SUPPLEMENTORY_DATA_FILE,
+ id: FIELD.ID.SUPPLEMENTORY_DATA_FILE,
+ type: "file",
+ isRequired: false,
+ isVisiblity: false
+ }
+ );
+ }
+
+ addArbitraryParameters(parameterList);
+
+ return parameterList;
+ };
+
+ var addArbitraryParameters = function(parameterList) {
+ if ( DataService.getModelInfo(_this.componentId).displayInputs != null ) {
+ var inputs = DataService.getModelInfo(_this.componentId).displayInputs;
+ for ( var key in inputs) {
+ var parameter = {
+ id : key,
+ type : PARAMETER.STRING,
+ name : ComponentService.getFieldDisplayName(key),
+ value : inputs[key][PARAMETER.DEFAULT],
+ isRequired : inputs[key][PARAMETER.REQUIRED],
+ description : inputs[key][PARAMETER.DESCRIPTION]
+ };
+ if ( DataService.getALaCarte() ) {
+ parameter.name = ComponentService.getFieldDisplayName(inputs[key][PARAMETER.DISPLAY_NAME]);
+ }
+ switch (inputs[key][PARAMETER.TYPE]) {
+ case PARAMETER.INTEGER:
+ parameter.type = PARAMETER.NUMBER;
+ break;
+ case PARAMETER.BOOLEAN:
+ parameter.type = PARAMETER.BOOLEAN;
+ break;
+ case PARAMETER.RANGE:
+ break;
+ case PARAMETER.LIST:
+ parameter.type = PARAMETER.LIST;
+ break;
+ case PARAMETER.MAP:
+ parameter.type = PARAMETER.MAP;
+ break;
+ }
+
+ if ( UtilityService.hasContents(inputs[key][PARAMETER.CONSTRAINTS])
+ && ( inputs[key][PARAMETER.CONSTRAINTS].length > 0 ) ) {
+ var constraintsArray = inputs[key][PARAMETER.CONSTRAINTS];
+ //console.log ("Calling addConstraintParameters for input name=" + key);
+ addConstraintParameters (parameterList, constraintsArray, key, inputs, parameter);
+ }
+ else {
+
+ parameterList.push(parameter);
+ }
+ }
+ DataService.setArbitraryParameters (parameterList);
+ }
+ };
var addConstraintParameters = function(parameterList, constraintsArray, key, inputs, parameter) {
// If there are constraints and the operator is "valid_values",
@@ -485,614 +495,697 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON value : value
});
};
-
- /*
- * The "*Mso*" functions return URL and request details that can be passed
- * to the MSO controller. The request details defines the info passed as
- * part of the POST body.
- */
-
- var getMsoUrl = function() {
- switch (_this.componentId) {
- case COMPONENT.NETWORK:
- return "mso_create_nw_instance/"
- + DataService.getServiceInstanceId();
- case COMPONENT.SERVICE:
- return "mso_create_svc_instance";
- case COMPONENT.VNF:
- return "mso_create_vnf_instance/"
- + DataService.getServiceInstanceId();
- case COMPONENT.VF_MODULE:
- return "mso_create_vfmodule_instance/"
- + DataService.getServiceInstanceId() + "/vnfs/"
- + DataService.getVnfInstanceId();
- case COMPONENT.VOLUME_GROUP:
- return "mso_create_volumegroup_instance/"
- + DataService.getServiceInstanceId() + "/vnfs/"
- + DataService.getVnfInstanceId();
- }
- };
-
- var getMsoRequestDetails = function(parameterList) {
- console.log("getMsoRequestDetails invoked, parameterList="); console.log(JSON.stringify(parameterList,null,4));
- //console.log("getMsoRequestDetails invoked, DataService.getArbitraryParameters()=");
- //console.log(JSON.stringify(DataService.getArbitraryParameters(),null,4));
-
- var modelInfo = DataService.getModelInfo(_this.componentId);
- var requestorloggedInId = DataService.getLoggedInUserId();
- if (requestorloggedInId == null)
- requestorloggedInId = "";
- var isSupRollback = false;
- if (getValueFromList(FIELD.ID.SUPPRESS_ROLLBACK,parameterList) === "true") {
- isSupRollback = true;
- }
- var requestDetails = {
- requestInfo : {
- instanceName : getValueFromList(FIELD.ID.INSTANCE_NAME,
- parameterList),
- source : FIELD.ID.VID,
- suppressRollback : isSupRollback,
- requestorId: requestorloggedInId
- },
- modelInfo : {
- modelType : _this.componentId,
- modelInvariantId : modelInfo.modelInvariantId,
- modelVersionId : modelInfo.modelNameVersionId,
- modelName : modelInfo.modelName,
- modelVersion : modelInfo.modelVersion,
- modelCustomizationId: modelInfo.customizationUuid,
- modelCustomizationName : modelInfo.modelCustomizationName
- },
- requestParameters : {
- userParams : getArbitraryParameters(parameterList)
- }
- };
- if ( (_this.componentId != COMPONENT.SERVICE) || ( !DataService.getALaCarte() ) ) {
- // include cloud region for everything but service create alacarte
- var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList);
- if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) {
- lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT,
- parameterList);
- }
- requestDetails.cloudConfiguration = {
- lcpCloudRegionId : lcpRegion,
- tenantId : getValueFromList(FIELD.ID.TENANT, parameterList)
- };
- }
- switch (_this.componentId) {
- case COMPONENT.SERVICE:
- requestDetails.subscriberInfo = {
- globalSubscriberId : DataService.getGlobalCustomerId(),
- subscriberName : DataService.getSubscriberName()
- };
- var isInTop = DataService.getHideServiceFields() || false;
- if(isInTop){
- requestDetails.requestParameters.subscriptionServiceType = DataService.getModelInfo(_this.componentId)["serviceTypeName"];
- }else{
- requestDetails.requestParameters.subscriptionServiceType = getValueFromList(
- FIELD.ID.SERVICE_TYPE, parameterList);
- }
- requestDetails.requestParameters.aLaCarte = DataService.getALaCarte();
- if ( !DataService.getALaCarte() ) {
- requestDetails.requestInfo.productFamilyId = getValueFromList(
- FIELD.ID.PRODUCT_FAMILY, parameterList);
- }
- var svcModelInfo = {
- modelType : _this.componentId,
- modelInvariantId : modelInfo.modelInvariantId,
- modelVersionId : modelInfo.modelNameVersionId,
- modelName : modelInfo.modelName,
- modelVersion : modelInfo.modelVersion
- };
- requestDetails.modelInfo = svcModelInfo;
- break;
- case COMPONENT.VNF:
-
- requestDetails.requestInfo.productFamilyId = getValueFromList(
- FIELD.ID.PRODUCT_FAMILY, parameterList);
- break;
- case COMPONENT.NETWORK:
- requestDetails.requestInfo.productFamilyId = getValueFromList(
- FIELD.ID.PRODUCT_FAMILY, parameterList);
-
- break;
- case COMPONENT.VF_MODULE:
- requestDetails.requestParameters.usePreload = getValueFromList(
- FIELD.ID.SDN_C_PRELOAD, parameterList);
- if(_this.componentId == COMPONENT.VF_MODULE &&(requestDetails.requestParameters.usePreload== null || requestDetails.requestParameters.usePreload === '')){
- requestDetails.requestParameters.usePreload = false;
- }
- break;
- case COMPONENT.VOLUME_GROUP:
- break;
- }
-
- var relatedInstanceList = getRelatedInstanceList(parameterList);
-
- if (relatedInstanceList !== undefined) {
- requestDetails.relatedInstanceList = relatedInstanceList;
- }
-
- return requestDetails;
- };
-
- var getRelatedInstanceList = function(parameterList) {
- var relatedInstanceList = new Array();
- switch (_this.componentId) {
- case COMPONENT.SERVICE:
- return undefined;
- case COMPONENT.NETWORK:
- case COMPONENT.VNF:
- addRelatedInstance(relatedInstanceList, COMPONENT.SERVICE,
- DataService.getServiceInstanceId());
- break;
- case COMPONENT.VF_MODULE:
- addRelatedInstance(relatedInstanceList, COMPONENT.SERVICE,
- DataService.getServiceInstanceId());
- addRelatedInstance(relatedInstanceList, COMPONENT.VNF, DataService
- .getVnfInstanceId());
-
- var availableVolumeGroup = getValueFromList(
- FIELD.ID.AVAILABLE_VOLUME_GROUP, parameterList);
-
- if (UtilityService.hasContents(availableVolumeGroup) && availableVolumeGroup !== "None") {
- var availableVolumeGroups = DataService.getAvailableVolumeGroupList();
-
- for (var i = 0; i < availableVolumeGroups.length; i++) {
- if (availableVolumeGroups[i].instance.name == availableVolumeGroup) {
- DataService.setModelInfo(COMPONENT.VOLUME_GROUP, DataService.getModelInfo(COMPONENT.VF_MODULE));
- DataService.setVolumeGroupInstanceId(availableVolumeGroups[i].instance.object["volume-group-id"]);
- break;
- }
- }
-
- addRelatedInstance(relatedInstanceList, COMPONENT.VOLUME_GROUP,
- DataService.getVolumeGroupInstanceId());
- }
- break;
- case COMPONENT.VOLUME_GROUP:
- addRelatedInstance(relatedInstanceList, COMPONENT.SERVICE,
- DataService.getServiceInstanceId());
- addRelatedInstance(relatedInstanceList, COMPONENT.VNF, DataService
- .getVnfInstanceId());
- break;
- }
-
- return relatedInstanceList;
- };
-
- var addRelatedInstance = function(relatedInstanceList, componentId,
- instanceId) {
- var modelInfo = DataService.getModelInfo(componentId);
- var relatedInstance;
- if (modelInfo !== undefined) {
- if (componentId === COMPONENT.SERVICE) {
- relatedInstance = {
- "instanceId" : instanceId,
- "modelInfo" : {
- "modelType" : componentId,
- "modelName" : modelInfo.modelName,
- "modelInvariantId" : modelInfo.modelInvariantId,
- "modelVersion" : modelInfo.modelVersion,
- "modelVersionId" : modelInfo.modelNameVersionId,
-
- }
- };
- }
- else {
- relatedInstance = {
- "instanceId" : instanceId,
- "modelInfo" : {
- "modelType" : componentId,
- "modelName" : modelInfo.modelName,
- "modelInvariantId" : modelInfo.modelInvariantId,
- "modelVersion" : modelInfo.modelVersion,
- "modelVersionId" : modelInfo.modelNameVersionId,
- "modelCustomizationId": modelInfo.customizationUuid,
- "modelCustomizationName": modelInfo.modelCustomizationName
- }
- }
- }
- relatedInstanceList.push({
- relatedInstance : relatedInstance
- });
- }
- };
-
- /*
- * var getArbitraryParameters = function(parameterList) { var
- * arbitraryParameters = new Object(); for (var i = 0; i <
- * parameterList.length; i++) { var parameter = parameterList[i]; switch
- * (parameter.id) { case FIELD.ID.INSTANCE_NAME: case
- * FIELD.ID.PRODUCT_FAMILY: case FIELD.ID.LCP_REGION: case
- * FIELD.ID.LCP_REGION_TEXT: case FIELD.ID.SERVICE_TYPE: case
- * FIELD.ID.TENANT: case FIELD.ID.SUPPRESS_ROLLBACK: break; default:
- * arbitraryParameters[parameter.id] = parameter.value; } } return
- * arbitraryParameters; }
- */
- var getArbitraryParameters = function(parameterList) {
- var arbitraryParameters = new Object();
- var arbitraryArray = new Array();
- for (var i = 0; i < parameterList.length; i++) {
- var parameter = parameterList[i];
- switch (parameter.id) {
- case FIELD.ID.AVAILABLE_VOLUME_GROUP:
- break;
- case FIELD.ID.INSTANCE_NAME:
- break;
- case FIELD.ID.PRODUCT_FAMILY:
- break;
- case FIELD.ID.LCP_REGION:
- break;
- case FIELD.ID.LCP_REGION_TEXT:
- break;
- case FIELD.ID.SERVICE_TYPE:
- break;
- case FIELD.ID.TENANT:
- break;
- case FIELD.ID.SUPPRESS_ROLLBACK:
- break;
- case FIELD.ID.SUBSCRIBER_NAME:
- break;
- case FIELD.ID.SDN_C_PRELOAD:
- break;
- case FIELD.ID.UPLOAD_SUPPLEMENTORY_DATA_FILE:
- break;
- case FIELD.ID.SUPPLEMENTORY_DATA_FILE:
- arbitraryParameters = FIELD.PARAMETER.SUPPLEMENTORY_DATA_FILE['value'];
- arbitraryArray=arbitraryParameters;
- FIELD.PARAMETER.SUPPLEMENTORY_DATA_FILE['value']=[];
- break;
-
- default:
- if (parameter.value != '') {
- arbitraryParameters = {
- name: parameter.id,
- value: parameter.value
- }
- arbitraryArray.push(arbitraryParameters);
- }
- }
- }
- return (arbitraryArray);
+ var setInventoryInfo = function(){
+ var inventoryItem = DataService.getInventoryItem();
+ var inventoryInfo = ComponentService.getInventoryInfo(
+ _this.componentId, inventoryItem);
}
- var getModel = function() {
- AsdcService.getModel(DataService.getModelId(), function(response) {
- DataService.setModelInfo(_this.componentId, {
- modelInvariantId : response.data.invariantUUID,
- modelNameVersionId : response.data.uuid,
- modelName : response.data.name,
- modelVersion : response.data.version,
- inputs : response.data.inputs
- });
- UtilityService.startNextAsyncOperation();
- });
- };
-
- var getSubscriptionServiceTypeList = function() {
- AaiService.getSubscriptionServiceTypeList(DataService
- .getGlobalCustomerId(), function(response) {
- DataService.setSubscriptionServiceTypeList(response);
- UtilityService.startNextAsyncOperation();
- });
- };
-
- var getLoggedInUserID = function() {
- AaiService.getLoggedInUserID(function(response) {
- DataService.setLoggedInUserId(response.data);
- UtilityService.startNextAsyncOperation();
- });
- };
-
- var getSubscribers = function() {
- AaiService.getSubscribers(function(response) {
- DataService.setSubscribers(response);
- UtilityService.startNextAsyncOperation();
- });
- };
- var getServices = function() {
- AaiService.getServices(function(response) {
- var serviceIdList = [];
- angular.forEach(response.data, function(value, key) {
- angular.forEach(value, function(subVal, key) {
- var newVal = {
- "id" : subVal[FIELD.ID.SERVICE_ID],
- "description" : subVal[FIELD.ID.SERVICE_DESCRIPTION],
- "isPermitted" : subVal[FIELD.ID.IS_PERMITTED],
- };
- serviceIdList.push(newVal);
- DataService.setServiceIdList(serviceIdList);
- });
- });
-
- UtilityService.startNextAsyncOperation();
- });
- };
- var getAicZones = function() {
- AaiService.getAicZones(function(response) {
- var serviceIdList = [];
- angular.forEach(response.data, function(value, key) {
- angular.forEach(value, function(subVal, key) {
- var newVal = {
- "id" : subVal[FIELD.ID.ZONE_ID],
- "name" : subVal[FIELD.ID.ZONE_NAME],
- };
- serviceIdList.push(newVal);
- DataService.setAicZones(serviceIdList);
- });
- });
-
- UtilityService.startNextAsyncOperation();
- });
-
- };
-
-
-
- var getLcpCloudRegionTenantList = function() {
- AaiService.getLcpCloudRegionTenantList(DataService
- .getGlobalCustomerId(), DataService.getServiceType(), function(
- response) {
- DataService.setCloudRegionTenantList(response);
- UtilityService.startNextAsyncOperation();
- });
- };
+ /*
+ * The "*Mso*" functions return URL and request details that can be passed
+ * to the MSO controller. The request details defines the info passed as
+ * part of the POST body.
+ */
+
+ var getMsoUrl = function() {
+ switch (_this.componentId) {
+ case COMPONENT.NETWORK:
+ return "mso_create_nw_instance/"
+ + DataService.getServiceInstanceId();
+ case COMPONENT.SERVICE:
+ return "mso_create_svc_instance";
+ case COMPONENT.VNF:
+ return "mso_create_vnf_instance/"
+ + DataService.getServiceInstanceId();
+ case COMPONENT.VF_MODULE:
+ return "mso_create_vfmodule_instance/"
+ + DataService.getServiceInstanceId() + "/vnfs/"
+ + DataService.getVnfInstanceId();
+ case COMPONENT.VOLUME_GROUP:
+ return "mso_create_volumegroup_instance/"
+ + DataService.getServiceInstanceId() + "/vnfs/"
+ + DataService.getVnfInstanceId();
+ }
+ };
+
+ var getMsoRequestDetails = function(parameterList) {
+ console.log("getMsoRequestDetails invoked, parameterList="); console.log(JSON.stringify(parameterList,null,4));
+ //console.log("getMsoRequestDetails invoked, DataService.getArbitraryParameters()=");
+ //console.log(JSON.stringify(DataService.getArbitraryParameters(),null,4));
+
+ var modelInfo = DataService.getModelInfo(_this.componentId);
+ var requestorloggedInId = DataService.getLoggedInUserId();
+ var owningEntityId = getValueFromList(FIELD.ID.OWNING_ENTITY, parameterList);
+ if (requestorloggedInId == null)
+ requestorloggedInId = "";
+ var isSupRollback = false;
+ if (getValueFromList(FIELD.ID.SUPPRESS_ROLLBACK,parameterList) === "true") {
+ isSupRollback = true;
+ }
+ var requestDetails = {
+ requestInfo : {
+ instanceName : getValueFromList(FIELD.ID.INSTANCE_NAME,
+ parameterList) || DataService.getVfModuleInstanceName(),
+ source : FIELD.ID.VID,
+ suppressRollback : isSupRollback,
+ requestorId: requestorloggedInId
+ },
+ modelInfo : {
+ modelType : _this.componentId,
+ modelInvariantId : modelInfo.modelInvariantId,
+ modelVersionId : modelInfo.modelNameVersionId,
+ modelName : modelInfo.modelName,
+ modelVersion : modelInfo.modelVersion,
+ modelCustomizationId: modelInfo.customizationUuid,
+ modelCustomizationName : modelInfo.modelCustomizationName
+ },
+ requestParameters : {
+ userParams : getArbitraryParameters(parameterList)
+ }
+ };
+ if ( (_this.componentId != COMPONENT.SERVICE) || ( !DataService.getALaCarte() ) ) {
+ // include cloud region for everything but service create alacarte
+ var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList);
+ if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) {
+ lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT,
+ parameterList);
+ }
+ requestDetails.cloudConfiguration = {
+ lcpCloudRegionId : lcpRegion,
+ tenantId : getValueFromList(FIELD.ID.TENANT, parameterList)
+ };
+ }
+ switch (_this.componentId) {
+ case COMPONENT.SERVICE:
+ requestDetails.subscriberInfo = {
+ globalSubscriberId : DataService.getGlobalCustomerId(),
+ subscriberName : DataService.getSubscriberName()
+ };
+ var isInTop = DataService.getHideServiceFields() || false;
+ if(isInTop){
+ requestDetails.requestParameters.subscriptionServiceType = DataService.getModelInfo(_this.componentId)["serviceTypeName"];
+ }else{
+ requestDetails.requestParameters.subscriptionServiceType = getValueFromList(
+ FIELD.ID.SERVICE_TYPE, parameterList);
+ }
+ requestDetails.requestParameters.aLaCarte = DataService.getALaCarte();
+ if ( !DataService.getALaCarte() ) {
+ requestDetails.requestInfo.productFamilyId = getValueFromList(
+ FIELD.ID.PRODUCT_FAMILY, parameterList);
+ }
+ var svcModelInfo = {
+ modelType : _this.componentId,
+ modelInvariantId : modelInfo.modelInvariantId,
+ modelVersionId : modelInfo.modelNameVersionId,
+ modelName : modelInfo.modelName,
+ modelVersion : modelInfo.modelVersion
+ };
+ requestDetails.modelInfo = svcModelInfo;
+
+ var selectedProject = getValueFromList(FIELD.ID.PROJECT, parameterList);
+
+ if (selectedProject) {
+ requestDetails.project = {
+ projectName: getValueFromList(FIELD.ID.PROJECT, parameterList)
+ };
+ }
+
+ requestDetails.owningEntity = {
+ owningEntityId: owningEntityId,
+ owningEntityName: getOwningEntityNameById(owningEntityId)
+ };
+
+ break;
+ case COMPONENT.VNF:
+
+ requestDetails.requestInfo.productFamilyId = getValueFromList(
+ FIELD.ID.PRODUCT_FAMILY, parameterList);
+
+ var lineOfBusiness = getValueFromList(FIELD.ID.LINE_OF_BUSINESS, parameterList);
+
+ if(lineOfBusiness) {
+ var lineOfBusinessNamesString = _.map(lineOfBusiness, "name").join(", ");
+
+ requestDetails.lineOfBusiness = {
+ lineOfBusinessName: lineOfBusinessNamesString
+ }
+ }
- var internalGetParametersHandler = function() {
- if (angular.isFunction(_this.getParametersHandler)) {
- _this.getParametersHandler({
- summaryList : getSummaryList(),
- userProvidedList : getUserProvidedList()
- });
- }
- };
+ requestDetails.platform = {
+ platformName: getValueFromList(FIELD.ID.PLATFORM, parameterList)
+ };
- var getSubscribersParameter = function() {
- var subscribers = DataService.getSubscribers();
- var parameter = FIELD.PARAMETER.SUBSCRIBER_NAME;
- if ( UtilityService.hasContents(subscribers)) {
- parameter.optionList = [];
-
- for (var i = 0; i < subscribers.length; i++) {
- parameter.optionList.push({
- id : subscribers[i][FIELD.ID.GLOBAL_CUSTOMER_ID],
- name : subscribers[i][FIELD.ID.SUBNAME],
- isPermitted : subscribers[i][FIELD.ID.IS_PERMITTED]
- })
- }
- }
- return parameter;
- };
+ break;
+ case COMPONENT.NETWORK:
+ requestDetails.requestInfo.productFamilyId = getValueFromList(
+ FIELD.ID.PRODUCT_FAMILY, parameterList);
+ var lineOfBusiness = getValueFromList(FIELD.ID.LINE_OF_BUSINESS, parameterList);
- var getServiceId = function() {
- var serviceIdList = DataService.getServiceIdList();
- //var serviceTypeList = DataService.getSubscriptionServiceTypeList();
- var parameter = FIELD.PARAMETER.PRODUCT_FAMILY;
- parameter.optionList = new Array();
- if ( UtilityService.hasContents(serviceIdList) ) {
- // load them all
- for (var i = 0; i < serviceIdList.length; i++) {
- parameter.optionList.push({
- id : serviceIdList[i].id,
- name : serviceIdList[i].description,
- isPermitted : serviceIdList[i].isPermitted
- });
- }
- }
-
- return parameter;
- };
-
- var getAICZones = function() {
- var aicList = DataService.getAicZones();
- var parameter = FIELD.PARAMETER.AIC_ZONES;
- parameter.optionList = new Array();
- if ( UtilityService.hasContents(aicList) ) {
- // load them all
- for (var i = 0; i < aicList.length; i++) {
- parameter.optionList.push({
- id : aicList[i].id,
- name : aicList[i].name,
- isPermitted : true
-
- });
- }
- }
-
- return parameter;
- };
+ if(lineOfBusiness) {
+ var lineOfBusinessNamesString = _.map(lineOfBusiness, "name").join(", ");
+ requestDetails.lineOfBusiness = {
+ lineOfBusinessName: lineOfBusinessNamesString
+ }
+ }
+
+ requestDetails.platform = {
+ platformName: getValueFromList(FIELD.ID.PLATFORM, parameterList)
+ };
+ break;
+ case COMPONENT.VF_MODULE:
+ requestDetails.requestParameters.usePreload = getValueFromList(
+ FIELD.ID.SDN_C_PRELOAD, parameterList);
+ if(_this.componentId == COMPONENT.VF_MODULE &&(requestDetails.requestParameters.usePreload== null || requestDetails.requestParameters.usePreload === '')){
+ requestDetails.requestParameters.usePreload = false;
+ }
+ break;
+ case COMPONENT.VOLUME_GROUP:
+ break;
+ }
+
+ var relatedInstanceList = getRelatedInstanceList(parameterList);
+
+ if (relatedInstanceList !== undefined) {
+ requestDetails.relatedInstanceList = relatedInstanceList;
+ }
+
+ return requestDetails;
+ };
+
+ var getRelatedInstanceList = function(parameterList) {
+ var relatedInstanceList = new Array();
+ switch (_this.componentId) {
+ case COMPONENT.SERVICE:
+ return undefined;
+ case COMPONENT.NETWORK:
+ case COMPONENT.VNF:
+ addRelatedInstance(relatedInstanceList, COMPONENT.SERVICE,
+ DataService.getServiceInstanceId());
+ break;
+ case COMPONENT.VF_MODULE:
+ addRelatedInstance(relatedInstanceList, COMPONENT.SERVICE,
+ DataService.getServiceInstanceId());
+ addRelatedInstance(relatedInstanceList, COMPONENT.VNF, DataService
+ .getVnfInstanceId());
+
+ var availableVolumeGroup = getValueFromList(
+ FIELD.ID.AVAILABLE_VOLUME_GROUP, parameterList);
+
+ if (UtilityService.hasContents(availableVolumeGroup) && availableVolumeGroup !== "None") {
+ var availableVolumeGroups = DataService.getAvailableVolumeGroupList();
+
+ for (var i = 0; i < availableVolumeGroups.length; i++) {
+ if (availableVolumeGroups[i].instance.name == availableVolumeGroup) {
+ DataService.setModelInfo(COMPONENT.VOLUME_GROUP, DataService.getModelInfo(COMPONENT.VF_MODULE));
+ DataService.setVolumeGroupInstanceId(availableVolumeGroups[i].instance.object["volume-group-id"]);
+ break;
+ }
+ }
- var getLcpRegion = function() {
- var cloudRegionTenantList = DataService.getCloudRegionTenantList();
- console.log ( "cloudRegionTenantList=");
- console.log ( JSON.stringify (cloudRegionTenantList, null, 4 ));
+ addRelatedInstance(relatedInstanceList, COMPONENT.VOLUME_GROUP,
+ DataService.getVolumeGroupInstanceId());
+ }
+ break;
+ case COMPONENT.VOLUME_GROUP:
+ addRelatedInstance(relatedInstanceList, COMPONENT.SERVICE,
+ DataService.getServiceInstanceId());
+ addRelatedInstance(relatedInstanceList, COMPONENT.VNF, DataService
+ .getVnfInstanceId());
+ break;
+ }
+
+ return relatedInstanceList;
+ };
+
+ var addRelatedInstance = function(relatedInstanceList, componentId,
+ instanceId) {
+ var modelInfo = DataService.getModelInfo(componentId);
+ var relatedInstance;
+ if (modelInfo !== undefined) {
+ if (componentId === COMPONENT.SERVICE) {
+ relatedInstance = {
+ "instanceId" : instanceId,
+ "modelInfo" : {
+ "modelType" : componentId,
+ "modelName" : modelInfo.modelName,
+ "modelInvariantId" : modelInfo.modelInvariantId,
+ "modelVersion" : modelInfo.modelVersion,
+ "modelVersionId" : modelInfo.modelNameVersionId,
- var parameter = FIELD.PARAMETER.LCP_REGION;
- if ( UtilityService.hasContents (cloudRegionTenantList) ) {
- parameter.optionList = new Array();
- for (var i = 0; i < cloudRegionTenantList.length; i++) {
- for (var j = 0; j < parameter.optionList.length; j++) {
- if (parameter.optionList[j].id === cloudRegionTenantList[i].cloudRegionId) {
+ }
+ };
+ }
+ else {
+ relatedInstance = {
+ "instanceId" : instanceId,
+ "modelInfo" : {
+ "modelType" : componentId,
+ "modelName" : modelInfo.modelName,
+ "modelInvariantId" : modelInfo.modelInvariantId,
+ "modelVersion" : modelInfo.modelVersion,
+ "modelVersionId" : modelInfo.modelNameVersionId,
+ "modelCustomizationId": modelInfo.customizationUuid,
+ "modelCustomizationName": modelInfo.modelCustomizationName
+ }
+ }
+ }
+ relatedInstanceList.push({
+ relatedInstance : relatedInstance
+ });
+ }
+ };
+
+ /*
+ * var getArbitraryParameters = function(parameterList) { var
+ * arbitraryParameters = new Object(); for (var i = 0; i <
+ * parameterList.length; i++) { var parameter = parameterList[i]; switch
+ * (parameter.id) { case FIELD.ID.INSTANCE_NAME: case
+ * FIELD.ID.PRODUCT_FAMILY: case FIELD.ID.LCP_REGION: case
+ * FIELD.ID.LCP_REGION_TEXT: case FIELD.ID.SERVICE_TYPE: case
+ * FIELD.ID.TENANT: case FIELD.ID.SUPPRESS_ROLLBACK: break; default:
+ * arbitraryParameters[parameter.id] = parameter.value; } } return
+ * arbitraryParameters; }
+ */
+ var getArbitraryParameters = function(parameterList) {
+ var arbitraryParameters = new Object();
+ var arbitraryArray = new Array();
+ for (var i = 0; i < parameterList.length; i++) {
+ var parameter = parameterList[i];
+ switch (parameter.id) {
+ case FIELD.ID.AVAILABLE_VOLUME_GROUP:
+ case FIELD.ID.INSTANCE_NAME:
+ case FIELD.ID.PRODUCT_FAMILY:
+ case FIELD.ID.LCP_REGION:
+ case FIELD.ID.LCP_REGION_TEXT:
+ case FIELD.ID.SERVICE_TYPE:
+ case FIELD.ID.TENANT:
+ case FIELD.ID.SUPPRESS_ROLLBACK:
+ case FIELD.ID.SUBSCRIBER_NAME:
+ case FIELD.ID.SDN_C_PRELOAD:
+ case FIELD.ID.UPLOAD_SUPPLEMENTORY_DATA_FILE:
+ case FIELD.ID.OWNING_ENTITY:
+ case FIELD.ID.PLATFORM:
+ case FIELD.ID.LINE_OF_BUSINESS:
+ case FIELD.ID.PROJECT:
+ break;
+ case FIELD.ID.SUPPLEMENTORY_DATA_FILE:
+ arbitraryParameters = FIELD.PARAMETER.SUPPLEMENTORY_DATA_FILE['value'];
+ arbitraryArray=arbitraryParameters;
+ FIELD.PARAMETER.SUPPLEMENTORY_DATA_FILE['value']=[];
+ break;
+
+ default:
+ if (parameter.value != '') {
+ arbitraryParameters = {
+ name: parameter.id,
+ value: parameter.value
+ }
+ arbitraryArray.push(arbitraryParameters);
+ }
+ }
+ }
+ return (arbitraryArray);
+ }
+
+ var getModel = function() {
+ AsdcService.getModel(DataService.getModelId(), function(response) {
+ DataService.setModelInfo(_this.componentId, {
+ modelInvariantId : response.data.invariantUUID,
+ modelNameVersionId : response.data.uuid,
+ modelName : response.data.name,
+ modelVersion : response.data.version,
+ inputs : response.data.inputs
+ });
+ UtilityService.startNextAsyncOperation();
+ });
+ };
+
+ var getSubscriptionServiceTypeList = function() {
+ AaiService.getSubscriptionServiceTypeList(DataService
+ .getGlobalCustomerId(), function(response) {
+ DataService.setSubscriptionServiceTypeList(response);
+ UtilityService.startNextAsyncOperation();
+ });
+ };
+
+ var getLoggedInUserID = function() {
+ AaiService.getLoggedInUserID(function(response) {
+ DataService.setLoggedInUserId(response.data);
+ UtilityService.startNextAsyncOperation();
+ });
+ };
+
+ var getSubscribers = function() {
+ AaiService.getSubscribers(function(response) {
+ DataService.setSubscribers(response);
+ UtilityService.startNextAsyncOperation();
+ });
+ };
+ var getServices = function() {
+ AaiService.getServices(function(response) {
+ var serviceIdList = [];
+ angular.forEach(response.data, function(value, key) {
+ angular.forEach(value, function(subVal, key) {
+ var newVal = {
+ "id" : subVal[FIELD.ID.SERVICE_ID],
+ "description" : subVal[FIELD.ID.SERVICE_DESCRIPTION],
+ "isPermitted" : subVal[FIELD.ID.IS_PERMITTED],
+ };
+ serviceIdList.push(newVal);
+ DataService.setServiceIdList(serviceIdList);
+ });
+ });
+
+ UtilityService.startNextAsyncOperation();
+ });
+ };
+ var getAicZones = function() {
+ AaiService.getAicZones(function(response) {
+ var serviceIdList = [];
+ angular.forEach(response.data, function(value, key) {
+ angular.forEach(value, function(subVal, key) {
+ var newVal = {
+ "id" : subVal[FIELD.ID.ZONE_ID],
+ "name" : subVal[FIELD.ID.ZONE_NAME],
+ };
+ serviceIdList.push(newVal);
+ DataService.setAicZones(serviceIdList);
+ });
+ });
+
+ UtilityService.startNextAsyncOperation();
+ });
+ };
+
+ var getOwningEntityProperties = function() {
+ OwningEntityService.getOwningEntityProperties(function(owningEntityProperties) {
+ DataService.setOwningEntityProperties(owningEntityProperties);
+ UtilityService.startNextAsyncOperation();
+ });
+
+ };
+
+ var getLcpCloudRegionTenantList = function() {
+ AaiService.getLcpCloudRegionTenantList(DataService
+ .getGlobalCustomerId(), DataService.getServiceType(), function(
+ response) {
+ DataService.setCloudRegionTenantList(response);
+ UtilityService.startNextAsyncOperation();
+ });
+ };
+
+ var internalGetParametersHandler = function() {
+ if (angular.isFunction(_this.getParametersHandler)) {
+ _this.getParametersHandler({
+ summaryList : getSummaryList(),
+ userProvidedList : getUserProvidedList()
+ });
+ }
+ };
+
+ var getSubscribersParameter = function() {
+ var subscribers = DataService.getSubscribers();
+ var parameter = FIELD.PARAMETER.SUBSCRIBER_NAME;
+ if ( UtilityService.hasContents(subscribers)) {
+ parameter.optionList = [];
+
+ for (var i = 0; i < subscribers.length; i++) {
+ parameter.optionList.push({
+ id : subscribers[i][FIELD.ID.GLOBAL_CUSTOMER_ID],
+ name : subscribers[i][FIELD.ID.SUBNAME],
+ isPermitted : subscribers[i][FIELD.ID.IS_PERMITTED]
+ })
+ }
+ }
+ return parameter;
+ };
+
+ var getServiceId = function() {
+ var serviceIdList = DataService.getServiceIdList();
+ //var serviceTypeList = DataService.getSubscriptionServiceTypeList();
+ var parameter = FIELD.PARAMETER.PRODUCT_FAMILY;
+ parameter.optionList = new Array();
+ if ( UtilityService.hasContents(serviceIdList) ) {
+ // load them all
+ for (var i = 0; i < serviceIdList.length; i++) {
+ parameter.optionList.push({
+ id : serviceIdList[i].id,
+ name : serviceIdList[i].description,
+ isPermitted : serviceIdList[i].isPermitted
+ });
+ }
+ }
+
+ return parameter;
+ };
+
+ var getAicZonesParameter = function() {
+ var aicList = DataService.getAicZones();
+ var parameter = FIELD.PARAMETER.AIC_ZONES;
+ parameter.optionList = new Array();
+ if ( UtilityService.hasContents(aicList) ) {
+ // load them all
+ for (var i = 0; i < aicList.length; i++) {
+ parameter.optionList.push({
+ id : aicList[i].id,
+ name : aicList[i].name,
+ isPermitted : true
+
+ });
+ }
+ }
+
+ return parameter;
+ };
+
+ var getProjectParameter = function() {
+ return getOwningEntityParameterWithOptions(FIELD.PARAMETER.PROJECT);
+ };
+
+ var getOwningEntityParameter = function() {
+ return getOwningEntityParameterWithOptions(FIELD.PARAMETER.OWNING_ENTITY);
+ };
+
+ var getLineOfBusinessParameter = function() {
+ return getOwningEntityParameterWithOptions(FIELD.PARAMETER.LINE_OF_BUSINESS);
+ };
+
+ var getPlatformParameter = function() {
+ return getOwningEntityParameterWithOptions(FIELD.PARAMETER.PLATFORM);
+ };
+
+ var getOwningEntityNameById = function (id) {
+ var properties = DataService.getOwningEntityProperties();
+ var parameter = _.find(properties[FIELD.ID.OWNING_ENTITY], {"id": id});
+ return parameter && parameter.name;
+ };
+
+ var getOwningEntityParameterWithOptions = function(parameter) {
+ var properties = DataService.getOwningEntityProperties();
+ if (properties && properties[parameter.id]) {
+ parameter.optionList = _.map(properties[parameter.id], function(parameter) {
+ return {
+ "id" : parameter.id,
+ "name" : parameter.name,
+ "isPermitted": true
+ };
+ });
+ }
+
+ return parameter;
+ };
+
+ var getLcpRegionParameter = function() {
+ var cloudRegionTenantList = DataService.getCloudRegionTenantList();
+ console.log ( "cloudRegionTenantList=");
+ console.log ( JSON.stringify (cloudRegionTenantList, null, 4 ));
+
+ var parameter = FIELD.PARAMETER.LCP_REGION;
+ if ( UtilityService.hasContents (cloudRegionTenantList) ) {
+ parameter.optionList = new Array();
+ for (var i = 0; i < cloudRegionTenantList.length; i++) {
+ for (var j = 0; j < parameter.optionList.length; j++) {
+ if (parameter.optionList[j].id === cloudRegionTenantList[i].cloudRegionId) {
parameter.optionList[j].isPermitted =
- parameter.optionList[j].isPermitted || cloudRegionTenantList[i].isPermitted;
+ parameter.optionList[j].isPermitted || cloudRegionTenantList[i].isPermitted;
break;
}
- }
- if (j < parameter.optionList.length) {
- continue;
- }
- parameter.optionList.push({
- id : cloudRegionTenantList[i].cloudRegionId,
- isPermitted : cloudRegionTenantList[i].isPermitted
- });
- }
- }
- return parameter;
- };
-
- var getTenantList = function(cloudRegionId) {
- var cloudRegionTenantList = DataService.getCloudRegionTenantList();
- var parameter = "";
- if ( UtilityService.hasContents (cloudRegionTenantList) ) {
- parameter = FIELD.PARAMETER.TENANT_ENABLED;
- parameter.optionList = new Array();
- for (var i = 0; i < cloudRegionTenantList.length; i++) {
- if (cloudRegionTenantList[i].cloudRegionId === cloudRegionId) {
- parameter.optionList.push({
- id : cloudRegionTenantList[i].tenantId,
- name : cloudRegionTenantList[i].tenantName,
+ }
+ if (j < parameter.optionList.length) {
+ continue;
+ }
+ parameter.optionList.push({
+ id : cloudRegionTenantList[i].cloudRegionId,
+ isPermitted : cloudRegionTenantList[i].isPermitted
+ });
+ }
+ }
+ return parameter;
+ };
+
+ var getTenantList = function(cloudRegionId) {
+ var cloudRegionTenantList = DataService.getCloudRegionTenantList();
+ var parameter = "";
+ if ( UtilityService.hasContents (cloudRegionTenantList) ) {
+ parameter = FIELD.PARAMETER.TENANT_ENABLED;
+ parameter.optionList = new Array();
+ for (var i = 0; i < cloudRegionTenantList.length; i++) {
+ if (cloudRegionTenantList[i].cloudRegionId === cloudRegionId) {
+ parameter.optionList.push({
+ id : cloudRegionTenantList[i].tenantId,
+ name : cloudRegionTenantList[i].tenantName,
isPermitted : cloudRegionTenantList[i].isPermitted
});
- }
- }
- }
- return parameter;
-
- };
-
- var addOptionList = function(parameter, optionSimpleArray) {
- var optionList = new Array();
- if (!angular.isArray(optionSimpleArray)) {
- return optionList;
- }
- for (var i = 0; i < optionSimpleArray.length; i++) {
- optionList.push({
- name : optionSimpleArray[i],
+ }
+ }
+ }
+ return parameter;
+
+ };
+
+ var addOptionList = function(parameter, optionSimpleArray) {
+ var optionList = new Array();
+ if (!angular.isArray(optionSimpleArray)) {
+ return optionList;
+ }
+ for (var i = 0; i < optionSimpleArray.length; i++) {
+ optionList.push({
+ name : optionSimpleArray[i],
isPermitted :true,
- });
- }
- parameter.optionList = optionList;
- return parameter;
- };
-
- var getValueFromList = function(id, parameterList) {
- for (var i = 0; i < parameterList.length; i++) {
- if (parameterList[i].id === id) {
- return parameterList[i].value;
- }
- }
- };
- var updateUserParameterList = function(updatedId, parameterListControl) {
- console.log ("updateUserParameterList() updatedId=" + updatedId);
- if (updatedId === FIELD.ID.PRODUCT_FAMILY && DataService.getHideServiceFields()) {
- var cloudRegionTenantList = new Array();
- AaiService.getLcpCloudRegionTenantList(DataService.getGlobalCustomerId(), DataService.getServiceType(), function(cloudRegionTenantList) {
- DataService.setCloudRegionTenantList(cloudRegionTenantList);
- parameterListControl.updateList([ getLcpRegion() ]);
- });
- }else if (updatedId === FIELD.ID.SDN_C_PRELOAD) {
- var list = parameterListControl.getList(updatedId);
- if($('input[parameter-id="'+updatedId+'"]').is(':checked')){
- FIELD.PARAMETER.SDN_C_PRELOAD_CHECKED.value=true;
- parameterListControl
- .updateList([ FIELD.PARAMETER.SDN_C_PRELOAD_CHECKED ]);
- }else{
- parameterListControl
- .updateList([ FIELD.PARAMETER.SDN_C_PRELOAD_UNCHECKED ]);
- }
- }else if (updatedId === FIELD.ID.UPLOAD_SUPPLEMENTORY_DATA_FILE) {
- if($('input[parameter-id="'+updatedId+'"]').is(':checked')){
- $('input[parameter-id="'+FIELD.ID.SUPPLEMENTORY_DATA_FILE+'"]').closest('tr').show();
- FIELD.PARAMETER.UPLOAD_SUPPLEMENTORY_DATA_FILE_CHECKED.value=true;
- parameterListControl
- .updateList([ FIELD.PARAMETER.UPLOAD_SUPPLEMENTORY_DATA_FILE_CHECKED ]);
- }else{
- $('input[parameter-id="'+FIELD.ID.SUPPLEMENTORY_DATA_FILE+'"]').closest('tr').hide();
- FIELD.PARAMETER.UPLOAD_SUPPLEMENTORY_DATA_FILE_CHECKED.value=false;
- parameterListControl
- .updateList([ FIELD.PARAMETER.UPLOAD_SUPPLEMENTORY_DATA_FILE_UNCHECKED ]);
- }
- } else if (updatedId === FIELD.ID.SUPPLEMENTORY_DATA_FILE) {
- var filePath = $('input[parameter-id="'+updatedId+'"]').val();
- var arr =filePath.split('.');
- var fileExt = arr[arr.length-1];
- if(fileExt!='' && fileExt.toLowerCase()!='json'){
- $('input[parameter-id="'+updatedId+'"]').val('');
- alert("Invalid file format. Please select *.json format file.");
- return false;
- }
- } else if (updatedId === FIELD.ID.LCP_REGION) {
- var list = parameterListControl.getList(updatedId);
- if (list[0].selectedIndex >= 0) {
- parameterListControl
- .updateList([ getTenantList(list[0].value) ]);
- } else {
- parameterListControl
- .updateList([ FIELD.PARAMETER.TENANT_DISABLED ]);
- }
- if (list[0].value === FIELD.KEY.LCP_REGION_TEXT) {
- parameterListControl
- .updateList([ FIELD.PARAMETER.LCP_REGION_TEXT_VISIBLE ]);
- } else {
- parameterListControl
- .updateList([ FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN ]);
- }
- } else if (updatedId === FIELD.ID.SUBSCRIBER_NAME) {
- var list = parameterListControl.getList(updatedId);
- if (list[0].selectedIndex >= 0) {
- DataService.setGlobalCustomerId(list[0].value);
-
- AaiService.getSubscriptionServiceTypeList(DataService
- .getGlobalCustomerId(), function(response) {
- DataService.setSubscriptionServiceTypeList(response);
- var serviceTypeParameters = FIELD.PARAMETER.SERVICE_TYPE;
- serviceTypeParameters.optionList = [];
-
- for (var i = 0; i < response.length; i++) {
- serviceTypeParameters.optionList.push({
- "id" : response[i].name,
- "name" : response[i].name,
+ });
+ }
+ parameter.optionList = optionList;
+ return parameter;
+ };
+
+ var getValueFromList = function(id, parameterList) {
+ for (var i = 0; i < parameterList.length; i++) {
+ if (parameterList[i].id === id) {
+ return parameterList[i].value;
+ }
+ }
+ };
+ var updateUserParameterList = function(updatedId, parameterListControl) {
+ console.log ("updateUserParameterList() updatedId=" + updatedId);
+ if (updatedId === FIELD.ID.PRODUCT_FAMILY && DataService.getHideServiceFields()) {
+ var cloudRegionTenantList = new Array();
+ AaiService.getLcpCloudRegionTenantList(DataService.getGlobalCustomerId(), DataService.getServiceType(), function(cloudRegionTenantList) {
+ DataService.setCloudRegionTenantList(cloudRegionTenantList);
+ parameterListControl.updateList([ getLcpRegionParameter() ]);
+ });
+ }else if (updatedId === FIELD.ID.SDN_C_PRELOAD) {
+ var list = parameterListControl.getList(updatedId);
+ if($('input[parameter-id="'+updatedId+'"]').is(':checked')){
+ FIELD.PARAMETER.SDN_C_PRELOAD_CHECKED.value=true;
+ parameterListControl
+ .updateList([ FIELD.PARAMETER.SDN_C_PRELOAD_CHECKED ]);
+ }else{
+ parameterListControl
+ .updateList([ FIELD.PARAMETER.SDN_C_PRELOAD_UNCHECKED ]);
+ }
+ }else if (updatedId === FIELD.ID.UPLOAD_SUPPLEMENTORY_DATA_FILE) {
+ if($('input[parameter-id="'+updatedId+'"]').is(':checked')){
+ $('input[parameter-id="'+FIELD.ID.SUPPLEMENTORY_DATA_FILE+'"]').closest('tr').show();
+ FIELD.PARAMETER.UPLOAD_SUPPLEMENTORY_DATA_FILE_CHECKED.value=true;
+ parameterListControl
+ .updateList([ FIELD.PARAMETER.UPLOAD_SUPPLEMENTORY_DATA_FILE_CHECKED ]);
+ }else{
+ $('input[parameter-id="'+FIELD.ID.SUPPLEMENTORY_DATA_FILE+'"]').closest('tr').hide();
+ FIELD.PARAMETER.UPLOAD_SUPPLEMENTORY_DATA_FILE_CHECKED.value=false;
+ parameterListControl
+ .updateList([ FIELD.PARAMETER.UPLOAD_SUPPLEMENTORY_DATA_FILE_UNCHECKED ]);
+ }
+ } else if (updatedId === FIELD.ID.SUPPLEMENTORY_DATA_FILE) {
+ var filePath = $('input[parameter-id="'+updatedId+'"]').val();
+ var arr =filePath.split('.');
+ var fileExt = arr[arr.length-1];
+ if(fileExt!='' && fileExt.toLowerCase()!='json'){
+ $('input[parameter-id="'+updatedId+'"]').val('');
+ alert("Invalid file format. Please select *.json format file.");
+ return false;
+ }
+ } else if (updatedId === FIELD.ID.LCP_REGION) {
+ var list = parameterListControl.getList(updatedId);
+ if (list[0].selectedIndex >= 0) {
+ parameterListControl
+ .updateList([ getTenantList(list[0].value) ]);
+ } else {
+ parameterListControl
+ .updateList([ FIELD.PARAMETER.TENANT_DISABLED ]);
+ }
+ if (list[0].value === FIELD.KEY.LCP_REGION_TEXT) {
+ parameterListControl
+ .updateList([ FIELD.PARAMETER.LCP_REGION_TEXT_VISIBLE ]);
+ } else {
+ parameterListControl
+ .updateList([ FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN ]);
+ }
+ } else if (updatedId === FIELD.ID.SUBSCRIBER_NAME) {
+ var list = parameterListControl.getList(updatedId);
+ if (list[0].selectedIndex >= 0) {
+ DataService.setGlobalCustomerId(list[0].value);
+
+ AaiService.getSubscriptionServiceTypeList(DataService
+ .getGlobalCustomerId(), function(response) {
+ DataService.setSubscriptionServiceTypeList(response);
+ var serviceTypeParameters = FIELD.PARAMETER.SERVICE_TYPE;
+ serviceTypeParameters.optionList = [];
+
+ for (var i = 0; i < response.length; i++) {
+ serviceTypeParameters.optionList.push({
+ "id" : response[i].name,
+ "name" : response[i].name,
"isPermitted" :response[i].isPermitted
});
- }
- console.log ( "updateUserParameterList: service type parameters " );
- console.log ( JSON.stringify (serviceTypeParameters, null, 4));
- parameterListControl.updateList([ serviceTypeParameters ]);
- });
-
- }
- } else if ( updatedId === FIELD.ID.SERVICE_TYPE ) {
- var list = parameterListControl.getList(updatedId);
- if (list[0].selectedIndex >= 0) {
-
- DataService.setServiceType(list[0].value);
- var cloudRegionTenantList = new Array();
- AaiService.getLcpCloudRegionTenantList(DataService.getGlobalCustomerId(), DataService.getServiceType(), function(cloudRegionTenantList) {
- DataService.setCloudRegionTenantList(cloudRegionTenantList);
- parameterListControl.updateList([ getLcpRegion() ]);
- });
- } else {
- parameterListControl
- .updateList([ FIELD.PARAMETER.SERVICE_TYPE_DISABLED ]);
- }
- }
-
- };
-
- return {
- initializeComponent : function(componentId) {
- _this.componentId = ComponentService.initialize(componentId);
- },
- setHttpErrorHandler : function(httpErrorHandler) {
- _this.httpErrorHandler = httpErrorHandler;
- },
- getComponentDisplayName : ComponentService.getComponentDisplayName,
- getParameters : function(getParametersHandler) {
- _this.getParametersHandler = getParametersHandler;
- UtilityService.setHttpErrorHandler(_this.httpErrorHandler);
- UtilityService.startAsyncOperations(getAsyncOperationList(),
- internalGetParametersHandler);
- },
- updateUserParameterList : updateUserParameterList,
- getMsoRequestDetails : getMsoRequestDetails,
- getMsoUrl : getMsoUrl
- }
+ }
+ console.log ( "updateUserParameterList: service type parameters " );
+ console.log ( JSON.stringify (serviceTypeParameters, null, 4));
+ parameterListControl.updateList([ serviceTypeParameters ]);
+ });
+
+ }
+ } else if ( updatedId === FIELD.ID.SERVICE_TYPE ) {
+ var list = parameterListControl.getList(updatedId);
+ if (list[0].selectedIndex >= 0) {
+
+ DataService.setServiceType(list[0].value);
+ var cloudRegionTenantList = new Array();
+ AaiService.getLcpCloudRegionTenantList(DataService.getGlobalCustomerId(), DataService.getServiceType(), function(cloudRegionTenantList) {
+ DataService.setCloudRegionTenantList(cloudRegionTenantList);
+ parameterListControl.updateList([ getLcpRegionParameter() ]);
+ });
+ } else {
+ parameterListControl
+ .updateList([ FIELD.PARAMETER.SERVICE_TYPE_DISABLED ]);
+ }
+ }
+
+ };
+
+ return {
+ initializeComponent : function(componentId) {
+ _this.componentId = ComponentService.initialize(componentId);
+ },
+ setHttpErrorHandler : function(httpErrorHandler) {
+ _this.httpErrorHandler = httpErrorHandler;
+ },
+ getComponentDisplayName : ComponentService.getComponentDisplayName,
+ getParameters : function(getParametersHandler) {
+ _this.getParametersHandler = getParametersHandler;
+ UtilityService.setHttpErrorHandler(_this.httpErrorHandler);
+ UtilityService.startAsyncOperations(getAsyncOperationList(),
+ internalGetParametersHandler);
+ },
+ updateUserParameterList : updateUserParameterList,
+ getMsoRequestDetails : getMsoRequestDetails,
+ getMsoUrl : getMsoUrl,
+ setInventoryInfo: setInventoryInfo
+ }
}
appDS2.factory("CreationService", [ "$log", "AaiService", "AsdcService",
- "DataService","VIDCONFIGURATION", "ComponentService", "COMPONENT", "FIELD", "PARAMETER",
- "UtilityService", CreationService ]);
+ "DataService","VIDCONFIGURATION", "ComponentService", "COMPONENT", "FIELD", "PARAMETER",
+ "UtilityService", "OwningEntityService", CreationService ]);
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js index 2d7fa6ca7..716854edb 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js @@ -100,6 +100,12 @@ var DataService = function($log, DataService) { getAicZones : function(){
return _this.aicZones;
},
+ setAicZoneForPNF: function(aicZone) {
+ _this.aicZone = aicZone;
+ },
+ getAicZoneForPNF : function(){
+ return _this.aicZone;
+ },
getServiceInstanceId : function() {
return _this.serviceInstanceId;
},
@@ -214,6 +220,12 @@ var DataService = function($log, DataService) { setVnfInstanceId : function(vnfInstanceId) {
_this.vnfInstanceId = vnfInstanceId;
},
+ getVfModuleInstanceName : function() {
+ return _this.vfModuleInstanceName;
+ },
+ setVfModuleInstanceName : function(vfModuleInstanceName) {
+ _this.vfModuleInstanceName = vfModuleInstanceName;
+ },
getVolumeGroupInstanceId : function() {
return _this.volumeGroupInstanceId;
},
@@ -293,8 +305,81 @@ var DataService = function($log, DataService) { },
getHideServiceFields:function(){
return _this.hideServiceFields;
- }
+ },
+ getServiceProxies:function(){
+ return _this.serviceProxies;
+ },
+ setServiceProxies:function(serviceProxies){
+ _this.serviceProxies = serviceProxies;
+ },
+ getSourceServiceProxies:function(){
+ return _this.sourceServiceProxies;
+ },
+ setSourceServiceProxies:function(sourceServiceProxies){
+ _this.sourceServiceProxies = sourceServiceProxies;
+ },
+ getCollectorServiceProxies:function(){
+ return _this.collectorServiceProxies;
+ },
+ setCollectorServiceProxies:function(collectorServiceProxies){
+ _this.collectorServiceProxies = collectorServiceProxies;
+ },
+ getConfigurationByPolicy:function() {
+ return _this.configurationByPolicy;
+ },
+ setConfigurationByPolicy:function (configurationByPolicy) {
+ _this.configurationByPolicy = configurationByPolicy;
+ },
+ getSuppressRollback:function(){
+ return _this.suppressRollback;
+ },
+ setSuppressRollback:function(suppressRollback){
+ _this.suppressRollback = suppressRollback;
+ },
+ getPortMirroningConfigFields:function(){
+ return _this.portMirroningConfigFields;
+ },
+ setPortMirroningConfigFields:function(portMirroningConfigFields){
+ _this.portMirroningConfigFields = portMirroningConfigFields;
+ },
+ getConfigurationInstanceId : function() {
+ return _this.configurationInstanceId;
+ },
+ setConfigurationInstanceId : function(configurationInstanceId) {
+ _this.configurationInstanceId = configurationInstanceId;
+ },
+ getConfigurationStatus: function () {
+ return _this.configurationStatus;
+ },
+ setConfigurationStatus: function (configurationStatus) {
+ _this.configurationStatus = configurationStatus;
+ },
+ getPortStatus: function () {
+ return _this.portStatus;
+ },
+ setPortStatus: function (portStatus) {
+ _this.portStatus = portStatus;
+ },
+ getPortId: function () {
+ return _this.portId;
+ },
+ setPortId: function (portId) {
+ _this.portId = portId;
+ },
+ getPnf: function () {
+ return _this.pnf;
+ },
+ setPnf: function (pnf) {
+ _this.pnf = pnf;
+ },
+ getOwningEntityProperties: function () {
+ return _this.owningEntityProperties;
+ },
+ setOwningEntityProperties: function (properties) {
+ _this.owningEntityProperties = properties;
+ }
+
}
-}
+};
appDS2.factory("DataService", [ "$log", DataService ]);
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/deletionService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js index 79282997b..90daf3550 100755..100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/deletionService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js @@ -1,508 +1,518 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-"use strict";
-
-var DeletionService = function($log, AaiService, AsdcService, DataService,
- ComponentService, COMPONENT, FIELD, UtilityService) {
-
- var _this = this;
-
- var getAsyncOperationList = function() {
- if (DataService.getLoggedInUserId() == null)
- getLoggedInUserID();
- switch (_this.componentId) {
- case COMPONENT.SERVICE:
- return [ getSubscribers, getLcpCloudRegionTenantList ];
- case COMPONENT.NETWORK:
- return [ getLcpCloudRegionTenantList ];
- case COMPONENT.VNF:
- return [ getLcpCloudRegionTenantList ];
- case COMPONENT.VF_MODULE:
- return [ getLcpCloudRegionTenantList ];
- case COMPONENT.VOLUME_GROUP:
- return [ getLcpCloudRegionTenantList ];
- }
- };
-
- var getLcpCloudRegionTenantList = function() {
- //console.log ( "global customer id: " );
- //console.log ( JSON.stringify (DataService.getGlobalCustomerId()) );
-
- //console.log ( "service type: " );
- //console.log ( JSON.stringify (DataService.getServiceType()) );
-
- AaiService.getLcpCloudRegionTenantList(DataService
- .getGlobalCustomerId(), DataService.getServiceType(), function(
- response) {
- DataService.setCloudRegionTenantList(response);
- UtilityService.startNextAsyncOperation();
- });
- };
-
- var getLoggedInUserID = function() {
- AaiService.getLoggedInUserID(function(response) {
- DataService.setLoggedInUserId(response.data);
- UtilityService.startNextAsyncOperation();
- });
- };
-
- var getSubscribers = function() {
- AaiService.getSubscribers(function(response) {
- DataService.setSubscribers(response);
- UtilityService.startNextAsyncOperation();
- });
- };
-
- var internalGetParametersHandler = function() {
- if (angular.isFunction(_this.getParametersHandler)) {
- if (_this.componentId == COMPONENT.SERVICE) {
- if ( DataService.getALaCarte() ) {
- _this.getParametersHandler({
- summaryList : getSummaryList(),
- userProvidedList : getUserProvidedList()
- }, true);
- }
- else {
- _this.getParametersHandler({
- summaryList : getSummaryList(),
- userProvidedList : getUserProvidedList()
- }, false);
- }
- }
- else {
- _this.getParametersHandler({
- summaryList : getSummaryList(),
- userProvidedList : getUserProvidedList()
- }, false);
- }
- }
- };
-
- var getSubscribersParameter = function() {
- var subscribers = DataService.getSubscribers();
- var parameter = FIELD.PARAMETER.SUBSCRIBER_NAME;
- parameter.optionList = [];
-
- for (var i = 0; i < subscribers.length; i++) {
- parameter.optionList.push({
- id : subscribers[i][FIELD.ID.GLOBAL_CUSTOMER_ID],
- name : subscribers[i][FIELD.ID.SUBNAME]
- })
- }
- return parameter;
- };
-
- var getServiceId = function() {
- var serviceIdList = DataService.getServiceIdList();
- var parameter = FIELD.PARAMETER.PRODUCT_FAMILY;
- parameter.optionList = new Array();
- for (var i = 0; i < serviceIdList.length; i++) {
- parameter.optionList.push({
- id : serviceIdList[i].id,
- name : serviceIdList[i].description
- });
- }
- return parameter;
- };
-
- var getUserProvidedList = function() {
-
- //var parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ];
-
- var parameterList = [];
-
- switch (_this.componentId) {
- case COMPONENT.SERVICE:
- if ( DataService.getALaCarte() ) {
- parameterList = [];
- }
- else {
- parameterList = parameterList.concat ([getLcpRegion(),
- FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED ]);
- }
- break;
- case COMPONENT.NETWORK:
- case COMPONENT.VNF:
- parameterList = parameterList.concat([ //getServiceId(),
- getLcpRegion(), FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED ]);
- break;
- case COMPONENT.VF_MODULE:
- parameterList = parameterList.concat([
- getLcpRegion(),
- FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED
- ]);
-
- break;
- case COMPONENT.VOLUME_GROUP:
- parameterList = parameterList.concat([ getLcpRegion(),
- FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN,
- FIELD.PARAMETER.TENANT_DISABLED ]);
- }
-
- //parameterList.push(FIELD.PARAMETER.SUPPRESS_ROLLBACK);
-
- //addArbitraryParameters(parameterList);
-
- return parameterList;
- };
- var getSummaryList = function() {
- switch (_this.componentId) {
- case COMPONENT.NETWORK:
- case COMPONENT.SERVICE:
- case COMPONENT.VNF:
- case COMPONENT.VF_MODULE:
- case COMPONENT.VOLUME_GROUP:
- var summaryList = [ {
- name : FIELD.NAME.SUBSCRIBER_NAME,
- value : DataService.getSubscriberName()
- }, {
- name : FIELD.NAME.CUSTOMER_ID,
- value : DataService.getGlobalCustomerId()
- }, {
- name : FIELD.NAME.SERVICE_UUID,
- value : DataService.getServiceUuid()
- }, {
- name : FIELD.NAME.SERVICE_NAME,
- value : DataService.getServiceName()
- /* }, {
- name : FIELD.NAME.USER_SERVICE_INSTANCE_NAME,
- value : DataService.getUserServiceInstanceName()*/
- } ];
-
- _this.parameterList = new Array();
-
- addToList(FIELD.NAME.SERVICE_NAME, DataService.getServiceName());
-
- switch (_this.componentId) {
- case COMPONENT.SERVICE:
- addToList(FIELD.NAME.SERVICE_INVARIANT_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
- addToList(FIELD.NAME.SERVICE_VERSION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
- addToList(FIELD.NAME.SERVICE_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
- addToList(FIELD.NAME.SERVICE_DESCRIPTION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.DESCRIPTION]);
- addToList(FIELD.NAME.SERVICE_CATEGORY, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.CATEGORY]);
- break;
- case COMPONENT.VF_MODULE:
- addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
- .getSubscriberName());
- addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService
- .getServiceInstanceName());
- addToList(FIELD.NAME.MODEL_NAME, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]);
- addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
- addToList(FIELD.NAME.MODEL_VERSION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
- addToList(FIELD.NAME.MODEL_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
- break;
- case COMPONENT.NETWORK:
- case COMPONENT.VNF:
- case COMPONENT.VOLUME_GROUP:
- addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService
- .getSubscriberName());
- addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService
- .getServiceInstanceName());
- addToList(FIELD.NAME.MODEL_NAME, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]);
- addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]);
- addToList(FIELD.NAME.MODEL_VERSION, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]);
- addToList(FIELD.NAME.MODEL_UUID, DataService
- .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]);
- break;
- }
-
- /*var additionalList = ComponentService.getInventoryParameterList(
- _this.componentId, DataService.getInventoryItem());*/
- var additionalList = ComponentService.getDisplayNames(ComponentService
- .getInventoryParameterList(_this.componentId, DataService
- .getInventoryItem(), true ));
-
- return summaryList.concat(ComponentService
- .getDisplayNames(additionalList));
- }
- };
-
- var getMsoUrl = function() {
- switch (_this.componentId) {
- case COMPONENT.NETWORK:
- return "mso_delete_nw_instance/"
- + DataService.getServiceInstanceId() + "/networks/"
- + DataService.getNetworkInstanceId();
- case COMPONENT.SERVICE:
- return "mso_delete_svc_instance/"
- + DataService.getServiceInstanceId();
- case COMPONENT.VNF:
- return "mso_delete_vnf_instance/"
- + DataService.getServiceInstanceId() + "/vnfs/"
- + DataService.getVnfInstanceId();
- case COMPONENT.VF_MODULE:
- return "mso_delete_vfmodule_instance/"
- + DataService.getServiceInstanceId() + "/vnfs/"
- + DataService.getVnfInstanceId() + "/vfModules/"
- + DataService.getVfModuleInstanceId();
- case COMPONENT.VOLUME_GROUP:
- return "mso_delete_volumegroup_instance/"
- + DataService.getServiceInstanceId() + "/vnfs/"
- + DataService.getVnfInstanceId() + "/volumeGroups/"
- + DataService.getVolumeGroupInstanceId();
- }
- }
-
- var addToList = function(name, value) {
- _this.parameterList.push({
- name : name,
- value : value
- });
- };
-
- var getMsoRequestDetails = function(parameterList) {
- console.log("getMsoRequestDetails invoked");
- var inventoryInfo = ComponentService.getInventoryInfo(
- _this.componentId, DataService.getInventoryItem());
- var modelInfo = DataService.getModelInfo(_this.componentId);
- var requestorloggedInId = DataService.getLoggedInUserId();
- if (requestorloggedInId == null)
- requestorloggedInId = "";
- var requestDetails = {
- modelInfo : {
- modelType : _this.componentId,
- modelInvariantId : modelInfo.modelInvariantId,
- modelVersionId : modelInfo.modelNameVersionId,
- modelName : modelInfo.modelName,
- modelCustomizationName : modelInfo.modelCustomizationName,
- modelCustomizationId : modelInfo.customizationUuid,
- modelVersion : modelInfo.modelVersion
- },
- requestInfo : {
- source : FIELD.ID.VID,
- requestorId: requestorloggedInId
- }
- };
-
- switch (_this.componentId) {
- case COMPONENT.SERVICE:
- requestDetails.requestParameters = {
- aLaCarte : DataService.getALaCarte()
- };
- if ( !(DataService.getALaCarte()) ) {
- // for macro delete include cloud config.
- var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList);
- if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) {
- lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT,
- parameterList);
- }
- requestDetails.cloudConfiguration = {
- lcpCloudRegionId : lcpRegion,
- tenantId : getValueFromList(FIELD.ID.TENANT, parameterList)
- };
- }
- break;
- case COMPONENT.VNF:
- console.log("getMsoRequestDetails COMPONENT.VNF");
- var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList);
- if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) {
- lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT,
- parameterList);
- }
- requestDetails.cloudConfiguration = {
- lcpCloudRegionId : lcpRegion,
- tenantId : getValueFromList(FIELD.ID.TENANT, parameterList)
- };
-
- break;
- case COMPONENT.VF_MODULE:
- case COMPONENT.NETWORK:
- var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList);
- if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) {
- lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT,
- parameterList);
- }
- requestDetails.cloudConfiguration = {
- lcpCloudRegionId : lcpRegion,
- tenantId : getValueFromList(FIELD.ID.TENANT, parameterList)
- };
- break;
- case COMPONENT.VOLUME_GROUP:
- var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList);
- if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) {
- lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT,
- parameterList);
- }
- requestDetails.cloudConfiguration = {
- lcpCloudRegionId : lcpRegion,
- tenantId : getValueFromList(FIELD.ID.TENANT, parameterList)
- };
-
- break;
- default:
- requestDetails.cloudConfiguration = {
- lcpCloudRegionId : DataService.getLcpRegion(),
- tenantId : DataService.getTenant()
- };
- }
- return requestDetails;
- }
-
- var getLcpRegion = function() {
- var cloudRegionTenantList = DataService.getCloudRegionTenantList();
- var parameter = "";
- if ( UtilityService.hasContents (cloudRegionTenantList) ) {
- parameter = FIELD.PARAMETER.LCP_REGION;
- parameter.optionList = new Array();
- for (var i = 0; i < cloudRegionTenantList.length; i++) {
- for (var j = 0; j < parameter.optionList.length; j++) {
- if (parameter.optionList[j].id === cloudRegionTenantList[i].cloudRegionId) {
- parameter.optionList[j].isPermitted =
- parameter.optionList[j].isPermitted || cloudRegionTenantList[i].isPermitted;
- break;
- }
- }
- if (j < parameter.optionList.length) {
- continue;
- }
- parameter.optionList.push({
- id : cloudRegionTenantList[i].cloudRegionId,
- isPermitted : cloudRegionTenantList[i].isPermitted
-
- });
- }
- }
- return parameter;
- };
-
- var getTenantList = function(cloudRegionId) {
- var parameter = "";
- var cloudRegionTenantList = DataService.getCloudRegionTenantList();
- if ( UtilityService.hasContents (cloudRegionTenantList) ) {
- var parameter = FIELD.PARAMETER.TENANT_ENABLED;
- parameter.optionList = new Array();
- for (var i = 0; i < cloudRegionTenantList.length; i++) {
- if (cloudRegionTenantList[i].cloudRegionId === cloudRegionId) {
- parameter.optionList.push({
- id : cloudRegionTenantList[i].tenantId,
- name : cloudRegionTenantList[i].tenantName,
- isPermitted : cloudRegionTenantList[i].isPermitted
- });
- }
- }
- }
- return parameter;
-
- };
-
- var addOptionList = function(parameter, optionSimpleArray) {
- var optionList = new Array();
- if (!angular.isArray(optionSimpleArray)) {
- return optionList;
- }
- for (var i = 0; i < optionSimpleArray.length; i++) {
- optionList.push({
- name : optionSimpleArray[i]
- });
- }
- parameter.optionList = optionList;
- return parameter;
- };
-
- var getValueFromList = function(id, parameterList) {
- for (var i = 0; i < parameterList.length; i++) {
- if (parameterList[i].id === id) {
- return parameterList[i].value;
- }
- }
- };
-
- var updateUserParameterList = function(updatedId, parameterListControl) {
- if (updatedId === FIELD.ID.LCP_REGION) {
- var list = parameterListControl.getList(updatedId);
- if (list[0].selectedIndex >= 0) {
- parameterListControl
- .updateList([ getTenantList(list[0].value) ]);
- } else {
- parameterListControl
- .updateList([ FIELD.PARAMETER.TENANT_DISABLED ]);
- }
- if (list[0].value === FIELD.KEY.LCP_REGION_TEXT) {
- parameterListControl
- .updateList([ FIELD.PARAMETER.LCP_REGION_TEXT_VISIBLE ]);
- } else {
- parameterListControl
- .updateList([ FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN ]);
- }
- } else if (updatedId === FIELD.ID.SUBSCRIBER_NAME) {
- var list = parameterListControl.getList(updatedId);
- if (list[0].selectedIndex >= 0) {
- DataService.setGlobalCustomerId(list[0].value);
-
- AaiService.getSubscriptionServiceTypeList(DataService
- .getGlobalCustomerId(), function(response) {
- DataService.setSubscriptionServiceTypeList(response);
- var serviceTypeParameters = FIELD.PARAMETER.SERVICE_TYPE;
- serviceTypeParameters.optionList = [];
-
- for (var i = 0; i < response.length; i++) {
- serviceTypeParameters.optionList.push({
- "id" : response[i].name,
- "name" : response[i].name
- });
- }
- parameterListControl.updateList([ serviceTypeParameters ]);
- });
-
- } else {
- parameterListControl
- .updateList([ FIELD.PARAMETER.SERVICE_TYPE_DISABLED ]);
- }
- }
- };
-
- return {
- initializeComponent : function(componentId) {
- _this.componentId = ComponentService.initialize(componentId);
- },
- getComponentDisplayName : ComponentService.getComponentDisplayName,
- getSummaryList : getSummaryList,
- getParameters : function(getParametersHandler) {
- _this.getParametersHandler = getParametersHandler;
- UtilityService.setHttpErrorHandler(_this.httpErrorHandler);
- UtilityService.startAsyncOperations(getAsyncOperationList(),
- internalGetParametersHandler);
- },
- updateUserParameterList : updateUserParameterList,
- getMsoRequestDetails : getMsoRequestDetails,
- getMsoUrl : getMsoUrl,
- isMacro : DataService.getMacro()
- }
-}
-
-appDS2.factory("DeletionService", [ "$log", "AaiService", "AsdcService",
- "DataService", "ComponentService", "COMPONENT", "FIELD",
- "UtilityService", DeletionService ]);
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +"use strict"; + +var DeleteResumeService = function($log, AaiService, AsdcService, DataService, + ComponentService, COMPONENT, FIELD, UtilityService) { + + var _this = this; + + var getAsyncOperationList = function() { + if (DataService.getLoggedInUserId() == null) + getLoggedInUserID(); + switch (_this.componentId) { + case COMPONENT.SERVICE: + return [ getSubscribers, getLcpCloudRegionTenantList ]; + case COMPONENT.NETWORK: + return [ getLcpCloudRegionTenantList ]; + case COMPONENT.VNF: + return [ getLcpCloudRegionTenantList ]; + case COMPONENT.VF_MODULE: + return [ getLcpCloudRegionTenantList ]; + case COMPONENT.VOLUME_GROUP: + return [ getLcpCloudRegionTenantList ]; + case COMPONENT.CONFIGURATION: + return [ getLcpCloudRegionTenantList ]; + } + }; + + var getLcpCloudRegionTenantList = function() { + //console.log ( "global customer id: " ); + //console.log ( JSON.stringify (DataService.getGlobalCustomerId()) ); + + //console.log ( "service type: " ); + //console.log ( JSON.stringify (DataService.getServiceType()) ); + + AaiService.getLcpCloudRegionTenantList(DataService + .getGlobalCustomerId(), DataService.getServiceType(), function( + response) { + DataService.setCloudRegionTenantList(response); + UtilityService.startNextAsyncOperation(); + }); + }; + + var getLoggedInUserID = function() { + AaiService.getLoggedInUserID(function(response) { + DataService.setLoggedInUserId(response.data); + UtilityService.startNextAsyncOperation(); + }); + }; + + var getSubscribers = function() { + AaiService.getSubscribers(function(response) { + DataService.setSubscribers(response); + UtilityService.startNextAsyncOperation(); + }); + }; + + var internalGetParametersHandler = function() { + if (angular.isFunction(_this.getParametersHandler)) { + if (_this.componentId == COMPONENT.SERVICE) { + if ( DataService.getALaCarte() ) { + _this.getParametersHandler({ + summaryList : getSummaryList(), + userProvidedList : getUserProvidedList() + }, true); + } + else { + _this.getParametersHandler({ + summaryList : getSummaryList(), + userProvidedList : getUserProvidedList() + }, false); + } + } + else { + _this.getParametersHandler({ + summaryList : getSummaryList(), + userProvidedList : getUserProvidedList() + }, false); + } + } + }; + + var getSubscribersParameter = function() { + var subscribers = DataService.getSubscribers(); + var parameter = FIELD.PARAMETER.SUBSCRIBER_NAME; + parameter.optionList = []; + + for (var i = 0; i < subscribers.length; i++) { + parameter.optionList.push({ + id : subscribers[i][FIELD.ID.GLOBAL_CUSTOMER_ID], + name : subscribers[i][FIELD.ID.SUBNAME] + }) + } + return parameter; + }; + + var getServiceId = function() { + var serviceIdList = DataService.getServiceIdList(); + var parameter = FIELD.PARAMETER.PRODUCT_FAMILY; + parameter.optionList = new Array(); + for (var i = 0; i < serviceIdList.length; i++) { + parameter.optionList.push({ + id : serviceIdList[i].id, + name : serviceIdList[i].description + }); + } + return parameter; + }; + + var getUserProvidedList = function() { + + //var parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ]; + + var parameterList = []; + + switch (_this.componentId) { + case COMPONENT.SERVICE: + if ( DataService.getALaCarte() ) { + parameterList = []; + } + else { + parameterList = parameterList.concat ([getLcpRegion(), + FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN, + FIELD.PARAMETER.TENANT_DISABLED ]); + } + break; + case COMPONENT.NETWORK: + case COMPONENT.CONFIGURATION: + case COMPONENT.VNF: + parameterList = parameterList.concat([ //getServiceId(), + getLcpRegion(), FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN, + FIELD.PARAMETER.TENANT_DISABLED ]); + break; + case COMPONENT.VF_MODULE: + parameterList = parameterList.concat([ + getLcpRegion(), + FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN, + FIELD.PARAMETER.TENANT_DISABLED + ]); + + break; + case COMPONENT.VOLUME_GROUP: + parameterList = parameterList.concat([ getLcpRegion(), + FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN, + FIELD.PARAMETER.TENANT_DISABLED ]); + } + + //parameterList.push(FIELD.PARAMETER.SUPPRESS_ROLLBACK); + + //addArbitraryParameters(parameterList); + + return parameterList; + }; + var getSummaryList = function() { + switch (_this.componentId) { + case COMPONENT.CONFIGURATION: + case COMPONENT.NETWORK: + case COMPONENT.SERVICE: + case COMPONENT.VNF: + case COMPONENT.VF_MODULE: + case COMPONENT.VOLUME_GROUP: + var summaryList = [ { + name : FIELD.NAME.SUBSCRIBER_NAME, + value : DataService.getSubscriberName() + }, { + name : FIELD.NAME.CUSTOMER_ID, + value : DataService.getGlobalCustomerId() + }, { + name : FIELD.NAME.SERVICE_UUID, + value : DataService.getServiceUuid() + }, { + name : FIELD.NAME.SERVICE_NAME, + value : DataService.getServiceName() + /* }, { + name : FIELD.NAME.USER_SERVICE_INSTANCE_NAME, + value : DataService.getUserServiceInstanceName()*/ + } ]; + + _this.parameterList = new Array(); + + addToList(FIELD.NAME.SERVICE_NAME, DataService.getServiceName()); + + switch (_this.componentId) { + case COMPONENT.SERVICE: + addToList(FIELD.NAME.SERVICE_INVARIANT_UUID, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]); + addToList(FIELD.NAME.SERVICE_VERSION, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]); + addToList(FIELD.NAME.SERVICE_UUID, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]); + addToList(FIELD.NAME.SERVICE_DESCRIPTION, DataService + .getModelInfo(_this.componentId)[FIELD.ID.DESCRIPTION]); + addToList(FIELD.NAME.SERVICE_CATEGORY, DataService + .getModelInfo(_this.componentId)[FIELD.ID.CATEGORY]); + break; + case COMPONENT.VF_MODULE: + addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService + .getSubscriberName()); + addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService + .getServiceInstanceName()); + addToList(FIELD.NAME.MODEL_NAME, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]); + addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]); + addToList(FIELD.NAME.MODEL_VERSION, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]); + addToList(FIELD.NAME.MODEL_UUID, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]); + break; + case COMPONENT.CONFIGURATION: + case COMPONENT.NETWORK: + case COMPONENT.VNF: + case COMPONENT.VOLUME_GROUP: + addToList(FIELD.NAME.SUBSCRIBER_NAME, DataService + .getSubscriberName()); + addToList(FIELD.NAME.SERVICE_INSTANCE_NAME, DataService + .getServiceInstanceName()); + addToList(FIELD.NAME.MODEL_NAME, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME]); + addToList(FIELD.NAME.MODEL_INVARIANT_UUID, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_INVARIANT_ID]); + addToList(FIELD.NAME.MODEL_VERSION, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_VERSION]); + addToList(FIELD.NAME.MODEL_UUID, DataService + .getModelInfo(_this.componentId)[FIELD.ID.MODEL_NAME_VERSION_ID]); + break; + } + + /*var additionalList = ComponentService.getInventoryParameterList( + _this.componentId, DataService.getInventoryItem());*/ + var additionalList = ComponentService.getDisplayNames(ComponentService + .getInventoryParameterList(_this.componentId, DataService + .getInventoryItem(), true )); + + return summaryList.concat(ComponentService + .getDisplayNames(additionalList)); + } + }; + + var getMsoUrl = function() { + switch (_this.componentId) { + case COMPONENT.CONFIGURATION: + return "mso_delete_configuration/" + + DataService.getServiceInstanceId() + "/configurations/" + + DataService.getConfigurationInstanceId(); + case COMPONENT.NETWORK: + return "mso_delete_nw_instance/" + + DataService.getServiceInstanceId() + "/networks/" + + DataService.getNetworkInstanceId(); + case COMPONENT.SERVICE: + return "mso_delete_svc_instance/" + + DataService.getServiceInstanceId(); + case COMPONENT.VNF: + return "mso_delete_vnf_instance/" + + DataService.getServiceInstanceId() + "/vnfs/" + + DataService.getVnfInstanceId(); + case COMPONENT.VF_MODULE: + return "mso_delete_vfmodule_instance/" + + DataService.getServiceInstanceId() + "/vnfs/" + + DataService.getVnfInstanceId() + "/vfModules/" + + DataService.getVfModuleInstanceId(); + case COMPONENT.VOLUME_GROUP: + return "mso_delete_volumegroup_instance/" + + DataService.getServiceInstanceId() + "/vnfs/" + + DataService.getVnfInstanceId() + "/volumeGroups/" + + DataService.getVolumeGroupInstanceId(); + } + }; + + var addToList = function(name, value) { + _this.parameterList.push({ + name : name, + value : value + }); + }; + + var getMsoRequestDetails = function(parameterList) { + console.log("getMsoRequestDetails invoked"); + var inventoryInfo = ComponentService.getInventoryInfo( + _this.componentId, DataService.getInventoryItem()); + var modelInfo = DataService.getModelInfo(_this.componentId); + var requestorloggedInId = DataService.getLoggedInUserId(); + if (requestorloggedInId == null) + requestorloggedInId = ""; + var requestDetails = { + modelInfo : { + modelType : _this.componentId, + modelInvariantId : modelInfo.modelInvariantId, + modelVersionId : modelInfo.modelNameVersionId, + modelName : modelInfo.modelName, + modelCustomizationName : modelInfo.modelCustomizationName, + modelCustomizationId : modelInfo.customizationUuid, + modelVersion : modelInfo.modelVersion + }, + requestInfo : { + source : FIELD.ID.VID, + requestorId: requestorloggedInId + } + }; + + switch (_this.componentId) { + case COMPONENT.SERVICE: + requestDetails.requestParameters = { + aLaCarte : DataService.getALaCarte() + }; + if ( !(DataService.getALaCarte()) ) { + // for macro delete include cloud config. + var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList); + if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) { + lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT, + parameterList); + } + requestDetails.cloudConfiguration = { + lcpCloudRegionId : lcpRegion, + tenantId : getValueFromList(FIELD.ID.TENANT, parameterList) + }; + } + break; + case COMPONENT.VNF: + case COMPONENT.CONFIGURATION: + console.log("getMsoRequestDetails COMPONENT.VNF"); + var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList); + if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) { + lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT, + parameterList); + } + requestDetails.cloudConfiguration = { + lcpCloudRegionId : lcpRegion, + tenantId : getValueFromList(FIELD.ID.TENANT, parameterList) + }; + + break; + case COMPONENT.VF_MODULE: + case COMPONENT.NETWORK: + var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList); + if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) { + lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT, + parameterList); + } + requestDetails.cloudConfiguration = { + lcpCloudRegionId : lcpRegion, + tenantId : getValueFromList(FIELD.ID.TENANT, parameterList) + }; + break; + case COMPONENT.VOLUME_GROUP: + var lcpRegion = getValueFromList(FIELD.ID.LCP_REGION, parameterList); + if (lcpRegion === FIELD.KEY.LCP_REGION_TEXT) { + lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT, + parameterList); + } + requestDetails.cloudConfiguration = { + lcpCloudRegionId : lcpRegion, + tenantId : getValueFromList(FIELD.ID.TENANT, parameterList) + }; + + break; + default: + requestDetails.cloudConfiguration = { + lcpCloudRegionId : DataService.getLcpRegion(), + tenantId : DataService.getTenant() + }; + } + return requestDetails; + } + + var getLcpRegion = function() { + var cloudRegionTenantList = DataService.getCloudRegionTenantList(); + var parameter = ""; + if ( UtilityService.hasContents (cloudRegionTenantList) ) { + parameter = FIELD.PARAMETER.LCP_REGION; + parameter.optionList = new Array(); + for (var i = 0; i < cloudRegionTenantList.length; i++) { + for (var j = 0; j < parameter.optionList.length; j++) { + if (parameter.optionList[j].id === cloudRegionTenantList[i].cloudRegionId) { + parameter.optionList[j].isPermitted = + parameter.optionList[j].isPermitted || cloudRegionTenantList[i].isPermitted; + break; + } + } + if (j < parameter.optionList.length) { + continue; + } + parameter.optionList.push({ + id : cloudRegionTenantList[i].cloudRegionId, + isPermitted : cloudRegionTenantList[i].isPermitted + + }); + } + } + return parameter; + }; + + var getTenantList = function(cloudRegionId) { + var parameter = ""; + var cloudRegionTenantList = DataService.getCloudRegionTenantList(); + if ( UtilityService.hasContents (cloudRegionTenantList) ) { + var parameter = FIELD.PARAMETER.TENANT_ENABLED; + parameter.optionList = new Array(); + for (var i = 0; i < cloudRegionTenantList.length; i++) { + if (cloudRegionTenantList[i].cloudRegionId === cloudRegionId) { + parameter.optionList.push({ + id : cloudRegionTenantList[i].tenantId, + name : cloudRegionTenantList[i].tenantName, + isPermitted : cloudRegionTenantList[i].isPermitted + }); + } + } + } + return parameter; + + }; + + var addOptionList = function(parameter, optionSimpleArray) { + var optionList = new Array(); + if (!angular.isArray(optionSimpleArray)) { + return optionList; + } + for (var i = 0; i < optionSimpleArray.length; i++) { + optionList.push({ + name : optionSimpleArray[i] + }); + } + parameter.optionList = optionList; + return parameter; + }; + + var getValueFromList = function(id, parameterList) { + for (var i = 0; i < parameterList.length; i++) { + if (parameterList[i].id === id) { + return parameterList[i].value; + } + } + }; + + var updateUserParameterList = function(updatedId, parameterListControl) { + if (updatedId === FIELD.ID.LCP_REGION) { + var list = parameterListControl.getList(updatedId); + if (list[0].selectedIndex >= 0) { + parameterListControl + .updateList([ getTenantList(list[0].value) ]); + } else { + parameterListControl + .updateList([ FIELD.PARAMETER.TENANT_DISABLED ]); + } + if (list[0].value === FIELD.KEY.LCP_REGION_TEXT) { + parameterListControl + .updateList([ FIELD.PARAMETER.LCP_REGION_TEXT_VISIBLE ]); + } else { + parameterListControl + .updateList([ FIELD.PARAMETER.LCP_REGION_TEXT_HIDDEN ]); + } + } else if (updatedId === FIELD.ID.SUBSCRIBER_NAME) { + var list = parameterListControl.getList(updatedId); + if (list[0].selectedIndex >= 0) { + DataService.setGlobalCustomerId(list[0].value); + + AaiService.getSubscriptionServiceTypeList(DataService + .getGlobalCustomerId(), function(response) { + DataService.setSubscriptionServiceTypeList(response); + var serviceTypeParameters = FIELD.PARAMETER.SERVICE_TYPE; + serviceTypeParameters.optionList = []; + + for (var i = 0; i < response.length; i++) { + serviceTypeParameters.optionList.push({ + "id" : response[i].name, + "name" : response[i].name + }); + } + parameterListControl.updateList([ serviceTypeParameters ]); + }); + + } else { + parameterListControl + .updateList([ FIELD.PARAMETER.SERVICE_TYPE_DISABLED ]); + } + } + }; + + return { + initializeComponent : function(componentId) { + _this.componentId = ComponentService.initialize(componentId); + }, + getComponentDisplayName : ComponentService.getComponentDisplayName, + getSummaryList : getSummaryList, + getParameters : function(getParametersHandler) { + _this.getParametersHandler = getParametersHandler; + UtilityService.setHttpErrorHandler(_this.httpErrorHandler); + UtilityService.startAsyncOperations(getAsyncOperationList(), + internalGetParametersHandler); + }, + updateUserParameterList : updateUserParameterList, + getMsoRequestDetails : getMsoRequestDetails, + getMsoUrl : getMsoUrl, + isMacro : DataService.getMacro() + } +} + +appDS2.factory("DeleteResumeService", [ "$log", "AaiService", "AsdcService", + "DataService", "ComponentService", "COMPONENT", "FIELD", + "UtilityService", DeleteResumeService ]); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/msoService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/msoService.js index 68c8503dc..67211d48b 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/msoService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/msoService.js @@ -20,7 +20,7 @@ "use strict";
-var MsoService = function($http, $log, PropertyService, AaiService, UtilityService, COMPONENT, FIELD, $q) {
+var MsoService = function($http, $log, $q, PropertyService, AaiService, UtilityService, COMPONENT, FIELD) {
var _this = this;
@@ -55,49 +55,60 @@ var MsoService = function($http, $log, PropertyService, AaiService, UtilityServi }
};
- var activateInstance = function(instance, model) {
- var deferred = $q.defer();
+ var buildPayloadForServiceActivateDeactivate = function (model, userId, aicZone) {
+ var requestDetails = {
+ "modelInfo": {
+ "modelType": "service",
+ "modelInvariantId": model.service.invariantUuid,
+ "modelVersionId": model.service.uuid,
+ "modelName": model.service.name,
+ "modelVersion": model.service.version
+ },
+ "requestInfo": {
+ "source": "VID",
+ "requestorId": userId
+ },
+ "requestParameters": {
+ "userParams": [{
+ "name": "aic_zone",
+ "value": aicZone
+ }]
+ }
+ };
- AaiService.getLoggedInUserID(function (response) {
- var userID = response.data;
+ $log.debug("Service Activate/Deactivate payload", requestDetails);
- AaiService.getAicZoneForPNF(instance.globalCustomerId, model.service.serviceType, instance.serviceInstanceId, function (aicZone) {
+ return requestDetails;
- var requestDetails = {
- "modelInstanceId": serviceInstanceId,
- "requestDetails": {
- "modelInfo": {
- "modelType": "service",
- "modelInvariantId": model.service.invariantUuid,
- "modelVersionId": model.service.uuid,
- "modelName": model.service.name,
- "modelVersion": model.service.version
- },
- "requestInfo": {
- "source": "VID",
- "requestorId": userID
- },
- "requestParameters": {
- "userParams": {
- "name": "aic_zone",
- "value": aicZone
- }
- }
- }
- };
+ };
- console.log("requestDetails", requestDetails);
+ var activateInstance = function(requestParams) {
+ var requestDetails = buildPayloadForServiceActivateDeactivate(requestParams.model, requestParams.userId, requestParams.aicZone);
- $http.post(COMPONENT.MSO_ACTIVATE_INSTANCE.replace('@serviceInstanceId', requestDetails.modelInstanceId),
- requestDetails.requestDetails)
- .success(function (response) {
- deferred.resolve({data: response});
- })
- .error(function(data, status, headers, config) {
- deferred.reject({message: data, status: status});
- });
+ return sendPostRequest(COMPONENT.MSO_ACTIVATE_INSTANCE.replace('@serviceInstanceId', requestParams.instance.serviceInstanceId),
+ requestDetails);
+ };
+
+ var deactivateInstance = function(requestParams) {
+ var requestDetails = buildPayloadForServiceActivateDeactivate(requestParams.model, requestParams.userId, requestParams.aicZone);
+
+ return sendPostRequest(COMPONENT.MSO_DEACTIVATE_INSTANCE.replace('@serviceInstanceId', requestParams.instance.serviceInstanceId),
+ requestDetails);
+ };
+
+ var sendPostRequest = function(url, requestDetails) {
+ var deferred = $q.defer();
+ if (url) {
+ $http.post(url, {
+ requestDetails: requestDetails
+ }, {
+ timeout: PropertyService.getServerResponseTimeoutMsec()
+ }).success(function (response) {
+ deferred.resolve({data: response});
+ }).error(function (data, status) {
+ deferred.reject({message: data, status: status});
});
- });
+ }
return deferred.promise;
};
@@ -177,9 +188,12 @@ var MsoService = function($http, $log, PropertyService, AaiService, UtilityServi getFormattedSingleGetOrchestrationRequestResponse : function (response) {
UtilityService.checkUndefined(COMPONENT.ENTITY, response.data.entity);
UtilityService.checkUndefined(COMPONENT.STATUS, response.data.status);
- checkValidStatus(response);
+ //checkValidStatus(response);
var message = "";
+ if (! (response && response.data && response.data.entity)) {
+ return message;
+ }
if ( UtilityService.hasContents (response.data.entity.request) ) {
var request = response.data.entity.request;
message += addListEntry(FIELD.ID.REQUEST_ID, request.requestId) + ",\n";
@@ -201,6 +215,11 @@ var MsoService = function($http, $log, PropertyService, AaiService, UtilityServi + "\n\n";
}
}
+ else {
+ if (UtilityService.hasContents(response.data.status) && UtilityService.hasContents(response.data.entity)) {
+ message = this.getFormattedCommonResponse(response) + "\n";
+ }
+ }
return message;
},
getManualTasks : function(requestId) {
@@ -215,29 +234,37 @@ var MsoService = function($http, $log, PropertyService, AaiService, UtilityServi .catch(UtilityService.runHttpErrorHandler);
},
completeTask: function(taskId, taskToComplete) {
- $log.debug("MsoService:completeTask: taskId: "
- + taskId);
- AaiService.getLoggedInUserID(function (response) {
- var attuid = response.data;
- var source = "VID";
- var data = {
- requestDetails: {
- requestInfo: {
- source: source,
- responseValue: taskToComplete,
- requestorId: attuid
+ var promise = new Promise(function (resolve, reject) {
+ $log.debug("MsoService:completeTask: taskId: "
+ + taskId);
+ AaiService.getLoggedInUserID(function (response) {
+ var attuid = response.data;
+ var source = "VID";
+ var data = {
+ requestDetails: {
+ requestInfo: {
+ source: source,
+ responseValue: taskToComplete,
+ requestorId: attuid
+ }
}
- }
- };
+ };
- return $http.post(
- "mso/mso_post_man_task/" + taskId, data,
- {
- timeout: PropertyService
- .getServerResponseTimeoutMsec()
+ return $http.post(
+ "mso/mso_post_man_task/" + taskId, data,
+ {
+ timeout: PropertyService
+ .getServerResponseTimeoutMsec()
+ }).then(function (response) {
+ resolve(response);
})
- .catch(UtilityService.runHttpErrorHandler);
+ .catch(UtilityService.runHttpErrorHandler);
+ }, function () {
+ reject();
+ });
});
+
+ return promise;
},
showResponseContentError : function(error, showFunction) {
switch (error.type) {
@@ -251,9 +278,233 @@ var MsoService = function($http, $log, PropertyService, AaiService, UtilityServi showFunction(FIELD.ERROR.SYSTEM_FAILURE);
}
},
- activateInstance: activateInstance
+ activateInstance: activateInstance,
+ deactivateInstance: deactivateInstance,
+
+
+ createConfigurationInstance: function(requestParams) {
+
+ const modelInfoOf = function (instance) {
+ const modelInfo = {
+ "modelType": "vnf",
+ "modelInvariantId": instance.properties['model-invariant-id'],
+ "modelVersionId": instance.properties['model-version-id'],
+ "modelName": instance.properties['model-name'],
+ "modelVersion": instance.properties['model-version'],
+ "modelCustomizationId": instance.properties['model-customization-id']
+ };
+
+ $log.debug("model info from instance", instance);
+ $log.debug("model info to model", modelInfo);
+
+ return modelInfo
+ };
+
+ var payload = {
+ "requestDetails": {
+ "modelInfo": {
+ "modelType": "configuration",
+ "modelInvariantId": requestParams.configurationModelInfo.modelInvariantId,
+ "modelVersionId": requestParams.configurationModelInfo.modelNameVersionId,
+ "modelName": requestParams.configurationModelInfo.modelName, // "Port Mirroring Configuration"
+ "modelVersion": requestParams.configurationModelInfo.modelVersion,
+ "modelCustomizationId": requestParams.configurationModelInfo.customizationUuid,
+ "modelCustomizationName": requestParams.configurationModelInfo.modelCustomizationName
+ },
+ "cloudConfiguration": {
+ // "tenantId": ????
+ "lcpCloudRegionId": requestParams.portMirroringConfigFields.lcpRegion.value
+ },
+ "requestInfo": {
+ "instanceName": requestParams.portMirroringConfigFields.instanceName.value,
+ "source": "VID",
+ "requestorId": requestParams.attuuid
+ },
+ "relatedInstanceList": [
+ {
+ "relatedInstance": {
+ "instanceId": requestParams.topServiceInstanceId,
+ "modelInfo": {
+ "modelType": "service", // relatedTopModelsInfo.modelType
+ "modelInvariantId": requestParams.relatedTopModelsInfo.modelInvariantId,
+ "modelVersionId": requestParams.relatedTopModelsInfo.modelNameVersionId,
+ "modelName": requestParams.relatedTopModelsInfo.modelName,
+ "modelVersion": requestParams.relatedTopModelsInfo.modelVersion
+ }
+ }
+ },
+ {
+ "relatedInstance": {
+ "instanceId": requestParams.portMirroringConfigFields.sourceInstance.properties['vnf-id'],
+ "instanceDirection": "source",
+ "modelInfo": modelInfoOf(requestParams.portMirroringConfigFields.sourceInstance)
+ }
+ },
+ {
+ "relatedInstance": {
+ "instanceId": requestParams.configurationByPolicy ?
+ requestParams.portMirroringConfigFields.destinationInstance.properties['pnfName']:
+ requestParams.portMirroringConfigFields.destinationInstance.properties['vnf-id'],
+ "instanceDirection": "destination",
+ "modelInfo":
+ requestParams.configurationByPolicy ?
+ {"modelType": "pnf"} :
+ modelInfoOf(requestParams.portMirroringConfigFields.destinationInstance)
+ }
+ }
+ ],
+ "requestParameters": {
+ "userParams": []
+ }
+ }
+ };
+
+ $log.debug("payload", payload);
+
+ var deferred = $q.defer();
+ $http.post([
+ 'mso','mso_create_configuration_instance',
+ requestParams.topServiceInstanceId,
+ 'configurations',''
+ ].join(COMPONENT.FORWARD_SLASH),
+ payload)
+ .success(function (response) {
+ deferred.resolve({data : response});
+ }).error(function (data, status) {
+ deferred.reject({message: data, status: status});
+ });
+ return deferred.promise;
+ },
+
+ toggleConfigurationStatus: function(requestParams) {
+
+ var requestDetails = {
+ "modelInfo": requestParams.configurationModel,
+ "cloudConfiguration": {
+ "lcpCloudRegionId": "mdt1"
+ },
+ "requestInfo": {
+ "source": "VID",
+ "requestorId": requestParams.userId
+ },
+ "relatedInstanceList": [{
+ "relatedInstance": {
+ "instanceId": requestParams.serviceInstanceId,
+ "modelInfo": requestParams.serviceModel
+ }
+ }],
+ "requestParameters": {
+ "userParams": []
+ }
+ };
+
+ var url;
+ switch (requestParams.configStatus) {
+ case FIELD.STATUS.AAI_CREATED:
+ case FIELD.STATUS.AAI_INACTIVE:
+ url = "mso/mso_activate_configuration/"+requestParams.serviceInstanceId+"/configurations/"+requestParams.configurationId;
+ break;
+ case FIELD.STATUS.AAI_ACTIVE:
+ url = "mso/mso_deactivate_configuration/"+requestParams.serviceInstanceId+"/configurations/"+requestParams.configurationId;
+ break;
+ }
+
+ return sendPostRequest(url, requestDetails);
+ },
+
+ togglePortStatus: function(requestParams) {
+ var requestDetails = {
+ "modelInfo": requestParams.configurationModel,
+ "cloudConfiguration": {
+ "lcpCloudRegionId": "mdt1"
+ },
+ "requestInfo": {
+ "source": "VID",
+ "requestorId": requestParams.userId
+ },
+ "relatedInstanceList": [
+ {
+ "relatedInstance": {
+ "instanceId": requestParams.serviceInstanceId,
+ "modelInfo": requestParams.serviceModel
+ }
+ },
+ {
+ "relatedInstance": {
+ "instanceId": requestParams.portId,
+ "instanceDirection": "source",
+ "modelInfo": {
+ "modelType": "connectionPoint"
+ }
+ }
+ }
+ ]
+ };
+
+ var url;
+ switch (requestParams.portStatus) {
+ case FIELD.STATUS.AAI_ENABLED:
+ url = "mso/mso_disable_port_configuration/"+requestParams.serviceInstanceId+"/configurations/"+requestParams.configurationId;
+ break;
+ case FIELD.STATUS.AAI_DISABLED:
+ url = "mso/mso_enable_port_configuration/"+requestParams.serviceInstanceId+"/configurations/"+requestParams.configurationId;
+ break;
+ }
+
+ return sendPostRequest(url, requestDetails);
+ },
+
+ buildPayloadForAssociateDissociate: function(serviceModelInfo, attuuid, instanceId, pnf) {
+ var payload = {
+ "modelInfo": {
+ "modelType": "service",
+ "modelInvariantId": serviceModelInfo.invariantUuid,
+ "modelVersionId": serviceModelInfo.uuid,
+ "modelName": serviceModelInfo.name,
+ "modelVersion": serviceModelInfo.version
+ },
+ "requestInfo": {
+ "source": "VID",
+ "requestorId": attuuid
+ },
+ "relatedInstanceList": [
+ {
+ "relatedInstance": {
+ "instanceName": pnf,
+ "modelInfo": {
+ "modelType": "pnf"
+ }
+ }
+ }],
+ "requestParameters": {
+ "aLaCarte": true
+ }
+ };
+
+ $log.debug("payload", payload);
+
+ return payload;
+ },
+ associatePnf: function(requestParams) {
+
+ var payload = this.buildPayloadForAssociateDissociate(requestParams.serviceModelInfo, requestParams.attuuid, requestParams.instanceId, requestParams.pnf);
+ return sendPostRequest([
+ COMPONENT.MSO, COMPONENT.MSO_CREATE_REALATIONSHIP,
+ requestParams.instanceId,
+ ''
+ ].join(COMPONENT.FORWARD_SLASH), payload);
+ },
+ dissociatePnf: function(requestParams) {
+
+ var payload = this.buildPayloadForAssociateDissociate(requestParams.serviceModelInfo, requestParams.attuuid, requestParams.serviceInstanceId, requestParams.pnf);
+
+ return sendPostRequest([
+ COMPONENT.MSO, COMPONENT.MSO_REMOVE_RELATIONSHIP,
+ requestParams.serviceInstanceId,
+ ''
+ ].join(COMPONENT.FORWARD_SLASH), payload);
+ }
}
};
-appDS2.factory("MsoService", [ "$http", "$log", "PropertyService",
- "AaiService", "UtilityService", "COMPONENT", "FIELD", "$q", MsoService ]);
+appDS2.factory("MsoService", MsoService );
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/pnfService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/pnfService.js new file mode 100644 index 000000000..39a2e2d90 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/pnfService.js @@ -0,0 +1,43 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +"use strict"; + +var PnfService = function ($q, AaiService) { + return { + getPnfs: function (instance) { + var deferred = $q.defer(); + + AaiService.getPNFInformationByServiceTypeAndId( + instance.globalCustomerId, + instance.serviceType, + instance.serviceInstanceId, + function (response) { + deferred.resolve(response); + }, + function (error) { + deferred.reject(error); + }); + return deferred.promise; + } + }; +}; + +appDS2.factory("PnfService", ["$q", "AaiService", PnfService]); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/schedulerService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/schedulerService.js index 83cc4ddac..cd0c45e7d 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/schedulerService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/schedulerService.js @@ -22,81 +22,24 @@ var SchedulerService = function($http, $log, PropertyService, UtilityService, COMPONENT, FIELD) { return { - - getStatusSchedulerId : function(schedulerInfo,successCallbackFunction) { - $log - .debug("SchedulerService:getSchedulerStatusAndSchedulerId"); - var url = COMPONENT.POST_CREATE_NEW_VNF_CHANGE+COMPONENT.ASSIGN + Math.random(); - - $http.post(url, schedulerInfo, - { - timeout : PropertyService - .getServerResponseTimeoutMsec() - }).then(function(response) { - if (response.data) { - successCallbackFunction(response); - } else { - successCallbackFunction([]); - } - })["catch"] - (UtilityService.runHttpErrorHandler); - }, - - getTimeSotsForSchedulerId:function(schedulerID,successCallbackFunction){ - $log - .debug("SchedulerService:getTimeSlotsForSchedulerID"); - var url = COMPONENT.GET_TIME_SLOTS+COMPONENT.FORWARD_SLASH +schedulerID+COMPONENT.ASSIGN; - - $http.get(url, - { - timeout : PropertyService - .getServerResponseTimeoutMsec() - }).then(function(response) { - if (response.data) { - successCallbackFunction(response); - } else { - successCallbackFunction([]); - } - })["catch"] - - (UtilityService.runHttpErrorHandler); - }, - getSubmitForapprovedTimeslots: function(ApprovedTimeSlotsObj,successCallbackFunction) { - $log - .debug("SchedulerService:getSchedulerStatusAndSchedulerId"); - var url = COMPONENT.SUBMIT_VNF_CHANGE_TIMESLOTS+COMPONENT.ASSIGN + Math.random(); - - $http.post(url, ApprovedTimeSlotsObj, - { - timeout : PropertyService - .getServerResponseTimeoutMsec() - }).then(function(response) { - if (response.data) { - successCallbackFunction(response); - } else { - successCallbackFunction([]); - } - })["catch"] - (UtilityService.runHttpErrorHandler); - }, - getPolicyInfo:function(policyName,successCallbackFunction){ - $log - .debug("SchedulerService:getPolicyInfo"); - var url = COMPONENT.GET_POLICY +COMPONENT.ASSIGN + Math.random(); - - $http.post(url, policyName, - { - timeout : PropertyService - .getServerResponseTimeoutMsec() - }).then(function(response) { - if (response.data) { - successCallbackFunction(response); - } else { - successCallbackFunction([]); - } - })["catch"] - (UtilityService.runHttpErrorHandler); - } + cancelScheduleRequest: function(schedulerID, successCallbackFunction, errorCallbackFunction) { + $log.debug("SchedulerService:cancelPendingBySchedulerId"); + var url = COMPONENT.CANCEL_SCHEDULE_REQUEST + COMPONENT.FORWARD_SLASH + schedulerID + COMPONENT.ASSIGN; + + $http.delete(url, + { + timeout : PropertyService + .getServerResponseTimeoutMsec() + }).then(function(response) { + if (response.data) { + successCallbackFunction(response); + } else { + successCallbackFunction([]); + } + }).catch(function(error) { + errorCallbackFunction(error); + }); + } } } diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/testEnvironmentsService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/testEnvironmentsService.js new file mode 100644 index 000000000..6ae675a01 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/testEnvironmentsService.js @@ -0,0 +1,79 @@ +(function () { + 'use strict'; + + appDS2.service('TestEnvironmentsService', ['$q', '$http', '$log', 'COMPONENT', 'UtilityService', testEnvironmentsService]); + + function testEnvironmentsService($q, $http, $log, COMPONENT, UtilityService) { + this.loadAAIestEnvironments = function(type) { + var deferred = $q.defer(); + $http.get(COMPONENT.AAI_GET_TEST_ENVIRONMENTS + type) + .success(function (response) { + if(response.httpCode == 200) { + deferred.resolve({operationalEnvironment: response.t.operationalEnvironment}); + } + else { + deferred.reject({message: response.errorMessage, status: response.httpCode}); + } + }) + .error(function(data, status, headers, config) { + deferred.reject({message: data, status: status}); + }); + + return deferred.promise; + }; + + this.createApplicationEnv = function(request) { + var deferred = $q.defer(); + + $http.post(COMPONENT.OPERATIONAL_ENVIRONMENT_CREATE, JSON.stringify(request.requestDetails)) + .success(function (response) { + deferred.resolve({data: response}); + }).error(function (data, status) { + deferred.reject({message: data, status: status}); + }); + + return deferred.promise; + } + + this.deactivateApplicationEnv = function(request) { + var deferred = $q.defer(); + + $http.post(COMPONENT.OPERATIONAL_ENVIRONMENT_DEACTIVATE + request.envId, JSON.stringify({})) + .success(function (response) { + deferred.resolve({data: response}); + }).error(function (data, status) { + deferred.reject({message: data, status: status}); + }); + + return deferred.promise; + }; + + this.activateApplicationEnv = function(request) { + var deferred = $q.defer(); + + $http.post(COMPONENT.OPERATIONAL_ENVIRONMENT_ACTIVATE + request.envId, JSON.stringify({ + "relatedInstanceId": request.relatedInstanceId + , "relatedInstanceName": request.relatedInstanceName + , "workloadContext": request.workloadContext + , "manifest": request.manifest + })) + .success(function (response) { + deferred.resolve({data: response}); + }).error(function (response, status) { + UtilityService.runHttpErrorHandler({data:response, status:status}); + }); + return deferred.promise; + }; + + this.getRequestStatus = function(requestId, successCallback) { + $http.get(COMPONENT.OPERATIONAL_ENVIRONMENT_STATUS + requestId) + .success(function(response) { + successCallback({data: response}); + } ) + .catch(UtilityService.runHttpErrorHandler); + }; + } + + +})(); + diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/utilityService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/utilityService.js index 4e4d12302..8577e9930 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/utilityService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/utilityService.js @@ -67,31 +67,31 @@ var UtilityService = function($log, DataService, PARAMETER) { var _this = this;
var convertModel = function (serviceModel) {
-
- var isNewFlow = false;
-
- for (var networkCustomizationName in serviceModel.networks) {
- var networkModel = serviceModel.networks[networkCustomizationName];
- if ( networkModel.customizationUuid != null ) {
- isNewFlow = true;
- break;
- }
- }
- if ( !isNewFlow ) {
- for (var vnfCustomizationName in serviceModel.vnfs) {
- var vnfModel = serviceModel.vnfs[vnfCustomizationName];
- if ( vnfModel.customizationUuid != null ) {
- isNewFlow = true;
- break;
- }
- }
- }
- if ( isNewFlow ) {
- return (convertNewModel (serviceModel) );
- }
- else {
- return (convertOldModel (serviceModel) );
- }
+
+ var isNewFlow = false;
+
+ for (var networkCustomizationName in serviceModel.networks) {
+ var networkModel = serviceModel.networks[networkCustomizationName];
+ if ( networkModel.customizationUuid != null ) {
+ isNewFlow = true;
+ break;
+ }
+ }
+ if ( !isNewFlow ) {
+ for (var vnfCustomizationName in serviceModel.vnfs) {
+ var vnfModel = serviceModel.vnfs[vnfCustomizationName];
+ if ( vnfModel.customizationUuid != null ) {
+ isNewFlow = true;
+ break;
+ }
+ }
+ }
+ if ( isNewFlow ) {
+ return (convertNewModel (serviceModel) );
+ }
+ else {
+ return (convertOldModel (serviceModel) );
+ }
};
var convertNewModel = function (serviceModel ) {
var completeResources = new Array();
@@ -100,6 +100,8 @@ var UtilityService = function($log, DataService, PARAMETER) { "service": serviceModel.service,
"networks": {},
"vnfs": {},
+ "pnfs": serviceModel.pnfs,
+ "serviceProxies": serviceModel.serviceProxies,
"completeDisplayInputs": {},
"isNewFlow": true
};
@@ -164,9 +166,18 @@ var UtilityService = function($log, DataService, PARAMETER) { }
}
-
- for (var vnfCustomizationName in serviceModel.vnfs) {
- var vnfModel = serviceModel.vnfs[vnfCustomizationName];
+
+ _.forEach(serviceModel.configurations, function(element, key) {
+ element.isConfig = true;
+ });
+ _.forEach(serviceModel.pnfs, function(element, key) {
+ element.isPnf= true;
+ element.modelCustomizationName= key;
+ });
+ var mergedVnfs = Object.assign(serviceModel.vnfs, serviceModel.configurations, serviceModel.pnfs);
+
+ for (var vnfCustomizationName in mergedVnfs) {
+ var vnfModel = mergedVnfs[vnfCustomizationName];
var vnfCustomizationUuid = vnfModel.customizationUuid;
convertedAsdcModel.vnfs[vnfModel.customizationUuid] = {
"uuid": vnfModel.uuid,
@@ -183,8 +194,13 @@ var UtilityService = function($log, DataService, PARAMETER) { "displayInputs": {},
"properties": {},
"nfRole": "",
- "nfType": ""
- }
+ "nfType": "",
+ "sourceNodes": vnfModel.sourceNodes,
+ "collectorNodes": vnfModel.collectorNodes,
+ "isConfigurationByPolicy": vnfModel.configurationByPolicy ? vnfModel.configurationByPolicy : false,
+ "isConfig": vnfModel.isConfig ? vnfModel.isConfig : false,
+ "isPnf": vnfModel.isPnf ? vnfModel.isPnf : false
+ };
resource = {
"name": vnfModel.modelCustomizationName,
@@ -278,11 +294,11 @@ var UtilityService = function($log, DataService, PARAMETER) { convertedAsdcModel.completeDisplayInputs = completeDisplayInputs;
// Need to collect all the model customization names (node template tag) and descriptions
DataService.setResources (completeResources);
-
- console.log ("convertedAsdcModel: "); console.log (JSON.stringify ( convertedAsdcModel, null, 4 ));
+
+ $log.debug ("convertedAsdcModel: ", convertedAsdcModel);
return (convertedAsdcModel);
};
-
+
var convertOldModel = function (serviceModel ) {
var resource = {};
@@ -290,6 +306,8 @@ var UtilityService = function($log, DataService, PARAMETER) { "service": serviceModel.service,
"networks": {},
"vnfs": {},
+ "pnfs": serviceModel.pnfs,
+ "serviceProxies": serviceModel.serviceProxies,
"completeDisplayInputs": {},
"isNewFlow": false
};
@@ -356,9 +374,18 @@ var UtilityService = function($log, DataService, PARAMETER) { convertedAsdcModel.networks[networkModel.uuid].displayInputs=networkModelDisplayInputs;
}
}
-
- for (var vnfCustomizationName in serviceModel.vnfs) {
- var vnfModel = serviceModel.vnfs[vnfCustomizationName];
+
+ _.forEach(serviceModel.configurations, function(element, key) {
+ element.isConfig = true;
+ });
+ _.forEach(serviceModel.pnfs, function(element, key) {
+ element.isPnf= true;
+ element.modelCustomizationName= key;
+ });
+ var mergedVnfs = Object.assign(serviceModel.vnfs, serviceModel.configurations, serviceModel.pnfs);
+
+ for (var vnfCustomizationName in mergedVnfs) {
+ var vnfModel = mergedVnfs[vnfCustomizationName];
convertedAsdcModel.vnfs[vnfModel.uuid] = {
"uuid": vnfModel.uuid,
"invariantUuid": vnfModel.invariantUuid,
@@ -371,8 +398,13 @@ var UtilityService = function($log, DataService, PARAMETER) { "vfModules": {},
"volumeGroups": {},
"commands": {},
- "displayInputs": {}
- }
+ "displayInputs": {},
+ "sourceNodes": vnfModel.sourceNodes,
+ "collectorNodes": vnfModel.collectorNodes,
+ "isConfigurationByPolicy": vnfModel.configurationByPolicy ? vnfModel.configurationByPolicy : false,
+ "isConfig": vnfModel.isConfig ? vnfModel.isConfig : false,
+ "isPnf": vnfModel.isPnf ? vnfModel.isPnf : false
+ };
resource = {
"name": vnfModel.modelCustomizationName,
"description": vnfModel.description
@@ -441,203 +473,203 @@ var UtilityService = function($log, DataService, PARAMETER) { convertedAsdcModel.completeDisplayInputs = completeDisplayInputs;
// Need to collect all the model customization names (node template tag) and descriptions
DataService.setResources (completeResources);
- console.log ("convertedAsdcModel: "); console.log (JSON.stringify ( convertedAsdcModel, null, 4 ));
+ $log.debug ("convertedAsdcModel: ", convertedAsdcModel);
return (convertedAsdcModel);
};
-
+
function hasContents(object) {
- if (object === undefined || object === null || object === "") {
- return false;
- }
- return true;
+ if (object === undefined || object === null || object === "") {
+ return false;
+ }
+ return true;
};
function isObjectEmpty(o) {
- var len = 0;
- if (hasContents(o)){
- var keys = Object.keys(o);
- len = keys.length;
- if ( len == 0 ) {
- return true;
- }
- else {
- return false;
- }
- }
- else {
- return true;
- }
+ var len = 0;
+ if (hasContents(o)){
+ var keys = Object.keys(o);
+ len = keys.length;
+ if ( len == 0 ) {
+ return true;
+ }
+ else {
+ return false;
+ }
+ }
+ else {
+ return true;
+ }
};
function padZero(number) {
- if (number < 10) {
- return "0" + number;
- } else {
- return "" + number;
- }
+ if (number < 10) {
+ return "0" + number;
+ } else {
+ return "" + number;
+ }
};
var httpErrorHandler = function(response, status) {
- $log.warn("UtilityService:httpErrorHandler: response:");
- $log.warn(response);
- $log.warn("UtilityService:httpErrorHandler: status:");
- $log.warn(status);
- if (angular.isFunction(_this.httpErrorHandler)) {
- _this.httpErrorHandler(response, status);
- }
+ $log.warn("UtilityService:httpErrorHandler: response:");
+ $log.warn(response);
+ $log.warn("UtilityService:httpErrorHandler: status:");
+ $log.warn(status);
+ if (angular.isFunction(_this.httpErrorHandler)) {
+ _this.httpErrorHandler(response, status);
+ }
};
var startNextAsyncOperation = function() {
- if (_this.asyncOperations.count < _this.asyncOperations.operationList.length) {
- _this.asyncOperations.operationList[_this.asyncOperations.count++]
- ();
- } else {
- if (angular.isFunction(_this.asyncOperations.callbackFunction)) {
- _this.asyncOperations.callbackFunction();
- }
- }
+ if (_this.asyncOperations.count < _this.asyncOperations.operationList.length) {
+ _this.asyncOperations.operationList[_this.asyncOperations.count++]
+ ();
+ } else {
+ if (angular.isFunction(_this.asyncOperations.callbackFunction)) {
+ _this.asyncOperations.callbackFunction();
+ }
+ }
};
return {
- setProperties : function(properties) {
- _this.properties = properties;
- },
- getProperties : function() {
- return _this.properties;
- },
- hasContents : hasContents,
- checkUndefined : function(name, value) {
- if (value === undefined) {
- throw {
- type : "undefinedObject",
- message : "undefined object: \"" + name + "\""
- };
- }
- return value;
- },
- jsonConcat : function (o1, o2) {
- for (var key in o2) {
- o1[key] = o2[key];
- }
- return o1;
- },
- getCurrentTime : function() {
- var time = new Date();
- return padZero(time.getMonth() + 1) + "/"
- + padZero(time.getDate()) + "/"
- + (time.getFullYear() - 2000) + " "
- + padZero(time.getHours()) + ":"
- + padZero(time.getMinutes()) + ":"
- + padZero(time.getSeconds())
- },
- getHttpStatusText : function(statusCode) {
- var statusMap = {
- "200" : "OK",
- "201" : "Created",
- "202" : "Accepted",
- "400" : "Bad Request",
- "401" : "Unauthorized",
- "404" : "Not Found",
- "405" : "Method Not Allowed",
- "409" : "Locked",
- "500" : "Internal Server Error",
- "503" : "Service Unavailable",
- "504" : "Gateway Timeout"
- }
+ setProperties : function(properties) {
+ _this.properties = properties;
+ },
+ getProperties : function() {
+ return _this.properties;
+ },
+ hasContents : hasContents,
+ checkUndefined : function(name, value) {
+ if (value === undefined) {
+ throw {
+ type : "undefinedObject",
+ message : "undefined object: \"" + name + "\""
+ };
+ }
+ return value;
+ },
+ jsonConcat : function (o1, o2) {
+ for (var key in o2) {
+ o1[key] = o2[key];
+ }
+ return o1;
+ },
+ getCurrentTime : function() {
+ var time = new Date();
+ return padZero(time.getMonth() + 1) + "/"
+ + padZero(time.getDate()) + "/"
+ + (time.getFullYear() - 2000) + " "
+ + padZero(time.getHours()) + ":"
+ + padZero(time.getMinutes()) + ":"
+ + padZero(time.getSeconds())
+ },
+ getHttpStatusText : function(statusCode) {
+ var statusMap = {
+ "200" : "OK",
+ "201" : "Created",
+ "202" : "Accepted",
+ "400" : "Bad Request",
+ "401" : "Unauthorized",
+ "404" : "Not Found",
+ "405" : "Method Not Allowed",
+ "409" : "Locked",
+ "500" : "Internal Server Error",
+ "503" : "Service Unavailable",
+ "504" : "Gateway Timeout"
+ }
- if (status === undefined) {
- return "Undefined";
- }
+ if (status === undefined) {
+ return "Undefined";
+ }
- var statusText = statusMap[statusCode];
- if (statusText === undefined) {
- statusText = "Unknown";
- }
+ var statusText = statusMap[statusCode];
+ if (statusText === undefined) {
+ statusText = "Unknown";
+ }
- return statusText + " (" + statusCode + ")";
- },
- getHttpErrorMessage : function(response) {
- var data = response.data;
- if (response.status === 500 && hasContents(data.exception)) {
- var summary = "exception: " + data.exception;
- if (hasContents(data.message)) {
- summary += " message: " + data.message;
- }
- return summary;
- }
- if (response.status === 0 && response.statusText === "") {
- /*
- * This logic is somewhat "fuzzy". Potential (brainstorming)
- * enhancements if users find the message unreliable include:
- *
- * A) SERVER TIMEOUT: perhaps a newer version of Angular can
- * reliably determine timeouts.
- *
- * B) SERVER TIMEOUT: recording start / end times and using that
- * to determine if timeout occured
- *
- * C) SESSION TIMEOUT "Potentially" examine cookies, although
- * that may not be feasible if cookies are set to "httponly".
- */
- if (data === null) {
- //return "possible server timeout";
- return "VID has timed out waiting for a response. To see status, close this popup and the screen will be refreshed automatically";
- }
- if (data === "") {
- return "Possible reasons include a session timeout or a server issue. "
- + "A session timeout might be resolved by refreshing the screen and re-logging in";
- }
- }
- var summary = "";
- if (response.status !== undefined && response.status > 0) {
- summary = "status: " + response.status;
- }
- if (hasContents(response.statusText)) {
- if (summary !== "") {
- summary += " ";
- }
- summary += "message: " + response.statusText;
- }
- return summary;
- },
- setHttpErrorHandler : function(httpErrorHandler) {
- _this.httpErrorHandler = httpErrorHandler;
- },
- runHttpErrorHandler : function(response, status) {
- httpErrorHandler(response, status);
- },
- startAsyncOperations : function(operationList, callbackFunction) {
- for (var i = 0; i < operationList.length; i++) {
- if (!angular.isFunction(operationList[i])) {
- throw "UtilityService:startAsyncOperations: invalid function: index: "
- + i;
- }
- }
- _this.asyncOperations = {
- operationList : operationList,
- callbackFunction : callbackFunction,
- count : 0
- };
- startNextAsyncOperation();
- },
- startNextAsyncOperation : startNextAsyncOperation,
- stopAsyncOperations : function() {
- _this.asyncOperations.count = _this.asyncOperations.operationList.length;
- },
- isObjectEmpty : isObjectEmpty,
- convertModel : convertModel,
- convertNewModel : convertNewModel,
- convertOldModel : convertOldModel,
- arrayContains : function (a, obj) {
- var i = a.length;
- if ( i > 0 ) {
- while (i--) {
- if (a[i] === obj) {
- return true;
- }
- }
- }
- return false;
- }
- }
+ return statusText + " (" + statusCode + ")";
+ },
+ getHttpErrorMessage : function(response) {
+ var data = response.data;
+ if ((response.status >= 400 && response.status < 600) && hasContents(data.exception)) {
+ var summary = "exception: " + data.exception;
+ if (hasContents(data.message)) {
+ summary += " message: " + data.message;
+ }
+ return summary;
+ }
+ if (response.status === 0 && response.statusText === "") {
+ /*
+ * This logic is somewhat "fuzzy". Potential (brainstorming)
+ * enhancements if users find the message unreliable include:
+ *
+ * A) SERVER TIMEOUT: perhaps a newer version of Angular can
+ * reliably determine timeouts.
+ *
+ * B) SERVER TIMEOUT: recording start / end times and using that
+ * to determine if timeout occured
+ *
+ * C) SESSION TIMEOUT "Potentially" examine cookies, although
+ * that may not be feasible if cookies are set to "httponly".
+ */
+ if (data === null) {
+ //return "possible server timeout";
+ return "VID has timed out waiting for a response. To see status, close this popup and the screen will be refreshed automatically";
+ }
+ if (data === "") {
+ return "Possible reasons include a session timeout or a server issue. "
+ + "A session timeout might be resolved by refreshing the screen and re-logging in";
+ }
+ }
+ var summary = "";
+ if (response.status !== undefined && response.status > 0) {
+ summary = "status: " + response.status;
+ }
+ if (hasContents(response.statusText)) {
+ if (summary !== "") {
+ summary += " ";
+ }
+ summary += "message: " + response.statusText;
+ }
+ return summary;
+ },
+ setHttpErrorHandler : function(httpErrorHandler) {
+ _this.httpErrorHandler = httpErrorHandler;
+ },
+ runHttpErrorHandler : function(response, status) {
+ httpErrorHandler(response, status);
+ },
+ startAsyncOperations : function(operationList, callbackFunction) {
+ for (var i = 0; i < operationList.length; i++) {
+ if (!angular.isFunction(operationList[i])) {
+ throw "UtilityService:startAsyncOperations: invalid function: index: "
+ + i;
+ }
+ }
+ _this.asyncOperations = {
+ operationList : operationList,
+ callbackFunction : callbackFunction,
+ count : 0
+ };
+ startNextAsyncOperation();
+ },
+ startNextAsyncOperation : startNextAsyncOperation,
+ stopAsyncOperations : function() {
+ _this.asyncOperations.count = _this.asyncOperations.operationList.length;
+ },
+ isObjectEmpty : isObjectEmpty,
+ convertModel : convertModel,
+ convertNewModel : convertNewModel,
+ convertOldModel : convertOldModel,
+ arrayContains : function (a, obj) {
+ var i = a.length;
+ if ( i > 0 ) {
+ while (i--) {
+ if (a[i] === obj) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+ }
}
//app.factory("UtilityService", UtilityService);
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiGetSubs.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiGetSubs.htm index c5c5ccaa9..233bab1c8 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiGetSubs.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiGetSubs.htm @@ -39,7 +39,8 @@ <br>
Please search by the Subscriber name or enter Service Instance Id or Service Instance Name below: <br><br>
- <table>
+ <table ng-init="loadOwningEntity()">
+
<tr>
<td style="width:30%">
<div class="fn-ebz-container">
@@ -51,7 +52,7 @@ <!--<select name="selectedCustomer" ng-model="selectedCustomer">-->
<!--<option ng-repeat="item in customerList" value="{{item.globalCustomerId}}" ng-disabled="getPermitted(item)">{{item.subscriberName}}</option>-->
<!--</select>-->
- <select ng-model="selectedCustomer"
+ <select ng-model="selectedCustomer" id="selectSubscriber"
ng-options="item.globalCustomerId as item.subscriberName for item in customerList | orderBy:'subscriberName'">
<option value="">Select a subscriber</option>
</select>
@@ -60,8 +61,9 @@ class="glyphicon glyphicon-refresh"></span></a>
</div>
</td>
-
</tr>
+
+
<tr>
<td style="width:30%">
<div class="fn-ebz-container">
@@ -72,8 +74,8 @@ </div>
</td>
<td style="width:60%">
- <div class="fn-ebz-container">
- <input type="text" style="width: 350px;" name="selectedServiceInstance"
+ <div class="fn-ebz-container" style="width: 100%;">
+ <input type="text" name="selectedServiceInstance"
ng-model="selectedServiceInstance"
data-tests-id="searchForExistingInstancesText"
restrict-input="{type : selectedserviceinstancetype}"/>
@@ -81,12 +83,51 @@ </td>
</tr>
+
+ <tr>
+ <td style="width:30%">
+ <div class="fn-ebz-container">
+ <label class="fn-ebz-text-label">Owning entity Name:</label>
+ </div>
+ </td>
+ <td style="width:30%" nowrap>
+ <div class="fn-ebz-container" style="width: 100%;">
+ <!--<select name="selectedCustomer" ng-model="selectedCustomer">-->
+ <!--<option ng-repeat="item in customerList" value="{{item.globalCustomerId}}" ng-disabled="getPermitted(item)">{{item.subscriberName}}</option>-->
+ <!--</select>-->
+ <multiselect id="selectOwningEntity" ng-model="selectedEntity"
+ options="owningEntities"
+ display-prop="name" id-prop="id">
+ </multiselect>
+ </div>
+ </td>
+ </tr>
+
+ <tr>
+ <td style="width:30%">
+ <div class="fn-ebz-container">
+ <label class="fn-ebz-text-label">Project Name:</label>
+ </div>
+ </td>
+ <td style="width:30%" nowrap>
+ <div class="fn-ebz-container" style="width: 100%;">
+ <!--<select name="selectedCustomer" ng-model="selectedCustomer">-->
+ <!--<option ng-repeat="item in customerList" value="{{item.globalCustomerId}}" ng-disabled="getPermitted(item)">{{item.subscriberName}}</option>-->
+ <!--</select>-->
+ <multiselect id="selectProject" ng-model="selectedProject"
+ options="projects"
+ display-prop="name" id-prop="id">
+ </multiselect>
+ </div>
+ </td>
+ </tr>
+
<tr>
<td>
<td style="width:30%">
<div>
<button type="submit" class="btn btn-primary" size="small"
- ng-click="getSubscriberDet(selectedCustomer,selectedserviceinstancetype,selectedServiceInstance);">
+ ng-click="getServiceInstancesSearchResults(selectedCustomer,selectedserviceinstancetype,selectedServiceInstance, selectedProject, selectedEntity);">
Submit
</button>
</a>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiGetSubscriberList.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiGetSubscriberList.htm index 16357dde9..6198cb478 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiGetSubscriberList.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiGetSubscriberList.htm @@ -18,52 +18,66 @@ ============LICENSE_END=========================================================
-->
-<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiGetSubs.css" />
-<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiSubDetails.css" />
+<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiGetSubs.css"/>
+<link rel="stylesheet" type="text/css" href="app/vid/styles/aaiSubDetails.css"/>
<script src="app/vid/scripts/controller/aaiSubscriberController.js"></script>
<div ng-controller="aaiSubscriberController" ng-cloak>
- <div>
- <div class="statusLine" ng-class="{true:'aaiVisible', false:'aaiHidden'}[isSpinnerVisible]">
- <img src="app/vid/images/spinner.gif"></img>
- <label>Status:</label><span class="status">{{status}}</span>
- </div>
-
- <div ng-if="errorMsg != null"><font color='red'>{{errorMsg}}<pre>{{errorDetails | json}}</pre></font></div>
-
- <h2 class="heading2"><center>Create New Service Instance</center></h2>
-
- <table>
- <tr>
- <td >
- <div class="fn-ebz-container">
- <label class="fn-ebz-text-label">Subscriber Name:</label>
- </div>
- </td>
- <td style="width:80%" nowrap>
- <div class="fn-ebz-container" ng-init="autoGetSubs();">
- <select ng-model="selectedCustomer" data-tests-id="subscriberName">
- <option value="">Select Subscriber Name</option>
- <option ng-repeat="item in customerList | orderBy:'subscriberName'" ng-value="item.globalCustomerId" ng-disabled="!item.isPermitted" class="subscriberNameOption">{{item.subscriberName}}</option>
- </select>
- <a class="btn btn-primary" ng-click="refreshSubs();" ><span class="glyphicon glyphicon-refresh"></span></a>
- </div>
- </td>
-
- </tr>
- <tr>
- <td >
- </td>
- <td style="width:80%">
- <div >
- <button type="submit" class="btn btn-primary" size="small" ng-click="getServiceTypes(selectedCustomer);">Submit</button></a>
- <button type="submit" class="btn btn-primary" size="small" ng-click="cancelCreateSI()">Cancel</button></a>
- </div>
- </td>
- </tr>
- </table>
-
-
- </div>
+ <div>
+ <div class="statusLine" ng-class="{true:'aaiVisible', false:'aaiHidden'}[isSpinnerVisible]">
+ <img src="app/vid/images/spinner.gif"></img>
+ <label>Status:</label><span class="status">{{status}}</span>
+ </div>
+
+ <div ng-if="errorMsg != null"><font color='red'>{{errorMsg}}
+ <pre>{{errorDetails | json}}</pre>
+ </font></div>
+
+ <h2 class="heading2">
+ <center>Create New Service Instance</center>
+ </h2>
+
+ <table>
+ <tr>
+ <td>
+ <div class="fn-ebz-container">
+ <label class="fn-ebz-text-label">Subscriber Name:</label>
+ </div>
+ </td>
+ <td style="width:80%" nowrap>
+ <div class="fn-ebz-container" ng-init="autoGetSubs();">
+ <select ng-model="selectedCustomer" data-tests-id="subscriberName">
+ <option value="">Select Subscriber Name</option>
+ <option ng-repeat="item in customerList | orderBy:'subscriberName'"
+ ng-value="item.globalCustomerId" ng-disabled="!item.isPermitted"
+ class="subscriberNameOption">{{item.subscriberName}}
+ </option>
+ </select>
+ <a class="btn btn-primary" ng-click="refreshSubs();"><span
+ class="glyphicon glyphicon-refresh"></span></a>
+ </div>
+ </td>
+
+ </tr>
+ <tr>
+ <td>
+ </td>
+ <td style="width:80%">
+ <div>
+ <button type="submit" class="btn btn-primary" size="small"
+ ng-click="getServiceTypes(selectedCustomer);">Submit
+ </button>
+ </a>
+ <button type="submit" class="btn btn-primary" size="small"
+ ng-click="cancelCreateSI()">Cancel
+ </button>
+ </a>
+ </div>
+ </td>
+ </tr>
+ </table>
+
+
+ </div>
</div>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiServiceTypes.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiServiceTypes.htm index 06a53c3eb..dc9f0a425 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiServiceTypes.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiServiceTypes.htm @@ -31,7 +31,7 @@ <div ng-if="errorMsg != null"><font color='red'>{{errorMsg}}<pre>{{errorDetails | json}}</pre></font></div>
<h2 class="heading2"><center>Create New Service Instance</center></h2>
- <table>
+ <table class="create-instance-service ">
<tr>
<td >
@@ -69,7 +69,7 @@ </td>
<td style="width:80%">
<div >
- <button type="submit" class="btn btn-primary" size="small" ng-click="getAaiServiceModels(selectedServicetype,createSubscriberName);">Submit</button></a>
+ <button type="submit" class="btn btn-primary" size="small" ng-click="getAaiServiceModels(selectedServicetype,createSubscriberName);" ng-disabled="!selectedServicetype" ng-class="{'button--inactive': !selectedServicetype}">Submit</button></a>
<button type="submit" class="btn btn-primary" size="small" ng-click="cancelCreateSIType()">Cancel</button></a>
</div>
</td>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiSubDetails.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiSubDetails.htm index 3471fcb98..686e33b05 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiSubDetails.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiSubDetails.htm @@ -27,13 +27,13 @@ <label>Status:</label><span class="status">{{status}}</span>
</div>
- <div ng-if="errorMsg != null"><font color='red'>{{errorMsg}}<pre>{{errorDetails | json}}</pre></font></div>
+ <div data-tests-id="subDetailsErrMsg" ng-if="errorMsg != null"><font color='red'>{{errorMsg}}<pre>{{errorDetails | json}}</pre></font></div>
- <h1 class="heading1"><center>Subscriber Details for {{selectedSubscriber}} ({{selectedSubscriberName}})</center></h1>
+ <h1 class="heading1"><center>Subscriber Details for {{selectedSubscriberId}} ({{selectedSubscriberName}})</center></h1>
<br>
<div class="fn-ebz-container">
Filter:
- <input class="fn-ebz-text" type="text" ng-model="searchString" size="20" style="width: 250px;">
+ <input class="fn-ebz-text" type="text" ng-model="searchString" size="20" style="width: 250px;" data-tests-id="filter-subscriber-details">
</div>
<div ng-init="getSubDetails();">
@@ -54,13 +54,13 @@ <tr>
<td att-table-body>
<div>
- <a alt="View/Edit" ng-click="getAsdcModel(disData);" data-tests-id="{{'view/edit-test-data-id-' + disData['serviceInstanceId']}}" ng-bind="disData.isPermitted ? 'View/Edit' : 'View'"></a>
+ <a alt="View/Edit" ng-click="onViewEditClick(disData);" data-tests-id="{{'view/edit-test-data-id-' + disData['serviceInstanceId']}}" ng-bind="disData.isPermitted ? 'View/Edit' : 'View'"></a>
</div>
</td>
<td att-table-body ng-bind="disData['globalCustomerId']"></td>
- <td att-table-body ng-bind="disData['subscriberName']"></td>
+ <td att-table-body ng-bind="disData['subscriberName']" data-tests-id="{{'subscriber-name-test-data-id-' + $index}}"></td>
<td att-table-body ng-bind="disData['serviceType']"></td>
- <td att-table-body ng-bind="disData['serviceInstanceName']"></td>
+ <td att-table-body ng-bind="disData['serviceInstanceName']" data-tests-id="{{'service-name-test-data-id-' + $index}}"></td>
<td att-table-body data-tests-id="{{'instance-id-for-name-' + disData['serviceInstanceName']}}" ng-bind="disData['serviceInstanceId']"></td>
</tr>
</tbody>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiSubViewEdit.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiSubViewEdit.htm index 40bd1488c..31621cfe5 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiSubViewEdit.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/aaiSubViewEdit.htm @@ -23,7 +23,7 @@ <div popup-window class="popupContents" ngx-show="{{popup.isVisible}}"
ng-cloak>
<div ng-include="'app/vid/scripts/view-models/creationDialog.htm'"></div>
- <div ng-include="'app/vid/scripts/view-models/deletionDialog.htm'"></div>
+ <div ng-include="'app/vid/scripts/view-models/deleteResumeDialog.htm'"></div>
<div ng-include="'app/vid/scripts/view-models/detailsDialog.htm'"></div>
</div>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/addNetworkNode.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/addNetworkNode.htm new file mode 100644 index 000000000..6983477e1 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/addNetworkNode.htm @@ -0,0 +1,62 @@ +<!-- +============LICENSE_START======================================================= +VID +================================================================================ +Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +================================================================================ +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +============LICENSE_END========================================================= +--> +<link rel="stylesheet" type="text/css" href="app/vid/styles/networkNode.css"/> + +<div class="network-wrapper-config"> + <div class="head"> + <div class="title">Config {{modelName}}</div> + <div class="btn-wrapper"> + <button class="cancel-btn grey" data-tests-id="cancelButton" data-ng-click="cancel()">Cancel</button> + <button class="next-btn blue" data-tests-id="nextButton" data-ng-disabled="networkNodeForm.$invalid" data-ng-click="next()">Next</button> + </div> + </div> + + <div class="content-wrapper"> + <div class="content"> + <form name="networkNodeForm" class="form-wrapper"> + <div class="instance-field {{field.id}}" ng-repeat="(key, field) in nodeTemplateFields"> + <input id="{{field.id}}" data-tests-id="suppressRollbackInput" ng-if="key === 'suppressRollback'" type="checkbox" ng-model="field.value"/> + <label for="{{field.id}}"class="title" ng-if="key !== 'lineOfBusiness' && key !== 'platform'"> + {{field.name}} + </label> + <div class="" ng-if="key === 'instanceName'"> + <input data-tests-id="instanceNameInput" name="{{field.id}}" id="{{field.id}}" type="text" required ng-model="field.value" ng-pattern="regexInstanceName"> + <span class="error" data-ng-show="!networkNodeForm.instanceName.$error.required && networkNodeForm.instanceName.$dirty && networkNodeForm.instanceName.$invalid">{{errorMsg}}</span> + </div> + <select id="{{field.id}}" data-tests-id="regionDropDown" ng-if="key === 'lcpRegion'" required ng-model="field.value" + placeholder="Choose {{field.name}}" + data-ng-change="setTenant(field)"> + <option value="" selected>LCP region</option> + <option data-ng-disabled="!option.isPermitted" ng-repeat="option in field.optionList" + value="{{option.id}}" data-tests-id="{{'region-' + option.id}}">{{option.id}}</option> + </select> + <select id="{{field.id}}" data-tests-id="tenantDropDown" ng-if="key === 'tenant'" required ng-model="field.value" + data-ng-options="option.tenantName for option in field.optionList" placeholder="Choose {{field.name}}" + data-ng-disabled="!field.optionList || !field.optionList.length"> + <option value="" selected>Tenant name</option> + </select> + </div> + </form> + </div> + <div class="sidebar-right"> + <service-metadata title-txt="info" service-metadata-fields="serviceMetadataFields"></service-metadata> + </div> + </div> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/change-management.html b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/change-management.html index 0f42ec874..94a1790db 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/change-management.html +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/change-management.html @@ -13,63 +13,95 @@ <input type="search" id="change-management-search" class="search-changes" ng-change="vm.searchChanges()" ng-model-options="{debounce: 300}" ng-model="vm.searchChangesTerm" placeholder="Type to search"> </div> + <span class="refresh-cm"> + Last updated at: + <span class="last-time-updated">{{ vm.lastTimeUpdated }}</span> + <i class="icon-sync" data-tests-id="refresh-cm" ng-click="vm.init()"></i> + </span> <div class="jobs-table"> <div class="row"> <div class="col-md-12"> <uib-tabset active="activeJustified" justified="true"> <uib-tab index="0" heading="Active" id="active-tab"> - <table class="table table-bordered" id="active-table"> - <thead class="thead-default"> - <tr> - <th class="col-md-5">VNF Name</th> - <th class="col-md-2">Type</th> - <th class="col-md-2">Flow</th> - <th class="col-md-2">Start time</th> - <th>Status</th> - <th></th> - </tr> - </thead> - <tbody> + <div class="table-wrapper"> + <table class="table table-bordered" data-tests-id="active-table-cm" id="active-table"> + <thead class="thead-default" ng-click="collapseInProgress=!collapseInProgress"> <tr class="table-headline-row"> - <th> + <th > + <span ng-class="{'collapse-icon':!collapseInProgress,'expand-icon':collapseInProgress }"></span> <span id="in-progress-table-head">IN PROGRESS</span> </th> <th></th> <th></th> <th></th> <th></th> - <th></th> </tr> - <tr ng-repeat="changeManagement in vm.changeManagements | changeManagementsByStatuses:{statuses: ['FAILED', 'INPROGRESS', 'PENDING']}"> + <tr ng-show="!collapseInProgress"> + <th class="col-md-5">VNF Name</th> + <th class="col-md-2">Type</th> + <th class="col-md-2">Flow</th> + <th class="col-md-2">Start time</th> + <th>Status</th> + </tr> + </thead> + <tbody ng-show="!collapseInProgress"> + + <tr data-tests-id="active-table-cm-row" ng-repeat="changeManagement in vm.changeManagements | changeManagementsByStatuses:{statuses: ['FAILED', 'IN_PROGRESS', 'PENDING']}"> <th scope="row">{{changeManagement.instanceReferences.vnfInstanceName || 'No-Instance-Name'}}</th> <td>{{changeManagement.requestScope}}</td> <td>{{changeManagement.requestType}}</td> <td>{{changeManagement.startTime}}</td> <td class="centered" ng-if="changeManagement.requestStatus.requestState == 'FAILED'"><span class="icon-x" ng-click="vm.openFailedModal({details: changeManagement.requestStatus.statusMessage, job: changeManagement})"></span></td> - <td class="centered" ng-if="changeManagement.requestStatus.requestState == 'INPROGRESS'"><span class="icon-process" ng-click="vm.openInProgressModal({details: changeManagement.requestStatus.statusMessage, job: changeManagement})"></span></td> + <td class="centered" ng-if="changeManagement.requestStatus.requestState == 'IN_PROGRESS'"><span class="icon-process" ng-click="vm.openInProgressModal({details: changeManagement.requestStatus.statusMessage, job: changeManagement})"></span></td> <td class="centered" ng-if="changeManagement.requestStatus.requestState == 'PENDING'"><span class="icon-alert" ng-click="vm.openAlertModal({details: changeManagement.requestStatus.statusMessage, job: changeManagement})"></span></td> - <td class="centered"><span class="icon-view"></span></td> </tr> - <tr class="table-headline-row"> - <th> - <span id="pending-table-head">PENDING</span> - </th> - <th></th> - <th></th> - <th></th> - <th></th> - <th></th> - </tr> - <tr ng-repeat="changeManagement in vm.pendingChangeManagements"> - <th scope="row">{{changeManagement.vnfName}}</th> - <td>{{changeManagement.scheduleRequest.scheduleName}}</td> - <td>{{changeManagement.workflow}}</td> - <td>{{changeManagement.startTime}}</td> - <td class="centered"><span class="icon-pending" ng-click="vm.openPendingModal({details: 'change management is pending in scheduler and waiting to be deployed'})"></span></td> - <td class="centered"><span class="icon-view"></span></td> + </tbody> + </table> + </div> + <div class="table-wrapper"> + <table class="table table-bordered" data-tests-id="pending-table-cm" id="pending-table"> + <thead ng-click="collapsePending=!collapsePending"> + <tr class="table-headline-row"> + <th class="col-md-6"> + <span ng-class="{'collapse-icon':!collapsePending,'expand-icon':collapsePending }"></span> + <span id="pending-table-head">PENDING</span> + </th> + + <th></th> + <th></th> + <th></th> + <th></th> + <th></th> + <th></th> + <th></th> + </tr> + <tr class="thead-default" ng-show="!collapsePending"> + <th class="col-md-2">Schedule ID</th> + <th class="col-md-2">CM ticket</th> + <th class="col-md-1">VNF name</th> + <th class="col-md-1">VNF status</th> + <th class="col-md-2">Workflow</th> + <th class="col-md-2">Start time</th> + <th class="col-md-2">Schedule status</th> + <th class="col-md-1">Status</th> + </tr> + </thead> + <tbody ng-show="!collapsePending"> + + <tr data-tests-id="pending-table-cm-row" ng-repeat="changeManagement in vm.pendingChangeManagements"> + <th scope="row">{{changeManagement.scheduleRequest.scheduleId}}</th> + <td>{{changeManagement.aotsChangeId}}</td> + <td>{{changeManagement.vnfName}}</td> + <td>{{changeManagement.status}}</td> + <td>{{changeManagement.scheduleRequest.domainData[1].value}}</td> + <td>{{changeManagement.scheduleRequest.createDateTime }}</td><!--| date:"MM/dd/yyyy HH:mm:ss"--> + <td>{{changeManagement.scheduleRequest.status}}</td> + <td class="centered"><span class="cancel-action" ng-class="{'icon-pending':changeManagement.scheduleRequest.status!=='Deleted', 'icon-deleted': changeManagement.scheduleRequest.status=='Deleted'}" + ng-click="vm.openPendingModal($event, changeManagement)"></span></td> </tr> </tbody> </table> + </div> </uib-tab> <uib-tab index="1" heading="Finished" id="finished-tab"> <table class="table table-bordered" id="finished-table"> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/createInstanceServiceModels.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/createInstanceServiceModels.htm index 0f694612c..da249c2cc 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/createInstanceServiceModels.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/createInstanceServiceModels.htm @@ -19,6 +19,8 @@ -->
<link rel="stylesheet" type="text/css" href="app/vid/styles/serviceModels.css" />
+<link rel="stylesheet" type="text/css" href="app/vid/styles/buttons.css" />
+
<div popup-window class="popupContents" ngx-show="{{popup.isTablePopUpVisible}}" ng-cloak>
<div ng-include="'app/vid/scripts/view-models/previousVersion.htm'"/>
</div>
@@ -36,7 +38,7 @@ <br><br>
- <table>
+ <table class="create-instance-service ">
<tr>
<td >
@@ -77,7 +79,7 @@ <!-- <h1 class="heading1" style="margin-top:20px;">Browse SDC Service Models</h1> -->
<div style="margin-top:30px" ng-init="getAaiServiceModelsList();">
- <table att-table table-data="services" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
+ <table data-tests-id="services-list" att-table table-data="services" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage">
<thead att-table-row type="header">
<tr>
<th att-table-header key="action">Action</th>
@@ -100,9 +102,10 @@ <td att-table-body ng-bind="service['extra-properties']['extra-property'][4]['property-value']"></td>
<td att-table-body ng-bind="service['extra-properties']['extra-property'][6]['property-value']"></td>
<td att-table-body ng-show="service['extra-properties']['extra-property'][6]['property-value'] > '1.0' ">
- <button type=button ng-click="loadPreviousVersionData(service['extra-properties']['extra-property'][6]['property-value'],service['extra-properties']['extra-property'][4]['property-value'])" att-button btn-type="primary" size="small">
+ <div class="clickable-text previous-versions-button"
+ ng-click="loadPreviousVersionData(service['extra-properties']['extra-property'][6]['property-value'],service['extra-properties']['extra-property'][4]['property-value'])">
Previous Versions
- </button>
+ </div>
</td>
<td att-table-body ng-show="service['extra-properties']['extra-property'][6]['property-value'] <= '1.0' "> </td>
</tr>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/creationDialog.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/creationDialog.htm index 4449285d2..ca13ca2b7 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/creationDialog.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/creationDialog.htm @@ -4,7 +4,7 @@ <div class="titleLine">
<img src="app/vid/images/spinner.gif"
ngx-visible="{{isSpinnerVisible}}"></img>
- <h3>Create {{componentName}} -- {{createType}}</h3>
+ <h3 data-tests-id="create-modal-title">Create {{componentName}} -- {{createType}}</h3>
</div>
<div class="error" ng-show="isErrorVisible">
@@ -33,7 +33,7 @@ <div class="buttonRow">
<button data-tests-id="confirmButton" ngx-enabled="{{isConfirmEnabled}}" att-button size="small"
ng-click="confirm();">Confirm</button>
- <button type="button" ng-click="cancel();" att-button
+ <button type="button" data-tests-id="cancelButton" ng-click="cancel();" att-button
btn-type="primary" size="small">Cancel</button>
</div>
</div>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/deletionDialog.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/deleteResumeDialog.htm index b4b93166b..ccd54a612 100755..100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/deletionDialog.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/deleteResumeDialog.htm @@ -1,70 +1,70 @@ -<!--
- ============LICENSE_START=======================================================
- VID
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ============LICENSE_END=========================================================
- -->
-
-<div ng-controller="deletionDialogController">
-
- <div ng-show="isDialogVisible">
- <div class="titleLine">
- <img src="app/vid/images/spinner.gif"
- ngx-visible="{{isSpinnerVisible}}"></img>
- <h3>Delete {{componentName}}</h3>
- </div>
-
- <div class="error" ng-show="isErrorVisible">
- <img src="app/vid/images/error.png"></img>{{error}}
- </div>
-
- <parameter-block control="summaryControl"></parameter-block>
-
- <div ngx-visible="{{isDataVisible}}">
-
- <h4>
- User Provided Data (<img class="requiredIndicator"
- src="app/vid/images/asterisk.png" height='10' width='10'></img> indicates required field)
- </h4>
- <parameter-block control="userProvidedControl"
- callback="userParameterChanged(id);" editable></parameter-block>
-
- <div class="prompt">
- <p>
- Enter Data and <span>Confirm</span> to<br />Delete <span>{{componentName}}</span>
- </p>
- <p>
- <span>Cancel</span> to Return to Previous Page.<br />Data entered
- will be lost
- </p>
- </div>
- </div>
-
- <div class="buttonRow">
- <!-- <button type="button" ng-click="confirm();" att-button
- btn-type="primary" size="small" class="confirm">Confirm</button>
- <button type="button" ng-click="cancel();" att-button
- btn-type="primary" size="small">Cancel</button> --->
- <button ngx-enabled="{{isConfirmEnabled}}" att-button size="small"
- ng-click="confirm();">Confirm</button>
- <button type="button" ng-click="cancel();" att-button
- btn-type="primary" size="small">Cancel</button>
- </div>
- </div>
-
- <div ng-include="'app/vid/scripts/view-models/msoCommit.htm'"></div>
-
-</div>
+<!-- + ============LICENSE_START======================================================= + VID + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ============LICENSE_END========================================================= + --> + +<div ng-controller="deleteResumeDialogController"> + + <div ng-show="isDialogVisible"> + <div class="titleLine"> + <img src="app/vid/images/spinner.gif" + ngx-visible="{{isSpinnerVisible}}"></img> + <h3>{{dialogMethod}} {{componentName}}</h3> + </div> + + <div class="error" ng-show="isErrorVisible"> + <img src="app/vid/images/error.png"></img>{{error}} + </div> + + <parameter-block control="summaryControl"></parameter-block> + + <div ngx-visible="{{isDataVisible}}"> + + <h4> + User Provided Data (<img class="requiredIndicator" + src="app/vid/images/asterisk.png" height='10' width='10'></img> indicates required field) + </h4> + <parameter-block control="userProvidedControl" + callback="userParameterChanged(id);" editable></parameter-block> + + <div class="prompt"> + <p> + Enter Data and <span>Confirm</span> to<br />{{dialogMethod}} <span>{{componentName}}</span> + </p> + <p> + <span>Cancel</span> to Return to Previous Page.<br />Data entered + will be lost + </p> + </div> + </div> + + <div class="buttonRow"> + <!-- <button type="button" ng-click="confirm();" att-button + btn-type="primary" size="small" class="confirm">Confirm</button> + <button type="button" ng-click="cancel();" att-button + btn-type="primary" size="small">Cancel</button> ---> + <button data-tests-id="confirmResumeDeleteButton" ngx-enabled="{{isConfirmEnabled}}" att-button size="small" + ng-click="confirm();">Confirm</button> + <button type="button" ng-click="cancel();" att-button + btn-type="primary" size="small">Cancel</button> + </div> + </div> + + <div ng-include="'app/vid/scripts/view-models/msoCommit.htm'"></div> + +</div> diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/instantiate.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/instantiate.htm index 71efef1dd..0740c07ef 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/instantiate.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/instantiate.htm @@ -23,7 +23,7 @@ <div popup-window class="popupContents" ngx-show="{{popup.isVisible}}"
ng-cloak>
<div ng-include="'app/vid/scripts/view-models/creationDialog.htm'"></div>
- <div ng-include="'app/vid/scripts/view-models/deletionDialog.htm'"></div>
+ <div ng-include="'app/vid/scripts/view-models/deleteResumeDialog.htm'"></div>
<div ng-include="'app/vid/scripts/view-models/detailsDialog.htm'"></div>
<div ng-include="'app/vid/scripts/view-models/statusDialog.htm'"></div>
</div>
@@ -35,7 +35,7 @@ <div ng-if="errorMsg != null"><font color='red'>{{errorMsg}}<pre>{{errorDetails | json}}</pre></font></div>
- <h1 class="heading1" style="margin-top: 20px;">{{isPermitted == "true" ? "View/Edit" : "View"}} Service Instance</h1>
+ <h1 class="heading1" style="margin-top: 20px;">{{isPermitted ? "View/Edit" : "View"}} Service Instance</h1>
<a class="btn btn-primary btn-xs pull-right" ng-click="reloadRoute();" ><span class="glyphicon glyphicon-refresh"></span></a>
<br>
@@ -47,7 +47,7 @@ {{service.instance.subscriberName}}</th>
<th style="text-align: center" width="34%">SERVICE TYPE:
{{service.instance.serviceType}}</th>
- <th style="text-align: center" width="33%">SERVICE INSTANCE
+ <th data-tests-id="service-instanceId-th-id" style="text-align: center" width="33%">SERVICE INSTANCE
ID: {{service.instance.serviceInstanceId}}</th>
<tr>
<tr>
@@ -64,16 +64,16 @@ <ol ui-tree-nodes="" ng-model="service" >
<li ng-repeat="aService in [service]" ui-tree-node>
<div ui-tree-handle class="tree-node tree-node-content">
- <a class="btn btn-success btn-xs" ng-if="(aService.instance.vnfs && aService.instance.vnfs.length > 0) || (aService.instance.networks && aService.instance.networks.length > 0)" data-nodrag ng-click="this.toggle()">
+ <a class="btn btn-success btn-xs" ng-if="(aService.instance.vnfs && aService.instance.vnfs.length > 0) ||(aService.instance.pnfs && aService.instance.pnfs.length > 0) || (aService.instance.networks && aService.instance.networks.length > 0)" data-nodrag ng-click="this.toggle()">
<span class="glyphicon" ng-class="{'glyphicon-chevron-right': collapsed,'glyphicon-chevron-down': !collapsed}"></span>
</a>
- SERVICE INSTANCE: {{aService.instance.name}}
- <a ng-if="((isMacro()) || (isObjectEmpty(aService.instance.vnfs) && isObjectEmpty(aService.instance.networks))) && isPermitted" data-tests-id="deleteServiceButton" class="pull-right btn btn-danger btn-xs" data-nodrag ng-click="deleteService(aService.instance);">
+ SERVICE INSTANCE: {{aService.instance.name}} | ORCH STATUS: {{serviceOrchestrationStatus}}
+ <a ng-if="((isMacro()) || (isObjectEmpty(aService.instance.vnfs) && isObjectEmpty(aService.instance.networks) && isObjectEmpty(aService.instance.pnfs))) && isPermitted" data-tests-id="deleteServiceButton" class="pull-right btn btn-danger btn-xs" data-nodrag ng-click="deleteService(aService.instance);">
<span class="glyphicon glyphicon-remove"></span>
</a>
- <div class="pull-right btn-group" ng-if="aService.convertedModel.vnfs && !isObjectEmpty(aService.convertedModel.vnfs) && !aService.convertedModel.isNewFlow && isPermitted">
+ <div class="pull-right btn-group" ng-if="(aService.convertedModel.vnfs||aService.convertedModel.vnfs) &&(!isObjectEmpty(aService.convertedModel.pnfs)||!isObjectEmpty(aService.convertedModel.pnfs)) && !aService.convertedModel.isNewFlow && isPermitted">
<button type="button" data-tests-id="addVNFButton" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- Add VNF<span class="caret"></span>
+ Add node instance<span class="caret"></span>
</button>
<ul class="dropdown-menu" ng-model="aService.convertedModel.vnfs">
<a role="menuitem" ng-repeat="(vnfUuid, vnf) in aService.convertedModel.vnfs" data-tests-id="addVNFOption-{{vnf.modelCustomizationName}}" ng-click="addVnfInstance(vnf, aService.instance.vnfs)">{{vnf.modelCustomizationName}}</a>
@@ -82,7 +82,7 @@ </div>
<div class="pull-right btn-group" ng-if="aService.convertedModel.vnfs && !isObjectEmpty(aService.convertedModel.vnfs) && aService.convertedModel.isNewFlow && isPermitted">
<button type="button" data-tests-id="addVNFButton" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- Add VNF<span class="caret"></span>
+ Add node instance<span class="caret"></span>
</button>
<ul class="dropdown-menu" ng-model="aService.convertedModel.vnfs" data-tests-id="addVnfsDropdown">
<li role="menuitem" ng-repeat="(vnfUuid, vnf) in aService.convertedModel.vnfs">
@@ -91,21 +91,24 @@ </ul>
</div>
<!-- <div class="pull-right btn-group" ng-if="aService.model.networks && !equals(aService.model.networks, {})">-->
- <div class="pull-right btn-group" ng-if="aService.convertedModel.networks && (!(isObjectEmpty(aService.convertedModel.networks)))">
+ <div class="pull-right btn-group" ng-if="aService.convertedModel.networks && (!(isObjectEmpty(aService.convertedModel.networks))) && isPermitted">
<!--<div class="pull-right btn-group" ng-if="aService.model.networks">-->
<button type="button" data-tests-id="addNetworkButton" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Add Network<span class="caret"></span>
</button>
<ul class="dropdown-menu" ng-model="aService.convertedModel.networks">
<li ng-repeat="(networkUuid, network) in aService.convertedModel.networks">
- <a ng-click="addNetworkInstance(network, aService.instance.vnfs)">{{network.modelCustomizationName}}</a>
+ <a data-tests-id="addNetworkOption-{{network.modelCustomizationName}}" ng-click="addNetworkInstance(network, aService.instance.vnfs)">{{network.modelCustomizationName}}</a>
</li>
</ul>
</div>
<a class="pull-right btn btn-primary btn-xs" data-nodrag ng-click="describeService(aService.instance)" style="margin-right: 8px;">
<span class="glyphicon glyphicon-info-sign"></span>
</a>
- <a data-tests-id="activateButton" class="pull-right btn btn-primary btn-xs" data-nodrag ng-click="activateMSOInstance()" style="margin-right: 8px;">
+ <a data-tests-id="deactivateButton" ng-disabled="!isActivateDeactivateEnabled('deactivate')" class="pull-right btn btn-primary btn-xs" data-nodrag ng-click="deactivateMSOInstance()" style="margin-right: 8px;">
+ Deactivate
+ </a>
+ <a data-tests-id="activateButton" ng-disabled="!isActivateDeactivateEnabled('activate')" class="pull-right btn btn-primary btn-xs" data-nodrag ng-click="activateMSOInstance()" style="margin-right: 8px;">
Activate
</a>
</div>
@@ -180,7 +183,7 @@ </a>
VFMODULE: {{vfModule.name}} | TYPE: {{vfModule.nodeType}} | ORCH STATUS: {{vfModule.nodeStatus}}
<!-- -->
- <a class="pull-right btn btn-danger btn-xs" ng-if="isPermitted" data-tests-id="deleteVFModuleButton" data-nodrag ng-click="deleteVfModule(aService.instance, vfModule, vnf)">
+ <a class="pull-right btn btn-danger btn-xs" ng-if="isPermitted" data-tests-id="deleteVFModuleButton-{{vfModule.name}}" data-nodrag ng-click="deleteVfModule(aService.instance, vfModule, vnf)">
<span class="glyphicon glyphicon-remove"></span>
</a>
<div class="pull-right btn-group">
@@ -196,6 +199,12 @@ <a class="pull-right btn btn-primary btn-xs" data-nodrag ng-click="describeVfModule(aService.instance, vfModule, vnf)" style="margin-right: 8px;">
<span class="glyphicon glyphicon-info-sign"></span>
</a>
+ <div class="resume" ng-if="isPermitted&&(vfModule.nodeStatus==resumeStatus)">
+ <a data-tests-id="resumeVFModuleButton-{{vfModule.name}}" class="pull-right btn btn-success btn-xs button-margin" ng-click="resume(aService.instance, vfModule, vnf)" >
+ Resume
+ </a>
+ </div>
+
</div>
<ol ui-tree-nodes="" ng-model="vfModule.volumeGroups" ng-class="{hidden: collapsed}">
<li ng-repeat="volumeGroup in vfModule.volumeGroups" ui-tree-node>
@@ -227,6 +236,7 @@ </ol>
</li>
</ol>
+
<ol ui-tree-nodes="" ng-model="aService.instance.networks" ng-class="{hidden: collapsed}">
<li ng-repeat="network in aService.instance.networks" ui-tree-node>
<div ui-tree-handle class="tree-node tree-node-content">
@@ -244,6 +254,49 @@ </div>
</li>
</ol>
+
+
+ <ol ui-tree-nodes="" ng-model="aService.instance.configurations" ng-class="{hidden: collapsed}">
+ <li ng-repeat="configuration in aService.instance.configurations" ui-tree-node>
+ <div ui-tree-handle class="tree-node tree-node-content">
+ <a class="btn btn-success btn-xs" ng-if="(configuration.ports && configuration.ports.length > 0)" data-nodrag ng-click="this.toggle()">
+ <span class="glyphicon" ng-class="{'glyphicon-chevron-right': collapsed,'glyphicon-chevron-down': !collapsed}"></span>
+ </a>
+ CONFIGURATION: {{configuration.name}} | TYPE: {{configuration.nodeType}} | ORCH STATUS: {{configuration.nodeStatus}}
+
+ <a class="pull-right btn btn-danger btn-xs" ng-if="!isMacro() && isPermitted && configuration.nodeStatus === STATUS_CONSTANTS.AAI_INACTIVE" data-tests-id="deleteConfigurationButton" data-nodrag ng-click="deleteConfiguration(aService.instance, configuration)">
+ <span class="glyphicon glyphicon-remove"></span>
+ </a>
+
+ <a class="pull-right btn btn-primary btn-xs" data-nodrag ng-click="toggleConfigurationStatus(aService, configuration)" ng-if="isPermitted && allowConfigurationActions">
+ {{configuration.nodeStatus === STATUS_CONSTANTS.AAI_ACTIVE ? "Deactivate" : "Activate"}}
+ </a>
+ </div>
+ <ol ui-tree-nodes="" ng-model="configuration.ports" ng-class="{hidden: collapsed}">
+ <li ng-repeat="port in configuration.ports" ui-tree-node>
+ <div ui-tree-handle class="tree-node tree-node-content">
+ PORT: {{port.portName}} | ORCH STATUS: {{port.portStatus}}
+
+ <button type="button" class="pull-right btn btn-primary btn-xs" ng-if="configuration.nodeStatus == STATUS_CONSTANTS.AAI_ACTIVE" ng-click="togglePortStatus(aService, configuration, port)">
+ {{port.portStatus === STATUS_CONSTANTS.AAI_ENABLED ? "Disable" : "Enable"}}
+ </button>
+ </div>
+ </li>
+ </ol>
+ </li>
+ </ol>
+
+ <ol id="pnfs-tree" ui-tree-nodes="" ng-model="pnfs" ng-class="{hidden: collapsed || pnf.length === 0}">
+ <li ng-repeat="pnf in pnfs" ui-tree-node>
+ <div ui-tree-handle class="tree-node tree-node-content">
+ PNF: {{pnf}}
+
+ <a class="dissociate-pnf pull-right btn btn-primary btn-xs" data-nodrag ng-click="dissociatePnf(pnf)" style="margin-right: 8px;">
+ <span>Dissociate</span>
+ </a>
+ </div>
+ </li>
+ </ol>
</li>
</ol>
</div>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/messageViewer.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/messageViewer.htm new file mode 100644 index 000000000..67e9248e8 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/messageViewer.htm @@ -0,0 +1,6 @@ +<div class="message-viewer"> + <div ng-include src="icon"></div> + <div class="primaryMessage">{{ primaryMessage }}</div> + <div class="secondaryMessage">{{ secondaryMessage }}</div> + <button data-tests-id="try-again" class="btn btn-primary" ng-if="showTryAgain" ng-click="tryAgain()">TRY AGAIN</button> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/msoCommit.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/msoCommit.htm index 48268248b..25a6cf9e0 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/msoCommit.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/msoCommit.htm @@ -18,8 +18,8 @@ ============LICENSE_END=========================================================
-->
-<div ng-controller="msoCommitController" ng-show="isViewVisible">
-
+<div ng-controller="msoCommitController" ng-show="isViewVisible" >
+<div ng-if="isViewVisible">
<div class="statusLine">
<img src="app/vid/images/spinner.gif"
ngx-visible="{{isSpinnerVisible}}"> </img> <label>Status:</label><span
@@ -45,3 +45,4 @@ ng-click="close();">Close</button>
</div>
</div>
+</div>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/pnfSearchAssociation.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/pnfSearchAssociation.htm new file mode 100644 index 000000000..7c1095e6b --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/pnfSearchAssociation.htm @@ -0,0 +1,62 @@ +<!-- +============LICENSE_START======================================================= +VID +================================================================================ +Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +================================================================================ +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +============LICENSE_END========================================================= +--> +<link rel="stylesheet" type="text/css" href="app/vid/styles/networkNode.css"/> +<link rel="stylesheet" type="text/css" href="app/vid/styles/pnfSearchAssociation.css"/> +<div ng-controller="pnfSearchAssociationController" class="network-wrapper-config pnf-search-association"> + <div class="head"> + <div class="title">PNF Model: {{modelName}}</div> + <div class="btn-wrapper"> + <button class="cancel-btn grey" data-tests-id="back" data-ng-click="back()">Back</button> + <button class="create-btn blue" data-tests-id="associatePnf" data-ng-disabled="!pnfInstance" data-ng-click="associate()">Associate</button> + </div> + </div> + + <div class="content-wrapper"> + <div class="content"> + <div class="bold" >Unique name of physical network function:</div> + <div class="input-wrapper"> + <input data-tests-id="pnfName" type="search" placeholder="Enter PNF name and click Search" data-ng-model="pnfName" ></input> + <div data-tests-id="searchPnf" class="search2-icon search-input" data-ng-click="searchPnf(pnfName)" data-ng-disabled="!pnfName"></div> + </div> + <div class="result-content margin-search" data-ng-show="pnfInstance"> + <span ng-show="pnfInstance.pnfName">PNF unique name:</span> + <div data-tests-id="pnfInstancePnfName">{{pnfInstance.pnfName}}</div> + <span ng-show="pnfInstance.pnfName2" >PNF name:</span> + <div data-tests-id="pnfInstancePnfName2">{{pnfInstance.pnfName2}}</div> + <span ng-show="pnfInstance.pnfName2Source" >PNF name source:</span> + <div data-tests-id="pnfInstancePnfName2Source">{{pnfInstance.pnfName2Source}}</div> + <span ng-show="pnfInstance.pnfId">PNF ID:</span> + <div data-tests-id="pnfInstancePnfId">{{pnfInstance.pnfId}}</div> + <span ng-show="pnfInstance.equipType">Equipment type:</span> + <div data-tests-id="pnfInstanceEquipType">{{pnfInstance.equipType}}</div> + <span ng-show="pnfInstance.equipVendor">Equipment vendor:</span> + <div data-tests-id="pnfInstanceEquipVendor">{{pnfInstance.equipVendor}}</div> + <span ng-show="pnfInstance.equipModel">Equipment model:</span> + <div data-tests-id="pnfInstanceEquipModel">{{pnfInstance.equipModel}}</div> + + </div> + <div class="error-msg margin-search" data-tests-id="pnfNotFoundErrorMessage" data-ng-show="notFound">The specified PNF instance {{pnfNameNotFound}} does not exist in A&AI. <br/>Please note: A&AI is case sensitive</div> + + </div> + + <div class="sidebar-right"> + <service-metadata title-txt="SERVICE MODEL INFO" service-metadata-fields="serviceMetadataFields"></service-metadata> + </div> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/search.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/search.htm new file mode 100644 index 000000000..a0b94fe4a --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/search.htm @@ -0,0 +1,5 @@ +<link rel="stylesheet" type="text/css" href="app/vid/styles/search.css"/> +<div class="search-container"> + <input type="search" data-tests-id="test-search-input" class="search-input" ng-model="searchString" ng-model-options="{debounce: 300}" placeholder="Type to search"> + <div class="search-icon" ng-include src="'app/vid/images/search.svg'"></div> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceMetadata.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceMetadata.htm new file mode 100644 index 000000000..27992d4a4 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceMetadata.htm @@ -0,0 +1,10 @@ +<link rel="stylesheet" type="text/css" href="app/vid/styles/serviceMetadata.css"/> +<div class="header-title" ng-if="titleTxt"> + {{titleTxt}} +</div> +<div class="metadata-content"> + <div class="field" ng-repeat="field in serviceMetadataFields"> + <label>{{field.name}}</label> + <div class="value" data-tests-id="{{'info-test-data-id-' + field.name.split(' ').join('')}}">{{field.value}}</div> + </div> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceModels.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceModels.htm index 3cba87196..17b87bfd2 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceModels.htm +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceModels.htm @@ -69,8 +69,8 @@ <td att-table-body ng-bind="service['distributionStatus']"></td>
<td att-table-body ng-bind="service['lastUpdaterUserId']"></td>
<td att-table-body ng-bind="service['toscaModelUrl']"></td>
- <td att-table-body ng-show="service['version'] > '1.0' "><button type=button ng-click="loadPreviousVersionData(service['invariantUUID'],service['name'],service['version'])" att-button btn-type="primary" size="small">Previous Versions</button></td>
- <td att-table-body ng-show="service['version'] <= '1.0' "> </td>
+ <td att-table-body ng-show="service.hasPreviousVersion"><button type=button ng-click="loadPreviousVersionData(service['invariantUUID'],service['name'],service['version'])" att-button btn-type="primary" size="small">Previous Versions</button></td>
+ <td att-table-body ng-show="!service.hasPreviousVersion"> </td>
</tr>
</tbody>
</table>
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceProxyConfig.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceProxyConfig.htm new file mode 100644 index 000000000..e2261dc11 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/serviceProxyConfig.htm @@ -0,0 +1,108 @@ +<!-- +============LICENSE_START======================================================= +VID +================================================================================ +Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +================================================================================ +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +============LICENSE_END========================================================= +--> +<link rel="stylesheet" type="text/css" href="app/vid/styles/networkNode.css"/> +<link rel="stylesheet" type="text/css" href="app/vid/styles/serviceProxyConfig.css"/> +<div class="service-wrapper-config network-wrapper-config"> + <div class="head"> + <div class="title">Config {{modelName}}</div> + <div class="btn-wrapper"> + <button class="cancel-btn grey" data-tests-id="backButton" data-ng-click="back()">Back</button> + <button class="create-btn blue" data-tests-id="createButton" data-ng-disabled="proxiesInstanceName.$invalid|| disableCreate" data-ng-click="create()">Create</button> + </div> + </div> + + <div class="content-wrapper"> + <div class="content"> + <div class="diagram"> + <div class="diagram-img"> + <div class="circle service-circle"> + <span class="text">Source<br>Service proxy</span> + </div> + <div class="dotted-line" data-ng-class="{'checked': sourceInstance, 'unchecked': !sourceInstance}"> + <span class="conn-circle sprite" data-tests-id="sourceInstanceSelectedIcon" data-ng-class="{'valid-large': sourceInstance}"></span> + </div> + <div class="circle config-circle"> + <span class="line"></span> + </div> + <div class="dotted-line" data-ng-class="{'checked': collectorInstance, 'unchecked': !collectorInstance}"> + <span class="conn-circle sprite" data-tests-id="collectorInstanceSelectedIcon" data-ng-class="{'valid-large': collectorInstance}"></span> + </div> + <div class="circle service-circle"> + <span class="text">Collector<br>Service proxy</span> + </div> + </div> + <div class="element-name-wrapper"> + <div class="element-name service" data-ng-click="openMetadataModal('sourceMetadata')"> + <span class="label-txt" data-tests-id="sourceInstanceName">{{sourceInstanceName}} <span class="info" data-tests-id="sourceInfoButton">i</span></span> + + </div> + <div class="element-name config"> + <span class="label-txt" data-tests-id="modelName">{{modelName}}</span> + </div> + <div class="element-name service" data-ng-click="openMetadataModal('collectorMetadata')"> + <span class="label-txt" data-tests-id="collectorInstanceName">{{collectorInstanceName}}<span class="info" data-tests-id="collectorInfoButton">i</span></span> + + </div> + </div> + </div> + <form name="proxiesInstanceName" class="bottom"> + <div class="wrapper-list source-vnf"> + <div class="title-txt"><b>Source</b> Service Type</div> + <select ng-model="sourceServiceType" + ng-change="onSourceServiceTypeSelected()" name="sourceServiceType" id="sourceServiceType" + ng-options="item['service-type'] disable when !(item['is-permitted']) for item in serviceTypes" + required data-tests-id="sourceServiceType"> + <option value="" disabled>Select service type</option> + </select> + + <div class="title-txt select-vnf-title">VNF providing <b>source</b> requirements</div> + <select ng-model="sourceInstance" name="source" ng-disabled="sourceInstanceList === null" required data-tests-id="sourceDropDown"> + <option value="" selected>Type/Select VNF name</option> + <option ng-repeat="option in sourceInstanceList" data-tests-id="{{'source-' + option.id}}" + value="{{option.id}}">{{option['properties']['vnf-name']}}</option> + </select> + <span class="no-results" data-tests-id="sourceNoResults" ng-show="sourceNoResults">No vnf instances found.</span> + </div> + + <div class="wrapper-list collector-{{collectorType}}"> + <div class="title-txt ng-hide-keep-block" ng-hide="collectorType==='pnf'"><b>Collector</b> Service Type</div> + <select ng-model="collectorServiceType" ng-hide="collectorType==='pnf'" class="ng-hide-keep-block" + ng-change="onCollectorServiceTypeSelected()" name="collectorServiceType" id="collectorServiceType" + ng-options="item['service-type'] disable when !(item['is-permitted']) for item in serviceTypes" + required data-tests-id="collectorServiceType"> + <option value="" disabled>Select service type</option> + </select> + + <div class="title-txt select-vnf-title">{{collectorType.toUpperCase()}} providing <b>collector</b> requirements</div> + <select ng-model="collectorInstance" name="collector" ng-disabled="collectorInstanceList === null" required data-tests-id="collectorDropDown"> + <option value="" selected>Type/Select {{collectorType.toUpperCase()}} name</option> + <option ng-repeat="option in collectorInstanceList" data-tests-id="{{'collector-' + option.id}}" + value="{{option.id}}">{{option['properties'][collectorType=='vnf' ? 'vnf-name' : 'pnfName']}}</option> + </select> + <span class="no-results" data-tests-id="collectorNoResults" ng-show="collectorNoResults">No {{collectorType}} instances found.</span> + </div> + </form> + </div> + + <div class="sidebar-right"> + <service-metadata title-txt="info" service-metadata-fields="serviceMetadataFields"></service-metadata> + </div> + </div> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/view-models/testEnvironments.htm b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/testEnvironments.htm new file mode 100644 index 000000000..2c445f8b8 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/scripts/view-models/testEnvironments.htm @@ -0,0 +1,82 @@ +<link rel="stylesheet" type="text/css" href="app/vid/styles/testEnvironments.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/buttons.css" /> +<div class="test-environments"> + <div class="header"> + <div class="header-left"> + <span data-tests-id="test-environments-headline" class="headline">Test Environments {{vm.total}}</span> + <span class="separator"></span> + <div class="button-container" ng-click="vm.createNewTestEnvironment()"> + <div class="icon-svg" data-tests-id="test-environments-new-button"> + <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 55.47337 55.63023"><path class="icon-filling" d="M27.7367.07843A27.73669,27.73669,0,1,0,55.4734,27.81512,27.73757,27.73757,0,0,0,27.7367.07843ZM40.18824,29.6178H29.53938V40.26666a1.80267,1.80267,0,0,1-3.60535,0V29.6178H15.28516a1.80267,1.80267,0,0,1,0-3.60535H25.934V15.36359a1.80267,1.80267,0,0,1,3.60535,0V26.01245H40.18824a1.80267,1.80267,0,1,1,0,3.60535Z"/></svg> + </div> + <span class="button-text">Create New</span> + </div> + <span class="separator"></span> + </div> + <search-text data-tests-id="test-environments-search" search-string="vm.searchString"></search-text> + </div> + <div class="error-messages" ng-if="vm.emptyData || vm.connectError"> + <message-viewer data-tests-id="test-environments-no-data" primary-message="No test environment was created yet" secondary-message="create new to start testing" icon="app/vid/images/emptyData.svg" class="no-data" ng-if="vm.emptyData"> + </message-viewer> + <message-viewer data-tests-id="test-environments-error" primary-message="Something went wrong" secondary-message="{{vm.connectError}}" icon="app/vid/images/icon_noconnection.svg" try-again="vm.loadAAIestEnvironments()" class="connect-error" ng-if="vm.connectError"> + </message-viewer> + </div> + <div class="environments-table" ng-if="vm.environments.length"> + <div class="row"> + <div class="col-md-12"> + <button data-tests-id="test-environments-refresh" class="refresh" type="button" ng-click="vm.loadAAIestEnvironments()"> + <div ng-include src="'app/vid/images/refresh.svg'"></div> + </button> + </div> + </div> + + <div class="row"> + <div class="col-md-12 test-environments-table-container"> + <table data-tests-id="test-environments-table" att-table table-data="vm.environments" search-category="searchCategory" search-string="vm.searchString" class="table table-bordered" id="environments-table"> + <thead att-table-row type="header" class="thead-default"> + <tr> + <th att-table-header default-sort="A" key="operationalEnvironmentId">Environment ID</th> + <th att-table-header key="operationalEnvironmentName">Environment Name</th> + <th att-table-header key="relationshipList.relationship[0].relationshipData[0].relationshipValue">ECOMP Environment ID</th> + <th att-table-header key="relationshipList.relationship[0].relatedToProperty[0].propertyValue">ECOMP Environment Name</th> + <th att-table-header key="tenantContext">Tenant Context</th> + <th att-table-header key="operationalEnvironmentType">Environment Type</th> + <th att-table-header key="workloadContext">Workload Context</th> + <th att-table-header sortable="false">Status</th> + <th att-table-header sortable="false">Action</th> + <th att-table-header sortable="false">Attach Manifest</th> + </tr> + </thead> + <tbody att-table-row type="body" row-repeat="environment in vm.environments"> + <tr> + <td att-table-body ng-bind="environment.operationalEnvironmentId"></td> + <td att-table-body ng-bind="environment.operationalEnvironmentName"></td> + <td att-table-body ng-bind="environment.relationshipList.relationship[0].relationshipData? environment.relationshipList.relationship[0].relationshipData[0].relationshipValue: ''"></td> + <td att-table-body ng-bind="environment.relationshipList.relationship[0].relatedToProperty? environment.relationshipList.relationship[0].relatedToProperty[0].propertyValue: ''"></td> + <td att-table-body ng-bind="environment.tenantContext"></td> + <td att-table-body ng-bind="environment.operationalEnvironmentType"></td> + <td att-table-body ng-bind="environment.workloadContext"></td> + <td att-table-body ng-bind="vm.getEnvStatus(environment)" id="testEnvStatus-{{environment.operationalEnvironmentId}}"></td> + <td att-table-body> + <button id="testEnvActivate-{{environment.operationalEnvironmentId}}" type="button" class="blue envActionBtn" + ng-click="vm.onTestEnvActivateClick(environment)" ng-show="!vm.isEnvActive(environment)">Activate</button> + <button id="testEnvDeactivate-{{environment.operationalEnvironmentId}}" type="button" class="blue envActionBtn" + ng-click="vm.onTestEnvDeactivateClick(environment)" ng-show="vm.isEnvActive(environment)">Deactivate</button> + </td> + <td att-table-body> + <button id="testEnvAttach-{{environment.operationalEnvironmentId}}" class="transparent attach-button" + ng-click="vm.onTestEnvActivateClick(environment)" ng-show="vm.isEnvActive(environment)"> + <img src="app/vid/images/attach.svg"> + </button> + </td> + </tr> + </tbody> + </table> + </div> + </div> + </div> +</div> +<div popup-window class="popupContents" ngx-show="{{popup.isVisible}}" + ng-cloak> + <div ng-include="'app/vid/scripts/view-models/msoCommit.htm'"></div> +</div>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/buttons.css b/vid-app-common/src/main/webapp/app/vid/styles/buttons.css new file mode 100644 index 000000000..7a2a90154 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/buttons.css @@ -0,0 +1,58 @@ +button { + border-radius: 2px; + font-size: 14px; + line-height: 28px; + height: 30px; +} + +button.blue { + border: #0091c8 1px solid; + background-color: #009fdb; + color: white; +} +button.blue:hover { + background-color: #1ec2ff; + border-color: #0091c8; +} +button.blue:active { + background-color: #0091c7; + border-color: #006186; +} +button.blue[disabled] { + background-color: rgba(5, 104, 174, 0.3); + border-color: rgba(4, 113, 168, 0.3); +} + + +button.transparent { + border: 0; + background-color: transparent; + outline: none; +} +button.transparent:hover { + background-color: transparent; +} +button.transparent:active { + background-color: transparent; +} +button.transparent[disabled] { + background-color: transparent; +} + +.clickable-text { + font-size: 12px !important; + color: #337ab7; !important; + text-decoration: none; + text-decoration-line: none !important; +} +.clickable-text:hover { + color: #23527c !important; + text-decoration: none; + text-decoration-line: none !important; +} +.clickable-text:active { + color: #0091c7 !important; +} +.clickable-text[disabled] { + color: rgba(5, 104, 174, 0.3) !important; +} diff --git a/vid-app-common/src/main/webapp/app/vid/styles/change-management-icons.css b/vid-app-common/src/main/webapp/app/vid/styles/change-management-icons.css index 8c4dbd8c5..7e9620a37 100644 --- a/vid-app-common/src/main/webapp/app/vid/styles/change-management-icons.css +++ b/vid-app-common/src/main/webapp/app/vid/styles/change-management-icons.css @@ -51,8 +51,13 @@ color: #5a5a5a; } .icon-pending:before { + content: "\e905"; + color: #00aeef; + cursor: pointer; + } +.icon-deleted:before { content: "\e905"; - color: #00aeef; + color: #cf2a2a; cursor: pointer; } .icon-plus:before { @@ -80,3 +85,63 @@ font-size: 12px; cursor: pointer; } +.icon-search-in:before { + content: "\e90d"; + color: #009FDB; + font-size: 17px; + cursor: pointer; +} +.expand-icon{ + margin-right: 10px; + position: relative; + width: 11px; + height: 11px; + display: inline-block; + cursor: pointer; +} + +/* Vertical line */ +.expand-icon:before{ + content: ""; + position: absolute; + background-color: #5a5a5a; + transition: transform 0.25s ease-out; + right: 40%; + width: 2px; + height: 100%; + margin-left: 5px; +} + +/* horizontal line */ +.expand-icon:after{ + content: ""; + position: absolute; + background-color: #5a5a5a; + transition: transform 0.25s ease-out; + top: 40%; + left: 0; + width: 100%; + height: 2px; +} +.collapse-icon{ + margin-right: 10px; + cursor: pointer; + display: inline-block; + width: 10px; + border-top: 1.6px solid #5a5a5a; + padding: 2.6px; +} +.icon-search2:before { + content: "\e90d"; + color: #009FDB; + font-size: 40px; + cursor: pointer; +} +.icon-sync:before { + content: "\e90f"; + font-size: 20px; + cursor: pointer; +} +.icon-sync:hover:before { + color: #009FDB; +} diff --git a/vid-app-common/src/main/webapp/app/vid/styles/change-management.css b/vid-app-common/src/main/webapp/app/vid/styles/change-management.css index 68a06ee16..7edbea030 100644 --- a/vid-app-common/src/main/webapp/app/vid/styles/change-management.css +++ b/vid-app-common/src/main/webapp/app/vid/styles/change-management.css @@ -90,7 +90,7 @@ } .jobs-table { - background-color: #f8f8f8; + background-color: #ffffff; padding: 40px; } @@ -119,7 +119,7 @@ border: 1px solid #eaeaea; box-sizing: border-box; background-color: #ffffff; - box-shadow: 0px 2px 7px 0px rgba(34, 31, 31, 0.17); + /* box-shadow: 0px 2px 7px 0px rgba(34, 31, 31, 0.17);*/ font-family: "Open Sans"; color: #5a5a5a; font-size: 14px; @@ -127,7 +127,7 @@ } .table>thead { - background-color: #d2d2d2; + background-color: #F2F2F2; font-family: "Open Sans"; color: #191919; font-size: 13px; @@ -140,7 +140,7 @@ color: #00aeef; font-size: 14px; font-weight: 600; - background-color: #eaeaea; + background-color: #EAEAEA; box-shadow: 0px 1px 1px 0px rgba(34, 31, 31, 0.19); } @@ -154,4 +154,24 @@ .centered { text-align: center; +} +.table-wrapper{ +} + +.refresh-cm { + float: right; + position: relative; + right: 45px; + top: 50px; + z-index: 900; + color: #191919; + font-size: 14px; +} +.refresh-cm .last-time-updated { + color: #5A5A5A; +} +.refresh-cm i.icon-sync { + padding-left: 10px; + top: 3px; + position: relative; }
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/common.css b/vid-app-common/src/main/webapp/app/vid/styles/common.css index 8d6fb615b..35f2e33f8 100644 --- a/vid-app-common/src/main/webapp/app/vid/styles/common.css +++ b/vid-app-common/src/main/webapp/app/vid/styles/common.css @@ -1,3 +1,116 @@ +@font-face { + font-family: OpenSans-Bold; + src: url("fonts/OpenSans/OpenSans-Bold.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-BoldItlaic; + src: url("fonts/OpenSans/OpenSans-BoldItalic.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-ExtraBold; + src: url("fonts/OpenSans/OpenSans-ExtraBold.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-ExtraBoldItalic; + src: url("fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-Italic; + src: url("fonts/OpenSans/OpenSans-Italic.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-Light; + src: url("fonts/OpenSans/OpenSans-Light.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-LightItalic; + src: url("fonts/OpenSans/OpenSans-LightItalic.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-Regular; + src: url("fonts/OpenSans/OpenSans-Regular.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-Semibold; + src: url("fonts/OpenSans/OpenSans-Semibold.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-SemiboldItalic; + src: url("fonts/OpenSans/OpenSans-SemiboldItalic.ttf") format('truetype'); +} + +@font-face { + font-family: 'icomoon'; + src: url('fonts/icomoon.eot?4cilop'); + src: url('fonts/icomoon.eot?4cilop#iefix') format('embedded-opentype'), + url('fonts/icomoon.ttf?4cilop') format('truetype'), + url('fonts/icomoon.woff?4cilop') format('woff'), + url('fonts/icomoon.svg?4cilop#icomoon') format('svg'); + font-weight: normal; + font-style: normal; +} + html, body { font-size:14px; -}
\ No newline at end of file +} + +.button--inactive { + border: none !important; +} + +.modal-body [class^="icon-"],.modal-body [class*=" icon-"] { + /* use !important to prevent issues with browser extensions that change fonts */ + font-family: 'icomoon' !important; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-browse:before { + content: "\e90e"; + color: #5A5A5A; + font-size: 4px; + cursor: pointer; + width: 37px; + height: 37px; + line-height: 37px; + text-align: center; + background: #F2F2F2; + border: 1px solid #D2D2D2; + display: inline-block; + vertical-align: top; + border-radius: 2px; + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} + +.icon-browse:hover::before { + background-color: #E6F6FB; + color: #009FDB; +} + +.icon-browse:active::before { + background-color: #E6F6FB; + color: #009FDB; +} + +input:focus:invalid { + border-color: Tomato; + box-shadow: none; +} diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/Apache License.txt b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/Apache License.txt new file mode 100644 index 000000000..989e2c59e --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/Apache License.txt @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License.
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Bold.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Bold.ttf Binary files differnew file mode 100644 index 000000000..fd79d43be --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Bold.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-BoldItalic.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-BoldItalic.ttf Binary files differnew file mode 100644 index 000000000..9bc800958 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-BoldItalic.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-ExtraBold.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-ExtraBold.ttf Binary files differnew file mode 100644 index 000000000..21f6f84a0 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-ExtraBold.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf Binary files differnew file mode 100644 index 000000000..31cb68834 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Italic.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Italic.ttf Binary files differnew file mode 100644 index 000000000..c90da48ff --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Italic.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Light.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Light.ttf Binary files differnew file mode 100644 index 000000000..0d381897d --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Light.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-LightItalic.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-LightItalic.ttf Binary files differnew file mode 100644 index 000000000..68299c4bc --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-LightItalic.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Regular.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Regular.ttf Binary files differnew file mode 100644 index 000000000..db433349b --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Regular.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Semibold.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Semibold.ttf Binary files differnew file mode 100644 index 000000000..1a7679e39 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-Semibold.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-SemiboldItalic.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-SemiboldItalic.ttf Binary files differnew file mode 100644 index 000000000..59b6d16b0 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/OpenSans/OpenSans-SemiboldItalic.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.eot b/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.eot Binary files differindex e57ccc5e7..9a031a85b 100644 --- a/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.eot +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.eot diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.svg b/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.svg index 5d514c47b..3b288d8c1 100644 --- a/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.svg +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.svg @@ -20,4 +20,7 @@ <glyph unicode="" glyph-name="noun_573805_cc-03" d="M512.211 960c-282.886 0-512.211-229.325-512.211-512.211s229.325-512.211 512.211-512.211c282.887 0 512.211 229.325 512.211 512.211v0c-0.017 282.88-229.332 512.195-512.21 512.211h-0.001zM261.202 377.71c-38.703 0-70.079 31.375-70.079 70.079s31.375 70.079 70.079 70.079c38.703 0 70.079-31.375 70.079-70.079v0c0.005-0.298 0.007-0.649 0.007-1.001 0-38.155-30.93-69.085-69.085-69.085-0.352 0-0.703 0.003-1.054 0.008l0.053-0.001zM512.211 377.71c-38.703 0-70.079 31.375-70.079 70.079s31.375 70.079 70.079 70.079c38.703 0 70.079-31.375 70.079-70.079v0c0-0.061 0-0.133 0-0.205 0-38.59-31.284-69.874-69.874-69.874-0.072 0-0.144 0-0.216 0h0.011zM763.221 377.71c-38.703 0-70.079 31.375-70.079 70.079s31.375 70.079 70.079 70.079c38.703 0 70.079-31.375 70.079-70.079v0c0-0.061 0-0.133 0-0.205 0-38.59-31.284-69.874-69.874-69.874-0.072 0-0.144 0-0.217 0h0.011z" /> <glyph unicode="" glyph-name="scedular" horiz-adv-x="981" d="M981.333 662.699c0.312 4.17 0.49 9.033 0.49 13.938 0 109.691-88.922 198.613-198.613 198.613-5.353 0-10.656-0.212-15.902-0.627l0.693 0.044h-554.667c-4.553 0.371-9.857 0.583-15.21 0.583-109.691 0-198.613-88.922-198.613-198.613 0-4.905 0.178-9.768 0.527-14.583l-0.038 0.645v-470.699c0-128.811 82.475-256 213.333-256h554.667c130.859 0 213.333 127.189 213.333 256v470.699zM36.352 662.699c0 109.141 66.048 169.301 176.981 169.301h554.667c110.933 0 176.981-60.16 176.981-169.301l-6.315-44.032h-896zM938.667 192c0-109.141-59.733-213.333-170.667-213.333h-554.667c-110.933 0-170.667 104.192-170.667 213.333v384h896v-384zM362.667 405.333h256c11.782 0 21.333-9.551 21.333-21.333s-9.551-21.333-21.333-21.333v0h-256c-11.782 0-21.333 9.551-21.333 21.333s9.551 21.333 21.333 21.333v0zM362.667 234.667h256c11.782 0 21.333-9.551 21.333-21.333s-9.551-21.333-21.333-21.333v0h-256c-11.782 0-21.333 9.551-21.333 21.333s9.551 21.333 21.333 21.333v0zM704 960c11.782 0 21.333-9.551 21.333-21.333v0-170.667c0-11.782-9.551-21.333-21.333-21.333s-21.333 9.551-21.333 21.333v0 170.667c0 11.782 9.551 21.333 21.333 21.333v0zM277.333 960c11.782 0 21.333-9.551 21.333-21.333v0-170.667c0-11.782-9.551-21.333-21.333-21.333s-21.333 9.551-21.333 21.333v0 170.667c0 11.782 9.551 21.333 21.333 21.333v0z" /> <glyph unicode="" glyph-name="finished_d" d="M512 960v0c-282.77 0-512-229.23-512-512v0c0-282.77 229.23-512 512-512s512 229.23 512 512c0 282.77-229.23 512-512 512zM473.454 273.993c8.558 13.239 15.067 22.894 21.138 32.768 91.648 149.211 118.126 170.569 209.701 319.781 5.105 9.183 10.457 17.077 16.416 24.459l-0.252-0.322c8.798 10.219 21.751 16.651 36.206 16.651 9.048 0 17.507-2.52 24.715-6.896l-0.212 0.119c13.74-7.345 22.93-21.594 22.93-37.989 0-6.179-1.305-12.053-3.655-17.361l0.108 0.274c-3.479-7.646-7.067-14.1-11.098-20.236l0.346 0.561c-108.251-176.859-151.479-225.646-259.803-402.286-7.527-16.71-24.034-28.132-43.21-28.132-13.809 0-26.235 5.924-34.874 15.369l-0.032 0.036q-107.52 91.502-213.138 184.978c-11.444 7.654-18.878 20.525-18.878 35.132 0 11.575 4.668 22.060 12.224 29.675l-0.003-0.003c9.080 9.371 21.781 15.187 35.84 15.187s26.76-5.816 35.827-15.174l0.013-0.013c46.738-39.643 92.672-80.457 138.971-120.32z" /> +<glyph unicode="" glyph-name="search2" d="M421.647 182.965c-96.376 0-180.706 36.141-252.988 102.4-66.259 66.259-102.4 156.612-102.4 252.988s36.141 180.706 102.4 252.988c66.259 66.259 156.612 102.4 252.988 102.4s180.706-36.141 252.988-102.4c66.259-66.259 102.4-156.612 102.4-252.988s-36.141-180.706-102.4-252.988c-72.282-66.259-156.612-102.4-252.988-102.4zM1011.953-9.788l-271.059 271.059c66.259 78.306 102.4 174.682 102.4 271.059 0 114.447-42.165 216.847-120.471 295.153s-186.729 120.471-295.153 120.471c-114.447 0-216.847-42.165-295.153-120.471s-120.471-186.729-120.471-295.153c0-114.447 42.165-216.847 120.471-295.153s186.729-120.471 295.153-120.471c102.4 0 198.776 36.141 271.059 102.4l271.059-271.059c6.024-6.024 18.071-12.047 24.094-12.047s18.071 6.024 24.094 12.047c12.047 12.047 12.047 30.118-6.024 42.165z" /> +<glyph unicode="" glyph-name="browse" horiz-adv-x="3584" d="M796.444 561.778c0-219.932-178.29-398.222-398.222-398.222s-398.222 178.29-398.222 398.222c0 219.932 178.29 398.222 398.222 398.222s398.222-178.29 398.222-398.222zM3584 561.778c0-219.932-178.29-398.222-398.222-398.222s-398.222 178.29-398.222 398.222c0 219.932 178.29 398.222 398.222 398.222s398.222-178.29 398.222-398.222zM2190.222 561.778c0-219.932-178.29-398.222-398.222-398.222s-398.222 178.29-398.222 398.222c0 219.932 178.29 398.222 398.222 398.222s398.222-178.29 398.222-398.222z" /> +<glyph unicode="" glyph-name="sync" d="M878.933 358.4c21.333-4.267 34.176-29.867 29.867-55.467-21.333-59.733-59.691-115.2-102.357-157.867-81.109-81.067-187.776-123.733-302.976-123.733s-221.867 42.667-294.357 123.733l-123.776 119.467v-157.867c0-25.6-17.067-42.667-42.667-42.667-25.557 0-42.667 17.067-42.667 42.667v268.8c0 4.267 4.267 4.267 4.267 8.533 4.309 0 4.309 4.267 4.309 4.267 0 4.267 4.224 8.533 8.533 8.533 0 4.267 4.224 4.267 4.224 4.267h4.267c0 4.267 4.309 4.267 8.533 4.267h256c25.643 0 42.667-17.067 42.667-42.667s-17.024-42.667-42.667-42.667h-149.333l119.467-110.933c68.309-68.267 153.643-102.4 243.2-102.4 89.643 0 179.2 34.133 238.976 98.133 38.357 34.133 64 81.067 81.024 128 8.533 21.333 34.133 34.133 55.467 25.6zM958.406 831.276c25.6 0 42.667-17.067 42.667-42.667v-260.267c0-4.267 0-8.533-4.267-12.8 0-4.267-4.267-4.267-4.267-8.533-4.267 0-4.267-4.267-4.267-4.267-4.267-4.267-8.533-4.267-12.8-8.533s-12.8-4.267-17.067-4.267h-256c-25.6 0-42.667 17.067-42.667 42.667s17.067 42.667 42.667 42.667h149.333l-119.467 115.2c-34.133 38.4-81.067 64-128 81.067-85.333 29.867-179.2 25.6-260.267-12.8-81.067-42.667-145.067-110.933-174.933-196.267-8.533-21.333-34.133-34.133-55.467-25.6-21.333 4.267-34.133 29.867-25.6 51.2 38.4 110.933 115.2 196.267 217.6 243.2 102.4 51.2 217.6 55.467 328.533 21.333 59.733-21.333 115.2-59.733 157.867-102.4l123.733-119.467v157.867c0 25.6 17.067 42.667 42.667 42.667z" /> </font></defs></svg>
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.ttf b/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.ttf Binary files differindex 7d0e36d1f..acbb2aa5b 100644 --- a/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.ttf +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.ttf diff --git a/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.woff b/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.woff Binary files differindex b2d2e64af..8a7b316c0 100644 --- a/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.woff +++ b/vid-app-common/src/main/webapp/app/vid/styles/fonts/icomoon.woff diff --git a/vid-app-common/src/main/webapp/app/vid/styles/instantiate.css b/vid-app-common/src/main/webapp/app/vid/styles/instantiate.css index 13e2cf0a5..e46a8b970 100755 --- a/vid-app-common/src/main/webapp/app/vid/styles/instantiate.css +++ b/vid-app-common/src/main/webapp/app/vid/styles/instantiate.css @@ -59,4 +59,12 @@ div[ng-controller=InstantiationController] .aaiHidden { div[ng-controller=InstantiationController] .aaiVisible {
visibility: visible;
+}
+
+div.resume {
+ display: inline;
+}
+
+a.button-margin {
+ margin-right: 8px;
}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/messageViewer.css b/vid-app-common/src/main/webapp/app/vid/styles/messageViewer.css new file mode 100644 index 000000000..9514d11b4 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/messageViewer.css @@ -0,0 +1,17 @@ +.message-viewer { + text-align: center; +} + +.message-viewer .primaryMessage { + font-size: 18px; + padding-top: 20px; +} + +.message-viewer .btn-primary { + background-color: #009FDB; + color: #FFFFFF; + border: 1px solid #009FDB; + padding: 0px 25px; + height: 35px; + margin-top: 45px; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/modal-buttons.css b/vid-app-common/src/main/webapp/app/vid/styles/modal-buttons.css new file mode 100644 index 000000000..b5d3d3143 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/modal-buttons.css @@ -0,0 +1,29 @@ +.modal-footer .btn-white, +.modal-footer .btn-white:hover { + font-family: "OpenSans-Semibold"; + border-radius: 5px; + border: 1px solid #009FDB; + background-color: #FFFFFF; + width: 120px; + height: 36px; + color: #009FDB; + font-size: 13px; + line-height: 30px; + text-align: center; + padding: 4px 12px !important; +} + +.modal-footer .btn-primary, +.modal-footer .btn-primary:hover{ + font-family: "OpenSans-Semibold"; + border-radius: 5px; + border: 1px solid #009FDB; + background-color: #009FDB; + width: 120px; + height: 36px; + color: #FFFFFF; + font-size: 13px; + line-height: 30px; + text-align: center; + padding: 4px 12px !important; +} diff --git a/vid-app-common/src/main/webapp/app/vid/styles/modal-create-new.css b/vid-app-common/src/main/webapp/app/vid/styles/modal-create-new.css new file mode 100644 index 000000000..1a293c049 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/modal-create-new.css @@ -0,0 +1,196 @@ +.modal-dialog { + width: 587px; + border-radius: 8px; +} + +.modal-content { + width: 587px; + border-radius: 8px; + background-color: #ffffff; + font-family: "OpenSans-Regular"; +} + +.modal-content .modal-body { + padding: 15px 35px 5px 35px; +} + +.modal-body .connect-error, +.modal-body .icon-alert.error { + font-family: OpenSans-Regular !important; + color: #CF2A2A; + font-size: 14px; +} + +.modal-body .icon-alert:before { + color: #CF2A2A; + cursor: default; + font-family: 'icomoon' !important; + padding-right: 5px; +} + +.modal-header { + border: none!important; + padding: 15px 35px 0px 35px!important; +} + +.modal-header h3 { + font-family: "OpenSans-Regular"; + color: #191919; + font-size: 22px; + font-weight: 300; + line-height: 16px; + padding-bottom: 20px; + border-bottom: 3px solid #009fdb; + +} + +.modal-close { + margin: -40px 5px 0 0; + color: #5a5a5a; + font-size: 20px; + cursor: pointer; +} + +.form-group .control-label { + font-family: OpenSans-Semibold; + font-size: 12px; + color: #191919; +} + +select { + background: url(../images/chevron.png) no-repeat 98% 10px !important; +} + +input::placeholder { + text-align: left; + font-family: OpenSans-Regular; + font-size: 14px; + color: #a9a9a9; +} + +.form-group .connect-error { + border: 1.5px solid #CF2A2A; +} + +.form-group .grayedOut { + font-family: OpenSans-Regular; + font-size: 14px; + color: #a9a9a9; + opacity: 0.54; +} + +.form-group .grayedOut option { + font-family: OpenSans-Regular; + font-size: 14px; + color: #555; + opacity: 1; +} + +button.dropdown-toggle { + text-align: left; +} + +button[disabled].dropdown-toggle { + opacity: 1; + cursor: not-allowed; + background-color: #eee; + border: 1px solid #aaa; + color: #a0a0a0; +} + +multiselect[disabled] { + cursor: not-allowed; +} + +a.item-unselected:before { + font-family: "icomoon"!important; + content: "\e90c"; + color: #4ca90c; +} + +.form-create .modal-footer { + margin-top: 0; +} + +.form-create .modal-footer .btn, +.form-create .modal-footer .btn:hover { + font-family: "OpenSans-Semibold"; + border-radius: 5px; + border: 1px solid #009FDB; + font-size: 13px; + line-height: 30px; + text-align: center; + padding: 4px 12px !important; + width: 120px; + height: 36px; +} + +.form-create .modal-footer .btn-white, +.form-create .modal-footer .btn-white:hover { + background-color: #FFFFFF; + color: #009FDB; +} + +.form-create .modal-footer .btn-primary, +.form-create .modal-footer .btn-primary:hover{ + background-color: #009FDB; + color: #FFFFFF; +} + +.vnf-versions-container .table { + position: relative; + background-color: #f8f8f8; + background-clip: padding-box; + border-radius: 6px; + outline: 0; +} + +.file-wrapper { + display: flex; +} + +.file-input { + display: inline-block !important; + width: 0.1px; +} + +.file-input-label { + width: 389px; + height: 37px; + background: #FFFFFF; + border: 1px solid #D2D2D2; + border-radius: 2px; + display: inline-block; + line-height: 37px; + font-weight: normal !important; + padding-left: 12px; + border-bottom-right-radius: 0; + border-top-right-radius: 0; + flex: 1; +} + +.vnf-versions-name { + padding-top: 6px; + font-family: "OpenSans-Regular"; + position: absolute; +} + +.vnf-versions-select-as-text { + font-family: "OpenSans-Regular"; + appearance: none; + -webkit-appearance: none; + -moz-appearance: none; + border: none; + overflow:hidden; + background-color: #f8f8f8; + height: 31px; +} + +.vnf-files-select { + z-index: 999; + opacity: 0.0; + position: absolute; + width: 23%; + cursor: pointer; + height:100%; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/modals.css b/vid-app-common/src/main/webapp/app/vid/styles/modals.css new file mode 100644 index 000000000..edc89b968 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/modals.css @@ -0,0 +1,52 @@ +@font-face { + font-family: OpenSans-Light; + src: url("fonts/OpenSans/OpenSans-Light.ttf") format('truetype'); +} +@font-face { + font-family: OpenSans-Regular; + src: url("fonts/OpenSans/OpenSans-Regular.ttf") format('truetype'); +} +@font-face { + font-family: OpenSans-Semibold; + src: url("fonts/OpenSans/OpenSans-Semibold.ttf") format('truetype'); +} + +.modal-header * { + font-family: OpenSans-Light; +} +.modal-body * { + font-family: OpenSans-Regular; +} +.modal-footer * { + font-family: OpenSans-Semibold; +} + +.modal-header { + border-bottom: 3px solid; + margin: auto; + width: 95%; + padding: 10px 0; + font-size: 22px; +} +.modal-header #cancel { + cursor: pointer; +} +.modal-title { + float: left; +} +.modal-content { + font-size: 15px; + border-radius: 0; + color: #191919; +} +.modal-footer { + background-color: #F8F8F8; + height: 60px; +} +.modal-footer .btn { + color: #FFF; + background-color: #009FDB; + border-color: #009FDB; + margin-right: 0; + font-size: 13px; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/networkNode.css b/vid-app-common/src/main/webapp/app/vid/styles/networkNode.css new file mode 100644 index 000000000..74fa9fcbe --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/networkNode.css @@ -0,0 +1,271 @@ +@font-face { + font-family: OpenSans-Bold; + src: url("fonts/OpenSans/OpenSans-Bold.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-BoldItlaic; + src: url("fonts/OpenSans/OpenSans-BoldItalic.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-ExtraBold; + src: url("fonts/OpenSans/OpenSans-ExtraBold.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-ExtraBoldItalic; + src: url("fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-Italic; + src: url("fonts/OpenSans/OpenSans-Italic.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-Light; + src: url("fonts/OpenSans/OpenSans-Light.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-LightItalic; + src: url("fonts/OpenSans/OpenSans-LightItalic.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-Regular; + src: url("fonts/OpenSans/OpenSans-Regular.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-Semibold; + src: url("fonts/OpenSans/OpenSans-Semibold.ttf") format('truetype'); +} + +@font-face { + font-family: OpenSans-SemiboldItalic; + src: url("fonts/OpenSans/OpenSans-SemiboldItalic.ttf") format('truetype'); +} + +.templatebody{ + background-color: white !important; +} +.network-wrapper-config * { + font-family: OpenSans-Regular, sans-serif; +} +.body-content-jsp { + margin-top: 35px; + margin-left: 201px; + margin-right: 0px; + background-color: white; +} +.temporary-solution { + height: 0px; +} +.sprite { + background: url('../images/sprite.png') no-repeat; + display: inline-block; +} +.modal-x { + background-position: -198px -315px; + width: 10px; + height: 10px; +} +.modal-x:hover{ + background-position: -198px -338px; +} +.sprite.checkbox { + background-position: -218px -335px; + width: 14px; + height: 14px; +} +.sprite.checkbox-checked { + background-position: -218px -311px; +} +.sprite.checkbox-disabled { + background-position: -218px -359px; +} +button { + border-radius: 2px; + font-size: 14px; + line-height: 28px; + height: 30px; +} +button.blue { + border: #0091c8 1px solid; + background-color: #009fdb; + color: white; +} +button.blue:hover { + background-color: #1ec2ff; + border-color: #0091c8; +} +button.blue:active { + background-color: #0091c7; + border-color: #006186; +} +button.blue[disabled] { + background-color: rgba(5, 104, 174, 0.3); + border-color: rgba(4, 113, 168, 0.3); +} +button.grey { + color: #009FDB; + background-color: #ffffff; + border: 1px solid #009FDB; +} +button.grey:hover { + background-color: #f8f8f8; + border-color: #009fdb; +} +button.grey:active { + background-color: #d8d8d8; + border-color: #5a5a5a; +} +button.grey[disabled] { + background-color: #f8f8f8; + border-color: #d8d8d8; + color: #cdcdcd; +} +button.white { + border: #009fdb 1px solid; + background-color: white; + color: #009fdb; +} +input[type=checkbox] { + display: none; +} +input[type=checkbox] + label { + position: relative; + padding-left: 2px; + text-indent: 19px; + line-height: 15px; +} +input[type=checkbox] + label::after { + background: url('../images/sprite.png') no-repeat; + display: inline-block; + background-position: -218px -335px; + width: 14px; + height: 14px; + padding-left: 21px; + margin-right: 25px; + line-height: 15px; + color: #5a5a5a; + content: ''; + position: absolute; + left: 0; + top: 0; +} +input[type=checkbox] + label::after.checkbox { + background-position: -218px -335px; + width: 14px; + height: 14px; +} +input[type=checkbox] + label::after.checkbox-checked { + background-position: -218px -311px; +} +input[type=checkbox] + label::after.checkbox-disabled { + background-position: -218px -359px; +} +input[type=checkbox]:checked + label::after { + background: url('../images/sprite.png') no-repeat; + display: inline-block; + background-position: -218px -311px; +} +input[type=checkbox]:checked + label::after.checkbox { + background-position: -218px -335px; + width: 14px; + height: 14px; +} +input[type=checkbox]:checked + label::after.checkbox-checked { + background-position: -218px -311px; +} +input[type=checkbox]:checked + label::after.checkbox-disabled { + background-position: -218px -359px; +} +input[type=checkbox]:disabled + label::after { + background: url('../images/sprite.png') no-repeat; + display: inline-block; + background-position: -218px -359px; +} +input[type=checkbox]:disabled + label::after.checkbox { + background-position: -218px -335px; + width: 14px; + height: 14px; +} +input[type=checkbox]:disabled + label::after.checkbox-checked { + background-position: -218px -311px; +} +input[type=checkbox]:disabled + label::after.checkbox-disabled { + background-position: -218px -359px; +} +.network-wrapper-config { + width: 100%; +} +.network-wrapper-config .head { + line-height: 59px; + height: 59px; + display: flex; + background-color: #F8F8F8; + border-bottom: 1px solid #D8D8D8; +} +.network-wrapper-config .head .title { + font-size: 18px; + margin-left: 56px; + color: #5A5A5A; +} +.network-wrapper-config .head .btn-wrapper { + flex: 1; + text-align: right; + margin-right: 15px; +} +.network-wrapper-config .head .btn-wrapper button { + width: 120px; +} +.network-wrapper-config .head .btn-wrapper button.delete-btn{ + margin-left: 13px; +} +.network-wrapper-config .content-wrapper { + display: flex; +} +.network-wrapper-config .content-wrapper .sidebar-right { + width: 25%; + min-width: 400px; + background-color: #F8F8F8; +} +.network-wrapper-config .content-wrapper .content { + width: 75%; + margin-top: 48px; +} +.network-wrapper-config .content-wrapper .content .form-wrapper { + width: 640px; + margin: 0 auto; +} +.network-wrapper-config span.error { + color: #cf2a2a; +} +.network-wrapper-config .content-wrapper .content .form-wrapper .instance-field .ng-invalid-pattern{ + border-color: #cf2a2a; + color: #cf2a2a; +} +.network-wrapper-config .content-wrapper .content .form-wrapper .instance-field { + margin-bottom: 25px; +} +.network-wrapper-config .content-wrapper .content .form-wrapper .instance-field label{ + color: #191919; + font-size: 13px; +} + +.network-wrapper-config .content-wrapper .content .form-wrapper .instance-field input, +.network-wrapper-config .content-wrapper .content .form-wrapper .instance-field select{ + border-color: #D2D2D2; +} + +.network-wrapper-config .content-wrapper .content .form-wrapper .instance-field.lcpRegionText, +.network-wrapper-config .content-wrapper .content .form-wrapper .instance-field.productFamily{ + display: none; +} + +.sidebar-right service-metadata .metadata-content{ + padding-bottom: 20px; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/pnfSearchAssociation.css b/vid-app-common/src/main/webapp/app/vid/styles/pnfSearchAssociation.css new file mode 100644 index 000000000..5cf16d83c --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/pnfSearchAssociation.css @@ -0,0 +1,82 @@ +@font-face { + font-family: 'icomoon'; + src: url('fonts/icomoon.eot?4cilop'); + src: url('fonts/icomoon.eot?4cilop#iefix') format('embedded-opentype'), + url('fonts/icomoon.ttf?4cilop') format('truetype'), + url('fonts/icomoon.woff?4cilop') format('woff'), + url('fonts/icomoon.svg?4cilop#icomoon') format('svg'); + font-weight: normal; + font-style: normal; +} + +.pnf-search-association [class^="icon-"],.pnf-search-association [class*=" icon-"] { + /* use !important to prevent issues with browser extensions that change fonts */ + font-family: 'icomoon' !important; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.search-input{ + width:40px; + margin-left: -30px; + z-index: 2; + cursor: pointer; + display: inline-block; + position: absolute; + line-height: 40px; +} +.content-wrapper{ + margin-left: 70px; + font-family: OpenSans-Semibold; + } +.content-wrapper .content{ + margin-top: 47px; +} +.input-wrapper{ + margin-top: 6px; +} +input[type=search]{ + /*border: none;*/ + width: 415px; + height: 40px; + border: 1px solid #D2D2D2; + border-radius: 2px; +} +input[type=search]:before { +/* content: "\e90d"; + color: #00aeef; + font-size: 50px; + cursor: pointer; + margin-left: 350px*/ +} +.error-msg{ + color: red; +} +.bold{ + font-family: OpenSans-Semibold; +} +.margin-search{ + margin-top: 37px; +} +.result-content span{ + font-family: OpenSans-Semibold; +} +.result-content div{ + margin-bottom: 24px; + margin-top: 3px; +} +.search2-icon:before { + font-family: 'icomoon'; + content: "\e90d"; + color: #009FDB; + font-size: 17px; + cursor: pointer; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/search.css b/vid-app-common/src/main/webapp/app/vid/styles/search.css new file mode 100644 index 000000000..8ab5ea8c0 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/search.css @@ -0,0 +1,37 @@ +.search-container { + display: flex; + background: #FFFFFF; + border: 1px solid #D2D2D2; + border-radius: 2px; + width: 500px; +} +.search-container .search-input, +.search-container .search-input:focus, +.search-container .search-input:hover{ + border: none; + padding: 10px; + display: inline-block; + width: 458px; + font-style: italic; +} + +.search-container .search-input::placeholder { + text-align: left; +} + +.search-container .search-icon { + display: inline-block; + margin: auto; + width: 16px; + height: 16px; +} + +.search-container .search-icon svg path { + fill: #5A5A5A; +} + +.search-container .search-icon:hover path { + fill: #009FDB; +} + + diff --git a/vid-app-common/src/main/webapp/app/vid/styles/serviceMetadata.css b/vid-app-common/src/main/webapp/app/vid/styles/serviceMetadata.css new file mode 100644 index 000000000..c54b6d4c9 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/serviceMetadata.css @@ -0,0 +1,18 @@ +service-metadata { + display: block; +} +service-metadata .header-title { + text-transform: uppercase; + font-size: 16px; + color: #191919; + background: #EAEAEA; + line-height: 40px; + padding-left: 20px; +} +service-metadata .metadata-content { + padding-left: 20px; +} +service-metadata .field { + margin-top: 15px; + font-size: 13px; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/serviceModels.css b/vid-app-common/src/main/webapp/app/vid/styles/serviceModels.css index 0a642993e..a8dddb6a4 100755 --- a/vid-app-common/src/main/webapp/app/vid/styles/serviceModels.css +++ b/vid-app-common/src/main/webapp/app/vid/styles/serviceModels.css @@ -67,4 +67,8 @@ div[ng-controller=ServiceModelController] .progHidden { div[ng-controller=ServiceModelController] .progVisible {
visibility: visible;
+}
+
+.previous-versions-button {
+ width: 113px;
}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/serviceProxyConfig.css b/vid-app-common/src/main/webapp/app/vid/styles/serviceProxyConfig.css new file mode 100644 index 000000000..d1ca37bad --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/serviceProxyConfig.css @@ -0,0 +1,154 @@ +.diagram { + background: #F8F8F8; + padding: 48px 20px; + margin: 0px 48px; + display: flex; + flex-direction: column; +} +.diagram .diagram-img { + margin: 0 auto; + display: flex; + width: 90%; +} +.circle { + float: left; + border: 3px solid; + width: 140px; + height: 140px; + border-radius: 50%; + flex: 0 0 140px; +} +.circle .text { + float: left; + width: 100%; + padding-top: 37%; + text-align: center; + font-size: 14px; + color: #191919; + line-height: 17px; +} +.config-circle { + border-color: #9063CD; + background-color: rgba(144,99,205,0.50); +} +.config-circle .line { + width: 3px; + background-color: #8f61cc; + margin: auto; + height: 100%; + display: block; +} +.service-circle { + border-color: #71C5E8; +} +.service-circle:hover { + background: rgba(113, 197, 232, 0.50); +} +.dotted-line { + border-bottom: 2px dashed #5a5a5a; + width: 200px; + float: left; + height: 70px; + flex: 1; +} +.dotted-line.unchecked .conn-circle { + width: 13px; + height: 13px; + margin: 54px auto; + display: block; + border: 15px solid #F8F8F8; +} +.dotted-line.unchecked .conn-circle:before { + content: ""; + float: left; + background: #767676; + width: 13px; + height: 13px; + border-radius: 50%; + position: relative; + top: -6px; + right: 6px; +} + +.valid-large { + background-position: -240px -154px; + width: 35px; + height: 35px; +} +.dotted-line.checked .conn-circle { + margin: 52px auto; + display: block; +} +.element-name { + color: #191919; + font-size: 14px; + width: 100%; + text-align: center; +} +.element-name.service { + flex: 50%; +} +.element-name-wrapper{ + display: flex; + margin-top: 30px; +} +.element-name-wrapper .element-name .label-txt { + color: #191919; + font-size: 14px; +} +.element-name-wrapper .element-name.service .label-txt:hover { + color: #009FDB; + cursor: pointer; + text-align: center; +} +.element-name-wrapper .element-name .info{ + background: #009FDB; + border-radius: 50%; + height: 16px; + width: 16px; + color: white; + line-height: 15px; + padding-top: 1px; + margin-left: 10px; + margin-top: 2px; + cursor: pointer; + display: inline-block; +} +.service-wrapper-config .bottom { + display: flex; + height: 450px; + margin: 40px 48px; +} +.service-wrapper-config .wrapper-list { + flex: 50%; + height: 100%; +} +.service-wrapper-config .wrapper-list:first-child { + border-right: 1px dashed #D8D8D8; + margin-right: 50px; + padding-right: 50px; +} +.service-wrapper-config .title-txt { + color: #191919; + font-size: 13px; + margin-bottom: 10px; +} + +.service-wrapper-config .select-vnf-title { + margin-top: 20px; +} + +.ng-hide-keep-block.ng-hide:not(.ng-hide-animate) { + display: block!important; + visibility: hidden; +} + +.service-wrapper-config select { + border-color: #D2D2D2; + background-position: 100% 4px; +} +.no-results { + margin-top: 10px; + text-align: center; + display: block; +}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/app/vid/styles/testEnvironments.css b/vid-app-common/src/main/webapp/app/vid/styles/testEnvironments.css new file mode 100644 index 000000000..4532111b9 --- /dev/null +++ b/vid-app-common/src/main/webapp/app/vid/styles/testEnvironments.css @@ -0,0 +1,215 @@ +.body-content-jsp { + margin-top: 35px; + min-height: 500px; + margin-left: 201px; + margin-right: 0px; + background-color: #f8f8f8; + display: flex; + flex-direction: column; +} + +.temporary-solution { + display: none; +} + +.body-content-jsp > div.ng-scope { + flex: 1; + display: flex; + flex-direction: column; +} + +.body-content-jsp > div.ng-scope > div { + flex: 1; + display: flex; + flex-direction: column; +} + +.test-environments { + background: white; + font-family: "OpenSans-Regular"; + color: #797979; + flex:1; + display: flex; + flex-direction: column; +} + +.test-environments .header { + height: 70px; + padding: 15px; + background: #F8F8F8; +} +.test-environments .header .header-left { + display: inline-flex; + align-items: center; +} + +.test-environments .headline { + color: #5A5A5A; + font-size: 22px; + text-align: left; +} + +.test-environments .separator { + height: 40px; + border-left: 1px solid #D2D2D2; + margin: 0px 20px; +} + +.test-environments .header .button-container { + display: flex; + align-items: center; + cursor: pointer; +} + +.test-environments .error-messages { + margin: auto; +} + +.test-environments .error-messages .no-data svg path { + fill: #D2D2D2; +} + +.test-environments .error-messages .no-data .secondaryMessage, +.test-environments .error-messages .connect-error .secondaryMessage { + color: #D2D2D2; +} + +.test-environments .error-messages .connect-error svg path { + fill: red; +} + +.test-environments .error-messages .connect-error .primaryMessage { + color: red; +} + +.test-environments .button-container svg { + fill: #009FDB; +} + +.test-environments .button-container .button-text{ + color: #5A5A5A; + padding-left: 10px; +} + +.test-environments .search-container { + float: right; + margin-right: 40px; +} + +.test-environments .refresh:focus { + outline: none; +} + +.test-environments .refresh { + float: right; + width: 20px; + height: 20px; + border: none; + background: none; + padding: 0; + margin-bottom: 15px; +} + +.test-environments .refresh svg{ + height: 20px; + width: 20px; +} + +.test-environments .refresh svg path { + fill: #5A5A5A; +} + +.test-environments .refresh:hover path { + fill: #009FDB; +} + +.test-environments .error { + text-align: center; + color: red; +} + +.test-environments .environments-table { + margin: 40px; +} + +.test-environments .environments-table .tablesorter-default { + cursor: default; +} + +.test-environments .environments-table .tablesorter-default thead .tablesorter-header .tablesorter-header-inner { + background-image: none; + background-size: 8px; +} + +.test-environments .environments-table .tablesorter-default thead .tablesorter-headerAsc .tablesorter-header-inner { + background-image: url('../images/sort_down.svg'); +} + +.test-environments .environments-table .tablesorter-default thead .tablesorter-headerDesc .tablesorter-header-inner { + background-image: url('../images/sort_up.svg'); +} + +.test-environments .environments-table .thead-default tr th { + background: #EAEAEA; + color: #191919; + font-size: 13px; + font-weight: 600; + vertical-align: middle; +} + +.test-environments .environments-table .thead-default tr th .tablesorter-header-inner { + padding-right: 10px; +} + +.test-environments .environments-table .thead-default tr th span { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.test-environments .environments-table .thead-default tr th:first-child { + min-width: 150px; +} + +/*.test-environments .environments-table .thead-default tr th:*/ + +.test-environments .environments-table .tablesorter-header-inner { + padding: 0; + width: 100%; +} + +.test-environments .environments-table .tablesorter-default tbody td { + background: white; + font-size: 14px; + padding: 12px 8px; +} + +.test-environments .environments-table .tablesorter-default tbody tr:focus td { + background: #E6F6FB; +} + +.test-environments .environments-table .tablesorter-default tbody tr:focus { + border: none; + outline: none; +} + +.attach-button { + margin-left: 35px; +} + +.envActionBtn { + width: 94px; + height: 30px; +} + +#environments-table { + margin-top: 0; +} + +.test-environments-table-container { + overflow: auto; + max-height: 50vh; + width: 98%; + margin-left: 15px; + padding-left: 0; +} diff --git a/vid-app-common/src/main/webapp/app/vid/styles/vidTree.css b/vid-app-common/src/main/webapp/app/vid/styles/vidTree.css index 1aec73d81..7904b3695 100755 --- a/vid-app-common/src/main/webapp/app/vid/styles/vidTree.css +++ b/vid-app-common/src/main/webapp/app/vid/styles/vidTree.css @@ -64,4 +64,8 @@ tr.angular-ui-tree-empty { -webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
+}
+
+.pull-right .dropdown-menu {
+ background-color: transparent;
}
\ No newline at end of file diff --git a/vid-app-common/src/main/webapp/test.jsp b/vid-app-common/src/main/webapp/test.jsp index 1b0c14a42..e13cd4b59 100755 --- a/vid-app-common/src/main/webapp/test.jsp +++ b/vid-app-common/src/main/webapp/test.jsp @@ -3,16 +3,16 @@ <!-- This is a temporary test page. It will be removed from source control -->
<body>
<%@ page import="org.openecomp.portalsdk.core.util.SystemProperties" %>
-<%@ page import="org.openecomp.vid.controller.MsoController" %>
-<%@ page import="org.openecomp.vid.mso.rest.Request" %>
-<%@ page import="org.openecomp.vid.mso.rest.RequestDetails" %>
-<%@ page import="org.openecomp.vid.mso.rest.RelatedModel" %>
-<%@ page import="org.openecomp.vid.domain.mso.SubscriberInfo" %>
-<%@ page import="org.openecomp.vid.domain.mso.Response" %>
-<%@ page import="org.openecomp.vid.domain.mso.ModelInfo" %>
-<%@ page import="org.openecomp.vid.domain.mso.RequestInfo" %>
-<%@ page import="org.openecomp.vid.domain.mso.CloudConfiguration" %>
-<%@ page import="org.openecomp.vid.mso.MsoProperties" %>
+<%@ page import="org.onap.vid.controller.MsoController" %>
+<%@ page import="org.onap.vid.mso.rest.Request" %>
+<%@ page import="org.onap.vid.mso.rest.RequestDetails" %>
+<%@ page import="org.onap.vid.mso.rest.RelatedModel" %>
+<%@ page import="org.onap.vid.domain.mso.SubscriberInfo" %>
+<%@ page import="org.onap.vid.domain.mso.Response" %>
+<%@ page import="org.onap.vid.domain.mso.ModelInfo" %>
+<%@ page import="org.onap.vid.domain.mso.RequestInfo" %>
+<%@ page import="org.onap.vid.domain.mso.CloudConfiguration" %>
+<%@ page import="org.onap.vid.mso.MsoProperties" %>
<%@ page import="java.net.URI" %>
<%@ page import="com.sun.jersey.api.client.ClientResponse" %>
<%
diff --git a/vid-app-common/src/test/java/org/openecomp/aai/util/JettyObfuscationConversionCommandLineUtilTest.java b/vid-app-common/src/test/java/org/onap/aai/util/JettyObfuscationConversionCommandLineUtilTest.java index f72a2825b..8e2e223af 100644 --- a/vid-app-common/src/test/java/org/openecomp/aai/util/JettyObfuscationConversionCommandLineUtilTest.java +++ b/vid-app-common/src/test/java/org/onap/aai/util/JettyObfuscationConversionCommandLineUtilTest.java @@ -1,6 +1,7 @@ -package org.openecomp.aai.util; +package org.onap.aai.util; import org.junit.Test; +import org.onap.vid.aai.util.JettyObfuscationConversionCommandLineUtil; public class JettyObfuscationConversionCommandLineUtilTest { diff --git a/vid-app-common/src/test/java/org/openecomp/aai/util/TestSuite.java b/vid-app-common/src/test/java/org/onap/aai/util/TestSuite.java index f7d57ad7c..b4faaa279 100644 --- a/vid-app-common/src/test/java/org/openecomp/aai/util/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/aai/util/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.aai.util; +package org.onap.aai.util; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/FirstClass.java b/vid-app-common/src/test/java/org/onap/ecomp/vid/selenium/FirstClass.java index ed06994aa..d0da08c58 100755..100644 --- a/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/FirstClass.java +++ b/vid-app-common/src/test/java/org/onap/ecomp/vid/selenium/FirstClass.java @@ -1,606 +1,606 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.ecomp.vid.selenium;
-
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.AfterMethod;
-import org.testng.annotations.AfterSuite;
-import org.testng.annotations.BeforeClass;
-import org.testng.annotations.BeforeMethod;
-import org.testng.annotations.BeforeSuite;
-import org.testng.annotations.BeforeTest;
-import org.testng.annotations.Test;
-
-
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-import org.openqa.selenium.firefox.FirefoxDriver;
-import org.openqa.selenium.ie.InternetExplorerDriver;
-import org.openqa.selenium.support.ui.Select;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.List;
-import java.util.Properties;
-import java.util.concurrent.TimeUnit;
-import org.apache.log4j.Logger;
-import org.testng.Assert;
-import org.testng.asserts.*;
-
-/**
- * The Class FirstClass.
- */
-public class FirstClass {
-
- /** The login button. */
- WebElement loginButton;
-
- /** The eg. */
- String eg;
-
- /** The login. */
- WebElement login;
-
- /** The pwd. */
- WebElement pwd;
-
- /** The log. */
- Logger log;
-
- /** The errormessage. */
- WebElement errormessage;
-
-
- /** The driver. */
- WebDriver driver=new FirefoxDriver();
-
-
-
- /** The config prop. */
- private final Properties configProp = new Properties();
-
-
- /**
- * Instantiates a new first class.
- */
- private FirstClass() {
- // TODO Auto-generated constructor stub
- //
- try{
- // InputStream input =this.getClass().getClassLoader().getResourceAsStream("objectmap.properties");
- //FileInputStream input1 = new FileInputStream("objectmap.properties");
-
- InputStream input =new FileInputStream("objectconfig.properties");
- System.out.println("Read all properties from file");
- configProp.load(input);
- System.out.println("Read all properties from file completed");
- }
- catch(IOException e) {
-
- e.printStackTrace();
- }
- }
-
-
- /*
-
-
- @BeforeClass
- public void setUp() {
- System.out.println("*******************");
- System.out.println("launching IE browser");
- System.setProperty("webdriver.ie.driver", driverPath+"IEDriverServer.exe");
- driver = new InternetExplorerDriver();
- driver.findElement(By.className());
- driver.manage().window().maximize();
-
-
- login = driver.findElement(By.xpath("//input[@class='fn-ebz-text ng-pristine ng-valid']"));
- pwd = driver.findElement(By.xpath("//input[@class='span3 ng-pristine ng-valid']"));
- loginButton = driver.findElement(By.id("loginBtn"));
- }
-
-
- */
- /**
- * Sets the up.
- */
- // TODO Auto-generated method stub
- @BeforeClass
- public void setUp()
- {
-
-
- //WebDriver driver=new FirefoxDriver();
-
- log = Logger.getLogger(FirstClass.class.getName());
-
-
-
- // Get url
- driver.get(configProp.getProperty("baseURL"));
- driver.manage().window().maximize();
-
-
- login = driver.findElement(By.xpath(configProp.getProperty("login")));
-
- pwd = driver.findElement(By.xpath(configProp.getProperty("pwd")));
- loginButton = driver.findElement(By.id(configProp.getProperty("loginButton")));
- }
-
-
- /**
- * Empty username password.
- */
- @Test(priority=1)
- public void emptyUsernamePassword()
- {
-
-
- //User Name and Password field is empty
- log.info("-----VID-11 TC-8----Username and password empty");
- loginButton.click();
- errormessage=driver.findElement(By.xpath("//*[@id='errorInfo']/span"));
- String errmsg= errormessage.getText();
- //System.out.println("Error message is"+errmsg);
- //String expected = "Invaild username or password, Please try again";
-
- //Assert.assertEquals(errmsg,expected);
-
- Boolean str = driver.getPageSource().contains("Invalid username or password, Please try again");
- System.out.println(driver.getPageSource().contains("Invalid username or password, Please try again"));
-
- if(str==true)
- {
- log.info("Error message validated");
- log.info("VID-11 TC-8 PASSED");
-
- }else
- log.error("Failed validation");
-
- }
-
-
-
- /**
- * Invalid user name.
- */
- @Test(priority=2)
- public void invalidUserName()
- {
-
- log.info("-----VID-11 TC-6----Invalid Username and Valid Password");
-
-
- login.sendKeys("xxx");
- pwd.sendKeys("abc123");
- loginButton.click();
- try {
- Thread.sleep(5000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- String errmsg= errormessage.getText();
- String expected = "Invalid username or password, Please try again";
- Assert.assertEquals(errmsg,expected);
- //Boolean str1 = driver.getPageSource().contains("Invalid username or password, Please try again");
- //System.out.print(str1);
-
- log.info("VID-11 TC-6 PASSED");
-
- }
-
-
- /**
- * Invalid password.
- */
- @Test(priority=3)
- public void invalidPassword()
- {
- log.info("-----VID-11 TC-7----Valid Username and Invalid Password");
- // Valid user name and Invalid password.
- login.clear();
- pwd.clear();
- login.sendKeys("testuser");
- pwd.sendKeys("xxx");
- loginButton.click();
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
-
- String errmsg= errormessage.getText();
- String expected = "Invalid username or password, Please try again";
- Assert.assertEquals(errmsg,expected);
-
- //Boolean str2 = driver.getPageSource().contains("Invaild username or password, Please try again");
- //System.out.print(str2);
-
- log.info("VID-11 TC-7 PASSED");
- }
-
-
- /**
- * Login successful.
- */
- @Test(priority=4)
- public void loginSuccessful()
- {
- log.info("-----VID-11 TC-1----Valid Username and Valid Password");
- //Login with valid user name and password.
- login.clear();
- login.sendKeys("su");
- pwd.clear();
- pwd.sendKeys("fusion");
-
-
- loginButton.click();
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
- try {
- Thread.sleep(6000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances"));
- log.info("VID-11 TC-1 PASSED");
-
- }
-
-
- /**
- * Verify home page elements left pane.
- */
- @Test(priority=5)
- public void verifyHomePageElementsLeftPane()
-
- {
-
-
- log.info("VID-10 TC 1 ");
- //VID Home
- log.info("VID 11 TC-2");
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[1]/a/span")).isDisplayed();
- //Create New Service Instance
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[2]/a/span")).isDisplayed();
-
- //Browse Service Type
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[3]/a/span")).isDisplayed();
- //View Log
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[4]/a/span")).isDisplayed();
-
- //Profile
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[5]/a/span")).isDisplayed();
- //Admin
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[6]/a/span")).isDisplayed();
- //Logout
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[7]/a/span")).isDisplayed();
-
- //Infrastructure Subscriber Name
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[1]/div/label")).isDisplayed();
- //Infrastructure Subscriber Name Select Drop down
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")).isDisplayed();
- //Infrastructure Service Type
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[1]/div/label")).isDisplayed();
- //Infrastructure Service Type Select Drop down
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select")).isDisplayed();
- //Submit button
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button")).isDisplayed();
-
- //Login Snippet Icon
- driver.findElement(By.xpath(".//*[@class='icon-user-small login-snippet-icon']")).isDisplayed();
-
-
- //String bodyText = driver.findElement(By.tagName("body")).getText();
- //Assert.assertTrue("Text not found!", bodyText.contains("Search Existing Service Instances"));
- //Assert.IsTrue(driver.getPageSource.Contains("Search Existing Service Instances"));
-
- log.info("VID-12 TC-1");
- Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances"));
- Assert.assertTrue(driver.getPageSource().contains("Please search by the Subscriber name or Service Type from below:"));
- log.info("VID-12 TC-1 PASSED");
- log.info("VID-10 TC 1 PASSED");
- log.info("VID-11 TC-2 PASSED");
- }
-
-
- /**
- * Disabled submit button.
- */
- @Test(priority=6)
- public void disabledSubmitButton()
- {
- log.info("VID-12 TC-13");
- //Assert submit button disabled.
- Assert.assertFalse(driver.findElement(By.xpath(configProp.getProperty("submitButton"))).isEnabled());
- log.info("VID-12 TC-13 PASSED");
-
- }
-
- /**
- * Default list box value.
- */
- @Test(priority=7)
- public void defaultListBoxValue()
- {
- log.info("VID-12 TC-2");
-
-
- //WebElement subscribername =driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"));
-
- Select oSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown"))));
- Select iSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown"))));
-
-
- WebElement ielement=iSelect.getFirstSelectedOption();
- WebElement oelement=oSelect.getFirstSelectedOption();
- String defaultsubscribername=oelement.getText();
- String defaultservicetype=ielement.getText();
-
- Assert.assertEquals(defaultsubscribername,"Select Subscriber Name");
- Assert.assertEquals(defaultservicetype,"Select Service Type");
-
-
-
-
- //Verify Select Subscriber Name isDisplayed.
- //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select/option[1]")).isSelected();
-
- //Verify Select Service Type isDisplayed.
- //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select/option[1]")).isSelected();
-
-
- log.info("VID-12 TC-2 PASSED");
-
- }
-
-
-
- /**
- * Select subscriber name drop down.
- *
- * @throws InterruptedException the interrupted exception
- */
- @Test(priority=8)
- public void selectSubscriberNameDropDown() throws InterruptedException
- {
- log.info("------------------VID-10 TC-2,VID-12 TC-11, VID-12 TC-9, VID 12 TC-10,VID-12 TC-6, VID 12 TC-5--------------------");
-
-
- driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")));
-
- driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown")));
- Thread.sleep(5000);
-
- //Infrastructure Subscriber Name
- Select oSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown"))));
-
- List <WebElement> elementCount = oSelect.getOptions();
- log.info("Select Element Count of Service Name");
- System.out.println(elementCount.size());
-
-
- //Verifying getInfrastructureSubscribersList
- log.info("VID-29 TC-1");
- Assert.assertTrue(elementCount.size()>0);
- log.info("VID-29 TC-1 PASSED");
-
- oSelect.selectByIndex(2);
- String selectedOption = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")))).getFirstSelectedOption().getText();
-
- System.out.println("Service Name selected is " +selectedOption);
- log.info("VID-10 TC-2 PASSED");
-
- //Submit button is clicked
- driver.findElement(By.xpath(configProp.getProperty("submitButton"))).click();
-
-
- //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed();
- //Assert.assertTrue(driver.getPageSource().contains("Selected Subscriber's Service Instance Details:"))
-
-
- //Verify whether the page header is displayed "Global Customer ID"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/thead/tr/th[2]/div")).isDisplayed();
- Assert.assertTrue(driver.getPageSource().contains("Global Customer ID"));
- Assert.assertTrue(driver.getPageSource().contains("Subscriber Name"));
- Assert.assertTrue(driver.getPageSource().contains("Service Type"));
- Assert.assertTrue(driver.getPageSource().contains("Service Instance ID"));
-
- log.info("VID-12 TC-5 PASSED");
- log.info("VID-12 TC-11 PASSED");
-
- WebElement serviceinstancetable =driver.findElement(By.xpath("//table[@class='tablesorter tablesorter-default ng-isolate-scope']"));
-
- List<WebElement> rows_table = serviceinstancetable.findElements(By.tagName("tr"));
- //To calculate no of rows In table.
- int rows_count = rows_table.size();
-
- //Loop will execute till the last row of table.
- for (int row=0; row<rows_count; row++){
- //To locate columns(cells) of that specific row.
- List<WebElement> Columns_row = rows_table.get(row).findElements(By.tagName("td"));
- //To calculate no of columns(cells) In that specific row.
- int columns_count = Columns_row.size();
- //System.out.println("Number of cells In Row "+row+" are "+columns_count);
-
- //Loop will execute till the last cell of that specific row.
- for (int column=0; column<columns_count; column++){
- //To retrieve text from that specific cell.
- String celtext = Columns_row.get(column).getText();
- //System.out.println("Cell Value Of row number "+row+" and column number "+column+" Is "+celtext);
-
-
-
- //log.info("Testing Get column and row value");
- List <WebElement> exx= rows_table.get(1).findElements(By.tagName("td"));
- eg=Columns_row.get(2).getText();
- // System.out.println("Cell value of row 1 and column 2 is" +eg);
- }
- }
-
-
-
-
- //Verify View/Edit isDisplayed and Click
-
- driver.findElement(By.xpath("//a[@alt='View/Edit']")).isDisplayed();
-
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/tbody/tr[1]/td[1]/div/a")).click();
-
- log.info("User clicked View/Edit");
-
- //Verify the Subscriber Name displayed.
- String header= driver.findElement(By.xpath("//h1[@class='heading1 ng-binding']")).getText();
- //System.out.println(header);
-
-
- if(header.contains(eg))
- {
- System.out.println("Header contains the subscriber name");
- }else
- System.out.println("Header does not contain the subscriber name");
-
-
-
- Assert.assertTrue(driver.getPageSource().contains("PerfTest Subscriber00020021"));
- log.info("VID-12 TC-6 PASSED");
-
-
-
- driver.navigate().back();
- //Cancel button isDisplayed
- driver.findElement(By.xpath("//button[@class='button button--small button--primary']")).isDisplayed();
- log.info("VID-12 TC-9 PASSED");
-
- //Cancel button is clicked
- driver.findElement(By.xpath("//button[@class='button button--small button--primary']")).click();
- log.info("Cancel button is clicked");
-
- //Verifying VID Home page is displayed
- Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances"));
- log.info("VID-12 TC-10 PASSED");
-
- }
-
-
- /**
- * Refresh subscriber name.
- */
- @Test(priority=9)
- public void refreshSubscriberName()
- {
- log.info("VID-10 TC-4");
-
-
- driver.findElement(By.xpath(configProp.getProperty("refreshButtonSubscriberName"))).isDisplayed();
-
- log.info("VID-10 TC-4 PASSED");
-
-
- }
-
-
- /**
- * Select subscriber type drop down.
- *
- * @throws InterruptedException the interrupted exception
- */
- @Test(priority=9)
- public void selectSubscriberTypeDropDown() throws InterruptedException
- {
- Thread.sleep(5000);
- log.info("------------------VID-10 TC-3, VID-12 TC-12,--------------------");
- //Infrastructure Subscriber Type
- Select iSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown"))));
-
- List <WebElement> ielementCount = iSelect.getOptions();
- log.info("Select Element Count of Service type");
- System.out.println(ielementCount.size());
- iSelect.selectByIndex(1);
-
- log.info("VID-10 TC-3 PASSED");
-
-
- //Submit button is clicked
- driver.findElement(By.xpath(configProp.getProperty("submitButton"))).click();
-
- //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed();
- //Assert.assertTrue(driver.getPageSource().contains("Selected Subscriber's Service Instance Details:"))
- log.info("Page Header: Selected Subscriber's Service Instance Details");
-
-
- //Verify whether the page header is displayed "Global Customer ID"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/thead/tr/th[2]/div")).isDisplayed();
-
- //Assert.assertTrue(driver.getPageSource().contains("Global Customer ID"));
- log.info("Table is displayed");
-
- log.info("VID-12 TC-12 PASSED");
-
- }
-
-
-
- /**
- * Logout under profile.
- */
- @Test(priority=10)
- public void logoutUnderProfile()
- {
-
- log.info("-----------VID-11 TC-5---------------------");
- //driver.findElement(By.partialLinkText("Click here to login")).click();
- //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
-
- driver.findElement(By.xpath(".//*[@class='icon-user-small login-snippet-icon']")).click();
- driver.findElement(By.xpath(".//*[@id='reg-logout-div']/a")).click();
- //Validate that the user has logged out of VID. Displays "Portal"
- Assert.assertTrue(driver.getPageSource().contains("Portal"));
-
- log.info("VID-11 TC-5 PASSED");
-
- }
-
-
-
- /**
- * Tear down.
- */
- @AfterClass
- public void tearDown()
- {
- driver.close();
-
- }
-
-
-
- }
-
-
-
-
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.ecomp.vid.selenium; + +import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.AfterSuite; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.BeforeSuite; +import org.testng.annotations.BeforeTest; +import org.testng.annotations.Test; + + +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.ie.InternetExplorerDriver; +import org.openqa.selenium.support.ui.Select; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.List; +import java.util.Properties; +import java.util.concurrent.TimeUnit; +import org.apache.log4j.Logger; +import org.testng.Assert; +import org.testng.asserts.*; + +/** + * The Class FirstClass. + */ +public class FirstClass { + + /** The login button. */ + WebElement loginButton; + + /** The eg. */ + String eg; + + /** The login. */ + WebElement login; + + /** The pwd. */ + WebElement pwd; + + /** The log. */ + Logger log; + + /** The errormessage. */ + WebElement errormessage; + + + /** The driver. */ + WebDriver driver=new FirefoxDriver(); + + + + /** The config prop. */ + private final Properties configProp = new Properties(); + + + /** + * Instantiates a new first class. + */ + private FirstClass() { + // TODO Auto-generated constructor stub + // + try{ + // InputStream input =this.getClass().getClassLoader().getResourceAsStream("objectmap.properties"); + //FileInputStream input1 = new FileInputStream("objectmap.properties"); + + InputStream input =new FileInputStream("objectconfig.properties"); + System.out.println("Read all properties from file"); + configProp.load(input); + System.out.println("Read all properties from file completed"); + } + catch(IOException e) { + + e.printStackTrace(); + } + } + + + /* + + + @BeforeClass + public void setUp() { + System.out.println("*******************"); + System.out.println("launching IE browser"); + System.setProperty("webdriver.ie.driver", driverPath+"IEDriverServer.exe"); + driver = new InternetExplorerDriver(); + driver.findElement(By.className()); + driver.manage().window().maximize(); + + + login = driver.findElement(By.xpath("//input[@class='fn-ebz-text ng-pristine ng-valid']")); + pwd = driver.findElement(By.xpath("//input[@class='span3 ng-pristine ng-valid']")); + loginButton = driver.findElement(By.id("loginBtn")); + } + + + */ + /** + * Sets the up. + */ + // TODO Auto-generated method stub + @BeforeClass + public void setUp() + { + + + //WebDriver driver=new FirefoxDriver(); + + log = Logger.getLogger(FirstClass.class.getName()); + + + + // Get url + driver.get(configProp.getProperty("baseURL")); + driver.manage().window().maximize(); + + + login = driver.findElement(By.xpath(configProp.getProperty("login"))); + + pwd = driver.findElement(By.xpath(configProp.getProperty("pwd"))); + loginButton = driver.findElement(By.id(configProp.getProperty("loginButton"))); + } + + + /** + * Empty username password. + */ + @Test(priority=1) + public void emptyUsernamePassword() + { + + + //User Name and Password field is empty + log.info("-----VID-11 TC-8----Username and password empty"); + loginButton.click(); + errormessage=driver.findElement(By.xpath("//*[@id='errorInfo']/span")); + String errmsg= errormessage.getText(); + //System.out.println("Error message is"+errmsg); + //String expected = "Invaild username or password, Please try again"; + + //Assert.assertEquals(errmsg,expected); + + Boolean str = driver.getPageSource().contains("Invalid username or password, Please try again"); + System.out.println(driver.getPageSource().contains("Invalid username or password, Please try again")); + + if(str==true) + { + log.info("Error message validated"); + log.info("VID-11 TC-8 PASSED"); + + }else + log.error("Failed validation"); + + } + + + + /** + * Invalid user name. + */ + @Test(priority=2) + public void invalidUserName() + { + + log.info("-----VID-11 TC-6----Invalid Username and Valid Password"); + + + login.sendKeys("xxx"); + pwd.sendKeys("abc123"); + loginButton.click(); + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + String errmsg= errormessage.getText(); + String expected = "Invalid username or password, Please try again"; + Assert.assertEquals(errmsg,expected); + //Boolean str1 = driver.getPageSource().contains("Invalid username or password, Please try again"); + //System.out.print(str1); + + log.info("VID-11 TC-6 PASSED"); + + } + + + /** + * Invalid password. + */ + @Test(priority=3) + public void invalidPassword() + { + log.info("-----VID-11 TC-7----Valid Username and Invalid Password"); + // Valid user name and Invalid password. + login.clear(); + pwd.clear(); + login.sendKeys("testuser"); + pwd.sendKeys("xxx"); + loginButton.click(); + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + + String errmsg= errormessage.getText(); + String expected = "Invalid username or password, Please try again"; + Assert.assertEquals(errmsg,expected); + + //Boolean str2 = driver.getPageSource().contains("Invaild username or password, Please try again"); + //System.out.print(str2); + + log.info("VID-11 TC-7 PASSED"); + } + + + /** + * Login successful. + */ + @Test(priority=4) + public void loginSuccessful() + { + log.info("-----VID-11 TC-1----Valid Username and Valid Password"); + //Login with valid user name and password. + login.clear(); + login.sendKeys("su"); + pwd.clear(); + pwd.sendKeys("fusion"); + + + loginButton.click(); + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + try { + Thread.sleep(6000); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances")); + log.info("VID-11 TC-1 PASSED"); + + } + + + /** + * Verify home page elements left pane. + */ + @Test(priority=5) + public void verifyHomePageElementsLeftPane() + + { + + + log.info("VID-10 TC 1 "); + //VID Home + log.info("VID 11 TC-2"); + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[1]/a/span")).isDisplayed(); + //Create New Service Instance + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[2]/a/span")).isDisplayed(); + + //Browse Service Type + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[3]/a/span")).isDisplayed(); + //View Log + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[4]/a/span")).isDisplayed(); + + //Profile + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[5]/a/span")).isDisplayed(); + //Admin + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[6]/a/span")).isDisplayed(); + //Logout + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[7]/a/span")).isDisplayed(); + + //Infrastructure Subscriber Name + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[1]/div/label")).isDisplayed(); + //Infrastructure Subscriber Name Select Drop down + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")).isDisplayed(); + //Infrastructure Service Type + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[1]/div/label")).isDisplayed(); + //Infrastructure Service Type Select Drop down + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select")).isDisplayed(); + //Submit button + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button")).isDisplayed(); + + //Login Snippet Icon + driver.findElement(By.xpath(".//*[@class='icon-user-small login-snippet-icon']")).isDisplayed(); + + + //String bodyText = driver.findElement(By.tagName("body")).getText(); + //Assert.assertTrue("Text not found!", bodyText.contains("Search Existing Service Instances")); + //Assert.IsTrue(driver.getPageSource.Contains("Search Existing Service Instances")); + + log.info("VID-12 TC-1"); + Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances")); + Assert.assertTrue(driver.getPageSource().contains("Please search by the Subscriber name or Service Type from below:")); + log.info("VID-12 TC-1 PASSED"); + log.info("VID-10 TC 1 PASSED"); + log.info("VID-11 TC-2 PASSED"); + } + + + /** + * Disabled submit button. + */ + @Test(priority=6) + public void disabledSubmitButton() + { + log.info("VID-12 TC-13"); + //Assert submit button disabled. + Assert.assertFalse(driver.findElement(By.xpath(configProp.getProperty("submitButton"))).isEnabled()); + log.info("VID-12 TC-13 PASSED"); + + } + + /** + * Default list box value. + */ + @Test(priority=7) + public void defaultListBoxValue() + { + log.info("VID-12 TC-2"); + + + //WebElement subscribername =driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")); + + Select oSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")))); + Select iSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown")))); + + + WebElement ielement=iSelect.getFirstSelectedOption(); + WebElement oelement=oSelect.getFirstSelectedOption(); + String defaultsubscribername=oelement.getText(); + String defaultservicetype=ielement.getText(); + + Assert.assertEquals(defaultsubscribername,"Select Subscriber Name"); + Assert.assertEquals(defaultservicetype,"Select Service Type"); + + + + + //Verify Select Subscriber Name isDisplayed. + //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select/option[1]")).isSelected(); + + //Verify Select Service Type isDisplayed. + //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select/option[1]")).isSelected(); + + + log.info("VID-12 TC-2 PASSED"); + + } + + + + /** + * Select subscriber name drop down. + * + * @throws InterruptedException the interrupted exception + */ + @Test(priority=8) + public void selectSubscriberNameDropDown() throws InterruptedException + { + log.info("------------------VID-10 TC-2,VID-12 TC-11, VID-12 TC-9, VID 12 TC-10,VID-12 TC-6, VID 12 TC-5--------------------"); + + + driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown"))); + + driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown"))); + Thread.sleep(5000); + + //Infrastructure Subscriber Name + Select oSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")))); + + List <WebElement> elementCount = oSelect.getOptions(); + log.info("Select Element Count of Service Name"); + System.out.println(elementCount.size()); + + + //Verifying getInfrastructureSubscribersList + log.info("VID-29 TC-1"); + Assert.assertTrue(elementCount.size()>0); + log.info("VID-29 TC-1 PASSED"); + + oSelect.selectByIndex(2); + String selectedOption = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")))).getFirstSelectedOption().getText(); + + System.out.println("Service Name selected is " +selectedOption); + log.info("VID-10 TC-2 PASSED"); + + //Submit button is clicked + driver.findElement(By.xpath(configProp.getProperty("submitButton"))).click(); + + + //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed(); + //Assert.assertTrue(driver.getPageSource().contains("Selected Subscriber's Service Instance Details:")) + + + //Verify whether the page header is displayed "Global Customer ID" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/thead/tr/th[2]/div")).isDisplayed(); + Assert.assertTrue(driver.getPageSource().contains("Global Customer ID")); + Assert.assertTrue(driver.getPageSource().contains("Subscriber Name")); + Assert.assertTrue(driver.getPageSource().contains("Service Type")); + Assert.assertTrue(driver.getPageSource().contains("Service Instance ID")); + + log.info("VID-12 TC-5 PASSED"); + log.info("VID-12 TC-11 PASSED"); + + WebElement serviceinstancetable =driver.findElement(By.xpath("//table[@class='tablesorter tablesorter-default ng-isolate-scope']")); + + List<WebElement> rows_table = serviceinstancetable.findElements(By.tagName("tr")); + //To calculate no of rows In table. + int rows_count = rows_table.size(); + + //Loop will execute till the last row of table. + for (int row=0; row<rows_count; row++){ + //To locate columns(cells) of that specific row. + List<WebElement> Columns_row = rows_table.get(row).findElements(By.tagName("td")); + //To calculate no of columns(cells) In that specific row. + int columns_count = Columns_row.size(); + //System.out.println("Number of cells In Row "+row+" are "+columns_count); + + //Loop will execute till the last cell of that specific row. + for (int column=0; column<columns_count; column++){ + //To retrieve text from that specific cell. + String celtext = Columns_row.get(column).getText(); + //System.out.println("Cell Value Of row number "+row+" and column number "+column+" Is "+celtext); + + + + //log.info("Testing Get column and row value"); + List <WebElement> exx= rows_table.get(1).findElements(By.tagName("td")); + eg=Columns_row.get(2).getText(); + // System.out.println("Cell value of row 1 and column 2 is" +eg); + } + } + + + + + //Verify View/Edit isDisplayed and Click + + driver.findElement(By.xpath("//a[@alt='View/Edit']")).isDisplayed(); + + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/tbody/tr[1]/td[1]/div/a")).click(); + + log.info("User clicked View/Edit"); + + //Verify the Subscriber Name displayed. + String header= driver.findElement(By.xpath("//h1[@class='heading1 ng-binding']")).getText(); + //System.out.println(header); + + + if(header.contains(eg)) + { + System.out.println("Header contains the subscriber name"); + }else + System.out.println("Header does not contain the subscriber name"); + + + + Assert.assertTrue(driver.getPageSource().contains("PerfTest Subscriber00020021")); + log.info("VID-12 TC-6 PASSED"); + + + + driver.navigate().back(); + //Cancel button isDisplayed + driver.findElement(By.xpath("//button[@class='button button--small button--primary']")).isDisplayed(); + log.info("VID-12 TC-9 PASSED"); + + //Cancel button is clicked + driver.findElement(By.xpath("//button[@class='button button--small button--primary']")).click(); + log.info("Cancel button is clicked"); + + //Verifying VID Home page is displayed + Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances")); + log.info("VID-12 TC-10 PASSED"); + + } + + + /** + * Refresh subscriber name. + */ + @Test(priority=9) + public void refreshSubscriberName() + { + log.info("VID-10 TC-4"); + + + driver.findElement(By.xpath(configProp.getProperty("refreshButtonSubscriberName"))).isDisplayed(); + + log.info("VID-10 TC-4 PASSED"); + + + } + + + /** + * Select subscriber type drop down. + * + * @throws InterruptedException the interrupted exception + */ + @Test(priority=9) + public void selectSubscriberTypeDropDown() throws InterruptedException + { + Thread.sleep(5000); + log.info("------------------VID-10 TC-3, VID-12 TC-12,--------------------"); + //Infrastructure Subscriber Type + Select iSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown")))); + + List <WebElement> ielementCount = iSelect.getOptions(); + log.info("Select Element Count of Service type"); + System.out.println(ielementCount.size()); + iSelect.selectByIndex(1); + + log.info("VID-10 TC-3 PASSED"); + + + //Submit button is clicked + driver.findElement(By.xpath(configProp.getProperty("submitButton"))).click(); + + //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed(); + //Assert.assertTrue(driver.getPageSource().contains("Selected Subscriber's Service Instance Details:")) + log.info("Page Header: Selected Subscriber's Service Instance Details"); + + + //Verify whether the page header is displayed "Global Customer ID" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/thead/tr/th[2]/div")).isDisplayed(); + + //Assert.assertTrue(driver.getPageSource().contains("Global Customer ID")); + log.info("Table is displayed"); + + log.info("VID-12 TC-12 PASSED"); + + } + + + + /** + * Logout under profile. + */ + @Test(priority=10) + public void logoutUnderProfile() + { + + log.info("-----------VID-11 TC-5---------------------"); + //driver.findElement(By.partialLinkText("Click here to login")).click(); + //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + + driver.findElement(By.xpath(".//*[@class='icon-user-small login-snippet-icon']")).click(); + driver.findElement(By.xpath(".//*[@id='reg-logout-div']/a")).click(); + //Validate that the user has logged out of VID. Displays "Portal" + Assert.assertTrue(driver.getPageSource().contains("Portal")); + + log.info("VID-11 TC-5 PASSED"); + + } + + + + /** + * Tear down. + */ + @AfterClass + public void tearDown() + { + driver.close(); + + } + + + + } + + + + diff --git a/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/LogOutLeftPane.java b/vid-app-common/src/test/java/org/onap/ecomp/vid/selenium/LogOutLeftPane.java index 55aed8fb1..fdd5ea38d 100755..100644 --- a/vid-app-common/src/test/java/org/openecomp/ecomp/vid/selenium/LogOutLeftPane.java +++ b/vid-app-common/src/test/java/org/onap/ecomp/vid/selenium/LogOutLeftPane.java @@ -1,242 +1,242 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.ecomp.vid.selenium;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.List;
-import java.util.Properties;
-import java.util.concurrent.TimeUnit;
-
-import org.apache.log4j.Logger;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-import org.openqa.selenium.firefox.FirefoxDriver;
-import org.openqa.selenium.support.ui.Select;
-import org.testng.Assert;
-import org.testng.annotations.BeforeTest;
-import org.testng.annotations.Test;
-
-/**
- * The Class LogOutLeftPane.
- */
-@Test(enabled=false)
-public class LogOutLeftPane {
-
- /** The login button. */
- WebElement loginButton;
-
- /** The login. */
- WebElement login;
-
- /** The pwd. */
- WebElement pwd;
-
- /** The log. */
- Logger log;
-
- /** The errormessage. */
- WebElement errormessage;
-
- /** The driver. */
- WebDriver driver=new FirefoxDriver();
-
-
- /** The config prop. */
- private final Properties configProp = new Properties();
-
-
- /**
- * Instantiates a new log out left pane.
- */
- private LogOutLeftPane() {
- // TODO Auto-generated constructor stub
- //
- try{
- // InputStream input =this.getClass().getClassLoader().getResourceAsStream("objectmap.properties");
- //FileInputStream input1 = new FileInputStream("objectmap.properties");
-
- InputStream input =new FileInputStream("objectconfig.properties");
- System.out.println("Read all properties from file");
- configProp.load(input);
- System.out.println("Read all properties from file completed");
- }
- catch(IOException e) {
-
- e.printStackTrace();
- }
- }
-
-
-
-
- /**
- * Do before test.
- */
- // TODO Auto-generated method stub
- @BeforeTest
- public void doBeforeTest()
- {
- //WebDriver driver=new FirefoxDriver();
-
- log = Logger.getLogger(LogOutLeftPane.class.getName());
-
-
-
- // Get url
- driver.get("http://vid.onap.org:9080/vid/login_external.htm");
- driver.manage().window().maximize();
-
-
- login = driver.findElement(By.xpath("//input[@class='fn-ebz-text ng-pristine ng-valid']"));
- pwd = driver.findElement(By.xpath("//input[@class='span3 ng-pristine ng-valid']"));
- loginButton = driver.findElement(By.id("loginBtn"));
- }
-
-
- /**
- * Expand collapse panel.
- *
- * @throws InterruptedException the interrupted exception
- */
- @Test(priority=1)
- public void expandCollapsePanel() throws InterruptedException
- {
-
-
-
- login.clear();
- login.sendKeys("su");
- pwd.clear();
- pwd.sendKeys("fusion");
- //driver.findElement(By.partialLinkText("Click here to login")).click();
- //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
- loginButton.click();
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
-
- log.info("Clicking Profile link from left pane");
- Thread.sleep(3000);
- System.out.println("properties file details --->"+configProp.getProperty("profilelink"));
- driver.findElement(By.xpath(configProp.getProperty("profilelink"))).click();
- Thread.sleep(3000);
-
- //Verify whether the sub panel is displayed
- //To verify the following :Search import from webphone and Self
- driver.findElement(By.xpath(".//*[@id='panel4']")).isDisplayed();
- log.info("Expand and collapse passed for Profile link");
-
- //For Admin
- //Verify expand and collapse working for ADMIN
- log.info("Clicking Admin link from left pane");
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[6]/a/span")).click();
- //To verify the following: Roles, Roles Functions, Usages
- driver.findElement(By.xpath(".//*[@id='panel5']")).isDisplayed();
-
-
- log.info("Expand and collapse passed for ADMIN link");
-
- log.info("VID-11 TC-3 PASSED");
-
- }
-
-
- /**
- * Drop down list.
- *
- * @throws InterruptedException the interrupted exception
- */
- @Test(priority=2)
- public void dropDownList() throws InterruptedException
- {
- //VID-12 TC-3
- log.info("VID-12 TC-3");
- //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"));
-
- //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select"));
- Thread.sleep(5000);
-
- //Infrastructure Subscriber Name
- Select oSelect = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")));
- Select iSelect = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select")));
-
- List <WebElement> elementCount = oSelect.getOptions();
- log.info("Subscriber Name Drop Down");
- System.out.println(elementCount.size());
- oSelect.selectByIndex(1);
- log.info("Subscriber name selected");
- //String selectedOption = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"))).getFirstSelectedOption().getText();
-
-
- List <WebElement> count = iSelect.getOptions();
- log.info("Subscriber type drop down");
- System.out.println(count.size());
- oSelect.selectByIndex(1);
- log.info("Subscriber type selected");
-
-
-
- //Submit button is clicked
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button")).click();
-
-
- //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:"
- driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed();
- log.info("VID-12 TC-3 PASSED");
- }
-
-
-
-
- /**
- * Logout left pane.
- */
- @Test(priority=3)
- public void logoutLeftPane()
- {
- //To Verify if the logout link redirects to Login page when clicked.
-
-
- /*log.info("----------------VID-11 TC-4----------------");
- login.clear();
- login.sendKeys("testuser");
- pwd.clear();
- pwd.sendKeys("abc123");
- //driver.findElement(By.partialLinkText("Click here to login")).click();
- //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
-
- loginButton.click();
- driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);*/
- log.info("----------------VID-11 TC-4----------------");
- driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[7]/a")).click();
- //Validate that the user has logged out of VID. Displays "Portal"
- Assert.assertTrue(driver.getPageSource().contains("Portal"));
-
- log.info("VID 11 TC-4 PASSED");
-
- driver.close();
-
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.ecomp.vid.selenium; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.List; +import java.util.Properties; +import java.util.concurrent.TimeUnit; + +import org.apache.log4j.Logger; +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.support.ui.Select; +import org.testng.Assert; +import org.testng.annotations.BeforeTest; +import org.testng.annotations.Test; + +/** + * The Class LogOutLeftPane. + */ +@Test(enabled=false) +public class LogOutLeftPane { + + /** The login button. */ + WebElement loginButton; + + /** The login. */ + WebElement login; + + /** The pwd. */ + WebElement pwd; + + /** The log. */ + Logger log; + + /** The errormessage. */ + WebElement errormessage; + + /** The driver. */ + WebDriver driver=new FirefoxDriver(); + + + /** The config prop. */ + private final Properties configProp = new Properties(); + + + /** + * Instantiates a new log out left pane. + */ + private LogOutLeftPane() { + // TODO Auto-generated constructor stub + // + try{ + // InputStream input =this.getClass().getClassLoader().getResourceAsStream("objectmap.properties"); + //FileInputStream input1 = new FileInputStream("objectmap.properties"); + + InputStream input =new FileInputStream("objectconfig.properties"); + System.out.println("Read all properties from file"); + configProp.load(input); + System.out.println("Read all properties from file completed"); + } + catch(IOException e) { + + e.printStackTrace(); + } + } + + + + + /** + * Do before test. + */ + // TODO Auto-generated method stub + @BeforeTest + public void doBeforeTest() + { + //WebDriver driver=new FirefoxDriver(); + + log = Logger.getLogger(LogOutLeftPane.class.getName()); + + + + // Get url + driver.get("http://vid.onap.org:9080/vid/login_external.htm"); + driver.manage().window().maximize(); + + + login = driver.findElement(By.xpath("//input[@class='fn-ebz-text ng-pristine ng-valid']")); + pwd = driver.findElement(By.xpath("//input[@class='span3 ng-pristine ng-valid']")); + loginButton = driver.findElement(By.id("loginBtn")); + } + + + /** + * Expand collapse panel. + * + * @throws InterruptedException the interrupted exception + */ + @Test(priority=1) + public void expandCollapsePanel() throws InterruptedException + { + + + + login.clear(); + login.sendKeys("su"); + pwd.clear(); + pwd.sendKeys("fusion"); + //driver.findElement(By.partialLinkText("Click here to login")).click(); + //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + loginButton.click(); + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + + log.info("Clicking Profile link from left pane"); + Thread.sleep(3000); + System.out.println("properties file details --->"+configProp.getProperty("profilelink")); + driver.findElement(By.xpath(configProp.getProperty("profilelink"))).click(); + Thread.sleep(3000); + + //Verify whether the sub panel is displayed + //To verify the following :Search import from webphone and Self + driver.findElement(By.xpath(".//*[@id='panel4']")).isDisplayed(); + log.info("Expand and collapse passed for Profile link"); + + //For Admin + //Verify expand and collapse working for ADMIN + log.info("Clicking Admin link from left pane"); + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[6]/a/span")).click(); + //To verify the following: Roles, Roles Functions, Usages + driver.findElement(By.xpath(".//*[@id='panel5']")).isDisplayed(); + + + log.info("Expand and collapse passed for ADMIN link"); + + log.info("VID-11 TC-3 PASSED"); + + } + + + /** + * Drop down list. + * + * @throws InterruptedException the interrupted exception + */ + @Test(priority=2) + public void dropDownList() throws InterruptedException + { + //VID-12 TC-3 + log.info("VID-12 TC-3"); + //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")); + + //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select")); + Thread.sleep(5000); + + //Infrastructure Subscriber Name + Select oSelect = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"))); + Select iSelect = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select"))); + + List <WebElement> elementCount = oSelect.getOptions(); + log.info("Subscriber Name Drop Down"); + System.out.println(elementCount.size()); + oSelect.selectByIndex(1); + log.info("Subscriber name selected"); + //String selectedOption = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"))).getFirstSelectedOption().getText(); + + + List <WebElement> count = iSelect.getOptions(); + log.info("Subscriber type drop down"); + System.out.println(count.size()); + oSelect.selectByIndex(1); + log.info("Subscriber type selected"); + + + + //Submit button is clicked + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button")).click(); + + + //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed(); + log.info("VID-12 TC-3 PASSED"); + } + + + + + /** + * Logout left pane. + */ + @Test(priority=3) + public void logoutLeftPane() + { + //To Verify if the logout link redirects to Login page when clicked. + + + /*log.info("----------------VID-11 TC-4----------------"); + login.clear(); + login.sendKeys("testuser"); + pwd.clear(); + pwd.sendKeys("abc123"); + //driver.findElement(By.partialLinkText("Click here to login")).click(); + //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + loginButton.click(); + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);*/ + log.info("----------------VID-11 TC-4----------------"); + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[7]/a")).click(); + //Validate that the user has logged out of VID. Displays "Portal" + Assert.assertTrue(driver.getPageSource().contains("Portal")); + + log.info("VID 11 TC-4 PASSED"); + + driver.close(); + + } + +} diff --git a/vid-app-common/src/test/java/org/openecomp/fusion/core/MockApplicationContextTestSuite.java b/vid-app-common/src/test/java/org/onap/fusion/core/MockApplicationContextTestSuite.java index 2f5828b61..bd6854911 100755..100644 --- a/vid-app-common/src/test/java/org/openecomp/fusion/core/MockApplicationContextTestSuite.java +++ b/vid-app-common/src/test/java/org/onap/fusion/core/MockApplicationContextTestSuite.java @@ -1,177 +1,177 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.fusion.core;
-
-import java.io.IOException;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Profile;
-import org.springframework.test.context.ActiveProfiles;
-import org.springframework.test.context.ContextConfiguration;
-import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
-import org.springframework.test.context.web.AnnotationConfigWebContextLoader;
-import org.springframework.test.context.web.WebAppConfiguration;
-import org.springframework.test.web.servlet.MockMvc;
-import org.springframework.test.web.servlet.setup.MockMvcBuilders;
-import org.springframework.web.context.WebApplicationContext;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.testng.annotations.Test;
-import org.openecomp.portalsdk.core.conf.AppConfig;
-import org.openecomp.portalsdk.core.objectcache.AbstractCacheManager;
-import org.openecomp.portalsdk.core.util.SystemProperties;
-import org.openecomp.portalsdk.core.util.CacheManager;
-
-/**
- *
- *
- *
- * In order to write a unit test,
- * 1. inherit this class - See SanityTest.java
- * 2. place the "war" folder on your test class's classpath
- * 3. run the test with the following VM argument; This is important because when starting the application from Container, the System Properties file (SystemProperties.java) can have the direct path
- * but, when running from the Mock Junit container, the path should be prefixed with "classpath" to enable the mock container to search for the file in the classpath
- * -Dcontainer.classpath="classpath:"
- *
- */
-
-@RunWith(SpringJUnit4ClassRunner.class)
-@WebAppConfiguration
-@ContextConfiguration(loader = AnnotationConfigWebContextLoader.class, classes = {MockAppConfig.class})
-@ActiveProfiles(value="test")
-@Test(enabled=false)
-public class MockApplicationContextTestSuite {
-
- /** The wac. */
- @Autowired
- public WebApplicationContext wac;
-
- /** The mock mvc. */
- private MockMvc mockMvc;
-
- /**
- * Setup.
- */
- @Before
- public void setup() {
- if(mockMvc == null) {
- this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
-
- }
- }
-
- /**
- * Gets the bean.
- *
- * @param name the name
- * @return the bean
- */
- public Object getBean(String name) {
- return this.wac.getBean(name);
- }
-
-
- /**
- * Gets the mock mvc.
- *
- * @return the mock mvc
- */
- public MockMvc getMockMvc() {
- return mockMvc;
- }
-
- /**
- * Sets the mock mvc.
- *
- * @param mockMvc the new mock mvc
- */
- public void setMockMvc(MockMvc mockMvc) {
- this.mockMvc = mockMvc;
- }
-
- /**
- * Gets the web application context.
- *
- * @return the web application context
- */
- public WebApplicationContext getWebApplicationContext() {
- return wac;
- }
-
-
-
-
-}
-
-
- @Configuration
- @ComponentScan(basePackages = "org.openecomp",
- excludeFilters = {
- // the following source configurations should not be scanned; instead of using Exclusion filter, we can use the @Profile annotation to exclude them
- // see AppConfig class
- //@ComponentScan.Filter(type = FilterType.REGEX, pattern = "org.openecomp.portalsdk.core.*AppConfig*")//,
- //@ComponentScan.Filter(type = FilterType.REGEX, pattern = org.openecomp.*.*AppConfig*")
- }
- )
- @Profile("test")
- class MockAppConfig extends AppConfig {
-
- @Bean
- public SystemProperties systemProperties(){
- return new MockSystemProperties();
- }
-
- @Bean
- public AbstractCacheManager cacheManager() {
- return new CacheManager() {
-
- public void configure() throws IOException {
-
- }
- };
- }
-
- protected String[] tileDefinitions() {
- return new String[] {"classpath:/WEB-INF/fusion/defs/definitions.xml", "classpath:/WEB-INF/defs/definitions.xml"};
- }
-
- @Override
- public void addInterceptors(InterceptorRegistry registry) {
- //registry.addInterceptor(new SessionTimeoutInterceptor()).excludePathPatterns(getExcludeUrlPathsForSessionTimeout());
- //registry.addInterceptor(resourceInterceptor());
- }
-
- public static class MockSystemProperties extends SystemProperties {
-
- public MockSystemProperties() {
- }
-
- }
-
- }
-
-
-
-
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.fusion.core; + +import java.io.IOException; + +import org.junit.Before; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Profile; +import org.springframework.test.context.ActiveProfiles; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.test.context.web.AnnotationConfigWebContextLoader; +import org.springframework.test.context.web.WebAppConfiguration; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.setup.MockMvcBuilders; +import org.springframework.web.context.WebApplicationContext; +import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.testng.annotations.Test; +import org.openecomp.portalsdk.core.conf.AppConfig; +import org.openecomp.portalsdk.core.objectcache.AbstractCacheManager; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.openecomp.portalsdk.core.util.CacheManager; + +/** + * + * + * + * In order to write a unit test, + * 1. inherit this class - See SanityTest.java + * 2. place the "war" folder on your test class's classpath + * 3. run the test with the following VM argument; This is important because when starting the application from Container, the System Properties file (SystemProperties.java) can have the direct path + * but, when running from the Mock Junit container, the path should be prefixed with "classpath" to enable the mock container to search for the file in the classpath + * -Dcontainer.classpath="classpath:" + * + */ + +@RunWith(SpringJUnit4ClassRunner.class) +@WebAppConfiguration +@ContextConfiguration(loader = AnnotationConfigWebContextLoader.class, classes = {MockAppConfig.class}) +@ActiveProfiles(value="test") +@Test(enabled=false) +public class MockApplicationContextTestSuite { + + /** The wac. */ + @Autowired + public WebApplicationContext wac; + + /** The mock mvc. */ + private MockMvc mockMvc; + + /** + * Setup. + */ + @Before + public void setup() { + if(mockMvc == null) { + this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build(); + + } + } + + /** + * Gets the bean. + * + * @param name the name + * @return the bean + */ + public Object getBean(String name) { + return this.wac.getBean(name); + } + + + /** + * Gets the mock mvc. + * + * @return the mock mvc + */ + public MockMvc getMockMvc() { + return mockMvc; + } + + /** + * Sets the mock mvc. + * + * @param mockMvc the new mock mvc + */ + public void setMockMvc(MockMvc mockMvc) { + this.mockMvc = mockMvc; + } + + /** + * Gets the web application context. + * + * @return the web application context + */ + public WebApplicationContext getWebApplicationContext() { + return wac; + } + + + + +} + + + @Configuration + @ComponentScan(basePackages = "org.onap", + excludeFilters = { + // the following source configurations should not be scanned; instead of using Exclusion filter, we can use the @Profile annotation to exclude them + // see AppConfig class + //@ComponentScan.Filter(type = FilterType.REGEX, pattern = "org.onap.portalsdk.core.*AppConfig*")//, + //@ComponentScan.Filter(type = FilterType.REGEX, pattern = org.onap.*.*AppConfig*") + } + ) + @Profile("test") + class MockAppConfig extends AppConfig { + + @Bean + public SystemProperties systemProperties(){ + return new MockSystemProperties(); + } + + @Bean + public AbstractCacheManager cacheManager() { + return new CacheManager() { + + public void configure() throws IOException { + + } + }; + } + + protected String[] tileDefinitions() { + return new String[] {"classpath:/WEB-INF/fusion/defs/definitions.xml", "classpath:/WEB-INF/defs/definitions.xml"}; + } + + @Override + public void addInterceptors(InterceptorRegistry registry) { + //registry.addInterceptor(new SessionTimeoutInterceptor()).excludePathPatterns(getExcludeUrlPathsForSessionTimeout()); + //registry.addInterceptor(resourceInterceptor()); + } + + public static class MockSystemProperties extends SystemProperties { + + public MockSystemProperties() { + } + + } + + } + + + + diff --git a/vid-app-common/src/test/java/org/openecomp/fusionapp/controller/NetMapTest.java b/vid-app-common/src/test/java/org/onap/fusionapp/controller/NetMapTest.java index 0078cc6eb..7a4c56019 100755..100644 --- a/vid-app-common/src/test/java/org/openecomp/fusionapp/controller/NetMapTest.java +++ b/vid-app-common/src/test/java/org/onap/fusionapp/controller/NetMapTest.java @@ -1,49 +1,49 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.fusionapp.controller;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.springframework.test.web.servlet.ResultActions;
-import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
-
-import org.openecomp.fusion.core.MockApplicationContextTestSuite;
-
-/**
- * The Class NetMapTest.
- */
-
-public class NetMapTest extends MockApplicationContextTestSuite {
-
- /**
- * Test get net map.
- *
- * @throws Exception the exception
- */
-// @Test
- public void testGetNetMap() throws Exception {
- ResultActions ra =getMockMvc().perform(MockMvcRequestBuilders.get("/net_map"));
- //Assert.assertEquals(UrlAccessRestrictedException.class,ra.andReturn().getResolvedException().getClass());
- Assert.assertEquals("net_map_int",ra.andReturn().getModelAndView().getModel().get("frame_int"));
- }
-
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.fusionapp.controller; + +import org.junit.Assert; +import org.junit.Test; +import org.springframework.test.web.servlet.ResultActions; +import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; + +import org.onap.fusion.core.MockApplicationContextTestSuite; + +/** + * The Class NetMapTest. + */ + +public class NetMapTest extends MockApplicationContextTestSuite { + + /** + * Test get net map. + * + * @throws Exception the exception + */ +// @Test + public void testGetNetMap() throws Exception { + ResultActions ra =getMockMvc().perform(MockMvcRequestBuilders.get("/net_map")); + //Assert.assertEquals(UrlAccessRestrictedException.class,ra.andReturn().getResolvedException().getClass()); + Assert.assertEquals("net_map_int",ra.andReturn().getModelAndView().getModel().get("frame_int")); + } + + +} diff --git a/vid-app-common/src/test/java/org/openecomp/fusionapp/service/ProfileServiceTest.java b/vid-app-common/src/test/java/org/onap/fusionapp/service/ProfileServiceTest.java index f8afbf8d8..212074fcd 100755..100644 --- a/vid-app-common/src/test/java/org/openecomp/fusionapp/service/ProfileServiceTest.java +++ b/vid-app-common/src/test/java/org/onap/fusionapp/service/ProfileServiceTest.java @@ -1,75 +1,75 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.fusionapp.service;
-
-import java.util.List;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import org.openecomp.fusion.core.MockApplicationContextTestSuite;
-import org.openecomp.portalsdk.core.domain.Profile;
-import org.openecomp.portalsdk.core.domain.User;
-import org.openecomp.portalsdk.core.service.ProfileService;
-import org.openecomp.portalsdk.core.service.UserProfileService;
-
-
-/**
- * The Class ProfileServiceTest.
- */
-
-public class ProfileServiceTest extends MockApplicationContextTestSuite {
-
- /** The service. */
- @Autowired
- ProfileService service;
-
- /** The user profile service. */
- @Autowired
- UserProfileService userProfileService;
-
- /**
- * Test find all.
- */
- //@Test
- public void testFindAll() {
- try {
- List<Profile> profiles = service.findAll();
- Assert.assertTrue(profiles.size() > 0);
-
- }
- catch (Exception e) {
- // TODO: handle exception
- }
- }
-
- /**
- * Test find all active.
- */
-// @Test
- public void testFindAllActive() {
-
- List<User> users = userProfileService.findAllActive();
- List<User> activeUsers = userProfileService.findAllActive();
- Assert.assertTrue(users.size() - activeUsers.size() >= 0);
- }
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.fusionapp.service; + +import java.util.List; + +import org.junit.Assert; +import org.junit.Test; +import org.springframework.beans.factory.annotation.Autowired; + +import org.onap.fusion.core.MockApplicationContextTestSuite; +import org.openecomp.portalsdk.core.domain.Profile; +import org.openecomp.portalsdk.core.domain.User; +import org.openecomp.portalsdk.core.service.ProfileService; +import org.openecomp.portalsdk.core.service.UserProfileService; + + +/** + * The Class ProfileServiceTest. + */ + +public class ProfileServiceTest extends MockApplicationContextTestSuite { + + /** The service. */ + @Autowired + ProfileService service; + + /** The user profile service. */ + @Autowired + UserProfileService userProfileService; + + /** + * Test find all. + */ + //@Test + public void testFindAll() { + try { + List<Profile> profiles = service.findAll(); + Assert.assertTrue(profiles.size() > 0); + + } + catch (Exception e) { + // TODO: handle exception + } + } + + /** + * Test find all active. + */ +// @Test + public void testFindAllActive() { + + List<User> users = userProfileService.findAllActive(); + List<User> activeUsers = userProfileService.findAllActive(); + Assert.assertTrue(users.size() - activeUsers.size() >= 0); + } +} diff --git a/vid-app-common/src/test/java/org/openecomp/src/main/java/org/vid/dao/FnAppDoaImplTest.java b/vid-app-common/src/test/java/org/onap/src/main/java/org/vid/dao/FnAppDoaImplTest.java index 3ac91c220..e98e7b205 100755..100644 --- a/vid-app-common/src/test/java/org/openecomp/src/main/java/org/vid/dao/FnAppDoaImplTest.java +++ b/vid-app-common/src/test/java/org/onap/src/main/java/org/vid/dao/FnAppDoaImplTest.java @@ -1,45 +1,45 @@ -/*-
- * ============LICENSE_START=======================================================
- * VID
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.src.main.java.org.vid.dao;
-
-import java.io.IOException;
-import java.sql.SQLException;
-
-import org.junit.Test;
-
-import org.openecomp.vid.dao.FnAppDoaImpl;
-
-public class FnAppDoaImplTest {
-
- //@Test
- public void testGetconnection() throws ClassNotFoundException, IOException, SQLException{
- FnAppDoaImpl impl=new FnAppDoaImpl();
- impl.getConnection(null,null,null, null);
-
- }
-
- //@Test
- public void testProfileCount() throws ClassNotFoundException, IOException, SQLException{
- FnAppDoaImpl impl=new FnAppDoaImpl();
- impl.getProfileCount(null,null,null, null);
- }
-
-}
+/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.src.main.java.org.vid.dao; + +import java.io.IOException; +import java.sql.SQLException; + +import org.junit.Test; + +import org.onap.vid.dao.FnAppDoaImpl; + +public class FnAppDoaImplTest { + + //@Test + public void testGetconnection() throws ClassNotFoundException, IOException, SQLException{ + FnAppDoaImpl impl=new FnAppDoaImpl(); + impl.getConnection(null,null,null, null); + + } + + //@Test + public void testProfileCount() throws ClassNotFoundException, IOException, SQLException{ + FnAppDoaImpl impl=new FnAppDoaImpl(); + impl.getProfileCount(null,null,null, null); + } + +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java b/vid-app-common/src/test/java/org/onap/vid/RelatedToTest.java index 9d4930080..ca4ac1b81 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/RelatedToTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/RelatedToTest.java @@ -1,8 +1,9 @@ -package org.openecomp.vid; +package org.onap.vid; import java.util.Map; import org.junit.Test; +import org.onap.vid.RelatedTo; public class RelatedToTest { diff --git a/vid-app-common/src/test/java/org/onap/vid/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/TestSuite.java new file mode 100644 index 000000000..e70d7fe25 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/TestSuite.java @@ -0,0 +1,11 @@ +package org.onap.vid; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses( + +{ RelatedToTest.class, org.onap.vid.aai.TestSuite.class }) +public class TestSuite { // nothing +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/AaiGetVnfResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/AaiGetVnfResponseTest.java index b959709d0..7889d5148 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/AaiGetVnfResponseTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/AaiGetVnfResponseTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import java.util.Map; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/ServicePropertiesTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/ServicePropertiesTest.java index d3c50aff6..577f52820 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/ServicePropertiesTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/ServicePropertiesTest.java @@ -1,8 +1,9 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import java.util.Map; import org.junit.Test; +import org.onap.vid.aai.model.ServiceProperties; public class ServicePropertiesTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberAaiResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/SubscriberAaiResponseTest.java index 26954011d..c01fe27e6 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberAaiResponseTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/SubscriberAaiResponseTest.java @@ -1,7 +1,7 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.junit.Test; -import org.openecomp.vid.model.SubscriberList; +import org.onap.vid.model.SubscriberList; public class SubscriberAaiResponseTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberWithFilterTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/SubscriberWithFilterTest.java index 7fca7c99d..c76e5cdc2 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/SubscriberWithFilterTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/SubscriberWithFilterTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/aai/TestSuite.java index 0629d78c8..eac3bdf26 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import org.junit.runner.RunWith; import org.junit.runners.Suite; @@ -7,6 +7,6 @@ import org.junit.runners.Suite; @Suite.SuiteClasses( { SubscriberAaiResponseTest.class, AaiGetVnfResponseTest.class, ServicePropertiesTest.class, - SubscriberWithFilterTest.class, VnfResultTest.class, org.openecomp.vid.aai.model.TestSuite.class }) + SubscriberWithFilterTest.class, VnfResultTest.class, org.onap.vid.aai.model.TestSuite.class }) public class TestSuite { // nothing } diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/VnfResultTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/VnfResultTest.java index 6efa05aa0..2b7a60429 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/VnfResultTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/VnfResultTest.java @@ -1,8 +1,9 @@ -package org.openecomp.vid.aai; +package org.onap.vid.aai; import java.util.Map; import org.junit.Test; +import org.onap.vid.aai.model.VnfResult; public class VnfResultTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/RelatedToPropertyTest.java index 08a87173b..0d26f5607 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelatedToPropertyTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/RelatedToPropertyTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/RelationshipDataTest.java index 4df27ccd8..ae5f7c39a 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipDataTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/RelationshipDataTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/RelationshipTest.java index 4f5e33535..893fc51fc 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/RelationshipTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/RelationshipTest.java @@ -1,8 +1,10 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import java.util.List; import org.junit.Test; +import org.onap.vid.aai.model.Relationship; +import org.onap.vid.aai.model.RelationshipData; public class RelationshipTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/ServiceRelationshipsTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/ServiceRelationshipsTest.java index c67e3f8d9..e8bcf5f57 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/ServiceRelationshipsTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/ServiceRelationshipsTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/TestSuite.java index 34ca70bd8..8d5f62e54 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/aai/model/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.aai.model; +package org.onap.vid.aai.model; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/ArtifactTest.java index 8251ca0c5..04944120a 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ArtifactTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/ArtifactTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans; +package org.onap.vid.asdc.beans; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ResourceTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/ResourceTest.java index b73056002..af42409cd 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/ResourceTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/ResourceTest.java @@ -1,10 +1,10 @@ -package org.openecomp.vid.asdc.beans; +package org.onap.vid.asdc.beans; import java.util.Collection; import org.junit.Test; -import org.openecomp.vid.asdc.beans.Resource.LifecycleState; -import org.openecomp.vid.asdc.beans.Resource.Type; +import org.onap.vid.asdc.beans.Resource.LifecycleState; +import org.onap.vid.asdc.beans.Resource.Type; public class ResourceTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/SubResourceTest.java index 75b0e9869..e1672b71e 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/SubResourceTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/SubResourceTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans; +package org.onap.vid.asdc.beans; import java.util.Collection; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/TestSuite.java index 861c5c36e..6f0d47a2e 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans; +package org.onap.vid.asdc.beans; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/CapabilityTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/CapabilityTest.java index 4eed93b59..7609e36d1 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/CapabilityTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/CapabilityTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans.tosca; +package org.onap.vid.asdc.beans.tosca; import java.util.Collection; import java.util.Map; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ConstraintTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/ConstraintTest.java index fb416f7e5..ebba7d172 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ConstraintTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/ConstraintTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans.tosca; +package org.onap.vid.asdc.beans.tosca; import java.util.List; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/GroupTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/GroupTest.java index d3a1e4bba..3692a15b9 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/GroupTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/GroupTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans.tosca; +package org.onap.vid.asdc.beans.tosca; import java.util.Collection; import java.util.Map; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/NodeTemplateTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/NodeTemplateTest.java index 89177807e..678a5102d 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/NodeTemplateTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/NodeTemplateTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans.tosca; +package org.onap.vid.asdc.beans.tosca; import java.util.Map; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/TestSuite.java index 40e086837..d94d33920 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans.tosca; +package org.onap.vid.asdc.beans.tosca; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TopologyTemplateTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/TopologyTemplateTest.java index a3b96c261..8392d926c 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/TopologyTemplateTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/TopologyTemplateTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans.tosca; +package org.onap.vid.asdc.beans.tosca; import java.util.Map; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaMetadataTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/ToscaMetadataTest.java index 4c6fed5c5..2c91d9621 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaMetadataTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/ToscaMetadataTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans.tosca; +package org.onap.vid.asdc.beans.tosca; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaModelTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/ToscaModelTest.java index 6fb6f8932..ee5463744 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/asdc/beans/tosca/ToscaModelTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/tosca/ToscaModelTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.asdc.beans.tosca; +package org.onap.vid.asdc.beans.tosca; import java.util.Collection; import java.util.Map; diff --git a/vid-app-common/src/test/java/org/onap/vid/asdc/parser/ToscaParserImpl2Test.java b/vid-app-common/src/test/java/org/onap/vid/asdc/parser/ToscaParserImpl2Test.java new file mode 100644 index 000000000..99f8ef38a --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/parser/ToscaParserImpl2Test.java @@ -0,0 +1,154 @@ +package org.onap.vid.asdc.parser; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.google.common.collect.ImmutableList; +import org.apache.log4j.Logger; +import org.junit.Assert; +import org.onap.vid.controller.WebConfig; +import org.onap.vid.model.VfModule; +import org.onap.vid.model.VolumeGroup; +import org.onap.vid.properties.AsdcClientConfiguration; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.openecomp.sdc.tosca.parser.api.ISdcCsarHelper; +import org.openecomp.sdc.toscaparser.api.Group; +import org.openecomp.sdc.toscaparser.api.NodeTemplate; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; +import org.springframework.test.context.web.WebAppConfiguration; +import org.springframework.web.context.WebApplicationContext; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.Test; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.Map; + +import static org.hamcrest.Matchers.*; +import static org.junit.Assert.assertThat; +import static org.mockito.Mockito.*; + +@Test +@ContextConfiguration(classes = { WebConfig.class, AsdcClientConfiguration.class, SystemProperties.class }) +@WebAppConfiguration +public class ToscaParserImpl2Test extends AbstractTestNGSpringContextTests { + + private final String myUUID = "myUUID"; + private static final Logger log = Logger.getLogger(ToscaParserImpl2Test.class); + + @Autowired + private ToscaParserImpl2 toscaParserImpl2; + + @Autowired + private WebApplicationContext wac; + + @BeforeMethod + private void verifyWiring() { + Assert.assertNotNull(wac); + Assert.assertNotNull(toscaParserImpl2); + } + + @Test + public void testGetNFModuleFromVf() throws Exception { + ISdcCsarHelper csarHelper = getMockedSdcCsarHelper(); + + Map<String, VfModule> vfModulesFromVF = toscaParserImpl2.getVfModulesFromVF(csarHelper, myUUID); + + assertThat(vfModulesFromVF, allOf( + aMapWithSize(2), + hasKey("withoutVol"), + hasKey("withVol") + )); + + verify(csarHelper, only()).getVfModulesByVf(anyString()); + } + + @Test + public void testGetVolumeGroupsFromVF() throws Exception { + ISdcCsarHelper csarHelper = getMockedSdcCsarHelper(); + + Map<String, VolumeGroup> volumeGroupsFromVF = toscaParserImpl2.getVolumeGroupsFromVF(csarHelper, myUUID); + + assertThat(volumeGroupsFromVF, allOf( + aMapWithSize(1), + hasKey("withVol") + )); + + verify(csarHelper, only()).getVfModulesByVf(anyString()); + } + + private ISdcCsarHelper getMockedSdcCsarHelper() { + ISdcCsarHelper csarHelper = mock(ISdcCsarHelper.class); + +// ThreadLocalsHolder.setCollector(new ExceptionCollector("c:\\temp\\foo")); + + Group withVol = createMinimalGroup("withVol", true); + Group withoutVol = createMinimalGroup("withoutVol", false); + + when(csarHelper.getVfModulesByVf(myUUID)) + .thenReturn(ImmutableList.of(withVol, withoutVol)); + + return csarHelper; + } + + private static Group createMinimalGroup(String name, boolean isVolumeGroup) { + LinkedHashMap<String, Object> + templates, + properties, + metadata, + customDef, + vfModule, + vfModuleProperties, + volumeGroup; + + templates = new LinkedHashMap<>(); + templates.put("type", "org.onap.groups.VfModule"); + + properties = addNewNamedMap(templates, "properties"); + properties.put("volume_group", isVolumeGroup); + + metadata = addNewNamedMap(templates, "metadata"); + + ArrayList<NodeTemplate> memberNodes = new ArrayList<>(); + + customDef = new LinkedHashMap<>(); + vfModule = addNewNamedMap(customDef, "org.onap.groups.VfModule"); + vfModuleProperties = addNewNamedMap(vfModule, "properties"); +// vfModule.put("derived_from", "tosca.groups.Root"); +// vfModule.put("description", "Grouped all heat resources which are in the same VF Module"); + + volumeGroup = addNewNamedMap(vfModuleProperties, "volume_group"); +// volumeGroup.put("description", "volume_group"); + volumeGroup.put("type", "boolean"); + volumeGroup.put("default", false); + volumeGroup.put("required", true); + + + Group group = new Group( + name, + templates, + memberNodes, + customDef + ); + + try { + log.info(String.format("Built a group: %s", + (new com.fasterxml.jackson.databind.ObjectMapper()) + .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false) + .writeValueAsString(group) + )); + } catch (JsonProcessingException e) { + throw new RuntimeException(e); + } + + return group; + } + + private static LinkedHashMap<String, Object> addNewNamedMap(LinkedHashMap<String, Object> root, String key) { + LinkedHashMap<String, Object> properties = new LinkedHashMap<>(); + root.put(key, properties); + return properties; + } + +} diff --git a/vid-app-common/src/test/java/org/onap/vid/bl/AaiServiceTest.java b/vid-app-common/src/test/java/org/onap/vid/bl/AaiServiceTest.java new file mode 100644 index 000000000..b64f5e50e --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/bl/AaiServiceTest.java @@ -0,0 +1,143 @@ +package org.onap.vid.bl; + +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.MockitoAnnotations; +import org.onap.vid.aai.AaiClientInterface; +import org.onap.vid.aai.AaiResponse; +import org.onap.vid.aai.model.*; +import org.onap.vid.aai.model.AaiGetPnfs.Pnf; +import org.onap.vid.aai.model.AaiGetTenatns.GetTenantsResponse; +import org.onap.vid.roles.Role; +import org.onap.vid.roles.RoleValidator; +import org.onap.vid.services.AaiServiceImpl; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import static org.hamcrest.Matchers.arrayWithSize; +import static org.hamcrest.Matchers.equalTo; +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertNotNull; +import static org.hamcrest.MatcherAssert.assertThat; + +public class AaiServiceTest { + + @InjectMocks + private AaiServiceImpl aaiService; + + @Mock + private AaiClientInterface aaiClientInterface; + + + + @BeforeMethod + public void initMocks(){ + MockitoAnnotations.initMocks(this); + } + + @Test + public void testGetSpecificPnf(){ + Pnf pnf = new Pnf(); + pnf.setPnfId("11111"); + AaiResponse<Pnf> aaiResponse = new AaiResponse<>(pnf, "aaaa", 200); + Mockito.doReturn(aaiResponse).when(aaiClientInterface).getSpecificPnf(Mockito.anyString()); + AaiResponse<Pnf> specificPnf = aaiService.getSpecificPnf("1345667"); + assertNotNull(specificPnf); + pnf = specificPnf.getT(); + assertNotNull(pnf); + assertEquals("11111",pnf.getPnfId()); + assertEquals("aaaa",specificPnf.getErrorMessage()); + assertEquals(200,specificPnf.getHttpCode()); + } + + @Test + public void testGetAssociatedPnfs(){ + ServiceRelationships serviceRelationships = createServiceRelationships(); + AaiResponse<ServiceRelationships> aaiResponse = new AaiResponse<>(serviceRelationships, null, 200); + Mockito.doReturn(aaiResponse).when(aaiClientInterface).getServiceInstance(Mockito.anyString(), Mockito.anyString(), Mockito.anyString()); + + LogicalLinkResponse logicalLinkResponse = createLogicalLinkResponse(); + AaiResponse<LogicalLinkResponse> aaiResponse1 = new AaiResponse<>(logicalLinkResponse, null, 200); + Mockito.doReturn(aaiResponse1).when(aaiClientInterface).getLogicalLink("SANITY6758cce9%3ALAG1992%7CSANITY6785cce9%3ALAG1961"); + + List<String> pnfList = aaiService.getServiceInstanceAssociatedPnfs("123", "456", "789"); + assertNotNull(pnfList); + assertEquals(1, pnfList.size()); + assertEquals("SANITY6785cce9", pnfList.get(0)); + } + + private ServiceRelationships createServiceRelationships() { + ServiceRelationships serviceRelationships = new ServiceRelationships(); + serviceRelationships.setServiceInstanceName("test service"); + + RelationshipData logicalLinksRelationshipData = new RelationshipData(); + logicalLinksRelationshipData.setRelationshipKey("logical-link.link-name"); + logicalLinksRelationshipData.setRelationshipValue("SANITY6758cce9:LAG1992|SANITY6785cce9:LAG1961"); + + Relationship logicalLinksRelationship = new Relationship(); + logicalLinksRelationship.setRelatedTo("logical-link"); + logicalLinksRelationship.setRelationDataList(Arrays.asList(logicalLinksRelationshipData)); + + RelationshipList logicalLinksRelationshipsList = new RelationshipList(); + logicalLinksRelationshipsList.setRelationship(Arrays.asList(logicalLinksRelationship)); + + serviceRelationships.setRelationshipList(logicalLinksRelationshipsList); + return serviceRelationships; + } + + private LogicalLinkResponse createLogicalLinkResponse() { + LogicalLinkResponse logicalLinkResponse = new LogicalLinkResponse(); + logicalLinkResponse.setLinkName("SANITY6758cce9:LAG1992|SANITY6785cce9:LAG1961"); + + RelationshipData lagInterfaceRelationshipData = new RelationshipData(); + lagInterfaceRelationshipData.setRelationshipKey("pnf.pnf-name"); + lagInterfaceRelationshipData.setRelationshipValue("SANITY6785cce9"); + + Relationship lagInterfaceRelationship = new Relationship(); + lagInterfaceRelationship.setRelatedTo("lag-interface"); + lagInterfaceRelationship.setRelationDataList(Arrays.asList(lagInterfaceRelationshipData)); + + RelationshipList lagInterfaceRelationshipsList = new RelationshipList(); + lagInterfaceRelationshipsList.setRelationship(Arrays.asList(lagInterfaceRelationship)); + + logicalLinkResponse.setRelationshipList(lagInterfaceRelationshipsList); + + return logicalLinkResponse; + } + + @DataProvider + public static Object[][] getTenantsData() { + return new Object[][] { + {"customer1", "serviceType1", "tenant1", "customer1", "serviceType1", "tenant1", "id-1", true}, + {"customer1", "serviceType1", "TeNant1", "customer1", "serviceType1", "tenant1", "id-1", true}, + {"customer1", "serviceType1", "TENANT1", "customer1", "serviceType1", "tenant1", "id-1", true}, + {"customer1", "serviceType1", "tenant2", "customer1", "serviceType1", "tenant1", "tenant2", false}, + {"customer1", "serviceType1", null, "customer1", "serviceType1", "tenant1", "tenant2", true}, + {"customer2", "serviceType1", "tenant1", "customer1", "serviceType1", "tenant1", "id-1", false}, + {"customer1", "serviceType2", "tenant1", "customer1", "serviceType1", "tenant1", "id-1", false}, + {"customer2", "serviceType1", null, "customer1", "serviceType1", "tenant1", "id-1", false}, + {"customer1", "serviceType2", null, "customer1", "serviceType1", "tenant1", "id-1", false}, + }; + } + + @Test(dataProvider = "getTenantsData") + public void testGetTenants(String userGlobalCustomerId, String userServiceType, String userTenantName, String serviceGlobalCustomerId, + String serviceServiceType, String serviceTenantName, String serviceTenantId, boolean expectedIsPermitted) { + GetTenantsResponse[] getTenantsResponses = new GetTenantsResponse[] {new GetTenantsResponse(null, serviceTenantName, serviceTenantId, false)}; + AaiResponse<GetTenantsResponse[]> aaiResponse = new AaiResponse<>(getTenantsResponses, null, 200); + Mockito.doReturn(aaiResponse).when(aaiClientInterface).getTenants(serviceGlobalCustomerId, serviceServiceType); + Role role = new Role(null, userGlobalCustomerId, userServiceType, userTenantName); + RoleValidator roleValidator = new RoleValidator(Collections.singletonList(role)); + AaiResponse<GetTenantsResponse[]> actualTenants = aaiService.getTenants(serviceGlobalCustomerId, serviceServiceType, roleValidator); + + assertThat(actualTenants.getT(), arrayWithSize(1)); + assertThat(actualTenants.getT()[0].tenantName, equalTo(serviceTenantName)); + assertThat(actualTenants.getT()[0].isPermitted, equalTo(expectedIsPermitted)); + } +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/client/FakeHttpSessionTest.java b/vid-app-common/src/test/java/org/onap/vid/client/FakeHttpSessionTest.java index f28558570..74cfbcfc7 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/client/FakeHttpSessionTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/client/FakeHttpSessionTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.client; +package org.onap.vid.client; import java.util.Enumeration; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/client/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/client/TestSuite.java index dbbd56910..434dd5cc0 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/client/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/client/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.client; +package org.onap.vid.client; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/AaiControllerTest.java index e342940f3..548c48043 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/controller/AaiControllerTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.controller; +package org.onap.vid.controller; import javax.servlet.http.HttpServletRequest; @@ -14,24 +14,6 @@ public class AaiControllerTest { } @Test - public void testParseCustomerObjectForTenants() throws Exception { - JSONObject jsonObject = null; - String result; - - // default test - result = AaiController.parseCustomerObjectForTenants(jsonObject); - } - - @Test - public void testParseServiceSubscriptionObjectForTenants() throws Exception { - JSONObject jsonObject = null; - String result; - - // default test - result = AaiController.parseServiceSubscriptionObjectForTenants(jsonObject); - } - - @Test public void testWelcome() throws Exception { AaiController testSubject; HttpServletRequest request = null; @@ -42,25 +24,6 @@ public class AaiControllerTest { result = testSubject.welcome(request); } - @Test - public void testGetViewName() throws Exception { - AaiController testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getViewName(); - } - - @Test - public void testSetViewName() throws Exception { - AaiController testSubject; - String viewName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setViewName(viewName); - } @Test public void testGetTargetProvStatus() throws Exception { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/HealthCheckControllerTest.java index 045ad9a61..ddbe4e888 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/controller/HealthCheckControllerTest.java @@ -1,7 +1,7 @@ -package org.openecomp.vid.controller; +package org.onap.vid.controller; import org.junit.Test; -import org.openecomp.vid.controller.HealthCheckController.HealthStatus; +import org.onap.vid.controller.HealthCheckController.HealthStatus; public class HealthCheckControllerTest { diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/LocalWebConfig.java b/vid-app-common/src/test/java/org/onap/vid/controller/LocalWebConfig.java new file mode 100644 index 000000000..9b6a3e7b4 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controller/LocalWebConfig.java @@ -0,0 +1,70 @@ +package org.onap.vid.controller; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.commons.io.IOUtils; +import org.json.JSONObject; +import org.json.JSONTokener; +import org.onap.vid.aai.AaiClient; +import org.onap.vid.aai.AaiClientInterface; +import org.onap.vid.asdc.AsdcClient; +import org.onap.vid.asdc.local.LocalAsdcClient; +import org.onap.vid.asdc.parser.ToscaParserImpl2; +import org.onap.vid.controller.VidController; +import org.onap.vid.services.AaiService; +import org.onap.vid.services.AaiServiceImpl; +import org.onap.vid.services.VidService; +import org.onap.vid.services.VidServiceImpl; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import java.io.IOException; +import java.io.InputStream; + +@Configuration +public class LocalWebConfig { + + /** + * Gets the object mapper. + * + * @return the object mapper + */ + @Bean + public ObjectMapper getObjectMapper() { + return new ObjectMapper(); + } + + + @Bean + public VidService vidService(AsdcClient asdcClient) { + return new VidServiceImpl(asdcClient); + } + + @Bean + public AaiService getAaiService() { + return new AaiServiceImpl(); + } + + @Bean + public AaiClientInterface getAaiClientInterface() { + return new AaiClient(); + } + + @Bean + public AsdcClient asdcClient() throws IOException { + + + final InputStream asdcServicesFile = VidController.class.getClassLoader().getResourceAsStream("sdcservices.json"); + + final JSONTokener jsonTokener = new JSONTokener(IOUtils.toString(asdcServicesFile)); + final JSONObject sdcServicesCatalog = new JSONObject(jsonTokener); + + return new LocalAsdcClient.Builder().catalog(sdcServicesCatalog).build(); + + } + + @Bean + public ToscaParserImpl2 getToscaParser() { + return new ToscaParserImpl2(); + } + +} diff --git a/vid-app-common/src/test/java/org/opencomp/vid/controller/MsoControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/MsoControllerTest.java index 731668dc2..6ca6a9f01 100644 --- a/vid-app-common/src/test/java/org/opencomp/vid/controller/MsoControllerTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/controller/MsoControllerTest.java @@ -1,67 +1,67 @@ -package org.opencomp.vid.controller; +package org.onap.vid.controller; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.SerializationFeature; import org.apache.commons.lang.StringEscapeUtils; -import org.junit.Test; -import org.junit.runner.RunWith; import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.vid.controller.MsoConfig; -import org.openecomp.vid.controller.MsoController; -import org.openecomp.vid.domain.mso.RequestInfo; -import org.openecomp.vid.factories.MsoRequestFactory; -import org.openecomp.vid.mso.rest.*; +import org.onap.vid.controller.MsoConfig; +import org.onap.vid.controller.MsoController; +import org.onap.vid.domain.mso.RequestInfo; +import org.onap.vid.factories.MsoRequestFactory; +import org.onap.vid.mso.rest.Request; +import org.onap.vid.mso.rest.RequestDetails; +import org.onap.vid.mso.rest.Task; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; import org.springframework.test.context.web.WebAppConfiguration; +import org.testng.Assert; +import org.testng.Assert.*; +import org.testng.annotations.Test; -import java.util.ArrayList; import java.util.List; -import static org.junit.Assert.assertEquals; -@RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration -@ContextConfiguration(classes = {SystemProperties.class , MsoConfig.class}) -public class MsoControllerTest { +@ContextConfiguration(classes = {SystemProperties.class, MsoConfig.class}) +public class MsoControllerTest extends AbstractTestNGSpringContextTests { @Autowired MsoRequestFactory msoRequestFactory; - //@Test + @Test(enabled = false) public void testInstanceCreationNew() throws Exception { RequestDetails requestDetails = msoRequestFactory.createMsoRequest("msoRequest.json"); - MsoController msoController = new MsoController(); - ResponseEntity<String> responseEntityNew = msoController.createSvcInstanceNew(null, requestDetails); + MsoController msoController = new MsoController(null); + //TODO: make ths test to really test something + //ResponseEntity<String> responseEntityNew = msoController.createSvcInstanceNew(null, requestDetails); ResponseEntity<String> responseEntity = msoController.createSvcInstance(null, requestDetails); - assertEquals(responseEntityNew, responseEntity); + //Assert.assertEquals(responseEntityNew, responseEntity); } - //@Test + @Test(enabled = false) public void testInstanceCreationLocalWithRest() throws Exception { RequestDetails requestDetails = msoRequestFactory.createMsoRequest("msoRequest.json"); - MsoController msoController = new MsoController(); + MsoController msoController = new MsoController(null); ResponseEntity<String> responseEntityNew = msoController.createSvcInstance(null, requestDetails); - ResponseEntity<String> responseEntityRest = msoController.createSvcInstanceNewRest(null, requestDetails); - - assertEquals(responseEntityNew.getBody(), responseEntityRest.getBody()); + //TODO: make ths test to really test something +// ResponseEntity<String> responseEntityRest = msoController.createSvcInstanceNewRest(null, requestDetails); +// +// Assert.assertEquals(responseEntityNew.getBody(), responseEntityRest.getBody()); } - //@Test + @Test(enabled = false) public void testInstanceCreation() throws Exception { RequestDetails requestDetails = msoRequestFactory.createMsoRequest("msoRequest.json"); - MsoController msoController = new MsoController(); + MsoController msoController = new MsoController(null); ResponseEntity<String> responseEntity = msoController.createSvcInstance(null, requestDetails); - assertEquals(responseEntity.getBody(), "{ \"status\": 200, \"entity\": {\n" + + Assert.assertEquals(responseEntity.getBody(), "{ \"status\": 200, \"entity\": {\n" + " \"requestReferences\": {\n" + " \"instanceId\": \"ba00de9b-3c3e-4b0a-a1ad-0c5489e711fb\",\n" + " \"requestId\": \"311cc766-b673-4a50-b9c5-471f68914586\"\n" + @@ -70,43 +70,40 @@ public class MsoControllerTest { } - @Test - public void testGetOrchestrationRequestsForDashboard() throws Exception{ - MsoController msoController = new MsoController(); + @Test(enabled = false) + public void testGetOrchestrationRequestsForDashboard() throws Exception { + MsoController msoController = new MsoController(null); List<Request> orchestrationRequestsForDashboard = msoController.getOrchestrationRequestsForDashboard(); - assertEquals(orchestrationRequestsForDashboard.size() , 2); + Assert.assertEquals(orchestrationRequestsForDashboard.size(), 2); } - @Test - public void testGetManualTasksByRequestId() throws Exception{ - MsoController msoController = new MsoController(); + @Test(enabled = false) + public void testGetManualTasksByRequestId() throws Exception { + MsoController msoController = new MsoController(null); List<Task> orchestrationRequestsForDashboard = msoController.getManualTasksByRequestId("za1234d1-5a33-55df-13ab-12abad84e335"); - assertEquals(orchestrationRequestsForDashboard.get(0).getTaskId() , "daf4dd84-b77a-42da-a051-3239b7a9392c"); + Assert. assertEquals(orchestrationRequestsForDashboard.get(0).getTaskId(), "daf4dd84-b77a-42da-a051-3239b7a9392c"); } - public void testCompleteManualTask() throws Exception{ // TODO not done yet + public void testCompleteManualTask() throws Exception { // TODO not done yet RequestInfo requestInfo = new RequestInfo(); requestInfo.setResponseValue("rollback"); requestInfo.setRequestorId("abc"); requestInfo.setSource("VID"); RequestDetails requestDetails = new RequestDetails(); requestDetails.setRequestInfo(requestInfo); - MsoController msoController = new MsoController(); - ResponseEntity<String> responseEntity = msoController.manualTaskComplete("daf4dd84-b77a-42da-a051-3239b7a9392c" , requestDetails); + MsoController msoController = new MsoController(null); + ResponseEntity<String> responseEntity = msoController.manualTaskComplete("daf4dd84-b77a-42da-a051-3239b7a9392c", requestDetails); String assertString = "{ \\\"status\\\": 200, \\\"entity\\\": {\\n\" +\n" + " \" \\\"taskRequestReference\\\": {\\n\" +\n" + " \" \\\"taskId\\\": \\\"daf4dd84-b77a-42da-a051-3239b7a9392c\\\"\\n\" +\n" + " \" }\\n\" +\n" + " \"}\\n\" +\n" + " \"}"; - assertEquals(responseEntity.getBody() , StringEscapeUtils.unescapeJava(assertString)); + Assert.assertEquals(responseEntity.getBody(), StringEscapeUtils.unescapeJava(assertString)); } - - - } diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/PromiseEcompRequestIdFilterTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/PromiseEcompRequestIdFilterTest.java new file mode 100644 index 000000000..245d8bbd5 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controller/PromiseEcompRequestIdFilterTest.java @@ -0,0 +1,168 @@ +package org.onap.vid.controller; + +import com.google.common.collect.ImmutableMap; +import org.mockito.ArgumentCaptor; +import org.mockito.Mockito; +import org.mockito.stubbing.Answer; +import org.openecomp.portalsdk.core.web.support.UserUtils; +import org.onap.vid.controller.filter.PromiseEcompRequestIdFilter; +import org.springframework.mock.web.MockHttpServletResponse; +import org.testng.annotations.Test; + +import javax.servlet.FilterChain; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.*; +import java.util.function.Function; + +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.*; +import static org.mockito.Matchers.any; +import static org.mockito.Matchers.argThat; +import static org.openecomp.portalsdk.core.util.SystemProperties.ECOMP_REQUEST_ID; + +@Test +public class PromiseEcompRequestIdFilterTest { + + private final String anotherHeader = "ANDREI_RUBLEV"; + private final String anotherValue = "foo value"; + private final String mixedCaseHeader = "x-ecomp-REQUESTID"; + + @Test + public void givenRequestIdHeader_headerValueNotChanged() throws IOException, ServletException { + + final String someTxId = "863850e2-8545-4efd-94b8-afba5f52b3d5"; + + final ImmutableMap<String, String> incomingRequestHeaders = ImmutableMap.of( + anotherHeader, anotherValue, + ECOMP_REQUEST_ID, someTxId + ); + + buildRequestThenRunThroughFilterAndAssertResultRequestHeaders(incomingRequestHeaders, specificTxId(someTxId)); + } + + @Test + public void givenMixedCaseRequestIdHeader_headerValueNotChanged() throws IOException, ServletException { + + final String someTxId = "729bbd8d-b0c2-4809-a794-dcccd9cda2c0"; + + final ImmutableMap<String, String> incomingRequestHeaders = ImmutableMap.of( + mixedCaseHeader, someTxId, + anotherHeader, anotherValue + ); + + buildRequestThenRunThroughFilterAndAssertResultRequestHeaders(incomingRequestHeaders, specificTxId(someTxId)); + } + + @Test + public void givenNoRequestIdHeader_headerValueWasGenerated() throws IOException, ServletException { + + final ImmutableMap<String, String> incomingRequestHeaders = ImmutableMap.of( + anotherHeader, anotherValue + ); + + buildRequestThenRunThroughFilterAndAssertResultRequestHeaders(incomingRequestHeaders, UserUtils::getRequestId); + } + + + private void buildRequestThenRunThroughFilterAndAssertResultRequestHeaders( + ImmutableMap<String, String> originalRequestHeaders, + Function<HttpServletRequest, String> txIdExtractor + ) throws IOException, ServletException { + HttpServletRequest servletRequest = createMockedHttpServletRequest(originalRequestHeaders); + HttpServletResponse servletResponse = createMockedHttpServletResponse(); + + final FilterChain capturingFilterChain = Mockito.mock(FilterChain.class); + + ////////////////// + // + // doFilter() is the function under test + // + new PromiseEcompRequestIdFilter().doFilter(servletRequest, servletResponse, capturingFilterChain); + // + ////////////////// + + final ServletRequest capturedServletRequest = extractCapturedServletRequest(capturingFilterChain); + final ServletResponse capturedServletResponse = extractCapturedServletResponse(capturingFilterChain); + final String expectedTxId = txIdExtractor.apply((HttpServletRequest) capturedServletRequest); + + assertRequestObjectHeaders(capturedServletRequest, expectedTxId); + assertResponseObjectHeaders(capturedServletResponse, expectedTxId); + } + + + private void assertRequestObjectHeaders(ServletRequest request, String expectedTxId) { + /* + Assert that: + - Two headers are in place + - Direct value extraction is as expected + - UserUtils.getRequestId() returns correct and valid value + */ + final HttpServletRequest httpServletRequest = (HttpServletRequest) request; + + assertThat(Collections.list(httpServletRequest.getHeaderNames()), + containsInAnyOrder(equalToIgnoringCase(ECOMP_REQUEST_ID), equalToIgnoringCase(anotherHeader))); + + assertThat(httpServletRequest.getHeader(anotherHeader), is(anotherValue)); + + assertThat(httpServletRequest.getHeader(ECOMP_REQUEST_ID), is(expectedTxId)); + assertThat(httpServletRequest.getHeader(mixedCaseHeader), is(expectedTxId)); + + assertThat(UserUtils.getRequestId(httpServletRequest), is(expectedTxId)); + assertThat(UserUtils.getRequestId(httpServletRequest), is(not(emptyOrNullString()))); + } + + private void assertResponseObjectHeaders(ServletResponse response, String txId) { + final String REQUEST_ID_HEADER_NAME_IN_RESPONSE = mixedCaseHeader + "-echo"; + final HttpServletResponse httpServletResponse = (HttpServletResponse) response; + + assertThat("header " + REQUEST_ID_HEADER_NAME_IN_RESPONSE.toLowerCase() + " in response must be provided", + httpServletResponse.getHeader(REQUEST_ID_HEADER_NAME_IN_RESPONSE), is(txId)); + } + + + + private HttpServletRequest createMockedHttpServletRequest(Map<String, String> requestHeaders) { + HttpServletRequest servletRequest = Mockito.mock(HttpServletRequest.class); + requestHeaders.forEach((k, v) -> { + Mockito.when(servletRequest.getHeader(argThat(equalToIgnoringCase(k)))).thenReturn(v); + Mockito.when(servletRequest.getHeaders(argThat(equalToIgnoringCase(k)))).then(returnEnumerationAnswer(v)); + }); + Mockito.when(servletRequest.getHeaderNames()).then(returnEnumerationAnswer(requestHeaders.keySet())); + return servletRequest; + } + + private HttpServletResponse createMockedHttpServletResponse() { + return new MockHttpServletResponse(); + } + + private static Answer<Enumeration<String>> returnEnumerationAnswer(String ... items) { + return returnEnumerationAnswer(Arrays.asList(items)); + } + + private static Answer<Enumeration<String>> returnEnumerationAnswer(Collection<String> items) { + return invocation -> Collections.enumeration(items); + } + + private Function<HttpServletRequest, String> specificTxId(String someTxId) { + return r -> someTxId; + } + + private ServletRequest extractCapturedServletRequest(FilterChain capturingFilterChain) throws IOException, ServletException { + ArgumentCaptor<ServletRequest> captor = ArgumentCaptor.forClass(ServletRequest.class); + Mockito.verify(capturingFilterChain).doFilter(captor.capture(), any()); + return captor.getValue(); + } + + private ServletResponse extractCapturedServletResponse(FilterChain capturingFilterChain) throws IOException, ServletException { + ArgumentCaptor<ServletResponse> captor = ArgumentCaptor.forClass(ServletResponse.class); + Mockito.verify(capturingFilterChain).doFilter(any(), captor.capture()); + return captor.getValue(); + } + +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/PropertyControllerTest.java index cf7ada46a..e9c2e61be 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/controller/PropertyControllerTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.controller; +package org.onap.vid.controller; import javax.servlet.http.HttpServletRequest; @@ -23,25 +23,6 @@ public class PropertyControllerTest { result = testSubject.welcome(request); } - @Test - public void testGetViewName() throws Exception { - PropertyController testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getViewName(); - } - - @Test - public void testSetViewName() throws Exception { - PropertyController testSubject; - String _viewName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setViewName(_viewName); - } @Test public void testGetProperty() throws Exception { diff --git a/vid-app-common/src/test/java/org/opencomp/vid/controller/ToscaParserMockHelper.java b/vid-app-common/src/test/java/org/onap/vid/controller/ToscaParserMockHelper.java index a9a902b6a..36a179109 100644 --- a/vid-app-common/src/test/java/org/opencomp/vid/controller/ToscaParserMockHelper.java +++ b/vid-app-common/src/test/java/org/onap/vid/controller/ToscaParserMockHelper.java @@ -1,6 +1,6 @@ -package org.opencomp.vid.controller; +package org.onap.vid.controller; -import org.openecomp.vid.model.NewServiceModel; +import org.onap.vid.model.NewServiceModel; /** * Created by moriya1 on 04/07/2017. diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/VidControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/VidControllerTest.java new file mode 100644 index 000000000..b443e1f05 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controller/VidControllerTest.java @@ -0,0 +1,187 @@ +package org.onap.vid.controller; + +import com.fasterxml.jackson.databind.ObjectMapper; +import net.javacrumbs.jsonunit.JsonAssert; +import org.apache.commons.io.IOUtils; +import org.onap.vid.asdc.AsdcCatalogException; +import org.onap.vid.asdc.AsdcClient; +import org.onap.vid.asdc.parser.ToscaParserImpl2; +import org.onap.vid.model.*; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.mock.web.MockServletContext; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; +import org.springframework.test.context.web.WebAppConfiguration; +import org.testng.Assert; +import org.testng.annotations.Test; + +import static org.onap.vid.testUtils.TestUtils.assertJsonStringEqualsIgnoreNulls; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Path; +import java.util.Map; +import java.util.UUID; + +//import org.junit.Assert; +//import org.junit.Ignore; +//import org.junit.Test; +//import org.junit.runner.RunWith; +//import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +@ContextConfiguration(classes = {LocalWebConfig.class, SystemProperties.class}) +//@RunWith(SpringJUnit4ClassRunner.class) +@WebAppConfiguration + +public class VidControllerTest extends AbstractTestNGSpringContextTests { + + @Autowired + MockServletContext context; + @Autowired + private AsdcClient asdcClient; + private ToscaParserImpl2 p2 = new ToscaParserImpl2(); + private ObjectMapper om = new ObjectMapper(); + + + @Test + public void assertEqualsBetweenServices() throws Exception { + for (ToscaParserMockHelper mockHelper : getExpectedServiceModel()) { + Service expectedService = mockHelper.getNewServiceModel().getService(); + Service actualService = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getService(); + assertJsonStringEqualsIgnoreNulls(om.writeValueAsString(expectedService), om.writeValueAsString(actualService)); + } + } + +// @Test +// public void assertEqualBetweenObjects() throws Exception { +// for (ToscaParserMockHelper mockHelper : getExpectedServiceModel()) { +// final Path csarPath = getCsarPath(mockHelper.getUuid()); +// System.out.println("Comparing for csar " + csarPath); +// ServiceModel actualServiceModel = p2.makeServiceModel(csarPath, getServiceByUuid(mockHelper.getUuid())); +// assertJsonStringEqualsIgnoreNulls(om.writeValueAsString(mockHelper.getNewServiceModel()), om.writeValueAsString(actualServiceModel)); +// } +// } + +// @Test +// public void assertEqualsBetweenNetworkNodes() throws Exception { +// for (ToscaParserMockHelper mockHelper : getExpectedServiceModel()) { +// Map<String, Network> expectedNetworksMap = mockHelper.getNewServiceModel().getNetworks(); +// Map<String, Network> actualNetworksMap = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getNetworks(); +// for (Map.Entry<String, Network> entry : expectedNetworksMap.entrySet()) { +// Network expectedNetwork = entry.getValue(); +// Network actualNetwork = actualNetworksMap.get(entry.getKey()); +// Assert.assertEquals(expectedNetwork.getModelCustomizationName(), actualNetwork.getModelCustomizationName()); +// verifyBaseNodeProperties(expectedNetwork, actualNetwork); +// compareProperties(expectedNetwork.getProperties(), actualNetwork.getProperties()); +// } +// } +// } + + //Because we are not supporting the old flow, the JSON are different by definition. + @Test + public void assertEqualsBetweenVnfsOfTosca() throws Exception { + for (ToscaParserMockHelper mockHelper : getExpectedServiceModel()) { + Map<String, VNF> expectedVnfsMap = mockHelper.getNewServiceModel().getVnfs(); + Map<String, VNF> actualVnfsMap = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getVnfs(); + for (Map.Entry<String, VNF> entry : expectedVnfsMap.entrySet()) { + VNF expectedVnf = entry.getValue(); + VNF actualVnf = actualVnfsMap.get(entry.getKey()); + verifyBaseNodeProperties(expectedVnf, actualVnf); + Assert.assertEquals(expectedVnf.getModelCustomizationName(), actualVnf.getModelCustomizationName()); + compareProperties(expectedVnf.getProperties(), actualVnf.getProperties()); + assertJsonStringEqualsIgnoreNulls(om.writeValueAsString(expectedVnf), om.writeValueAsString(actualVnf)); + } + } + } + + @Test + public void assertEqualsBetweenVolumeGroups() throws Exception { + for (ToscaParserMockHelper mockHelper : getExpectedServiceModel()) { + Map<String, VolumeGroup> actualVolumeGroups = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getVolumeGroups(); + Map<String, VolumeGroup> expectedVolumeGroups = mockHelper.getNewServiceModel().getVolumeGroups(); + JsonAssert.assertJsonEquals(actualVolumeGroups, expectedVolumeGroups); + } + } + + @Test + public void assertEqualsBetweenVfModules() throws Exception { + for (ToscaParserMockHelper mockHelper : getExpectedServiceModel()) { + Map<String, VfModule> actualVfModules = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getVfModules(); + Map<String, VfModule> expectedVfModules = mockHelper.getNewServiceModel().getVfModules(); + JsonAssert.assertJsonEquals(actualVfModules, expectedVfModules); + } + } + + @Test + public void assertEqualsBetweenPolicyConfigurationNodes() throws Exception { + for (ToscaParserMockHelper mockHelper : getExpectedServiceModel()) { + Map<String, PortMirroringConfig> actualConfigurations = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getConfigurations(); + Map<String, PortMirroringConfig> expectedConfigurations = mockHelper.getNewServiceModel().getConfigurations(); + JsonAssert.assertJsonEquals(actualConfigurations, expectedConfigurations); + } + } + + @Test + public void assertEqualsBetweenServiceProxyNodes() throws Exception { + for (ToscaParserMockHelper mockHelper : getExpectedServiceModel()) { + Map<String, ServiceProxy> actualServiceProxies = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getServiceProxies(); + Map<String, ServiceProxy> expectedServiceProxies = mockHelper.getNewServiceModel().getServiceProxies(); + JsonAssert.assertJsonEquals(actualServiceProxies, expectedServiceProxies); + } + } + + private void verifyBaseNodeProperties(Node expectedNode, Node actualNode) { + Assert.assertEquals(expectedNode.getName(), actualNode.getName()); + Assert.assertEquals(expectedNode.getCustomizationUuid(), actualNode.getCustomizationUuid()); + Assert.assertEquals(expectedNode.getDescription(), actualNode.getDescription()); + Assert.assertEquals(expectedNode.getInvariantUuid(), actualNode.getInvariantUuid()); + Assert.assertEquals(expectedNode.getUuid(), actualNode.getUuid()); + Assert.assertEquals(expectedNode.getVersion(), actualNode.getVersion()); + } + + private void compareProperties(Map<String, String> expectedProperties, Map<String, String> actualProperties) { + for (Map.Entry<String, String> property : expectedProperties.entrySet()) { + String expectedValue = property.getValue(); + String key = property.getKey(); + String actualValue = actualProperties.get(key); + Assert.assertEquals(expectedValue, actualValue); + } + } + + private ToscaParserMockHelper[] getExpectedServiceModel() throws IOException { + ToscaParserMockHelper[] mockHelpers = { + new ToscaParserMockHelper(Constants.vlUuid, Constants.vlFilePath), + new ToscaParserMockHelper(Constants.vfUuid, Constants.vfFilePath), + new ToscaParserMockHelper(Constants.configurationUuid, Constants.configurationFilePath), + }; + for (ToscaParserMockHelper mockHelper : mockHelpers) { + InputStream jsonFile = VidControllerTest.class.getClassLoader().getResourceAsStream(mockHelper.getFilePath()); + String expectedJsonAsString = IOUtils.toString(jsonFile); + NewServiceModel newServiceModel1 = om.readValue(expectedJsonAsString, NewServiceModel.class); + mockHelper.setNewServiceModel(newServiceModel1); + } + return mockHelpers; + } + + private Path getCsarPath(String uuid) throws AsdcCatalogException { + return asdcClient.getServiceToscaModel(UUID.fromString(uuid)); + } + + private org.onap.vid.asdc.beans.Service getServiceByUuid(String uuid) throws AsdcCatalogException { + return asdcClient.getService(UUID.fromString(uuid)); + } + + public class Constants { + public static final String configurationUuid = "ee6d61be-4841-4f98-8f23-5de9da846ca7"; + public static final String configurationFilePath = "policy-configuration-csar.JSON"; + static final String vfUuid = "48a52540-8772-4368-9cdb-1f124ea5c931"; + static final String vlUuid = "cb49608f-5a24-4789-b0f7-2595473cb997"; + // public static final String PNFUuid = "68101369-6f08-4e99-9a28-fa6327d344f3"; + static final String vfFilePath = "vf-csar.JSON"; + static final String vlFilePath = "vl-csar.JSON"; +// public static final String PNFFilePath = "/Users/Oren/Git/Att/vid_internal/vid-app-common/src/main/resources/pnf.csar"; + + } + +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/ViewEditSubControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/ViewEditSubControllerTest.java new file mode 100644 index 000000000..061b359c7 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controller/ViewEditSubControllerTest.java @@ -0,0 +1,45 @@ +//package org.onap.vid.controller; +// +//import javax.servlet.http.HttpServletRequest; +// +//import org.junit.Test; +//import org.springframework.web.servlet.ModelAndView; +// +//public class ViewEditSubControllerTest { +// +// private ViewEditSubController createTestSubject() { +// return new ViewEditSubController(); +// } +// +// @Test +// public void testWelcome() throws Exception { +// ViewEditSubController testSubject; +// HttpServletRequest request = null; +// ModelAndView result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.welcome(request); +// } +// +// +// @Test +// public void testGetViewName() throws Exception { +// ViewEditSubController testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getViewName(); +// } +// +// @Test +// public void testSetViewName() throws Exception { +// ViewEditSubController testSubject; +// String viewName = ""; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.setViewName(viewName); +// } +//}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/integrationTest/AaiIntegrationTest.java b/vid-app-common/src/test/java/org/onap/vid/integrationTest/AaiIntegrationTest.java new file mode 100644 index 000000000..eaad6ccc6 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/integrationTest/AaiIntegrationTest.java @@ -0,0 +1,43 @@ +package org.onap.vid.integrationTest; + +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.aai.AaiClient; +import org.onap.vid.aai.AaiClientInterface; +import org.onap.vid.aai.AaiResponse; +import org.onap.vid.aai.model.GetServiceModelsByDistributionStatusResponse; +import org.onap.vid.aai.model.Result; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.mock.web.MockServletContext; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; +import org.springframework.test.context.web.WebAppConfiguration; +import org.testng.Assert; +import org.testng.annotations.Test; + + +@ContextConfiguration(classes = {SystemProperties.class}) + + +@WebAppConfiguration +public class AaiIntegrationTest extends AbstractTestNGSpringContextTests { + + + @Autowired + MockServletContext servletContext; + + + @Test + public void testGetServiceModelsFromAai() throws Exception { + AaiClientInterface aaiClient = new AaiClient(servletContext); + AaiResponse<GetServiceModelsByDistributionStatusResponse> serviceModelsByDistributionStatusResponse = aaiClient.getServiceModelsByDistributionStatus(); + GetServiceModelsByDistributionStatusResponse response = serviceModelsByDistributionStatusResponse.getT(); + for(Result result: response.getResults()){ + Assert.assertNotNull(result.getModel().getModelInvariantId()); + Assert.assertNotNull(result.getModel().getModelVers().getModelVer().get(0).getModelVersionId()); + Assert.assertNotNull(result.getModel().getModelVers().getModelVer().get(0).getModelName()); + Assert.assertNotNull(result.getModel().getModelVers().getModelVer().get(0).getModelVersion()); + } + } + + +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/ModelUtilTest.java b/vid-app-common/src/test/java/org/onap/vid/model/ModelUtilTest.java index 8a9f4de8d..af69b5342 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/ModelUtilTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/model/ModelUtilTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import org.junit.Assert; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/NewNodeTest.java b/vid-app-common/src/test/java/org/onap/vid/model/NewNodeTest.java index fb75c749e..853ad738d 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/NewNodeTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/model/NewNodeTest.java @@ -1,9 +1,9 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.util.Map; import org.junit.Test; -import org.openecomp.vid.asdc.beans.tosca.Input; +import org.onap.vid.asdc.beans.tosca.Input; public class NewNodeTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/NewServiceTest.java b/vid-app-common/src/test/java/org/onap/vid/model/NewServiceTest.java index f78914279..ec688bdf3 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/NewServiceTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/model/NewServiceTest.java @@ -1,9 +1,9 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.util.Map; import org.junit.Test; -import org.openecomp.vid.asdc.beans.tosca.Input; +import org.onap.vid.asdc.beans.tosca.Input; public class NewServiceTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/NewVNFTest.java b/vid-app-common/src/test/java/org/onap/vid/model/NewVNFTest.java index 5f4f90b93..6546e0888 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/NewVNFTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/model/NewVNFTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.util.Map; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/ServiceModelTest.java b/vid-app-common/src/test/java/org/onap/vid/model/ServiceModelTest.java index 45f492016..27aa468c1 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/ServiceModelTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/model/ServiceModelTest.java @@ -1,10 +1,10 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.util.Map; import org.junit.Test; -import org.openecomp.vid.asdc.beans.tosca.ToscaModel; -import org.openecomp.vid.model.Service; +import org.onap.vid.asdc.beans.tosca.ToscaModel; +import org.onap.vid.model.Service; public class ServiceModelTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/model/TestSuite.java index 3d7f57b38..f634fbc95 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/model/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/VolumeGroupTest.java b/vid-app-common/src/test/java/org/onap/vid/model/VolumeGroupTest.java index 038290b2a..05e517ec3 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/VolumeGroupTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/model/VolumeGroupTest.java @@ -1,7 +1,7 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import org.junit.Test; -import org.openecomp.vid.asdc.beans.tosca.Group; +import org.onap.vid.asdc.beans.tosca.Group; public class VolumeGroupTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/model/WorkflowTest.java b/vid-app-common/src/test/java/org/onap/vid/model/WorkflowTest.java index 5f8ec7d18..8cfc65a73 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/model/WorkflowTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/model/WorkflowTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.model; +package org.onap.vid.model; import java.util.Collection; diff --git a/vid-app-common/src/test/java/org/onap/vid/model/oeModel.java b/vid-app-common/src/test/java/org/onap/vid/model/oeModel.java new file mode 100644 index 000000000..9d350cb72 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/model/oeModel.java @@ -0,0 +1,10 @@ +package org.onap.vid.model; + +import java.util.List; +import java.util.Map; + +public class oeModel { + public Map<String,List<Map<String,String>>> categoryParameters; +} + + diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/MsoBusinessLogicTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/MsoBusinessLogicTest.java new file mode 100644 index 000000000..4a0685786 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/MsoBusinessLogicTest.java @@ -0,0 +1,71 @@ +package org.onap.vid.mso; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.MockitoAnnotations; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.controller.MsoConfig; +import org.onap.vid.mso.MsoBusinessLogicImpl; +import org.onap.vid.mso.MsoInterface; +import org.onap.vid.mso.MsoResponseWrapper; +import org.onap.vid.mso.rest.RequestDetails; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; +import org.springframework.test.context.web.WebAppConfiguration; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.Test; + +import java.net.URL; + +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertNotNull; + +@Test +@ContextConfiguration(classes = { SystemProperties.class, MsoConfig.class }) +@WebAppConfiguration +public class MsoBusinessLogicTest extends AbstractTestNGSpringContextTests { + + @InjectMocks + private MsoBusinessLogicImpl msoBusinessLogic; + + @Mock + private MsoInterface msoClient; + + @BeforeMethod + public void initMocks(){ + MockitoAnnotations.initMocks(this); + } + + @Test + public void testCreateInstance() throws Exception { + String instanceId = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d"; + final RequestDetails requestDetails = setRequestDetails("mso_request_create_configuration.json"); + Mockito.doReturn(getOkResponse(instanceId)).when(msoClient).createConfigurationInstance(requestDetails, "/serviceInstances/v6/3f93c7cb-2fd0-4557-9514-e189b7b04f9d/configurations"); + final MsoResponseWrapper msoResponseWrapper = msoBusinessLogic.createConfigurationInstance(requestDetails, instanceId); + + assertNotNull(msoResponseWrapper); + assertEquals(202, msoResponseWrapper.getStatus()); + } + + private MsoResponseWrapper getOkResponse(String instanceId){ + MsoResponseWrapper responseWrapper = new MsoResponseWrapper(); + String entity = " \"body\": {\n" + + " \"requestReferences\": {\n" + + " \"instanceId\": \""+instanceId+"\",\n" + + " \"requestId\": \"b6dc9806-b094-42f7-9386-a48de8218ce8\"\n" + + " }"; + responseWrapper.setEntity(entity); + responseWrapper.setStatus(202); + return responseWrapper; + } + + private RequestDetails setRequestDetails(String bodyFileName)throws Exception { + final URL resource = this.getClass().getResource("/payload_jsons/" + bodyFileName); + ObjectMapper mapper = new ObjectMapper(); + RequestDetails requestDetails = mapper.readValue(resource, RequestDetails.class); + return requestDetails; + + } +} diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/MsoOperationalEnvironmentTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/MsoOperationalEnvironmentTest.java new file mode 100644 index 000000000..fcf246c99 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/MsoOperationalEnvironmentTest.java @@ -0,0 +1,215 @@ +package org.onap.vid.mso; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableListMultimap; +import org.apache.commons.io.IOUtils; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.changeManagement.RequestDetailsWrapper; +import org.onap.vid.controller.MsoConfig; +import org.onap.vid.controller.OperationalEnvironmentController; +import org.onap.vid.controller.OperationalEnvironmentController.*; +import org.onap.vid.controller.WebConfig; +import org.onap.vid.mso.MsoBusinessLogic; +import org.onap.vid.mso.model.OperationalEnvironmentActivateInfo; +import org.onap.vid.mso.model.OperationalEnvironmentDeactivateInfo; +import org.onap.vid.mso.rest.OperationalEnvironment.OperationEnvironmentRequestDetails; +import org.onap.vid.mso.rest.RequestDetails; +import org.onap.vid.properties.AsdcClientConfiguration; +import org.skyscreamer.jsonassert.JSONAssert; +import org.skyscreamer.jsonassert.JSONCompareMode; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; +import org.springframework.test.context.web.WebAppConfiguration; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import javax.inject.Inject; +import java.io.IOException; +import java.net.URL; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +@Test +@ContextConfiguration(classes = { WebConfig.class, AsdcClientConfiguration.class, SystemProperties.class, MsoConfig.class }) +@WebAppConfiguration +public class MsoOperationalEnvironmentTest extends AbstractTestNGSpringContextTests { + + @Inject + private MsoBusinessLogic msoBusinessLogic; + + @Test(dataProvider = "getOperationalEnvironmentActivationPermutations") + public void testJsonResultOfOperationalEnvironmentActivationRequestDetails(HashMap<String, String> permutation) throws IOException { + + // Convert 'manifest' to model + final OperationalEnvironmentManifest manifest = new ObjectMapper().readerFor(OperationalEnvironmentManifest.class).readValue(permutation.get("<manifest>")); + + // build OperationalEnvironmentActivateInfo + OperationalEnvironmentActivateInfo inputUnderTest = createOperationalEnvironmentActivateInfo("<instanceId>", permutation.get("<userId>"), manifest, permutation.get("<relatedInstanceId>"), permutation.get("<relatedInstanceName>"), permutation.get("<workloadContext>")); + + // transform to RequestDetails, and serialize to json + // -> actually, the function "msoBusinessLogic.createOperationalEnvironmentActivationRequestDetails" + // is the code under test here + final RequestDetailsWrapper<RequestDetails> operationalEnvironmentActivationRequestDetails = msoBusinessLogic.createOperationalEnvironmentActivationRequestDetails(inputUnderTest); + + String expected = buildExpectation("payload_jsons/activateOperationalEnvironmentsPayloadToMso.json", permutation); + + assertThatExpectationIsLikeObject(expected, operationalEnvironmentActivationRequestDetails); + } + + @DataProvider + private Object[][] getOperationalEnvironmentActivationPermutations() throws IOException { + final String manifest = "" + + "{" + + " \"serviceModelList\": [" + + " {" + + " \"serviceModelVersionId\": \"uuid2\"," + + " \"recoveryAction\": \"retry\"" + + " }" + + " ]" + + "}"; + + + final ImmutableListMultimap<String, String> options = ImmutableListMultimap.<String, String>builder() + .putAll("<instanceId>", "instanceId") + .putAll("<userId>", "1", "0198adb8-87fd-46ef-94ae-258816629c8b") + .putAll("<relatedInstanceId>", "relatedInstanceId", "2744cf56-4f00-4e48-917b-c3bd3b1f8984") + .putAll("<relatedInstanceName>", "relatedInstanceName", "Brooklynn Puanani") + .putAll("<workloadContext>", "workloadContext", "VNF_E2E-extreme") + .putAll("<manifest>", manifest) + .build(); + + List<HashMap<String, String>> permutations = permuteOptions(options); + + return permutations.stream().map(m -> new Object[] { m }).collect(Collectors.toList()).toArray(new Object[0][0]); + } + + @Test(dataProvider = "getOperationalEnvironmentCreationPermutations") + public void testJsonResultOfOperationalEnvironmentCreationRequestDetails(HashMap<String, String> permutation) throws IOException { + + // build OperationalEnvironmentCreateBody + OperationalEnvironmentController.OperationalEnvironmentCreateBody inputUnderTest = createOperationalEnvironmentCreateBody(permutation.get("<instanceName>"), permutation.get("<ecompInstanceId>"), permutation.get("<ecompInstanceName>"), permutation.get("<operationalEnvType>"), permutation.get("<tenantContext>"), permutation.get("<workloadContext>")); + + // transform to RequestDetails, and serialize to json + // -> actually, the function "msoBusinessLogic.createOperationalEnvironmentActivationRequestDetails" + // is the code under test here + final RequestDetailsWrapper<OperationEnvironmentRequestDetails> operationalEnvironmentCreationRequestDetails = msoBusinessLogic.convertParametersToRequestDetails(inputUnderTest, permutation.get("<userId>")); + + String expected = buildExpectation("payload_jsons/createOperationalEnvironmentsPayloadToMso.json", permutation); + + assertThatExpectationIsLikeObject(expected, operationalEnvironmentCreationRequestDetails); + } + + @DataProvider + private Object[][] getOperationalEnvironmentCreationPermutations() throws IOException { + + final ImmutableListMultimap<String, String> options = ImmutableListMultimap.<String, String>builder() + // instanceName, ecompInstanceId, ecompInstanceName, operationalEnvType, tenantContext, workloadContext + .putAll("<userId>", "1", "ceb60bba-7c18-49cd-a8f6-83ff2e1430b0", "Storm Landebert") + .putAll("<instanceName>", "instanceName", "Slavica Hadrien") + .putAll("<ecompInstanceId>", "ecompInstanceId", "58ec6753-957f-4124-8f92-c1c0bd2464a4") + .putAll("<ecompInstanceName>", "ecompInstanceName", "Bente Keelin") + .putAll("<operationalEnvType>", "operationalEnvType", "VNF") + .putAll("<tenantContext>", "tenantContext", "Production") + .putAll("<workloadContext>", "workloadContext", "E2E-extreme") + .build(); + + List<HashMap<String, String>> permutations = permuteOptions(options); + + return permutations.stream().map(m -> new Object[] { m }).collect(Collectors.toList()).toArray(new Object[0][0]); + } + + @Test(dataProvider = "getOperationalEnvironmentDeactivationPermutations") + public void testJsonResultOfOperationalEnvironmentDeactivationRequestDetails(HashMap<String, String> permutation) throws IOException { + + OperationalEnvironmentDeactivateInfo inputUnderTest = createOperationalEnvironmentDeactivateInfo("operationalEnvId>", permutation.get("<userId>")); + + final RequestDetailsWrapper<RequestDetails> operationalEnvironmentDeactivationRequestDetails = msoBusinessLogic.createOperationalEnvironmentDeactivationRequestDetails(inputUnderTest); + + String expected = buildExpectation("payload_jsons/deactivateOperationalEnvironmentsPayloadToMso.json", permutation); + + assertThatExpectationIsLikeObject(expected, operationalEnvironmentDeactivationRequestDetails); + } + + @DataProvider + private Object[][] getOperationalEnvironmentDeactivationPermutations() throws IOException { + + final ImmutableListMultimap<String, String> options = ImmutableListMultimap.<String, String>builder() + .putAll("<userId>", "instanceName", "Slavica Hadrien") + .build(); + + List<HashMap<String, String>> permutations = permuteOptions(options); + + return permutations.stream().map(m -> new Object[] { m }).collect(Collectors.toList()).toArray(new Object[0][0]); + } + + private List<HashMap<String, String>> permuteOptions(ImmutableListMultimap<String, String> options) { + // try any value, where the other keys are on the default one (index zero) + // result it's not the whole world of permutations, but rather a skim set, which its + // size is as the number of unique values in "options" + + HashMap<String, String> baseMutation = new HashMap<>(); + for (String key : options.keySet()) { + baseMutation.put(key, options.get(key).get(0)); + } + + List<HashMap<String, String>> res = new LinkedList<>(); + res.add(baseMutation); + + for (String key : options.keySet()) { + final ImmutableList<String> entry = options.get(key); + for (String value : entry.subList(1, entry.size())) { // skip the first option at index zero + HashMap<String, String> mutation = new HashMap<>(); + mutation.putAll(baseMutation); + mutation.put(key, value); + res.add(mutation); + } + } + return res; + } + + private void assertThatExpectationIsLikeObject(String expected, Object requestDetails) throws JsonProcessingException { + final String requestDetailsAsString = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT).writeValueAsString(requestDetails); + + // assert for exact match + try { + JSONAssert.assertEquals("built mso request is not ok", expected, requestDetailsAsString, JSONCompareMode.STRICT); + } catch (AssertionError | Exception e) { + System.out.println("requestDetailsAsString: \n" + requestDetailsAsString); + System.out.println("expected: \n" + expected); + throw e; + } + } + + private String buildExpectation(String modelFileName, HashMap<String, String> permutation) throws IOException { + // load expected result, and populate it with current input 'permutation' values + final URL resource = this.getClass().getResource("/" + modelFileName); + String expected = IOUtils.toString(resource, "UTF-8"); + + for (Map.Entry<String, String> stringStringEntry : permutation.entrySet()) { + expected = expected.replaceAll(stringStringEntry.getKey(), stringStringEntry.getValue()); + } + return expected; + } + + + + private OperationalEnvironmentActivateInfo createOperationalEnvironmentActivateInfo(String operationalEnvId, String userId, OperationalEnvironmentManifest manifest, String relatedInstanceId, String relatedInstanceName, String workloadContext) { + OperationalEnvironmentController.OperationalEnvironmentActivateBody body = new OperationalEnvironmentController.OperationalEnvironmentActivateBody(relatedInstanceId, relatedInstanceName, workloadContext, manifest); + return new OperationalEnvironmentActivateInfo(body, userId, operationalEnvId); + } + + private OperationalEnvironmentDeactivateInfo createOperationalEnvironmentDeactivateInfo(String operationalEnvId, String userId) { + return new OperationalEnvironmentDeactivateInfo(userId, operationalEnvId); + } + + private OperationalEnvironmentController.OperationalEnvironmentCreateBody createOperationalEnvironmentCreateBody(String instanceName, String ecompInstanceId, String ecompInstanceName, String operationalEnvType, String tenantContext, String workloadContext) { + return new OperationalEnvironmentController.OperationalEnvironmentCreateBody(instanceName, ecompInstanceId, ecompInstanceName, operationalEnvType, tenantContext, workloadContext); + } + +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoUtilTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/MsoUtilTest.java index 6a9816e3c..3356fddfc 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoUtilTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/mso/MsoUtilTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.mso; +package org.onap.vid.mso; import org.apache.poi.hssf.record.formula.functions.T; import org.glassfish.jersey.client.ClientResponse; diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/RestMsoImplementationTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/RestMsoImplementationTest.java new file mode 100644 index 000000000..a3fa7bca3 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/RestMsoImplementationTest.java @@ -0,0 +1,20 @@ +package org.onap.vid.mso; + +import org.junit.Test; + +public class RestMsoImplementationTest { + + private RestMsoImplementation createTestSubject() { + return new RestMsoImplementation(); + } + +// @Test +// public void testInitMsoClient() throws Exception { +// RestMsoImplementation testSubject; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.initMsoClient(); +// } + +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/AsyncRequestStatusTest.java index 663d1f53c..ba939580a 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/AsyncRequestStatusTest.java @@ -1,8 +1,8 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import org.junit.Test; -import org.openecomp.vid.domain.mso.InstanceIds; -import org.openecomp.vid.domain.mso.RequestStatus; +import org.onap.vid.domain.mso.InstanceIds; +import org.onap.vid.domain.mso.RequestStatus; public class AsyncRequestStatusTest { diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTest.java new file mode 100644 index 000000000..ef261055a --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientTest.java @@ -0,0 +1,78 @@ +//package org.onap.vid.mso.rest; +// +//import com.fasterxml.jackson.databind.ObjectMapper; +//import org.json.JSONObject; +//import org.junit.Assert; +//import org.openecomp.portalsdk.core.util.SystemProperties; +//import org.onap.vid.changeManagement.RequestDetails; +//import org.onap.vid.controller.LocalWebConfig; +//import org.onap.vid.domain.mso.CloudConfiguration; +//import org.onap.vid.domain.mso.ModelInfo; +//import org.onap.vid.domain.mso.RequestInfo; +//import org.onap.vid.domain.mso.RequestParameters; +//import org.onap.vid.mso.MsoBusinessLogic; +//import org.onap.vid.mso.MsoBusinessLogicImpl; +//import org.onap.vid.mso.rest.MsoRestClientNew; +//import org.springframework.test.context.ContextConfiguration; +//import org.springframework.test.context.web.WebAppConfiguration; +//import org.testng.annotations.Test; +// +// +//@ContextConfiguration(classes = {LocalWebConfig.class, SystemProperties.class}) +//@WebAppConfiguration +//public class MsoRestClientTest { +// +// +// private MsoBusinessLogic msoBusinessLogic = new MsoBusinessLogicImpl(new MsoRestClientNew()); +// private ObjectMapper om = new ObjectMapper(); +// +// @Test +// public void createInPlaceMsoRequest() { +// String result = null; +// try { +// RequestDetails requestDetails = generateMockMsoRequest(); +// result = om.writeValueAsString(msoBusinessLogic.generateInPlaceMsoRequest(requestDetails)); +// +// } catch (Exception e) { +// e.printStackTrace(); +// +// } +// if (result == null) { +// Assert.fail("Failed to create mso request"); +// } +// JSONObject jsonObj = new JSONObject(result); +// Assert.assertNotNull(jsonObj.getJSONObject("requestDetails")); +// +// +// } +// +// private RequestDetails generateMockMsoRequest() { +// RequestDetails requestDetails = new RequestDetails(); +// requestDetails.setVnfInstanceId("vnf-instance-id"); +// requestDetails.setVnfName("vnf-name"); +// CloudConfiguration cloudConfiguration = new CloudConfiguration(); +// cloudConfiguration.setTenantId("tenant-id"); +// cloudConfiguration.setLcpCloudRegionId("lcp-region"); +// requestDetails.setCloudConfiguration(cloudConfiguration); +// ModelInfo modelInfo = new ModelInfo(); +// modelInfo.setModelInvariantId("model-invarient-id"); +// modelInfo.setModelCustomizationName("modelCustomizationName"); +// requestDetails.setModelInfo(modelInfo); +// RequestInfo requestInfo = new RequestInfo(); +// requestInfo.setRequestorId("ok883e"); +// requestInfo.setSource("VID"); +// requestDetails.setRequestInfo(requestInfo); +// RequestParameters requestParameters = new RequestParameters(); +// requestParameters.setSubscriptionServiceType("subscriber-service-type"); +// requestParameters.setAdditionalProperty("a", 1); +// requestParameters.setAdditionalProperty("b", 2); +// requestParameters.setAdditionalProperty("c", 3); +// requestParameters.setAdditionalProperty("d", 4); +// String payload = "{\"existing-software-version\": \"3.1\",\"new-software-version\": \"3.2\", \"operations-timeout\": \"3600\"}"; +// requestParameters.setAdditionalProperty("payload", payload); +// +// requestDetails.setRequestParameters(requestParameters); +// return requestDetails; +// } +// +//} diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/rest/OutgoingRequestId.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/OutgoingRequestId.java new file mode 100644 index 000000000..51071a859 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/OutgoingRequestId.java @@ -0,0 +1,280 @@ +package org.onap.vid.mso.rest; + +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import org.apache.commons.lang3.reflect.FieldUtils; +import org.mockito.*; +import org.mockito.invocation.InvocationOnMock; +import org.mockito.stubbing.Answer; +import org.onap.vid.aai.util.AAIRestInterface; +import org.onap.vid.asdc.rest.RestfulAsdcClient; +import org.onap.vid.changeManagement.RequestDetailsWrapper; +import org.onap.vid.controller.filter.PromiseEcompRequestIdFilter; +import org.onap.vid.mso.RestMsoImplementation; +import org.onap.vid.mso.RestObject; +import org.springframework.mock.web.MockHttpServletRequest; +import org.springframework.web.context.request.RequestContextHolder; +import org.springframework.web.context.request.ServletRequestAttributes; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import javax.servlet.http.HttpServletRequest; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.Invocation; +import javax.ws.rs.client.WebTarget; +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.MultivaluedMap; +import javax.ws.rs.core.Response; +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.io.Serializable; +import java.util.List; +import java.util.Set; +import java.util.function.Consumer; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +import static java.util.UUID.randomUUID; +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.*; +import static org.mockito.Matchers.any; +import static org.mockito.Mockito.*; + + +public class OutgoingRequestId { + + + @InjectMocks + private RestMsoImplementation restMsoImplementation; + + @InjectMocks + private AAIRestInterface aaiRestInterface; + + private RestfulAsdcClient restfulAsdcClient = new RestfulAsdcClient.Builder(mock(Client.class), null).build(); + + @Captor + private ArgumentCaptor<MultivaluedMap<String, Object>> multivaluedMapArgumentCaptor; + + @BeforeClass + public void initMocks() { + MockitoAnnotations.initMocks(this); + } + + @BeforeMethod + private void putRequestInSpringContext() { + RequestContextHolder.setRequestAttributes(new ServletRequestAttributes((HttpServletRequest) PromiseEcompRequestIdFilter.wrapIfNeeded(new MockHttpServletRequest()))); + } + + @DataProvider + public Object[][] sdcMethods() { + return Stream.<ThrowingConsumer<RestfulAsdcClient>>of( + + client -> client.getResource(randomUUID()), + client -> client.getResourceArtifact(randomUUID(), randomUUID()), + RestfulAsdcClient::getResources, + client -> client.getResources(ImmutableMap.of()), + client -> client.getResourceToscaModel(randomUUID()), + client -> client.getService(randomUUID()), + client -> client.getServiceArtifact(randomUUID(), randomUUID()), + RestfulAsdcClient::getServices, + client -> client.getServices(ImmutableMap.of()), + client -> client.getServiceToscaModel(randomUUID()) + + ).map(l -> ImmutableList.of(l).toArray()).collect(Collectors.toList()).toArray(new Object[][]{}); + } + + @Test(dataProvider = "sdcMethods") + public void sdc(Consumer<RestfulAsdcClient> f) throws Exception { + final Mocks mocks = setAndGetMocksInsideRestImpl(restfulAsdcClient); + + f.accept(restfulAsdcClient); + + verifyRequestIdHeaderWasAdded(mocks.getFakeBuilder()); + } + + @DataProvider + public Object[][] msoMethods() { + return Stream.<ThrowingConsumer<RestMsoImplementation>>of( + + client -> client.Get(new Object(), "whatever source id", "/any path", new RestObject<>()), + client -> client.GetForObject("whatever source id", "/any path", Object.class), + client -> client.Post(new Object(), "some payload", "whatever source id", "/any path", new RestObject<>()), + client -> client.PostForObject("some payload", "whatever source id", "/any path", Object.class), + client -> client.Put(Object.class, new RequestDetailsWrapper(), "whatever source id", "/any path", new RestObject<>()) + + ).map(l -> ImmutableList.of(l).toArray()).collect(Collectors.toList()).toArray(new Object[][]{}); + } + + @Test(dataProvider = "msoMethods") + public void mso(Consumer<RestMsoImplementation> f) throws Exception { + final Mocks mocks = setAndGetMocksInsideRestImpl(restMsoImplementation.getClass()); + + f.accept(restMsoImplementation); + + verifyRequestIdHeaderWasAdded(mocks.getFakeBuilder()); + } + + @DataProvider + public Object[][] aaiMethods() { + return Stream.<ThrowingConsumer<AAIRestInterface>>of( + + client -> client.RestGet("from app id", "some transId", "/any path", false), + client -> client.Delete("whatever source id", "some transId", "/any path"), + client -> client.RestPost("from app id", "some transId", "/any path", "some payload", false), + client -> client.RestPut("from app id", "some transId", "/any path", "some payload", false) + + ).map(l -> ImmutableList.of(l).toArray()).collect(Collectors.toList()).toArray(new Object[][]{}); + } + + @Test(dataProvider = "aaiMethods") + public void aai(Consumer<AAIRestInterface> f) throws Exception { + final Mocks mocks = setAndGetMocksInsideRestImpl(aaiRestInterface.getClass()); + + f.accept(aaiRestInterface); + + verifyRequestIdHeaderWasAdded(mocks.getFakeBuilder()); + } + +// @Test(dataProvider = "schedulerMethods") +// public void scheduler(Consumer<AAIRestInterface> f) throws Exception { +// +// This test os not feasible in the wat acheduler is implemented today, +// as Scheduler's client is rewritten in every call. +// +// :-( +// +// } + + private void verifyRequestIdHeaderWasAdded(Invocation.Builder fakeBuilder) { + final String requestIdHeader = "x-ecomp-requestid"; + final String uuidRegex = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"; + + // Checks that the builder was called with either one of header("x-ecomp-requestid", uuid) + // or the plural brother: headers(Map.of("x-ecomp-requestid", Set.of(uuid)) + + Object requestId; + // The 'verify()' will capture the request id. If no match -- AssertionError will + // catch for a second chance -- another 'verify()'. + try { + ArgumentCaptor<Object> argumentCaptor = ArgumentCaptor.forClass(Object.class); + Mockito.verify(fakeBuilder) + .header( + Matchers.argThat(equalToIgnoringCase(requestIdHeader)), + argumentCaptor.capture() + ); + requestId = argumentCaptor.getValue(); + + } catch (AssertionError e) { + Mockito.verify(fakeBuilder).headers(multivaluedMapArgumentCaptor.capture()); + + final MultivaluedMap<String, Object> headersMap = multivaluedMapArgumentCaptor.getValue(); + final String thisRequestIdHeader = getFromSetCaseInsensitive(headersMap.keySet(), requestIdHeader); + + assertThat(headersMap.keySet(), hasItem(thisRequestIdHeader)); + requestId = headersMap.getFirst(thisRequestIdHeader); + } + + assertThat("header '" + requestIdHeader + "' should be a uuid", requestId, + allOf(instanceOf(String.class), hasToString(matchesPattern(uuidRegex)))); + } + + private String getFromSetCaseInsensitive(Set<String> set, String key) { + return set.stream() + .filter(anotherString -> anotherString.equalsIgnoreCase(key)) + .findFirst() + .orElse(key); + } + + private Mocks setAndGetMocksInsideRestImpl(Class<?> clazz) throws IllegalAccessException { + Mocks mocks = new Mocks(); + Client fakeClient = mocks.getFakeClient(); + + FieldUtils.writeStaticField(clazz, "client", fakeClient, true); + + return mocks; + } + + private Mocks setAndGetMocksInsideRestImpl(Object instance) throws IllegalAccessException { + Mocks mocks = new Mocks(); + Client fakeClient = mocks.getFakeClient(); + + FieldUtils.writeField(instance, "client", fakeClient, true); + + return mocks; + } + + private static class Mocks { + private final Client fakeClient; + private final Invocation.Builder fakeBuilder; + + Client getFakeClient() { + return fakeClient; + } + + Invocation.Builder getFakeBuilder() { + return fakeBuilder; + } + + Mocks() { + final MockSettings mockSettings = withSettings().defaultAnswer(new TriesToReturnMockByType()); + + fakeClient = mock(Client.class, mockSettings); + fakeBuilder = mock(Invocation.Builder.class, mockSettings); + final WebTarget fakeWebTarget = mock(WebTarget.class, mockSettings); + final Response fakeResponse = mock(Response.class, mockSettings); + + TriesToReturnMockByType.setAvailableMocks( + fakeClient, + fakeWebTarget, + fakeBuilder, + fakeResponse + ); + + Mockito.when(fakeBuilder.get(any(Class.class))).thenReturn(null); + Mockito.when(fakeBuilder.get(eq(InputStream.class))).thenReturn(new ByteArrayInputStream(new byte[]{})); + Mockito.when(fakeBuilder.get(any(GenericType.class))).thenReturn(null); + + Mockito.when(fakeResponse.getStatus()).thenReturn(200); + } + } + + @FunctionalInterface + public interface ThrowingConsumer<T> extends Consumer<T> { + @Override + default void accept(T t) { + try { + acceptThrows(t); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + void acceptThrows(T t) throws Exception; + } + + /* + inspired out from newer Mockito version + returns a mock from given list if it's a matching return-type + */ + public static class TriesToReturnMockByType implements Answer<Object>, Serializable { + private final Answer<Object> defaultReturn = RETURNS_DEFAULTS; + private static List<Object> availableMocks = ImmutableList.of(); + + static void setAvailableMocks(Object... mocks) { + availableMocks = ImmutableList.copyOf(mocks); + } + + public Object answer(InvocationOnMock invocation) throws Throwable { + Class<?> methodReturnType = invocation.getMethod().getReturnType(); + + return availableMocks.stream() + .filter(mock -> methodReturnType.isAssignableFrom(mock.getClass())) + //.peek(m -> System.out.println("found a mock: " + m.getClass().getName())) + .findFirst() + .orElse(defaultReturn.answer(invocation)); + } + } + +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedInstanceTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/RelatedInstanceTest.java index b3bee441f..4b35430e0 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedInstanceTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/RelatedInstanceTest.java @@ -1,9 +1,9 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import java.util.Map; import org.junit.Test; -import org.openecomp.vid.domain.mso.ModelInfo; +import org.onap.vid.domain.mso.ModelInfo; public class RelatedInstanceTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedModelTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/RelatedModelTest.java index b08ff89bb..91d61bd9f 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RelatedModelTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/RelatedModelTest.java @@ -1,9 +1,9 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import java.util.Map; import org.junit.Test; -import org.openecomp.vid.domain.mso.ModelInfo; +import org.onap.vid.domain.mso.ModelInfo; public class RelatedModelTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/RequestDetailsTest.java index 41fbc7a1c..153e16561 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/RequestDetailsTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/RequestDetailsTest.java @@ -1,10 +1,10 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import java.util.List; import java.util.Map; import org.junit.Test; -import org.openecomp.vid.domain.mso.*; +import org.onap.vid.domain.mso.*; public class RequestDetailsTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/TestSuite.java index ef86682fb..72633daef 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.mso.rest; +package org.onap.vid.mso.rest; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyResponseWrapperTest.java index 21a337253..4e2676c6a 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyResponseWrapperTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestIntTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestIntTest.java index 541816562..b94d21b91 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestIntTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestIntTest.java @@ -1,7 +1,7 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import org.junit.Test; -import org.openecomp.vid.policy.rest.RequestDetails; +import org.onap.vid.policy.rest.RequestDetails; public class PolicyRestIntTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestInterfaceTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java index 29e13624b..04f6890e2 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyRestInterfaceTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java @@ -1,9 +1,9 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import org.apache.poi.hssf.record.formula.functions.T; import org.json.simple.JSONObject; import org.junit.Test; -import org.openecomp.vid.policy.rest.RequestDetails; +import org.onap.vid.policy.rest.RequestDetails; public class PolicyRestInterfaceTest { diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyUtilTest.java index b7f88ac3d..566d17c11 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyUtilTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import org.apache.poi.hssf.record.formula.functions.T; import org.glassfish.jersey.client.ClientResponse; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/RestObjectTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/RestObjectTest.java index a961a1a4a..7665d99a2 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/RestObjectTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/policy/RestObjectTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import org.apache.poi.hssf.record.formula.functions.T; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/policy/TestSuite.java index 7d0b4eb2d..6d2a790be 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/policy/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy; +package org.onap.vid.policy; import org.junit.runner.RunWith; import org.junit.runners.Suite; @@ -7,6 +7,6 @@ import org.junit.runners.Suite; @Suite.SuiteClasses( { RestObjectTest.class, PolicyResponseWrapperTest.class, PolicyRestIntTest.class, PolicyUtilTest.class, - PolicyRestInterfaceTest.class, org.openecomp.vid.policy.rest.TestSuite.class }) + PolicyRestInterfaceTest.class, org.onap.vid.policy.rest.TestSuite.class }) public class TestSuite { // nothing } diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/rest/RequestDetailsTest.java index 705775577..3c17a66a0 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/policy/rest/RequestDetailsTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy.rest; +package org.onap.vid.policy.rest; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/policy/rest/TestSuite.java index 9b491c869..0a8dfff91 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/policy/rest/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.policy.rest; +package org.onap.vid.policy.rest; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/properties/TestSuite.java index b29930843..747c1edbd 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/properties/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.properties; +package org.onap.vid.properties; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java b/vid-app-common/src/test/java/org/onap/vid/properties/VidPropertiesTest.java index 7d318c74b..f256ba027 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/properties/VidPropertiesTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.properties; +package org.onap.vid.properties; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java b/vid-app-common/src/test/java/org/onap/vid/roles/RoleProviderTest.java index 97f9c47fe..b023bc265 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleProviderTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/roles/RoleProviderTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.roles; +package org.onap.vid.roles; import java.util.List; @@ -24,16 +24,16 @@ public class RoleProviderTest { } - @Test - public void testGetUserRoles() throws Exception { - RoleProvider testSubject; - HttpServletRequest request = null; - List<Role> result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUserRoles(request); - } +// @Test +// public void testGetUserRoles() throws Exception { +// RoleProvider testSubject; +// HttpServletRequest request = null; +// List<Role> result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getUserRoles(request); +// } @Test @@ -44,7 +44,7 @@ public class RoleProviderTest { // default test testSubject = createTestSubject(); - result = testSubject.splitRole(roleAsString); + //TODO:fix result = testSubject.splitRole(roleAsString); } }
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/roles/RoleValidatorTest.java b/vid-app-common/src/test/java/org/onap/vid/roles/RoleValidatorTest.java new file mode 100644 index 000000000..7a1b09ac5 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/roles/RoleValidatorTest.java @@ -0,0 +1,58 @@ +package org.onap.vid.roles; + +import org.junit.Test; +import org.onap.vid.mso.rest.RequestDetails; + +public class RoleValidatorTest { + + private RoleValidator createTestSubject() { + return new RoleValidator(null); + } + +// @Test +// public void testIsSubscriberPermitted() throws Exception { +// RoleValidator testSubject; +// String subscriberName = ""; +// boolean result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.isSubscriberPermitted(subscriberName); +// } +// +// @Test +// public void testIsServicePermitted() throws Exception { +// RoleValidator testSubject; +// String subscriberName = ""; +// String serviceType = ""; +// boolean result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.isServicePermitted(subscriberName, serviceType); +// } + + @Test + public void testIsMsoRequestValid() throws Exception { + RoleValidator testSubject; + RequestDetails mso_request = null; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.isMsoRequestValid(mso_request); + } + +// @Test +// public void testIsTenantPermitted() throws Exception { +// RoleValidator testSubject; +// String globalCustomerId = ""; +// String serviceType = ""; +// String tenant = ""; +// boolean result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.isTenantPermitted(globalCustomerId, serviceType, tenant); +// } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/roles/TestSuite.java index df87ac070..7966eaa1f 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/roles/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/roles/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.roles; +package org.onap.vid.roles; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java new file mode 100644 index 000000000..5bb525ebf --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java @@ -0,0 +1,33 @@ +//package org.onap.vid.scheduler.RestObjects; +// +//import org.junit.Test; +// +// +//public class GetTimeSlotsRestObjectTest { +// +// private GetTimeSlotsRestObject createTestSubject() { +// return new GetTimeSlotsRestObject(); +// } +// +// +// @Test +// public void testSetUUID() throws Exception { +// GetTimeSlotsRestObject testSubject; +// String uuid = ""; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.setUUID(uuid); +// } +// +// +// @Test +// public void testGetUUID() throws Exception { +// GetTimeSlotsRestObject testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getUUID(); +// } +//}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java new file mode 100644 index 000000000..8750d5847 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java @@ -0,0 +1,33 @@ +//package org.onap.vid.scheduler.RestObjects; +// +//import org.junit.Test; +// +// +//public class PostCreateNewVnfRestObjectTest { +// +// private PostCreateNewVnfRestObject createTestSubject() { +// return new PostCreateNewVnfRestObject(); +// } +// +// +// @Test +// public void testSetUUID() throws Exception { +// PostCreateNewVnfRestObject testSubject; +// String uuid = ""; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.setUUID(uuid); +// } +// +// +// @Test +// public void testGetUUID() throws Exception { +// PostCreateNewVnfRestObject testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getUUID(); +// } +//}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java new file mode 100644 index 000000000..9c78d2365 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java @@ -0,0 +1,33 @@ +//package org.onap.vid.scheduler.RestObjects; +// +//import org.junit.Test; +// +// +//public class PostSubmitVnfChangeRestObjectTest { +// +// private PostSubmitVnfChangeRestObject createTestSubject() { +// return new PostSubmitVnfChangeRestObject(); +// } +// +// +// @Test +// public void testSetUUID() throws Exception { +// PostSubmitVnfChangeRestObject testSubject; +// String uuid = ""; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.setUUID(uuid); +// } +// +// +// @Test +// public void testGetUUID() throws Exception { +// PostSubmitVnfChangeRestObject testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getUUID(); +// } +//}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/RestObjectTest.java index 5ab609ac6..b8924d84b 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/RestObjectTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/RestObjects/RestObjectTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.scheduler.RestObjects; +package org.onap.vid.scheduler.RestObjects; import org.apache.poi.hssf.record.formula.functions.T; import org.junit.Test; diff --git a/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java new file mode 100644 index 000000000..b0b051aff --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java @@ -0,0 +1,55 @@ +//package org.onap.vid.scheduler.SchedulerResponseWrappers; +// +//import org.junit.Test; +// +// +//public class PostCreateNewVnfWrapperTest { +// +// private PostCreateNewVnfWrapper createTestSubject() { +// return new PostCreateNewVnfWrapper(); +// } +// +// +// @Test +// public void testGetUuid() throws Exception { +// PostCreateNewVnfWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getUuid(); +// } +// +// +// @Test +// public void testSetUuid() throws Exception { +// PostCreateNewVnfWrapper testSubject; +// String v = ""; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.setUuid(v); +// } +// +// +// @Test +// public void testToString() throws Exception { +// PostCreateNewVnfWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.toString(); +// } +// +// +// @Test +// public void testGetResponse() throws Exception { +// PostCreateNewVnfWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getResponse(); +// } +//}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java new file mode 100644 index 000000000..871d8997e --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java @@ -0,0 +1,55 @@ +//package org.onap.vid.scheduler.SchedulerResponseWrappers; +// +//import org.junit.Test; +// +// +//public class PostSubmitVnfChangeTimeSlotsWrapperTest { +// +// private PostSubmitVnfChangeTimeSlotsWrapper createTestSubject() { +// return new PostSubmitVnfChangeTimeSlotsWrapper(); +// } +// +// +// @Test +// public void testGetUuid() throws Exception { +// PostSubmitVnfChangeTimeSlotsWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getUuid(); +// } +// +// +// @Test +// public void testSetUuid() throws Exception { +// PostSubmitVnfChangeTimeSlotsWrapper testSubject; +// String v = ""; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.setUuid(v); +// } +// +// +// @Test +// public void testToString() throws Exception { +// PostSubmitVnfChangeTimeSlotsWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.toString(); +// } +// +// +// @Test +// public void testGetResponse() throws Exception { +// PostSubmitVnfChangeTimeSlotsWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getResponse(); +// } +//}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java new file mode 100644 index 000000000..495fb8abe --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java @@ -0,0 +1,77 @@ +//package org.onap.vid.scheduler.SchedulerResponseWrappers; +// +//import org.junit.Test; +// +// +//public class SchedulerResponseWrapperTest { +// +// private SchedulerResponseWrapper createTestSubject() { +// return new SchedulerResponseWrapper(); +// } +// +// +// @Test +// public void testGetEntity() throws Exception { +// SchedulerResponseWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getEntity(); +// } +// +// +// @Test +// public void testGetStatus() throws Exception { +// SchedulerResponseWrapper testSubject; +// int result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getStatus(); +// } +// +// +// @Test +// public void testSetStatus() throws Exception { +// SchedulerResponseWrapper testSubject; +// int v = 0; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.setStatus(v); +// } +// +// +// @Test +// public void testSetEntity() throws Exception { +// SchedulerResponseWrapper testSubject; +// String v = ""; +// +// // default test +// testSubject = createTestSubject(); +// testSubject.setEntity(v); +// } +// +// +// @Test +// public void testToString() throws Exception { +// SchedulerResponseWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.toString(); +// } +// +// +// @Test +// public void testGetResponse() throws Exception { +// SchedulerResponseWrapper testSubject; +// String result; +// +// // default test +// testSubject = createTestSubject(); +// result = testSubject.getResponse(); +// } +//}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerRestInterfaceTest.java index 9dba924fb..5f861dfe4 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerRestInterfaceTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/SchedulerRestInterfaceTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.scheduler; +package org.onap.vid.scheduler; import org.apache.poi.hssf.record.formula.functions.T; import org.json.simple.JSONObject; diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/rest/RequestDetailsTest.java index 190b8c5a7..aa634f93c 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/RequestDetailsTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/rest/RequestDetailsTest.java @@ -1,6 +1,7 @@ -package org.openecomp.vid.scheduler.rest; +package org.onap.vid.scheduler.rest; import org.junit.Test; +import org.onap.vid.mso.rest.RequestDetails; public class RequestDetailsTest { @@ -10,7 +11,7 @@ public class RequestDetailsTest { } - @Test + /*@Test public void testGetDomain() throws Exception { RequestDetails testSubject; String result; @@ -29,5 +30,5 @@ public class RequestDetailsTest { // default test testSubject = createTestSubject(); testSubject.setDomain(domain); - } + }*/ }
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/scheduler/rest/TestSuite.java index 714d0b085..2bdeeb307 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/rest/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/scheduler/rest/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.scheduler.rest; +package org.onap.vid.scheduler.rest; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/onap/vid/selenium/FirstClass.java b/vid-app-common/src/test/java/org/onap/vid/selenium/FirstClass.java new file mode 100644 index 000000000..e3ccdd965 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/selenium/FirstClass.java @@ -0,0 +1,605 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.selenium; + +import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.AfterSuite; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.BeforeSuite; +import org.testng.annotations.BeforeTest; +import org.testng.annotations.Test; + + +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.support.ui.Select; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.List; +import java.util.Properties; +import java.util.concurrent.TimeUnit; +import org.apache.log4j.Logger; +import org.testng.Assert; +import org.testng.asserts.*; + +/** + * The Class FirstClass. + */ +public class FirstClass { + + /** The login button. */ + WebElement loginButton; + + /** The eg. */ + String eg; + + /** The login. */ + WebElement login; + + /** The pwd. */ + WebElement pwd; + + /** The log. */ + Logger log; + + /** The errormessage. */ + WebElement errormessage; + + + /** The driver. */ + WebDriver driver=new FirefoxDriver(); + + + + /** The config prop. */ + private final Properties configProp = new Properties(); + + + /** + * Instantiates a new first class. + */ + private FirstClass() { + // TODO Auto-generated constructor stub + // + try{ + // InputStream input =this.getClass().getClassLoader().getResourceAsStream("objectmap.properties"); + //FileInputStream input1 = new FileInputStream("objectmap.properties"); + + InputStream input =new FileInputStream("objectconfig.properties"); + System.out.println("Read all properties from file"); + configProp.load(input); + System.out.println("Read all properties from file completed"); + } + catch(IOException e) { + + e.printStackTrace(); + } + } + + + /* + + + @BeforeClass + public void setUp() { + System.out.println("*******************"); + System.out.println("launching IE browser"); + System.setProperty("webdriver.ie.driver", driverPath+"IEDriverServer.exe"); + driver = new InternetExplorerDriver(); + driver.findElement(By.className()); + driver.manage().window().maximize(); + + + login = driver.findElement(By.xpath("//input[@class='fn-ebz-text ng-pristine ng-valid']")); + pwd = driver.findElement(By.xpath("//input[@class='span3 ng-pristine ng-valid']")); + loginButton = driver.findElement(By.id("loginBtn")); + } + + + */ + /** + * Sets the up. + */ + // TODO Auto-generated method stub + @BeforeClass + public void setUp() + { + + + //WebDriver driver=new FirefoxDriver(); + + log = Logger.getLogger(FirstClass.class.getName()); + + + + // Get url + driver.get(configProp.getProperty("baseURL")); + driver.manage().window().maximize(); + + + login = driver.findElement(By.xpath(configProp.getProperty("login"))); + + pwd = driver.findElement(By.xpath(configProp.getProperty("pwd"))); + loginButton = driver.findElement(By.id(configProp.getProperty("loginButton"))); + } + + + /** + * Empty username password. + */ + @Test(priority=1) + public void emptyUsernamePassword() + { + + + //User Name and Password field is empty + log.info("-----VID-11 TC-8----Username and password empty"); + loginButton.click(); + errormessage=driver.findElement(By.xpath("//*[@id='errorInfo']/span")); + String errmsg= errormessage.getText(); + //System.out.println("Error message is"+errmsg); + //String expected = "Invaild username or password, Please try again"; + + //Assert.assertEquals(errmsg,expected); + + Boolean str = driver.getPageSource().contains("Invalid username or password, Please try again"); + System.out.println(driver.getPageSource().contains("Invalid username or password, Please try again")); + + if(str==true) + { + log.info("Error message validated"); + log.info("VID-11 TC-8 PASSED"); + + }else + log.error("Failed validation"); + + } + + + + /** + * Invalid user name. + */ + @Test(priority=2) + public void invalidUserName() + { + + log.info("-----VID-11 TC-6----Invalid Username and Valid Password"); + + + login.sendKeys("xxx"); + pwd.sendKeys("abc123"); + loginButton.click(); + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + String errmsg= errormessage.getText(); + String expected = "Invalid username or password, Please try again"; + Assert.assertEquals(errmsg,expected); + //Boolean str1 = driver.getPageSource().contains("Invalid username or password, Please try again"); + //System.out.print(str1); + + log.info("VID-11 TC-6 PASSED"); + + } + + + /** + * Invalid password. + */ + @Test(priority=3) + public void invalidPassword() + { + log.info("-----VID-11 TC-7----Valid Username and Invalid Password"); + // Valid user name and Invalid password. + login.clear(); + pwd.clear(); + login.sendKeys("testuser"); + pwd.sendKeys("xxx"); + loginButton.click(); + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + + String errmsg= errormessage.getText(); + String expected = "Invalid username or password, Please try again"; + Assert.assertEquals(errmsg,expected); + + //Boolean str2 = driver.getPageSource().contains("Invaild username or password, Please try again"); + //System.out.print(str2); + + log.info("VID-11 TC-7 PASSED"); + } + + + /** + * Login successful. + */ + @Test(priority=4) + public void loginSuccessful() + { + log.info("-----VID-11 TC-1----Valid Username and Valid Password"); + //Login with valid user name and password. + login.clear(); + login.sendKeys("su"); + pwd.clear(); + pwd.sendKeys("fusion"); + + + loginButton.click(); + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + try { + Thread.sleep(6000); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances")); + log.info("VID-11 TC-1 PASSED"); + + } + + + /** + * Verify home page elements left pane. + */ + @Test(priority=5) + public void verifyHomePageElementsLeftPane() + + { + + + log.info("VID-10 TC 1 "); + //VID Home + log.info("VID 11 TC-2"); + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[1]/a/span")).isDisplayed(); + //Create New Service Instance + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[2]/a/span")).isDisplayed(); + + //Browse Service Type + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[3]/a/span")).isDisplayed(); + //View Log + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[4]/a/span")).isDisplayed(); + + //Profile + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[5]/a/span")).isDisplayed(); + //Admin + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[6]/a/span")).isDisplayed(); + //Logout + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[7]/a/span")).isDisplayed(); + + //Infrastructure Subscriber Name + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[1]/div/label")).isDisplayed(); + //Infrastructure Subscriber Name Select Drop down + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")).isDisplayed(); + //Infrastructure Service Type + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[1]/div/label")).isDisplayed(); + //Infrastructure Service Type Select Drop down + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select")).isDisplayed(); + //Submit button + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button")).isDisplayed(); + + //Login Snippet Icon + driver.findElement(By.xpath(".//*[@class='icon-user-small login-snippet-icon']")).isDisplayed(); + + + //String bodyText = driver.findElement(By.tagName("body")).getText(); + //Assert.assertTrue("Text not found!", bodyText.contains("Search Existing Service Instances")); + //Assert.IsTrue(driver.getPageSource.Contains("Search Existing Service Instances")); + + log.info("VID-12 TC-1"); + Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances")); + Assert.assertTrue(driver.getPageSource().contains("Please search by the Subscriber name or Service Type from below:")); + log.info("VID-12 TC-1 PASSED"); + log.info("VID-10 TC 1 PASSED"); + log.info("VID-11 TC-2 PASSED"); + } + + + /** + * Disabled submit button. + */ + @Test(priority=6) + public void disabledSubmitButton() + { + log.info("VID-12 TC-13"); + //Assert submit button disabled. + Assert.assertFalse(driver.findElement(By.xpath(configProp.getProperty("submitButton"))).isEnabled()); + log.info("VID-12 TC-13 PASSED"); + + } + + /** + * Default list box value. + */ + @Test(priority=7) + public void defaultListBoxValue() + { + log.info("VID-12 TC-2"); + + + //WebElement subscribername =driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")); + + Select oSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")))); + Select iSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown")))); + + + WebElement ielement=iSelect.getFirstSelectedOption(); + WebElement oelement=oSelect.getFirstSelectedOption(); + String defaultsubscribername=oelement.getText(); + String defaultservicetype=ielement.getText(); + + Assert.assertEquals(defaultsubscribername,"Select Subscriber Name"); + Assert.assertEquals(defaultservicetype,"Select Service Type"); + + + + + //Verify Select Subscriber Name isDisplayed. + //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select/option[1]")).isSelected(); + + //Verify Select Service Type isDisplayed. + //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select/option[1]")).isSelected(); + + + log.info("VID-12 TC-2 PASSED"); + + } + + + + /** + * Select subscriber name drop down. + * + * @throws InterruptedException the interrupted exception + */ + @Test(priority=8) + public void selectSubscriberNameDropDown() throws InterruptedException + { + log.info("------------------VID-10 TC-2,VID-12 TC-11, VID-12 TC-9, VID 12 TC-10,VID-12 TC-6, VID 12 TC-5--------------------"); + + + driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown"))); + + driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown"))); + Thread.sleep(5000); + + //Infrastructure Subscriber Name + Select oSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")))); + + List <WebElement> elementCount = oSelect.getOptions(); + log.info("Select Element Count of Service Name"); + System.out.println(elementCount.size()); + + + //Verifying getInfrastructureSubscribersList + log.info("VID-29 TC-1"); + Assert.assertTrue(elementCount.size()>0); + log.info("VID-29 TC-1 PASSED"); + + oSelect.selectByIndex(2); + String selectedOption = new Select(driver.findElement(By.xpath(configProp.getProperty("subscriberNameDropDown")))).getFirstSelectedOption().getText(); + + System.out.println("Service Name selected is " +selectedOption); + log.info("VID-10 TC-2 PASSED"); + + //Submit button is clicked + driver.findElement(By.xpath(configProp.getProperty("submitButton"))).click(); + + + //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed(); + //Assert.assertTrue(driver.getPageSource().contains("Selected Subscriber's Service Instance Details:")) + + + //Verify whether the page header is displayed "Global Customer ID" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/thead/tr/th[2]/div")).isDisplayed(); + Assert.assertTrue(driver.getPageSource().contains("Global Customer ID")); + Assert.assertTrue(driver.getPageSource().contains("Subscriber Name")); + Assert.assertTrue(driver.getPageSource().contains("Service Type")); + Assert.assertTrue(driver.getPageSource().contains("Service Instance ID")); + + log.info("VID-12 TC-5 PASSED"); + log.info("VID-12 TC-11 PASSED"); + + WebElement serviceinstancetable =driver.findElement(By.xpath("//table[@class='tablesorter tablesorter-default ng-isolate-scope']")); + + List<WebElement> rows_table = serviceinstancetable.findElements(By.tagName("tr")); + //To calculate no of rows In table. + int rows_count = rows_table.size(); + + //Loop will execute till the last row of table. + for (int row=0; row<rows_count; row++){ + //To locate columns(cells) of that specific row. + List<WebElement> Columns_row = rows_table.get(row).findElements(By.tagName("td")); + //To calculate no of columns(cells) In that specific row. + int columns_count = Columns_row.size(); + //System.out.println("Number of cells In Row "+row+" are "+columns_count); + + //Loop will execute till the last cell of that specific row. + for (int column=0; column<columns_count; column++){ + //To retrieve text from that specific cell. + String celtext = Columns_row.get(column).getText(); + //System.out.println("Cell Value Of row number "+row+" and column number "+column+" Is "+celtext); + + + + //log.info("Testing Get column and row value"); + List <WebElement> exx= rows_table.get(1).findElements(By.tagName("td")); + eg=Columns_row.get(2).getText(); + // System.out.println("Cell value of row 1 and column 2 is" +eg); + } + } + + + + + //Verify View/Edit isDisplayed and Click + + driver.findElement(By.xpath("//a[@alt='View/Edit']")).isDisplayed(); + + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/tbody/tr[1]/td[1]/div/a")).click(); + + log.info("User clicked View/Edit"); + + //Verify the Subscriber Name displayed. + String header= driver.findElement(By.xpath("//h1[@class='heading1 ng-binding']")).getText(); + //System.out.println(header); + + + if(header.contains(eg)) + { + System.out.println("Header contains the subscriber name"); + }else + System.out.println("Header does not contain the subscriber name"); + + + + Assert.assertTrue(driver.getPageSource().contains("PerfTest Subscriber00020021")); + log.info("VID-12 TC-6 PASSED"); + + + + driver.navigate().back(); + //Cancel button isDisplayed + driver.findElement(By.xpath("//button[@class='button button--small button--primary']")).isDisplayed(); + log.info("VID-12 TC-9 PASSED"); + + //Cancel button is clicked + driver.findElement(By.xpath("//button[@class='button button--small button--primary']")).click(); + log.info("Cancel button is clicked"); + + //Verifying VID Home page is displayed + Assert.assertTrue(driver.getPageSource().contains("Search Existing Service Instances")); + log.info("VID-12 TC-10 PASSED"); + + } + + + /** + * Refresh subscriber name. + */ + @Test(priority=9) + public void refreshSubscriberName() + { + log.info("VID-10 TC-4"); + + + driver.findElement(By.xpath(configProp.getProperty("refreshButtonSubscriberName"))).isDisplayed(); + + log.info("VID-10 TC-4 PASSED"); + + + } + + + /** + * Select subscriber type drop down. + * + * @throws InterruptedException the interrupted exception + */ + @Test(priority=9) + public void selectSubscriberTypeDropDown() throws InterruptedException + { + Thread.sleep(5000); + log.info("------------------VID-10 TC-3, VID-12 TC-12,--------------------"); + //Infrastructure Subscriber Type + Select iSelect = new Select(driver.findElement(By.xpath(configProp.getProperty("serviceTypeDropDown")))); + + List <WebElement> ielementCount = iSelect.getOptions(); + log.info("Select Element Count of Service type"); + System.out.println(ielementCount.size()); + iSelect.selectByIndex(1); + + log.info("VID-10 TC-3 PASSED"); + + + //Submit button is clicked + driver.findElement(By.xpath(configProp.getProperty("submitButton"))).click(); + + //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed(); + //Assert.assertTrue(driver.getPageSource().contains("Selected Subscriber's Service Instance Details:")) + log.info("Page Header: Selected Subscriber's Service Instance Details"); + + + //Verify whether the page header is displayed "Global Customer ID" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/div/table/thead/tr/th[2]/div")).isDisplayed(); + + //Assert.assertTrue(driver.getPageSource().contains("Global Customer ID")); + log.info("Table is displayed"); + + log.info("VID-12 TC-12 PASSED"); + + } + + + + /** + * Logout under profile. + */ + @Test(priority=10) + public void logoutUnderProfile() + { + + log.info("-----------VID-11 TC-5---------------------"); + //driver.findElement(By.partialLinkText("Click here to login")).click(); + //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + + driver.findElement(By.xpath(".//*[@class='icon-user-small login-snippet-icon']")).click(); + driver.findElement(By.xpath(".//*[@id='reg-logout-div']/a")).click(); + //Validate that the user has logged out of VID. Displays "Portal" + Assert.assertTrue(driver.getPageSource().contains("Portal")); + + log.info("VID-11 TC-5 PASSED"); + + } + + + + /** + * Tear down. + */ + @AfterClass + public void tearDown() + { + driver.close(); + + } + + + + } + + + + diff --git a/vid-app-common/src/test/java/org/onap/vid/selenium/LogOutLeftPane.java b/vid-app-common/src/test/java/org/onap/vid/selenium/LogOutLeftPane.java new file mode 100644 index 000000000..19c6b1996 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/selenium/LogOutLeftPane.java @@ -0,0 +1,242 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.vid.selenium; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.List; +import java.util.Properties; +import java.util.concurrent.TimeUnit; + +import org.apache.log4j.Logger; +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.support.ui.Select; +import org.testng.Assert; +import org.testng.annotations.BeforeTest; +import org.testng.annotations.Test; + +/** + * The Class LogOutLeftPane. + */ +@Test(enabled=false) +public class LogOutLeftPane { + + /** The login button. */ + WebElement loginButton; + + /** The login. */ + WebElement login; + + /** The pwd. */ + WebElement pwd; + + /** The log. */ + Logger log; + + /** The errormessage. */ + WebElement errormessage; + + /** The driver. */ + WebDriver driver=new FirefoxDriver(); + + + /** The config prop. */ + private final Properties configProp = new Properties(); + + + /** + * Instantiates a new log out left pane. + */ + private LogOutLeftPane() { + // TODO Auto-generated constructor stub + // + try{ + // InputStream input =this.getClass().getClassLoader().getResourceAsStream("objectmap.properties"); + //FileInputStream input1 = new FileInputStream("objectmap.properties"); + + InputStream input =new FileInputStream("objectconfig.properties"); + System.out.println("Read all properties from file"); + configProp.load(input); + System.out.println("Read all properties from file completed"); + } + catch(IOException e) { + + e.printStackTrace(); + } + } + + + + + /** + * Do before test. + */ + // TODO Auto-generated method stub + @BeforeTest + public void doBeforeTest() + { + //WebDriver driver=new FirefoxDriver(); + + log = Logger.getLogger(LogOutLeftPane.class.getName()); + + + + // Get url + driver.get("http://vid.onap.org:9080/vid/login_external.htm"); + driver.manage().window().maximize(); + + + login = driver.findElement(By.xpath("//input[@class='fn-ebz-text ng-pristine ng-valid']")); + pwd = driver.findElement(By.xpath("//input[@class='span3 ng-pristine ng-valid']")); + loginButton = driver.findElement(By.id("loginBtn")); + } + + + /** + * Expand collapse panel. + * + * @throws InterruptedException the interrupted exception + */ + @Test(priority=1) + public void expandCollapsePanel() throws InterruptedException + { + + + + login.clear(); + login.sendKeys("su"); + pwd.clear(); + pwd.sendKeys("fusion"); + //driver.findElement(By.partialLinkText("Click here to login")).click(); + //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + loginButton.click(); + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + + log.info("Clicking Profile link from left pane"); + Thread.sleep(3000); + System.out.println("properties file details --->"+configProp.getProperty("profilelink")); + driver.findElement(By.xpath(configProp.getProperty("profilelink"))).click(); + Thread.sleep(3000); + + //Verify whether the sub panel is displayed + //To verify the following :Search import from webphone and Self + driver.findElement(By.xpath(".//*[@id='panel4']")).isDisplayed(); + log.info("Expand and collapse passed for Profile link"); + + //For Admin + //Verify expand and collapse working for ADMIN + log.info("Clicking Admin link from left pane"); + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[6]/a/span")).click(); + //To verify the following: Roles, Roles Functions, Usages + driver.findElement(By.xpath(".//*[@id='panel5']")).isDisplayed(); + + + log.info("Expand and collapse passed for ADMIN link"); + + log.info("VID-11 TC-3 PASSED"); + + } + + + /** + * Drop down list. + * + * @throws InterruptedException the interrupted exception + */ + @Test(priority=2) + public void dropDownList() throws InterruptedException + { + //VID-12 TC-3 + log.info("VID-12 TC-3"); + //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select")); + + //driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select")); + Thread.sleep(5000); + + //Infrastructure Subscriber Name + Select oSelect = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"))); + Select iSelect = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select"))); + + List <WebElement> elementCount = oSelect.getOptions(); + log.info("Subscriber Name Drop Down"); + System.out.println(elementCount.size()); + oSelect.selectByIndex(1); + log.info("Subscriber name selected"); + //String selectedOption = new Select(driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/select"))).getFirstSelectedOption().getText(); + + + List <WebElement> count = iSelect.getOptions(); + log.info("Subscriber type drop down"); + System.out.println(count.size()); + oSelect.selectByIndex(1); + log.info("Subscriber type selected"); + + + + //Submit button is clicked + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button")).click(); + + + //Verify whether the page header is displayed "Selected Subscriber's Service Instance Details:" + driver.findElement(By.xpath(".//*[@id='mContent']/div/div/div/h1")).isDisplayed(); + log.info("VID-12 TC-3 PASSED"); + } + + + + + /** + * Logout left pane. + */ + @Test(priority=3) + public void logoutLeftPane() + { + //To Verify if the logout link redirects to Login page when clicked. + + + /*log.info("----------------VID-11 TC-4----------------"); + login.clear(); + login.sendKeys("testuser"); + pwd.clear(); + pwd.sendKeys("abc123"); + //driver.findElement(By.partialLinkText("Click here to login")).click(); + //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + loginButton.click(); + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);*/ + log.info("----------------VID-11 TC-4----------------"); + driver.findElement(By.xpath("html/body/div[1]/div[1]/div/div/div[2]/div/div/div[1]/div/div/accordion/div/div[7]/a")).click(); + //Validate that the user has logged out of VID. Displays "Portal" + Assert.assertTrue(driver.getPageSource().contains("Portal")); + + log.info("VID 11 TC-4 PASSED"); + + driver.close(); + + } + +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceImplTest.java b/vid-app-common/src/test/java/org/onap/vid/services/ChangeManagementServiceImplTest.java index bd1e72b70..e73838c92 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceImplTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/services/ChangeManagementServiceImplTest.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.services; +package org.onap.vid.services; import static org.junit.Assert.*; import java.util.*; @@ -6,16 +6,16 @@ import java.util.*; import org.json.simple.JSONArray; import org.junit.Assert; import org.junit.Test; -import org.openecomp.vid.changeManagement.ChangeManagementRequest; -import org.openecomp.vid.changeManagement.RequestDetails; -import org.openecomp.vid.mso.rest.Request; +import org.onap.vid.changeManagement.ChangeManagementRequest; +import org.onap.vid.changeManagement.RequestDetails; +import org.onap.vid.mso.rest.Request; import org.springframework.http.ResponseEntity; public class ChangeManagementServiceImplTest { - private ChangeManagementServiceImpl createTestSubject() { + /*TODO: fix private ChangeManagementServiceImpl createTestSubject() { return new ChangeManagementServiceImpl(); - } + }*/ /*@Test @@ -40,7 +40,7 @@ public class ChangeManagementServiceImplTest { result=Deencapsulation.invoke(testSubject, "findRequestByVnfName", new Object[]{List<RequestDetails>.class, vnfName}); Assert.assertEquals(null, result); }*/ - +/* @Test public void testDoChangeManagement() throws Exception { @@ -65,5 +65,5 @@ public class ChangeManagementServiceImplTest { // default test testSubject = createTestSubject(); result = testSubject.getSchedulerChangeManagements(); - } + }*/ }
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceTest.java b/vid-app-common/src/test/java/org/onap/vid/services/ChangeManagementServiceTest.java index f770ab2ab..f3df4c6a9 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/services/ChangeManagementServiceTest.java @@ -1,10 +1,10 @@ -package org.openecomp.vid.services; +package org.onap.vid.services; import org.junit.After; import org.junit.Before; import org.junit.Test; -import org.openecomp.vid.changeManagement.ChangeManagementRequest; -import org.openecomp.vid.changeManagement.ChangeManagementResponse; +import org.onap.vid.changeManagement.ChangeManagementRequest; +import org.onap.vid.changeManagement.ChangeManagementResponse; import org.springframework.http.ResponseEntity; import junit.framework.Assert; diff --git a/vid-app-common/src/test/java/org/onap/vid/services/ChangeManagementServiceUnitTest.java b/vid-app-common/src/test/java/org/onap/vid/services/ChangeManagementServiceUnitTest.java new file mode 100644 index 000000000..f692bdc6d --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/services/ChangeManagementServiceUnitTest.java @@ -0,0 +1,107 @@ +package org.onap.vid.services; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.commons.io.IOUtils; +import org.mockito.ArgumentCaptor; +import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.vid.changeManagement.ChangeManagementRequest; +import org.onap.vid.controller.MsoConfig; +import org.onap.vid.controller.WebConfig; +import org.onap.vid.model.RequestReferencesContainer; +import org.onap.vid.mso.RestObject; +import org.onap.vid.mso.rest.MsoRestClientNew; +import org.onap.vid.mso.rest.RequestDetails; +import org.onap.vid.properties.AsdcClientConfiguration; +import org.onap.vid.services.ChangeManagementService; +import org.onap.vid.services.ChangeManagementServiceImpl; +import org.onap.vid.testUtils.RegExMatcher; +import org.skyscreamer.jsonassert.JSONAssert; +import org.skyscreamer.jsonassert.JSONCompareMode; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; +import org.springframework.test.context.web.WebAppConfiguration; +import org.testng.annotations.Test; + +import javax.inject.Inject; +import java.net.URL; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.core.IsEqual.equalTo; +import static org.hamcrest.core.IsInstanceOf.instanceOf; +import static org.mockito.Matchers.anyObject; +import static org.mockito.Matchers.anyString; +import static org.mockito.Mockito.*; + + +@Test +@ContextConfiguration(classes = {WebConfig.class, AsdcClientConfiguration.class, SystemProperties.class, ChangeManagementServiceUnitTest.TestMsoConfig.class}) +@WebAppConfiguration +public class ChangeManagementServiceUnitTest extends AbstractTestNGSpringContextTests { + + private ObjectMapper objectMapper = new ObjectMapper(); + @Inject + private ChangeManagementService changeManagementService; + @Inject + private MsoRestClientNew restClientUnderTest; + + // @Test + void testInPlaceSoftwareUpdateRequest() throws Exception { + + + doReturn(new RestObject<RequestReferencesContainer>()).when(restClientUnderTest).PostForObject(anyObject(), anyString(), anyString(), anyObject()); + + URL requestJsonUrl = this.getClass().getResource("/services/change_management_software_update_request.json"); + ChangeManagementRequest changeManagementRequest = objectMapper.readValue(requestJsonUrl, ChangeManagementRequest.class); + changeManagementService.doChangeManagement(changeManagementRequest, "vidVnf"); + + ArgumentCaptor<String> endpointCaptor = ArgumentCaptor.forClass(String.class); + ArgumentCaptor<String> sourceIdCaptor = ArgumentCaptor.forClass(String.class); + ArgumentCaptor<Object> requestCaptor = ArgumentCaptor.forClass(Object.class); + ArgumentCaptor<Class> responseTypeCaptor = ArgumentCaptor.forClass(Class.class); + verify(restClientUnderTest).PostForObject(requestCaptor.capture(), sourceIdCaptor.capture(), endpointCaptor.capture(), responseTypeCaptor.capture()); + + org.onap.vid.changeManagement.RequestDetails expectedRequest = changeManagementRequest.getRequestDetails().get(0); + + String serviceInstanceId = expectedRequest.getRelatedInstList().get(0).getRelatedInstance().instanceId; + ; + String vnfInstanceId = expectedRequest.getVnfInstanceId(); + String regEx = String.format("/serviceInstances/v[0-9]+/%s/vnfs/%s/inPlaceSoftwareUpdate", serviceInstanceId, vnfInstanceId); + assertThat(endpointCaptor.getValue(), RegExMatcher.matchesRegEx(regEx)); + assertThat(requestCaptor.getValue(), instanceOf(RequestDetails.class)); + RequestDetails actualRequest = ((RequestDetails) requestCaptor.getValue()); + + assertThat(actualRequest.getCloudConfiguration().getTenantId(), equalTo(expectedRequest.getCloudConfiguration().getTenantId())); + assertThat(actualRequest.getCloudConfiguration().getLcpCloudRegionId(), equalTo(expectedRequest.getCloudConfiguration().getLcpCloudRegionId())); + assertThat(actualRequest.getRequestInfo(), equalTo(expectedRequest.getRequestInfo())); + assertThat(actualRequest.getRequestParameters(), equalTo(expectedRequest.getRequestParameters())); + + URL expectedMsoRequestUrl = this.getClass().getResource("/services/change_management_software_update_expected_mso_request.json"); + String expectedMsoRequestString = IOUtils.toString(expectedMsoRequestUrl, "UTF-8"); + String actualRequestString = objectMapper.writeValueAsString(actualRequest); + try { + JSONAssert.assertEquals("built mso request is not ok", expectedMsoRequestString, actualRequestString, JSONCompareMode.NON_EXTENSIBLE); + } catch (AssertionError | Exception e) { + System.out.println("requestDetailsAsString: \n" + actualRequestString); + System.out.println("expected: \n" + expectedMsoRequestString); + throw e; + } + + } + + @Configuration + public static class TestMsoConfig extends MsoConfig { + + @Override + public MsoRestClientNew getMsoClient() { + MsoRestClientNew spyClient = spy(new MsoRestClientNew()); + return spyClient; + } + + @Bean + public ChangeManagementService getChangeManagementService() { + return new ChangeManagementServiceImpl(null, getMsoBusinessLogic()); + } + } +} diff --git a/vid-app-common/src/test/java/org/onap/vid/services/CsvServiceTest.java b/vid-app-common/src/test/java/org/onap/vid/services/CsvServiceTest.java new file mode 100644 index 000000000..051a1cf45 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/services/CsvServiceTest.java @@ -0,0 +1,80 @@ +//package org.onap.vid.services; +//import org.apache.commons.io.IOUtils; +//import org.onap.vid.services.CsvServiceImpl; +//import org.skyscreamer.jsonassert.JSONAssert; +//import org.skyscreamer.jsonassert.JSONCompareMode; +//import org.testng.Assert; +//import org.testng.annotations.DataProvider; +//import org.testng.annotations.Test; +//import org.json.JSONObject; +// +//import javax.ws.rs.BadRequestException; +//import java.io.IOException; +//import java.lang.reflect.Method; +//import java.net.URL; +//import java.util.List; +// +//@Test +//public class CsvServiceTest { +// +// private CsvServiceImpl csvService = new CsvServiceImpl(); +// private final static String CSV_FOLDER = "csv_files/{CSV_FILE}"; +// private final static String VALID_CSV = "csv_to_json.csv"; +// private final static String ONE_LINE_CSV = "one_line.csv"; +// private final static String EMPTY_CSV = "empty_file.csv"; +// private final static String MISSING_CONTENT_CSV = "missing_content.csv"; +// private final static String MISSING_VALUES_CSV = "missing_values.csv"; +// +// +///* +// @Test +// public void parseValidCsv() throws IllegalAccessException, IOException, InstantiationException { +// String expectedJson = getExpectation("vnfConfigUpdatePayload.json"); +// readAndParse(VALID_CSV,16,expectedJson); +// +// }*/ +// +// private String getExpectation(String modelFileName) throws IOException { +// // load expected result +// final URL resource = this.getClass().getResource("/" + modelFileName); +// String expected = IOUtils.toString(resource, "UTF-8"); +// return expected; +// } +///* +// @Test +// public void parseOneLineCsv() throws IllegalAccessException, IOException, InstantiationException { +// String expectedJson ="{\"payload\":{\"request-parameters\":{\"vnf-name\":\"ibcx0099v\"}}}"; +// readAndParse(ONE_LINE_CSV,1,expectedJson); +// }*/ +// +// @DataProvider +// public static Object[][] invalidFiles(Method test) { +// return new Object[][]{ +// {MISSING_CONTENT_CSV}, {MISSING_VALUES_CSV} +// }; +// } +///* +// @Test(dataProvider = "invalidFiles", expectedExceptions = {BadRequestException.class}, expectedExceptionsMessageRegExp = "Invalid csv file") +// public void parseMissingContentCsv(String invalidFile) throws IllegalAccessException, IOException, InstantiationException { +// readAndParse(invalidFile, 2, null); +// } +// +// +// @Test +// public void parseEmptyCsv() throws IllegalAccessException, IOException, InstantiationException { +// String expectedJson ="{}"; +// readAndParse(EMPTY_CSV,0,expectedJson); +// } +// +// private void readAndParse(String fileName, int expectedNumRows, String expectedJson) throws IllegalAccessException, IOException, InstantiationException { +// final URL resource = CsvServiceTest.class.getClassLoader().getResource(CSV_FOLDER.replaceFirst("\\{CSV_FILE\\}", fileName)); +// Assert.assertNotNull(resource, "The csv file was not found"); +// List<String[]> content = csvService.readCsv(resource.getPath()); +// Assert.assertEquals(content.size(), expectedNumRows, "The number of non-empty lines in file is wrong"); +// JSONObject json = csvService.convertCsvToJson (content); +// JSONAssert.assertEquals(expectedJson, json, JSONCompareMode.STRICT); +// +// }*/ +// +// +//} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/services/TestSuite.java b/vid-app-common/src/test/java/org/onap/vid/services/TestSuite.java index c6c5eb1f0..e43432467 100644 --- a/vid-app-common/src/test/java/org/openecomp/vid/services/TestSuite.java +++ b/vid-app-common/src/test/java/org/onap/vid/services/TestSuite.java @@ -1,4 +1,4 @@ -package org.openecomp.vid.services; +package org.onap.vid.services; import org.junit.runner.RunWith; import org.junit.runners.Suite; diff --git a/vid-app-common/src/test/java/org/onap/vid/testUtils/IntersectionTest.java b/vid-app-common/src/test/java/org/onap/vid/testUtils/IntersectionTest.java new file mode 100644 index 000000000..c766d26f3 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/testUtils/IntersectionTest.java @@ -0,0 +1,101 @@ +package org.onap.vid.testUtils; + +import org.junit.Assert; +import org.junit.Test; +import org.onap.vid.utils.Intersection; + +import java.util.ArrayList; +import java.util.List; + +/** + * Created by moriya1 on 10/10/2017. + */ +public class IntersectionTest { + + @Test + public void testFourArrays(){ + List<String> l1 = new ArrayList<String>(); + l1.add("1"); + l1.add("2"); + + List<String> l2 = new ArrayList<String>(); + l2.add("2"); + l2.add("3"); + + List<String> l3 = new ArrayList<String>(); + l3.add("2"); + l3.add("4"); + + List<String> l4 = new ArrayList<String>(); + l4.add("2"); + l4.add("5"); + + List<List<String>> all = new ArrayList<>(); + all.add(l1); + all.add(l2); + all.add(l3); + all.add(l4); + Intersection<String> m = new Intersection<>(); + List<String> ans = m.intersectMultipileArray(all); + Assert.assertEquals(1,ans.size()); + Assert.assertEquals(ans.get(0),"2"); + + } + + + + @Test + public void testTwoArrays(){ + List<String> l1 = new ArrayList<String>(); + l1.add("1"); + l1.add("2"); + + List<String> l2 = new ArrayList<String>(); + l2.add("2"); + l2.add("3"); + + List<List<String>> all = new ArrayList<>(); + all.add(l1); + all.add(l2); + Intersection<String> m = new Intersection<>(); + List<String> l3 = m.intersectMultipileArray(all); + Assert.assertEquals(l3.size(),1); + Assert.assertEquals(l3.get(0),"2"); + + } + + + @Test + public void testNoIntersection(){ + List<String> l1 = new ArrayList<String>(); + l1.add("1"); + l1.add("2"); + + List<String> l2 = new ArrayList<String>(); + l2.add("3"); + l2.add("4"); + + List<List<String>> all = new ArrayList<>(); + all.add(l1); + all.add(l2); + Intersection<String> m = new Intersection<>(); + List<String> l3 = m.intersectMultipileArray(all); + Assert.assertEquals(l3.size(),0); + + } + + @Test + public void testOneArrays(){ + List<String> l1 = new ArrayList<String>(); + l1.add("1"); + l1.add("2"); + List<List<String>> all = new ArrayList<>(); + all.add(l1); + Intersection<String> m = new Intersection<>(); + List<String> l3 = m.intersectMultipileArray(all); + Assert.assertEquals(l3.size(),2); + Assert.assertEquals(l3.get(0),"1"); + Assert.assertEquals(l3.get(1),"2"); + + } +} diff --git a/vid-app-common/src/test/java/org/onap/vid/testUtils/RegExMatcher.java b/vid-app-common/src/test/java/org/onap/vid/testUtils/RegExMatcher.java new file mode 100644 index 000000000..c88c8a835 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/testUtils/RegExMatcher.java @@ -0,0 +1,29 @@ +package org.onap.vid.testUtils; + +import org.hamcrest.Description; +import org.hamcrest.TypeSafeMatcher; + +public class RegExMatcher extends TypeSafeMatcher<String> { + + private final String regEx; + + public RegExMatcher(String regEx) { + this.regEx = regEx; + } + + + @Override + public void describeTo(Description description) { + description.appendText("matches regEx="+regEx); + } + + + @Override + protected boolean matchesSafely(String item) { + return item.matches(regEx); + } + + public static RegExMatcher matchesRegEx(final String regEx) { + return new RegExMatcher(regEx); + } +} diff --git a/vid-app-common/src/test/java/org/opencomp/vid/testUtils/TestUtils.java b/vid-app-common/src/test/java/org/onap/vid/testUtils/TestUtils.java index 29115e0aa..73a79cd21 100644 --- a/vid-app-common/src/test/java/org/opencomp/vid/testUtils/TestUtils.java +++ b/vid-app-common/src/test/java/org/onap/vid/testUtils/TestUtils.java @@ -1,4 +1,4 @@ -package org.opencomp.vid.testUtils; +package org.onap.vid.testUtils; import org.json.JSONArray; import org.json.JSONObject; @@ -46,11 +46,12 @@ public class TestUtils { else if (expectedValue instanceof JSONArray) { if (actualValue instanceof JSONArray) { JSONArray expectedJSONArray = (JSONArray)expectedValue; - JSONArray actualJSONArray = (JSONArray)expectedValue; + JSONArray actualJSONArray = (JSONArray)actualValue; for (int i = 0; i < expectedJSONArray.length(); i++) { - String expectedItem = expectedJSONArray.getJSONObject(i).toString(); - String actualItem = actualJSONArray.getJSONObject(i).toString(); - assertJsonStringEqualsIgnoreNulls(expectedItem, actualItem); + String expectedItem = expectedJSONArray.get(i).toString(); + String actualItem = actualJSONArray.get(i).toString(); + if (expectedValue instanceof JSONObject) + assertJsonStringEqualsIgnoreNulls(expectedItem, actualItem); } } else { @@ -62,4 +63,6 @@ public class TestUtils { } } } + + } diff --git a/vid-app-common/src/test/java/org/opencomp/vid/controller/VidControllerTest.java b/vid-app-common/src/test/java/org/opencomp/vid/controller/VidControllerTest.java deleted file mode 100644 index 8596cf3d4..000000000 --- a/vid-app-common/src/test/java/org/opencomp/vid/controller/VidControllerTest.java +++ /dev/null @@ -1,201 +0,0 @@ -package org.opencomp.vid.controller; - -import net.javacrumbs.jsonunit.JsonAssert; -import org.apache.commons.io.IOUtils; -import org.codehaus.jackson.map.ObjectMapper; -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.openecomp.portalsdk.core.util.SystemProperties; -import org.openecomp.sdc.tosca.parser.api.ISdcCsarHelper; -import org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException; -import org.openecomp.sdc.tosca.parser.impl.SdcToscaParserFactory; -import org.openecomp.sdc.tosca.parser.impl.SdcTypes; -import org.openecomp.vid.aai.AaiClient; -import org.openecomp.vid.aai.AaiResponse; -import org.openecomp.vid.asdc.AsdcCatalogException; -import org.openecomp.vid.asdc.AsdcClient; -import org.openecomp.vid.asdc.parser.ToscaParserImpl2; -import org.openecomp.vid.controller.WebConfig; -import org.openecomp.vid.model.*; -import org.openecomp.vid.properties.AsdcClientConfiguration; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import org.springframework.test.context.web.WebAppConfiguration; - -import java.io.IOException; -import java.io.InputStream; -import java.nio.file.Path; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; - -import javax.servlet.ServletContext; - -import static org.opencomp.vid.testUtils.TestUtils.assertJsonStringEqualsIgnoreNulls; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(classes = {WebConfig.class, AsdcClientConfiguration.class,SystemProperties.class }) -@WebAppConfiguration - -public class VidControllerTest { - - @Autowired - private AsdcClient asdcClient; - - @Autowired - ServletContext context; - public class Constants{ - public static final String vfUuid = "48a52540-8772-4368-9cdb-1f124ea5c931"; - public static final String vlUuid = "68101369-6f08-4e99-9a28-fa6327d344f3"; - public static final String PNFUuid = "73e1322a-8a9a-49dc-9558-b0c5c5770e4a"; - public static final String vfFilePath = "vf-csar.JSON"; - public static final String vlFilePath = "vl-csar.JSON"; - public static final String PNFFilePath = "/vid_internal/vid-app-common/src/main/resources/pnf.csar"; - } - - private ToscaParserImpl2 p2 = new ToscaParserImpl2(); - private ObjectMapper om = new ObjectMapper(); - - - @Test - public void test() { - AaiClient client = new AaiClient(context); - AaiResponse<?> response = client.getVNFData(); - try { - System.out.println(new ObjectMapper().writeValueAsString(response)); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - @Test - public void checkPNFFieldsExist() throws SdcToscaParserException, AsdcCatalogException { - String serviceRoleString = "serviceRole"; - String serviceTypeString = "serviceType"; - - SdcToscaParserFactory factory = SdcToscaParserFactory.getInstance(); - ISdcCsarHelper sdcCsarHelper = factory.getSdcCsarHelper(getCsarPath(Constants.PNFUuid).toString()); - List<org.openecomp.sdc.toscaparser.api.NodeTemplate> pnfs = sdcCsarHelper.getServiceNodeTemplateBySdcType(SdcTypes.PNF); - Assert.assertEquals(sdcCsarHelper.getServiceMetadata().getValue(serviceTypeString).toLowerCase(),"transport"); - Assert.assertEquals(sdcCsarHelper.getServiceMetadata().getValue(serviceRoleString).toLowerCase(),"pnf"); - Assert.assertTrue(pnfs.size()>0); - - } - - - @Test - public void assertEqualsBetweenServices() throws Exception { - for (ToscaParserMockHelper mockHelper: getExpectedServiceModel()) { - Service expectedService = mockHelper.getNewServiceModel().getService(); - Service actualService = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getService(); - JsonAssert.assertJsonEquals(expectedService, actualService); - } - } - - //@Test - // bug in SDC tosca filterNodeTemplatePropertiesByValue - public void assertEqualBetweenObjects() throws Exception { - for (ToscaParserMockHelper mockHelper: getExpectedServiceModel()) { - ServiceModel actualServiceModel = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())); - JsonAssert.assertJsonEquals(mockHelper.getNewServiceModel(), actualServiceModel); - /*java.lang.AssertionError: JSON documents are different: - Different keys found in node "networks.ExtVL 0.commands". Expected [exVL_naming#naming_policy, network_role, network_scope], got [network_role, network_scope]. Missing: "networks.ExtVL 0.commands.exVL_naming#naming_policy" - Different keys found in node "networks.ExtVL 0.inputs". Expected [exVL_naming#naming_policy, network_role, network_scope], got [network_role, network_scope]. Missing: "networks.ExtVL 0.inputs.exVL_naming#naming_policy"*/ - } - } - - @Test - public void assertEqualsBetweenNetworkNodes() throws Exception { - for (ToscaParserMockHelper mockHelper: getExpectedServiceModel()) { - Map<String, Network> expectedNetworksMap = mockHelper.getNewServiceModel().getNetworks(); - Map<String, Network> actualNetworksMap = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getNetworks(); - for (Map.Entry<String, Network> entry : expectedNetworksMap.entrySet()) { - Network expectedNetwork = entry.getValue(); - Network actualNetwork = actualNetworksMap.get(entry.getKey()); - Assert.assertEquals(expectedNetwork.getModelCustomizationName(), actualNetwork.getModelCustomizationName()); - verifyBaseNodeProperties(expectedNetwork, actualNetwork); - compareProperties(expectedNetwork.getProperties(), actualNetwork.getProperties()); - } - } - } - - //Because we are not supporting the old flow, the JSON are different by definition. - @Test - public void assertEqualsBetweenVnfsOfTosca() throws Exception { - for (ToscaParserMockHelper mockHelper: getExpectedServiceModel()) { - Map<String, VNF> expectedVnfsMap = mockHelper.getNewServiceModel().getVnfs(); - Map<String, VNF> actualVnfsMap = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getVnfs(); - for (Map.Entry<String, VNF> entry : expectedVnfsMap.entrySet()) { - VNF expectedVnf = entry.getValue(); - VNF actualVnf = actualVnfsMap.get(entry.getKey()); - verifyBaseNodeProperties(expectedVnf, actualVnf); - Assert.assertEquals(expectedVnf.getModelCustomizationName(), actualVnf.getModelCustomizationName()); - compareProperties(expectedVnf.getProperties(), actualVnf.getProperties()); - assertJsonStringEqualsIgnoreNulls(om.writeValueAsString(expectedVnf), om.writeValueAsString(actualVnf)); - } - } - } - - @Test - public void assertEqualsBetweenVolumeGroups() throws Exception { - for (ToscaParserMockHelper mockHelper: getExpectedServiceModel()) { - Path cSarPath = getCsarPath(mockHelper.getUuid()); - Map<String, VolumeGroup> actualVolumeGroups = new HashMap<>(); - if(cSarPath != null) { - actualVolumeGroups = p2.makeServiceModel(cSarPath, getServiceByUuid(mockHelper.getUuid())).getVolumeGroups(); - } - Map<String, VolumeGroup> expectedVolumeGroups = mockHelper.getNewServiceModel().getVolumeGroups(); - JsonAssert.assertJsonEquals(actualVolumeGroups, expectedVolumeGroups); - } - } - - @Test - public void assertEqualsBetweenVfModules() throws Exception { - for (ToscaParserMockHelper mockHelper: getExpectedServiceModel()) { - Map<String, VfModule> actualVfModules = p2.makeServiceModel(getCsarPath(mockHelper.getUuid()), getServiceByUuid(mockHelper.getUuid())).getVfModules(); - Map<String, VfModule> expectedVfModules = mockHelper.getNewServiceModel().getVfModules(); - JsonAssert.assertJsonEquals(actualVfModules, expectedVfModules); - } - } - - private void verifyBaseNodeProperties(Node expectedNode, Node actualNode) { - Assert.assertEquals(expectedNode.getName(), actualNode.getName()); - Assert.assertEquals(expectedNode.getCustomizationUuid(), actualNode.getCustomizationUuid()); - Assert.assertEquals(expectedNode.getDescription(), actualNode.getDescription()); - Assert.assertEquals(expectedNode.getInvariantUuid(), actualNode.getInvariantUuid()); - Assert.assertEquals(expectedNode.getUuid(), actualNode.getUuid()); - Assert.assertEquals(expectedNode.getVersion(), actualNode.getVersion()); - } - - private void compareProperties(Map<String, String> expectedProperties, Map<String, String> actualProperties) { - for (Map.Entry<String, String> property : expectedProperties.entrySet()) { - String expectedValue = property.getValue(); - String key = property.getKey(); - String actualValue = actualProperties.get(key); - Assert.assertEquals(expectedValue, actualValue); - } - } - - private ToscaParserMockHelper[] getExpectedServiceModel() throws IOException { - ToscaParserMockHelper[] mockHelpers = {new ToscaParserMockHelper(Constants.vlUuid, Constants.vlFilePath), new ToscaParserMockHelper(Constants.vfUuid, Constants.vfFilePath)}; - for(ToscaParserMockHelper mockHelper: mockHelpers) { - InputStream jsonFile = VidControllerTest.class.getClassLoader().getResourceAsStream(mockHelper.getFilePath()); - String expectedJsonAsString = IOUtils.toString(jsonFile).toString(); - NewServiceModel newServiceModel1 = om.readValue(expectedJsonAsString, NewServiceModel.class); - mockHelper.setNewServiceModel(newServiceModel1); - } - return mockHelpers; - } - - private Path getCsarPath(String uuid) throws AsdcCatalogException { - return asdcClient.getServiceToscaModel(UUID.fromString(uuid)); - } - - private org.openecomp.vid.asdc.beans.Service getServiceByUuid(String uuid) throws AsdcCatalogException { - return asdcClient.getService(UUID.fromString(uuid)); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java deleted file mode 100644 index 6e8b19602..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RelatedToTest.class, org.openecomp.vid.aai.TestSuite.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java deleted file mode 100644 index c1b146429..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.controller; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ HealthCheckControllerTest.class, PropertyControllerTest.class, AaiControllerTest.class, - ViewEditSubControllerTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java deleted file mode 100644 index 2b234ee84..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openecomp.vid.controller; - -import javax.servlet.http.HttpServletRequest; - -import org.junit.Test; -import org.springframework.web.servlet.ModelAndView; - -public class ViewEditSubControllerTest { - - private ViewEditSubController createTestSubject() { - return new ViewEditSubController(); - } - - @Test - public void testWelcome() throws Exception { - ViewEditSubController testSubject; - HttpServletRequest request = null; - ModelAndView result; - - // default test - testSubject = createTestSubject(); - result = testSubject.welcome(request); - } - - - @Test - public void testGetViewName() throws Exception { - ViewEditSubController testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getViewName(); - } - - @Test - public void testSetViewName() throws Exception { - ViewEditSubController testSubject; - String viewName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setViewName(viewName); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoLocalClientNewTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoLocalClientNewTest.java deleted file mode 100644 index 6e4097375..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoLocalClientNewTest.java +++ /dev/null @@ -1,169 +0,0 @@ -package org.openecomp.vid.mso; - -import org.junit.Test; -import org.openecomp.vid.changeManagement.RequestDetails; - -public class MsoLocalClientNewTest { - - private MsoLocalClientNew createTestSubject() { - return new MsoLocalClientNew(); - } - - @Test - public void testCreateSvcInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createSvcInstance(requestDetails, endpoint); - } - - @Test - public void testCreateInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails request = null; - String path = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createInstance(request, path); - } - - @Test - public void testCreateVnf() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createVnf(requestDetails, endpoint); - } - - @Test - public void testCreateNwInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createNwInstance(requestDetails, endpoint); - } - - @Test - public void testCreateVolumeGroupInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String path = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createVolumeGroupInstance(requestDetails, path); - } - - @Test - public void testCreateVfModuleInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.createVfModuleInstance(requestDetails, endpoint); - } - - @Test - public void testDeleteSvcInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteSvcInstance(requestDetails, endpoint); - } - - @Test - public void testDeleteVnf() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteVnf(requestDetails, endpoint); - } - - @Test - public void testDeleteVfModule() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteVfModule(requestDetails, endpoint); - } - - @Test - public void testDeleteVolumeGroupInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteVolumeGroupInstance(requestDetails, endpoint); - } - - @Test - public void testDeleteNwInstance() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.deleteNwInstance(requestDetails, endpoint); - } - - @Test - public void testGetOrchestrationRequest() throws Exception { - MsoLocalClientNew testSubject; - String t = ""; - String sourceId = ""; - String endpoint = ""; - RestObject restObject = null; - - // default test - testSubject = createTestSubject(); - testSubject.getOrchestrationRequest(t, sourceId, endpoint, restObject); - } - - - @Test - public void testUpdateVnf() throws Exception { - MsoLocalClientNew testSubject; - RequestDetails requestDetails = null; - String vnf_endpoint = ""; - MsoResponseWrapper result; - - // default test - testSubject = createTestSubject(); - result = testSubject.updateVnf(requestDetails, vnf_endpoint); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestIntTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestIntTest.java deleted file mode 100644 index e32e4872b..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestIntTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.openecomp.vid.mso; - -import org.junit.Test; -import org.openecomp.vid.mso.rest.RequestDetails; - -public class MsoRestIntTest { - - private MsoRestInt createTestSubject() { - return new MsoRestInt(); - } - - @Test - public void testLogRequest() throws Exception { - MsoRestInt testSubject; - RequestDetails r = null; - - // test 1 - testSubject = createTestSubject(); - r = null; - testSubject.logRequest(r); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestInterfaceTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestInterfaceTest.java deleted file mode 100644 index 9c96e117a..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoRestInterfaceTest.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.openecomp.vid.mso; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.junit.Test; - -public class MsoRestInterfaceTest { - - private MsoRestInterface createTestSubject() { - return new MsoRestInterface(); - } - - @Test - public void testInitMsoClient() throws Exception { - MsoRestInterface testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.initMsoClient(); - } - -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/RestMsoImplementationTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/RestMsoImplementationTest.java deleted file mode 100644 index 1f1e33950..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/RestMsoImplementationTest.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.openecomp.vid.mso; - -import org.apache.poi.hssf.record.formula.functions.T; -import org.junit.Test; -import org.openecomp.vid.changeManagement.RequestDetails; -import org.openecomp.vid.changeManagement.RequestDetailsWrapper; - -public class RestMsoImplementationTest { - - private RestMsoImplementation createTestSubject() { - return new RestMsoImplementation(); - } - - @Test - public void testInitMsoClient() throws Exception { - RestMsoImplementation testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.initMsoClient(); - } - - @Test - public void testLogRequest() throws Exception { - RestMsoImplementation testSubject; - RequestDetails r = null; - - // test 1 - testSubject = createTestSubject(); - r = null; - testSubject.logRequest(r); - } - - @Test - public void testLogRequest_1() throws Exception { - RestMsoImplementation testSubject; - RequestDetails r = null; - - // test 1 - testSubject = createTestSubject(); - r = null; - testSubject.logRequest(r); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/TestSuite.java deleted file mode 100644 index aa30935cd..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/mso/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.mso; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ MsoRestIntTest.class, MsoUtilTest.class, MsoRestInterfaceTest.class, MsoLocalClientNewTest.class, - RestMsoImplementationTest.class, org.openecomp.vid.mso.rest.TestSuite.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleValidatorTest.java b/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleValidatorTest.java deleted file mode 100644 index fc050baea..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/roles/RoleValidatorTest.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.openecomp.vid.roles; - -import org.junit.Test; -import org.openecomp.vid.mso.rest.RequestDetails; - -public class RoleValidatorTest { - - private RoleValidator createTestSubject() { - return new RoleValidator(null); - } - - @Test - public void testIsSubscriberPermitted() throws Exception { - RoleValidator testSubject; - String subscriberName = ""; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isSubscriberPermitted(subscriberName); - } - - @Test - public void testIsServicePermitted() throws Exception { - RoleValidator testSubject; - String subscriberName = ""; - String serviceType = ""; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isServicePermitted(subscriberName, serviceType); - } - - @Test - public void testIsMsoRequestValid() throws Exception { - RoleValidator testSubject; - RequestDetails mso_request = null; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isMsoRequestValid(mso_request); - } - - @Test - public void testIsTenantPermitted() throws Exception { - RoleValidator testSubject; - String globalCustomerId = ""; - String serviceType = ""; - String tenant = ""; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isTenantPermitted(globalCustomerId, serviceType, tenant); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java deleted file mode 100644 index 9041bdbfc..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/GetTimeSlotsRestObjectTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.junit.Test; - - -public class GetTimeSlotsRestObjectTest { - - private GetTimeSlotsRestObject createTestSubject() { - return new GetTimeSlotsRestObject(); - } - - - @Test - public void testSetUUID() throws Exception { - GetTimeSlotsRestObject testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUUID(uuid); - } - - - @Test - public void testGetUUID() throws Exception { - GetTimeSlotsRestObject testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUUID(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java deleted file mode 100644 index 79e978847..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostCreateNewVnfRestObjectTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.junit.Test; - - -public class PostCreateNewVnfRestObjectTest { - - private PostCreateNewVnfRestObject createTestSubject() { - return new PostCreateNewVnfRestObject(); - } - - - @Test - public void testSetUUID() throws Exception { - PostCreateNewVnfRestObject testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUUID(uuid); - } - - - @Test - public void testGetUUID() throws Exception { - PostCreateNewVnfRestObject testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUUID(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java deleted file mode 100644 index dd2e6f7c9..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/PostSubmitVnfChangeRestObjectTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.junit.Test; - - -public class PostSubmitVnfChangeRestObjectTest { - - private PostSubmitVnfChangeRestObject createTestSubject() { - return new PostSubmitVnfChangeRestObject(); - } - - - @Test - public void testSetUUID() throws Exception { - PostSubmitVnfChangeRestObject testSubject; - String uuid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUUID(uuid); - } - - - @Test - public void testGetUUID() throws Exception { - PostSubmitVnfChangeRestObject testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUUID(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java deleted file mode 100644 index 8e5321424..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/RestObjects/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.scheduler.RestObjects; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ RestObjectTest.class, GetTimeSlotsRestObjectTest.class, PostSubmitVnfChangeRestObjectTest.class, - PostCreateNewVnfRestObjectTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java deleted file mode 100644 index 16675dd1f..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostCreateNewVnfWrapperTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.junit.Test; - - -public class PostCreateNewVnfWrapperTest { - - private PostCreateNewVnfWrapper createTestSubject() { - return new PostCreateNewVnfWrapper(); - } - - - @Test - public void testGetUuid() throws Exception { - PostCreateNewVnfWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUuid(); - } - - - @Test - public void testSetUuid() throws Exception { - PostCreateNewVnfWrapper testSubject; - String v = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid(v); - } - - - @Test - public void testToString() throws Exception { - PostCreateNewVnfWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetResponse() throws Exception { - PostCreateNewVnfWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResponse(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java deleted file mode 100644 index ffe03bf06..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/PostSubmitVnfChangeTimeSlotsWrapperTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.junit.Test; - - -public class PostSubmitVnfChangeTimeSlotsWrapperTest { - - private PostSubmitVnfChangeTimeSlotsWrapper createTestSubject() { - return new PostSubmitVnfChangeTimeSlotsWrapper(); - } - - - @Test - public void testGetUuid() throws Exception { - PostSubmitVnfChangeTimeSlotsWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUuid(); - } - - - @Test - public void testSetUuid() throws Exception { - PostSubmitVnfChangeTimeSlotsWrapper testSubject; - String v = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUuid(v); - } - - - @Test - public void testToString() throws Exception { - PostSubmitVnfChangeTimeSlotsWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetResponse() throws Exception { - PostSubmitVnfChangeTimeSlotsWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResponse(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java deleted file mode 100644 index c0fcb591d..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/SchedulerResponseWrapperTest.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.junit.Test; - - -public class SchedulerResponseWrapperTest { - - private SchedulerResponseWrapper createTestSubject() { - return new SchedulerResponseWrapper(); - } - - - @Test - public void testGetEntity() throws Exception { - SchedulerResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEntity(); - } - - - @Test - public void testGetStatus() throws Exception { - SchedulerResponseWrapper testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStatus(); - } - - - @Test - public void testSetStatus() throws Exception { - SchedulerResponseWrapper testSubject; - int v = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setStatus(v); - } - - - @Test - public void testSetEntity() throws Exception { - SchedulerResponseWrapper testSubject; - String v = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEntity(v); - } - - - @Test - public void testToString() throws Exception { - SchedulerResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - - @Test - public void testGetResponse() throws Exception { - SchedulerResponseWrapper testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getResponse(); - } -}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java deleted file mode 100644 index a85a9f3d2..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/SchedulerResponseWrappers/TestSuite.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.openecomp.vid.scheduler.SchedulerResponseWrappers; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ PostSubmitVnfChangeTimeSlotsWrapperTest.class, PostCreateNewVnfWrapperTest.class, - SchedulerResponseWrapperTest.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java deleted file mode 100644 index 61ab05d02..000000000 --- a/vid-app-common/src/test/java/org/openecomp/vid/scheduler/TestSuite.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.openecomp.vid.scheduler; - -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses( - -{ SchedulerRestInterfaceTest.class, org.openecomp.vid.scheduler.RestObjects.TestSuite.class }) -public class TestSuite { // nothing -} diff --git a/vid-app-common/src/test/resources/WEB-INF/conf/system.properties b/vid-app-common/src/test/resources/WEB-INF/conf/system.properties index 9da6303d6..a67f57897 100644 --- a/vid-app-common/src/test/resources/WEB-INF/conf/system.properties +++ b/vid-app-common/src/test/resources/WEB-INF/conf/system.properties @@ -79,7 +79,18 @@ element_map_icon_path = app/fusionapp/icons/ #aai.oldserver.url=https://mtanjv9aaas40.aic.cip.att.com:8443/aai/servers/v3/ #ist servers aai.server.url.base=https://aai-ext1.test.att.com:8443/aai/ -aai.server.url=https://aai-ext1.test.att.com:8443/aai/v11/ +#aai.server.url=https://aai-ext1.test.att.com:8443/aai/v12/ +aai.server.url=http://localhost:8080/vidSimulator/aai/v12/ +#aai.server.url=http://localhost:1080/aai +#aai.server.url=https://aai-int2.test.att.com:8443/aai/v12/ + + + + + + + + aai.oldserver.url.base=https://aai-ext1.test.att.com:8443/aai/servers/ aai.oldserver.url=https://aai-ext1.test.att.com:8443/aai/servers/v3/ aai.truststore.filename=tomcat_keystore @@ -88,7 +99,6 @@ aai.keystore.filename=aai-client-cert.p12 aai.keystore.passwd.x=OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o aai.use.client.cert=false aai.vnf.provstatus=PREPROV,NVTPROV,PROV,CAPPED -aai_get_version_by_invariant_id="service-design-and-creation/models?depth=2&model-invariant-id=" #Cron Schedules have 6 required fields and 1 optional field: # Seconds Minutes Hours Day-of-Month Month Day-of-Week Year @@ -136,16 +146,20 @@ mso.client.type=LOCAL mso.server.url=http://vm1.mso.simpledemo.openecomp.org:8080 mso.polling.interval.msecs=10000 mso.max.polls=10 -mso.user.name=InfraPortalClient -mso.password.x=OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz -mso.restapi.svc.instance=/ecomp/mso/infra/serviceInstances/v4 -mso.restapi.vnf.instance=/ecomp/mso/infra/serviceInstances/v4/<service_instance_id>/vnfs -mso.restapi.network.instance=/ecomp/mso/infra/serviceInstances/v4/<service_instance_id>/networks -mso.restapi.vf.module.instance=/ecomp/mso/infra/serviceInstances/v4/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules -mso.restapi.volume.group.instance=/ecomp/mso/infra/serviceInstances/v4/<service_instance_id>/vnfs/<vnf_instance_id>/volumeGroups -mso.restapi.get.orc.req=/ecomp/mso/infra/orchestrationRequests/v4 -mso.restapi.get.orc.reqs=/ecomp/mso/infra/orchestrationRequests/v4? +mso.user.name=infraportal +mso.password.x=OBF:1ghz1kfx1j1w1m7w1i271e8q1eas1hzj1m4i1iyy1kch1gdz +mso.restapi.svc.instance=/serviceInstances/v5 +mso.restapi.vnf.instance=/serviceInstances/v5/<service_instance_id>/vnfs +mso.restapi.vnf.changemanagement.instance=/serviceInstances/v5/<service_instance_id>/vnfs/<vnf_instance_id>/<request_type> +mso.restapi.network.instance=/serviceInstances/v5/<service_instance_id>/networks +mso.restapi.vf.module.instance=/serviceInstances/v5/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules +mso.restapi.volume.group.instance=/serviceInstances/v5/<service_instance_id>/vnfs/<vnf_instance_id>/volumeGroups +mso.restapi.get.orc.req=/orchestrationRequests/v5 +mso.restapi.get.orc.reqs=/orchestrationRequests/v5? mso.restapi.get.man.tasks=/tasks/v1 +mso.restapi.configurations=/serviceInstances/v6/<service_instance_id>/configurations +mso.restapi.configuration.instance=${mso.restapi.configurations}<configuration_id> + vid.truststore.filename=/opt/app/vid/etc/vid_keystore.jks mso.dme2.client.timeout=30000 mso.dme2.client.read.timeout=120000 diff --git a/vid-app-common/src/test/resources/WEB-INF/jsp/searchexistingsi.jsp b/vid-app-common/src/test/resources/WEB-INF/jsp/searchexistingsi.jsp index 2c7dd9f5f..76fe13e4b 100644 --- a/vid-app-common/src/test/resources/WEB-INF/jsp/searchexistingsi.jsp +++ b/vid-app-common/src/test/resources/WEB-INF/jsp/searchexistingsi.jsp @@ -12,7 +12,7 @@ <script src="app/vid/test/testAaiData.js"></script> <script src="app/vid/scripts/controller/creationDialogController.js"></script> -<script src="app/vid/scripts/controller/deletionDialogController.js"></script> +<script src="app/vid/scripts/controller/deleteResumeDialogController.js"></script> <script src="app/vid/scripts/controller/detailsDialogController.js"></script> <script src="app/vid/scripts/controller/statusDialogController.js"></script> <script src="app/vid/scripts/controller/msoCommitController.js"></script> @@ -21,7 +21,7 @@ <script src="app/vid/scripts/services/asdcService.js"></script> <script src="app/vid/scripts/services/creationService.js"></script> <script src="app/vid/scripts/services/dataService.js"></script> -<script src="app/vid/scripts/services/deletionService.js"></script> +<script src="app/vid/scripts/services/deleteResumeService.js"></script> <script src="app/vid/scripts/services/detailsService.js"></script> <script src="app/vid/scripts/services/statusService.js"></script> <script src="app/vid/scripts/services/componentService.js"></script> @@ -43,7 +43,7 @@ <link rel="stylesheet" type="text/css" href="app/vid/styles/angular-ui-tree.css" /> <link rel="stylesheet" type="text/css" href="app/vid/styles/vidTree.css" /> -<%@ page import="org.openecomp.vid.mso.*"%> +<%@ page import="org.onap.vid.mso.*"%> <%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%> <% String properties = "{msoMaxPolls:" + SystemProperties.getProperty(MsoProperties.MSO_MAX_POLLS) diff --git a/vid-app-common/src/test/resources/WEB-INF/jsp/serviceModels.jsp b/vid-app-common/src/test/resources/WEB-INF/jsp/serviceModels.jsp index 9fdf75d64..2adaf447d 100644 --- a/vid-app-common/src/test/resources/WEB-INF/jsp/serviceModels.jsp +++ b/vid-app-common/src/test/resources/WEB-INF/jsp/serviceModels.jsp @@ -1,3 +1,4 @@ +<link rel="stylesheet" type="text/css" href="app/vid/external/bootstrap/css/bootstrap.min.css" /> <link rel="stylesheet" type="text/css" href="app/vid/styles/aaiGetSubs.css" /> <link rel="stylesheet" type="text/css" href="app/vid/styles/aaiSubDetails.css" /> <link rel="stylesheet" type="text/css" href="app/vid/styles/aaiSubViewEdit.css" /> @@ -6,18 +7,20 @@ <link rel="stylesheet" type="text/css" href="app/vid/styles/instantiate.css" /> <link rel="stylesheet" type="text/css" href="app/vid/styles/vidTree.css" /> <link rel="stylesheet" type="text/css" href="app/vid/styles/dialogs.css" /> -<link rel="stylesheet" type="text/css" href="app/vid/external/bootstrap/css/bootstrap.min.css" /> +<link rel="stylesheet" type="text/css" href="app/vid/styles/angularjs-datetime-picker.css"></link> +<link rel="stylesheet" type="text/css" href="app/vid/styles/common.css" /> <script> var appDS2 = app; </script> + <script src="app/vid/scripts/controller/VidApp.js"></script> <!-- Latest compiled and minified JavaScript --> -<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> +<script src="app/vid/external/bootstrap/js/bootstrap.min.js"></script> <script src="app/vid/external/multiselect/angular-bootstrap-multiselect.min.js"></script> @@ -32,28 +35,45 @@ <script src="app/vid/scripts/filters/date.filter.js"></script> <script src="app/vid/scripts/modals/change-management-manual-tasks-controller/change-management-manual-tasks.controller.js"></script> <script src="app/vid/scripts/modals/new-change-management/new-change-management.controller.js"></script> +<script src="app/vid/scripts/modals/alert-modal/alert-modal.controller.js"></script> +<script src="app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js"></script> + +<script src="app/vid/scripts/modals/alert-modal/alert-modal.controller.js"></script> <script src="app/vid/scripts/controller/aaiSubscriberController.js"></script> <script src="app/vid/scripts/controller/creationDialogController.js"></script> -<script src="app/vid/scripts/controller/deletionDialogController.js"></script> +<script src="app/vid/scripts/controller/deleteResumeDialogController.js"></script> <script src="app/vid/scripts/controller/detailsDialogController.js"></script> <script src="app/vid/scripts/controller/statusDialogController.js"></script> <script src="app/vid/scripts/controller/InstantiationController.js"></script> <script src="app/vid/scripts/controller/msoCommitController.js"></script> +<script src="app/vid/scripts/controller/pnfSearchAssociationController.js"></script> <script src="app/vid/scripts/controller/ServiceModelController.js"></script> <script src="app/vid/scripts/controller/previousVersionDialogController.js"></script> <script src="app/vid/scripts/controller/previousVersionContoller.js"></script> +<script src="app/vid/scripts/controller/AddNetworkNodeController.js"></script> <script src="app/vid/scripts/controller/change-management.controller.js"></script> +<script src="app/vid/scripts/controller/testEnvironmentsController.js"></script> +<script src="app/vid/scripts/controller/ServiceProxyConfigController.js"></script> + +<script src="app/vid/scripts/directives/angularjs-datetime-picker.js"></script> +<script src="app/vid/scripts/controller/ServiceProxyConfigController.js"></script> + +<script src="app/vid/scripts/directives/angularjs-datetime-picker.js"></script> +<script src="app/vid/scripts/controller/msoCommitModalController.js"></script> + <script src="app/vid/scripts/directives/extensionsDirective.js"></script> <script src="app/vid/scripts/directives/parameterBlockDirective.js"></script> <script src="app/vid/scripts/directives/popupWindowDirective.js"></script> <script src="app/vid/scripts/directives/progressBarDirective.js"></script> +<script src="app/vid/scripts/directives/serviceMetadata.js"></script> <script src="app/vid/scripts/services/aaiService.js"></script> +<script src="app/vid/scripts/services/schedulerService.js"></script> <script src="app/vid/scripts/services/asdcService.js"></script> <script src="app/vid/scripts/services/componentService.js"></script> <script src="app/vid/scripts/services/creationService.js"></script> <script src="app/vid/scripts/services/dataService.js"></script> -<script src="app/vid/scripts/services/deletionService.js"></script> +<script src="app/vid/scripts/services/deleteResumeService.js"></script> <script src="app/vid/scripts/services/detailsService.js"></script> <script src="app/vid/scripts/services/statusService.js"></script> <script src="app/vid/scripts/services/msoService.js"></script> @@ -61,8 +81,12 @@ <script src="app/vid/scripts/services/utilityService.js"></script> <script src="app/vid/scripts/services/vnfService.js"></script> <script src="app/vid/scripts/services/change-management.service.js"></script> +<script src="app/vid/scripts/modals/cancel-pending-workflow/cancel-pending-workflow.controller.js"></script> +<script src="app/vid/scripts/services/OwningEntityService.js"></script> +<script src="app/vid/scripts/services/testEnvironmentsService.js"></script> -<%@ page import="org.openecomp.vid.mso.*"%> + +<%@ page import="org.onap.vid.mso.*"%> <%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%> <% String properties = "{msoMaxPolls:" + SystemProperties.getProperty(MsoProperties.MSO_MAX_POLLS) @@ -75,18 +99,20 @@ <div ng-view></div> </div> <!-- Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/16/2016 --> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> -<br> +<div class="temporary-solution"> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> + <br> +</div> diff --git a/vid-app-common/src/test/resources/WEB-INF/jsp/testMso.jsp b/vid-app-common/src/test/resources/WEB-INF/jsp/testMso.jsp index abcc8e26d..711308996 100644 --- a/vid-app-common/src/test/resources/WEB-INF/jsp/testMso.jsp +++ b/vid-app-common/src/test/resources/WEB-INF/jsp/testMso.jsp @@ -31,7 +31,7 @@ Consider / investigate replacing this approach with an alternative REST / Angular mechanism. --> -<%@ page import="org.openecomp.vid.mso.*"%> +<%@ page import="org.onap.vid.mso.*"%> <%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%> <% String properties = "{msoMaxPolls:" + SystemProperties.getProperty(MsoProperties.MSO_MAX_POLLS) diff --git a/vid-app-common/src/test/resources/WEB-INF/jsp/testViewEdit.jsp b/vid-app-common/src/test/resources/WEB-INF/jsp/testViewEdit.jsp index 031fedf8c..105ff0b58 100644 --- a/vid-app-common/src/test/resources/WEB-INF/jsp/testViewEdit.jsp +++ b/vid-app-common/src/test/resources/WEB-INF/jsp/testViewEdit.jsp @@ -7,7 +7,7 @@ <link rel="stylesheet" type="text/css" href="app/vid/styles/dialogs.css" /> <script src="app/vid/scripts/controller/creationDialogController.js"></script> -<script src="app/vid/scripts/controller/deletionDialogController.js"></script> +<script src="app/vid/scripts/controller/deleteResumeDialogController.js"></script> <script src="app/vid/scripts/controller/detailsDialogController.js"></script> <script src="app/vid/scripts/controller/statusDialogController.js"></script> <script src="app/vid/scripts/controller/msoCommitController.js"></script> @@ -16,7 +16,7 @@ <script src="app/vid/scripts/services/asdcService.js"></script> <script src="app/vid/scripts/services/creationService.js"></script> <script src="app/vid/scripts/services/dataService.js"></script> -<script src="app/vid/scripts/services/deletionService.js"></script> +<script src="app/vid/scripts/services/deleteResumeService.js"></script> <script src="app/vid/scripts/services/detailsService.js"></script> <script src="app/vid/scripts/services/statusService.js"></script> <script src="app/vid/scripts/services/componentService.js"></script> @@ -40,7 +40,7 @@ Consider / investigate replacing this approach with an alternative REST / Angular mechanism. --> -<%@ page import="org.openecomp.vid.mso.*"%> +<%@ page import="org.onap.vid.mso.*"%> <%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%> <% String properties = "{msoMaxPolls:" + SystemProperties.getProperty(MsoProperties.MSO_MAX_POLLS) @@ -54,7 +54,7 @@ <div popup-window class="popupContents" ngx-show="{{popup.isVisible}}" ng-cloak> <div ng-include="'app/vid/scripts/view-models/creationDialog.htm'"></div> - <div ng-include="'app/vid/scripts/view-models/deletionDialog.htm'"></div> + <div ng-include="'app/vid/scripts/view-models/deleteResumeDialog.htm'"></div> <div ng-include="'app/vid/scripts/view-models/detailsDialog.htm'" onload="autoStartTest();"></div> </div> diff --git a/vid-app-common/src/test/resources/asdc.properties b/vid-app-common/src/test/resources/asdc.properties index 8352ff213..b40aa9ab2 100644 --- a/vid-app-common/src/test/resources/asdc.properties +++ b/vid-app-common/src/test/resources/asdc.properties @@ -1,4 +1,4 @@ -asdc.client.type=REST +asdc.client.type=LOCAL asdc.client.rest.protocol=http asdc.client.rest.host=c2.vm1.sdc.simpledemo.openecomp.org diff --git a/vid-app-common/src/test/resources/csv_files/csv_to_json.csv b/vid-app-common/src/test/resources/csv_files/csv_to_json.csv new file mode 100644 index 000000000..02229caf8 --- /dev/null +++ b/vid-app-common/src/test/resources/csv_files/csv_to_json.csv @@ -0,0 +1,99 @@ +payload,request-parameters,,,vnf-name,ibcx0099v +payload,request-parameters,[vm],,vm-name,ibcx0001vm001 +payload,request-parameters,[vm],[vnfc],vnfc-name,ibcx0001vm001dbg001 +payload,request-parameters,[vm],[vnfc],vnfc-function-code,dbg +payload,request-parameters,[vm],[vnfc],vnfc-type,DBE-VM #1 +payload,request-parameters,[vm],[vnfc],group-notation,ibcx0001vm001dbg001pair +payload,request-parameters,[vm],[vnfc],ipaddress-v4-oam-vip,135.21.166.39 +payload,request-parameters,[vm],,vm-name,ibcx0001vm002 +payload,request-parameters,[vm],[vnfc],vnfc-name,ibcx0001vm002dbg001 +payload,request-parameters,[vm],[vnfc],vnfc-function-code,dbg +payload,request-parameters,[vm],[vnfc],vnfc-type,DBE-VM #1 +payload,request-parameters,[vm],[vnfc],group-notation,ibcx0001vm001dbg001pair +,,,,, +payload,request-parameters,,,template-name,vdbe_template1 +payload,configuration,,,configuration-string," <configuration xmlns=""http://xml.juniper.net/xnm/1.1/xnm"" + xmlns:a=""http://xml.juniper.net/junos/15.1X49/junos"" > + <version>15.1X49-D50.3</version> + <groups> + <name>node0</name> + <system> + <host-name>$node0_hostname</host-name> + <backup-router> + <address>$node0_backup_router_address</address> + <destination>0.0.0.0/0</destination> + </backup-router> + </system> + </groups> + </configuration>" +payload,configuration,,,configuration-json,"{ + ""version"": ""15.1X49-D50.3"", + ""groups"": { + ""name"": ""node0"", + ""system"": { + ""host-name"": ""$node0_hostname"", + ""backup-router"": { + ""address"": ""$node0_backup_router_address"", + ""destination"": ""0.0.0.0/0"" + } + } + } +}" +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +payload,configuration-parameters,nat_source_sp_v6rogerssnat_address1,2001:1890:fc45:f025:135:25:246:c806/128 +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, diff --git a/vid-app-common/src/test/resources/csv_files/empty_file.csv b/vid-app-common/src/test/resources/csv_files/empty_file.csv new file mode 100644 index 000000000..8a4b14f25 --- /dev/null +++ b/vid-app-common/src/test/resources/csv_files/empty_file.csv @@ -0,0 +1,18 @@ +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,, +,,,,,
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/csv_files/missing_content.csv b/vid-app-common/src/test/resources/csv_files/missing_content.csv new file mode 100644 index 000000000..9b9e14db1 --- /dev/null +++ b/vid-app-common/src/test/resources/csv_files/missing_content.csv @@ -0,0 +1,2 @@ +payload,request-parameters,,,ibcx0099v +payload,request-parameters,,aa,vv
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/csv_files/missing_values.csv b/vid-app-common/src/test/resources/csv_files/missing_values.csv new file mode 100644 index 000000000..0e914f026 --- /dev/null +++ b/vid-app-common/src/test/resources/csv_files/missing_values.csv @@ -0,0 +1,2 @@ +payload,,,,, +payload,request-parameters,,aa,vv diff --git a/vid-app-common/src/test/resources/csv_files/one_line.csv b/vid-app-common/src/test/resources/csv_files/one_line.csv new file mode 100644 index 000000000..315e93989 --- /dev/null +++ b/vid-app-common/src/test/resources/csv_files/one_line.csv @@ -0,0 +1 @@ +payload,request-parameters,,,vnf-name,ibcx0099v
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/mso.properties b/vid-app-common/src/test/resources/mso.properties index 8f2bb01a9..fcd20bd7a 100644 --- a/vid-app-common/src/test/resources/mso.properties +++ b/vid-app-common/src/test/resources/mso.properties @@ -8,6 +8,7 @@ mso.restapi.vnf.instance=/serviceInstances/v3/<service_instance_id>/vnfs mso.restapi.network.instance=/serviceInstances/v3/<service_instance_id>/networks mso.restapi.vf.module.instance=/serviceInstances/v3/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules mso.restapi.volume.group.instance=/serviceInstances/v3/<service_instance_id>/vnfs/<vnf_instance_id>/volumeGroups +mso.restapi.configurations=/serviceInstances/v6/<service_instance_id>/configurations mso.restapi.get.orc.req=/orchestrationRequests/v3 mso.restapi.get.orc.reqs=/orchestrationRequests/v3? mso.restapi.get.man.tasks=/tasks/v1 diff --git a/vid-app-common/src/test/resources/objectconfig.properties b/vid-app-common/src/test/resources/objectconfig.properties index 312e5bccc..0093129ff 100755 --- a/vid-app-common/src/test/resources/objectconfig.properties +++ b/vid-app-common/src/test/resources/objectconfig.properties @@ -14,3 +14,5 @@ subscriberNameDropDown=.//*[@id='mContent']/div/div/table/tbody/tr[1]/td[2]/div/ serviceTypeDropDown=.//*[@id='mContent']/div/div/table/tbody/tr[2]/td[2]/div/select
submitButton=.//*[@id='mContent']/div/div/table/tbody/tr[3]/td/div/button
+test.loginId=2222
+test.loginPassword=2222
diff --git a/vid-app-common/src/test/resources/payload_jsons/activateOperationalEnvironmentsPayloadToMso.json b/vid-app-common/src/test/resources/payload_jsons/activateOperationalEnvironmentsPayloadToMso.json new file mode 100644 index 000000000..400a55f9e --- /dev/null +++ b/vid-app-common/src/test/resources/payload_jsons/activateOperationalEnvironmentsPayloadToMso.json @@ -0,0 +1,23 @@ +{ + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "source": "VID", + "requestorId": "<userId>" + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "resourceType": "operationalEnvironment", + "instanceId": "<relatedInstanceId>", + "instanceName": "<relatedInstanceName>" + } + } + ], + "requestParameters": { + "operationalEnvironmentType": "VNF", + "workloadContext": "<workloadContext>", + "manifest": <manifest> + } + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/payload_jsons/createOperationalEnvironmentsPayloadToMso.json b/vid-app-common/src/test/resources/payload_jsons/createOperationalEnvironmentsPayloadToMso.json new file mode 100644 index 000000000..bdfdb4e76 --- /dev/null +++ b/vid-app-common/src/test/resources/payload_jsons/createOperationalEnvironmentsPayloadToMso.json @@ -0,0 +1,24 @@ +{ + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "instanceName": "<instanceName>", + "source": "VID", + "requestorId": "<userId>" + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "resourceType": "operationalEnvironment", + "instanceId": "<ecompInstanceId>", + "instanceName": "<ecompInstanceName>" + } + } + ], + "requestParameters": { + "operationalEnvironmentType": "<operationalEnvType>", + "tenantContext": "<tenantContext>", + "workloadContext": "<workloadContext>" + } + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/payload_jsons/deactivateOperationalEnvironmentsPayloadToMso.json b/vid-app-common/src/test/resources/payload_jsons/deactivateOperationalEnvironmentsPayloadToMso.json new file mode 100644 index 000000000..b9ff15127 --- /dev/null +++ b/vid-app-common/src/test/resources/payload_jsons/deactivateOperationalEnvironmentsPayloadToMso.json @@ -0,0 +1,12 @@ +{ + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "source": "VID", + "requestorId": "<userId>" + }, + "requestParameters": { + "operationalEnvironmentType": "VNF" + } + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/payload_jsons/mso_request_create_configuration.json b/vid-app-common/src/test/resources/payload_jsons/mso_request_create_configuration.json new file mode 100644 index 000000000..e0942bae2 --- /dev/null +++ b/vid-app-common/src/test/resources/payload_jsons/mso_request_create_configuration.json @@ -0,0 +1,62 @@ + +{ + "requestDetails": { + "modelInfo": { + "modelType": "configuration", + "modelInvariantId": "c30a024e-a6c6-4670-b73c-3df64eb57ff6", + "modelVersionId": "f58d039d-4cfc-40ec-bd75-1f05f0458a6c", + "modelName": "Port Mirroring Configuration By Policy", + "modelVersion": "1.0", + "modelCustomizationId": "4b7ebace-bad6-4526-9be6-bf248e20fc5f", + "modelCustomizationName": "Port Mirroring Configuration By Policy 1" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "AAIAIC25" + }, + "requestInfo": { + "instanceName":"test_sssdad", + "source": "VID", + "requestorId": "1" + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "c187e9fe-40c3-4862-b73e-84ff056205f6 ", + "modelInfo": { + "modelType": "service", + "modelInvariantId": "b7d923c9-6175-41f1-91ba-4565c4953408", + "modelVersionId": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "modelName": "ServiceContainerMultiplepProbes", + "modelVersion": "1.0" + } + } + }, + { + "relatedInstance": { + "instanceId": "9be14a4f-7367-4cf9-96a1-f08f10f485a7", + "instanceDirection": "source", + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "a7eac2b3-8444-40ee-92e3-b3359b32445c", + "modelVersionId": "2a2ea15f-07c6-4b89-bfca-e8aba39a34d6", + "modelName": "vmmeService2", + "modelVersion": "1.0", + "modelCustomizationId": "060be63d-5f9c-4fd0-8ef7-830d5e8eca17" + } + } + }, + { + "relatedInstance": { + "instanceId": "AS-pnf2-10219--as988q", + "instanceDirection": "destination", + "modelInfo": { + "modelType": "pnf" + } + } + } + ], + "requestParameters": { + "userParams": [] + } + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/policy-configuration-csar.JSON b/vid-app-common/src/test/resources/policy-configuration-csar.JSON new file mode 100644 index 000000000..8e9b46e7a --- /dev/null +++ b/vid-app-common/src/test/resources/policy-configuration-csar.JSON @@ -0,0 +1,168 @@ +{ + "service": { + "uuid": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "invariantUuid": "b7d923c9-6175-41f1-91ba-4565c4953408", + "name": "ServiceContainerMultiplepProbes", + "version": "1.0", + "toscaModelURL": null, + "category": "Network L1-3", + "serviceType": "portMirroring", + "serviceRole": "pProbe", + "description": "sdfsdfsdf", + "serviceEcompNaming": "true", + "inputs": {} + }, + "vnfs": {}, + "networks": {}, + "configurations": { + "Port Mirroring Configuration By Policy 1": { + "uuid": "f58d039d-4cfc-40ec-bd75-1f05f0458a6c", + "invariantUuid": "c30a024e-a6c6-4670-b73c-3df64eb57ff6", + "description": "A port mirroring configuration by policy object", + "name": "Port Mirroring Configuration By Policy", + "version": "1.0", + "customizationUuid": "4b7ebace-bad6-4526-9be6-bf248e20fc5f", + "inputs": {}, + "commands": {}, + "properties": { + "collector_node": "pprobeservice_proxy 5", + "policy_name": "policy2", + "equip_vendor": "Cisco", + "equip_model": "Nexus 3048-TP" + }, + "type": "Configuration", + "modelCustomizationName": "Port Mirroring Configuration By Policy 1", + "sourceNodes": [ + "vmmeservice2_proxy 2", + "vmmeservice2_proxy 3", + "vmmeservice_proxy 1" + ], + "collectorNodes": [ + "pprobeservice_proxy 5" + ], + "configurationByPolicy": true + }, + "Port Mirroring Configuration By Policy 0": { + "uuid": "f58d039d-4cfc-40ec-bd75-1f05f0458a6c", + "invariantUuid": "c30a024e-a6c6-4670-b73c-3df64eb57ff6", + "description": "A port mirroring configuration by policy object", + "name": "Port Mirroring Configuration By Policy", + "version": "1.0", + "customizationUuid": "08a181aa-72eb-435f-9593-e88a3ad0a86b", + "inputs": {}, + "commands": {}, + "properties": { + "collector_node": "pprobeservice_proxy 4", + "policy_name": "policy1", + "equip_vendor": "Cisco", + "equip_model": "Nexus 3048-TP" + }, + "type": "Configuration", + "modelCustomizationName": "Port Mirroring Configuration By Policy 0", + "sourceNodes": [ + "vmmeservice2_proxy 2", + "vmmeservice_proxy 1", + "vmmeservice_proxy 0" + ], + "collectorNodes": [ + "pprobeservice_proxy 4" + ], + "configurationByPolicy": true + } + }, + "serviceProxies": { + "vmmeservice_proxy 0": { + "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee", + "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10", + "description": "A Proxy for Service vmmeService", + "name": "vmmeService Service Proxy", + "version": "1.0", + "customizationUuid": "d7cfe338-eeda-4217-ba13-f24b0811fb17", + "inputs": {}, + "commands": {}, + "properties": {}, + "type": "Service Proxy", + "sourceModelUuid": "c3e6c9bd-b24d-458e-aa99-e0cadf70c5e5", + "sourceModelInvariant": "dd8a805d-3946-4f11-9831-e26cd6aec9a3", + "sourceModelName": "vmmeService" + }, + "vmmeservice_proxy 1": { + "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee", + "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10", + "description": "A Proxy for Service vmmeService", + "name": "vmmeService Service Proxy", + "version": "1.0", + "customizationUuid": "7a69f133-564c-4eb6-b93e-0a8281967efb", + "inputs": {}, + "commands": {}, + "properties": {}, + "type": "Service Proxy", + "sourceModelUuid": "c3e6c9bd-b24d-458e-aa99-e0cadf70c5e5", + "sourceModelInvariant": "dd8a805d-3946-4f11-9831-e26cd6aec9a3", + "sourceModelName": "vmmeService" + }, + "vmmeservice2_proxy 3": { + "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee", + "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10", + "description": "A Proxy for Service vmmeService2", + "name": "vmmeService2 Service Proxy", + "version": "1.0", + "customizationUuid": "9d81c21f-e29c-44f6-b5f6-caa974ee078a", + "inputs": {}, + "commands": {}, + "properties": {}, + "type": "Service Proxy", + "sourceModelUuid": "2a2ea15f-07c6-4b89-bfca-e8aba39a34d6", + "sourceModelInvariant": "a7eac2b3-8444-40ee-92e3-b3359b32445c", + "sourceModelName": "vmmeService2" + }, + "pprobeservice_proxy 4": { + "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee", + "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10", + "description": "A Proxy for Service pProbeService", + "name": "pProbeService Service Proxy", + "version": "1.0", + "customizationUuid": "271efa3b-276e-4536-976a-cc9c9c014f1e", + "inputs": {}, + "commands": {}, + "properties": {}, + "type": "Service Proxy", + "sourceModelUuid": "8a84e59b-45fe-4851-8ff1-34225a0b32c3", + "sourceModelInvariant": "83b458fd-5dd3-419b-a9e3-7335814a0911", + "sourceModelName": "pProbeService" + }, + "pprobeservice_proxy 5": { + "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee", + "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10", + "description": "A Proxy for Service pProbeService", + "name": "pProbeService Service Proxy", + "version": "1.0", + "customizationUuid": "d64623ae-5935-4afd-803e-c86e94d8e740", + "inputs": {}, + "commands": {}, + "properties": {}, + "type": "Service Proxy", + "sourceModelUuid": "8a84e59b-45fe-4851-8ff1-34225a0b32c3", + "sourceModelInvariant": "83b458fd-5dd3-419b-a9e3-7335814a0911", + "sourceModelName": "pProbeService" + }, + "vmmeservice2_proxy 2": { + "uuid": "a32fee17-5b59-4c34-ba6f-6dd2f1c61fee", + "invariantUuid": "2933b574-d28d-45ea-bf22-4df2907e4a10", + "description": "A Proxy for Service vmmeService2", + "name": "vmmeService2 Service Proxy", + "version": "1.0", + "customizationUuid": "060be63d-5f9c-4fd0-8ef7-830d5e8eca17", + "inputs": {}, + "commands": {}, + "properties": {}, + "type": "Service Proxy", + "sourceModelUuid": "2a2ea15f-07c6-4b89-bfca-e8aba39a34d6", + "sourceModelInvariant": "a7eac2b3-8444-40ee-92e3-b3359b32445c", + "sourceModelName": "vmmeService2" + } + }, + "vfModules": {}, + "volumeGroups": {}, + "pnfs": {} +}
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/services/change_management_software_update_expected_mso_request.json b/vid-app-common/src/test/resources/services/change_management_software_update_expected_mso_request.json new file mode 100644 index 000000000..3ac1cf533 --- /dev/null +++ b/vid-app-common/src/test/resources/services/change_management_software_update_expected_mso_request.json @@ -0,0 +1,15 @@ +{ + "requestDetails": { + "cloudConfiguration": { + "lcpCloudRegionId": "mdt1", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "source": "VID", + "requestorId": "az2016" + }, + "requestParameters": { + "payload": "{\"existing-software-version\": \"3.1\",\"new-software-version\": \"3.2\", \"operations-timeout\": \"3600\"}" + } + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/services/change_management_software_update_request.json b/vid-app-common/src/test/resources/services/change_management_software_update_request.json new file mode 100644 index 000000000..1b697d6ba --- /dev/null +++ b/vid-app-common/src/test/resources/services/change_management_software_update_request.json @@ -0,0 +1,26 @@ +{ "requestDetails": [ + { + "cloudConfiguration": { + "lcpCloudRegionId": "mdt1", + "tenantId": "88a6ca3ee0394ade9403f075db23167e" + }, + "requestInfo": { + "source": "VID", + "requestorId": "az2016" + }, + "requestParameters": { + "payload": "{\"existing-software-version\": \"3.1\",\"new-software-version\": \"3.2\", \"operations-timeout\": \"3600\"}" + }, + "vnfName": "vidVnf", + "vnfInstanceId": "abe59ceb-6909-4a2c-ad6a-c46d90b18f0b", + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceId": "166b2c5b-6746-4613-bd38-faf46f7afb73" + } + } + ] + } + ], + "requestType": "VNF In Place Software Update" +}
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/vf-csar.JSON b/vid-app-common/src/test/resources/vf-csar.JSON index 097b319a2..e919241ef 100644 --- a/vid-app-common/src/test/resources/vf-csar.JSON +++ b/vid-app-common/src/test/resources/vf-csar.JSON @@ -4,8 +4,8 @@ "service": { "category": "Mobility", "description": "Bla bla", - "serviceRole":"null", - "serviceType":"null", + "serviceRole":null, + "serviceType":null, "inputs": { "greatdefect0_availability_zone_max_count": { @@ -41,10 +41,13 @@ "serviceEcompNaming": "true", "toscaModelURL": null, "uuid": "48a52540-8772-4368-9cdb-1f124ea5c931", - "version": "0.1" + "version": "1.0", + "instantiationType" : null }, "vfModules": { "greatdefect0..Greatdefect..base_ixla..module-0": { + + "commands": { }, "customizationUuid": "316e323d-611d-4007-a647-b1d2ecdaee9e", @@ -100,6 +103,8 @@ "inputName": "greatdefect0_vf_module_id" } }, + "type":"VF", + "customizationUuid": "9123ced3-fbcd-42f7-b103-5965c54bbd66", "description": "checl-IdanWithSecondFix", "inputs": { @@ -146,11 +151,47 @@ "uuid": "3b25707a-d345-4a80-8744-73adf8f2e67b", "version": "3.0", "vfModules": { + "greatdefect0..Greatdefect..module_1_ixla..module-2": { + "uuid": "6f09e053-56a6-4fbb-8299-e1de616825cc", + "invariantUuid": "e0297a51-c670-452e-b31c-c5b37c6ad40f", + "customizationUuid": "1106fca3-235a-4f92-8d5a-960a7336b32f", + "description": null, + "name": "Greatdefect..module_1_ixla..module-2", + "version": "3", + "volumeGroupAllowed": false, + "commands": {}, + "modelCustomizationName": "Greatdefect..module_1_ixla..module-2" + }, + "greatdefect0..Greatdefect..base_ixla..module-0": { + "uuid": "01166434-ef34-4969-aaf2-626203d72e48", + "invariantUuid": "80ff85fb-cb11-42cb-9737-e47095d42756", + "customizationUuid": "316e323d-611d-4007-a647-b1d2ecdaee9e", + "description": null, + "name": "Greatdefect..base_ixla..module-0", + "version": "3", + "volumeGroupAllowed": false, + "commands": {}, + "modelCustomizationName": "Greatdefect..base_ixla..module-0" + }, + "greatdefect0..Greatdefect..module_2_ixla..module-1": { + "uuid": "dea8e41f-c996-4557-b521-263210d96baa", + "invariantUuid": "23befc6e-aa97-4004-b215-4979c3f84913", + "customizationUuid": "b52c1fda-fbbf-4de3-ad9b-190d4a14990c", + "description": null, + "name": "Greatdefect..module_2_ixla..module-1", + "version": "3", + "volumeGroupAllowed": false, + "commands": {}, + "modelCustomizationName": "Greatdefect..module_2_ixla..module-1" + } }, "volumeGroups": { } } }, - "volumeGroups": { - } + "volumeGroups": {}, + "configurations":{}, + "serviceProxies":{}, + "pnfs":{} + } diff --git a/vid-app-common/src/test/resources/vl-csar.JSON b/vid-app-common/src/test/resources/vl-csar.JSON index 78f6a63da..ff7eb4719 100644 --- a/vid-app-common/src/test/resources/vl-csar.JSON +++ b/vid-app-common/src/test/resources/vl-csar.JSON @@ -1,12 +1,8 @@ { "networks": { "ExtVL 0": { + "type": "VL", "commands": { - "exVL_naming#naming_policy": { - "command": "get_input", - "displayName": "exVL_naming#naming_policy", - "inputName": "extvl0_exVL_naming_naming_policy" - }, "network_role": { "command": "get_input", "displayName": "network_role", @@ -16,34 +12,39 @@ "command": "get_input", "displayName": "network_scope", "inputName": "extvl0_network_scope" + }, + "exVL_naming#naming_policy": { + "command": "get_input", + "displayName": "exVL_naming#naming_policy", + "inputName": "extvl0_exVL_naming_naming_policy" } }, "customizationUuid": "664f8aa7-3989-46ac-81c0-dd72a8a63f26", "description": "ECOMP generic virtual link (network) base type for all other service-level and global networks", "inputs": { - "exVL_naming#naming_policy": { + "network_role": { "constraints": [ ], "default": null, - "description": "Reference to naming policy that ECOMP will use when the name is auto-generated", + "description": "Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network\n", "entry_schema": null, "required": true, "type": "string" }, - "network_role": { + "network_scope": { "constraints": [ ], "default": null, - "description": "Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network\n", + "description": "Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services\n", "entry_schema": null, "required": true, "type": "string" }, - "network_scope": { + "exVL_naming#naming_policy": { "constraints": [ ], "default": null, - "description": "Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services\n", + "description": "Reference to naming policy that ECOMP will use when the name is auto-generated", "entry_schema": null, "required": true, "type": "string" @@ -53,7 +54,7 @@ "modelCustomizationName": "ExtVL 0", "name": "ExtVL", "properties": { - "exVL_naming": "{naming_policy={get_input=extvl0_exVL_naming_naming_policy}}", + "exVL_naming": "{naming_policy=get_input:extvl0_exVL_naming_naming_policy}", "network_role": "get_input:extvl0_network_role", "network_scope": "get_input:extvl0_network_scope" }, @@ -64,8 +65,8 @@ "service": { "category": "Network L1-3", "description": "dsfg", - "serviceRole":"null", - "serviceType":"null", + "serviceRole": null, + "serviceType": null, "inputs": { "extvl0_exVL_naming_naming_policy": { "constraints": [ @@ -100,12 +101,19 @@ "serviceEcompNaming": "true", "toscaModelURL": null, "uuid": "68101369-6f08-4e99-9a28-fa6327d344f3", - "version": "0.1" + "version": "1.0", + "instantiationType" : "ClientConfig" }, "vfModules": { }, "vnfs": { }, "volumeGroups": { + }, + "configurations": { + }, + "serviceProxies": { + }, + "pnfs": { } -} +}
\ No newline at end of file diff --git a/vid-app-common/src/test/resources/vnfConfigUpdatePayload.json b/vid-app-common/src/test/resources/vnfConfigUpdatePayload.json new file mode 100644 index 000000000..cb2bf307c --- /dev/null +++ b/vid-app-common/src/test/resources/vnfConfigUpdatePayload.json @@ -0,0 +1,40 @@ +{ + "payload":{ + "request-parameters":{ + "vm":[ + { + "vnfc":[ + { + "ipaddress-v4-oam-vip":"135.21.166.39", + "vnfc-name":"ibcx0001vm001dbg001", + "vnfc-function-code":"dbg", + "vnfc-type":"DBE-VM #1", + "group-notation":"ibcx0001vm001dbg001pair" + } + ], + "vm-name":"ibcx0001vm001" + }, + { + "vnfc":[ + { + "vnfc-name":"ibcx0001vm002dbg001", + "vnfc-function-code":"dbg", + "vnfc-type":"DBE-VM #1", + "group-notation":"ibcx0001vm001dbg001pair" + } + ], + "vm-name":"ibcx0001vm002" + } + ], + "vnf-name":"ibcx0099v", + "template-name":"vdbe_template1" + }, + "configuration":{ + "configuration-json":"{\n \"version\": \"15.1X49-D50.3\",\n \"groups\": {\n \"name\": \"node0\",\n \"system\": {\n \"host-name\": \"$node0_hostname\",\n \"backup-router\": {\n \"address\": \"$node0_backup_router_address\",\n \"destination\": \"0.0.0.0/0\"\n }\n }\n }\n}", + "configuration-string": " <configuration xmlns=\"http://xml.juniper.net/xnm/1.1/xnm\" \n xmlns:a=\"http://xml.juniper.net/junos/15.1X49/junos\" >\n <version>15.1X49-D50.3<\/version>\n <groups>\n <name>node0<\/name>\n <system>\n <host-name>$node0_hostname<\/host-name>\n <backup-router>\n <address>$node0_backup_router_address<\/address>\n <destination>0.0.0.0/0<\/destination>\n <\/backup-router>\n <\/system>\n <\/groups>\n <\/configuration>" + }, + "configuration-parameters":{ + "nat_source_sp_v6rogerssnat_address1":"2001:1890:fc45:f025:135:25:246:c806/128" + } + } +}
\ No newline at end of file diff --git a/vid-automation/.gitignore b/vid-automation/.gitignore new file mode 100644 index 000000000..23f1f5e44 --- /dev/null +++ b/vid-automation/.gitignore @@ -0,0 +1,42 @@ +# Created by .ignore support plugin (hsz.mobi) +### Java template +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +### Maven template +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties + +# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored) +!/.mvn/wrapper/maven-wrapper.jar + +.idea/* +target/* +*.iml +ExtentReport diff --git a/vid-automation/TestNg.xml b/vid-automation/TestNg.xml new file mode 100644 index 000000000..5caa28f99 --- /dev/null +++ b/vid-automation/TestNg.xml @@ -0,0 +1,9 @@ +<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> + +<suite thread-count="1" verbose="1" name="VID Suite" annotations="JDK" parallel="tests"> + <test name="test"> + <packages> + <package name="vid.automation.test.test.*"/> + </packages> + </test> +</suite>
\ No newline at end of file diff --git a/vid-automation/conf/credentials b/vid-automation/conf/credentials new file mode 100644 index 000000000..f19575e9f --- /dev/null +++ b/vid-automation/conf/credentials @@ -0,0 +1,4 @@ +{ + "userId": "2", + "password": "2" +}
\ No newline at end of file diff --git a/vid-automation/conf/environments b/vid-automation/conf/environments new file mode 100644 index 000000000..7b7dfc0d0 --- /dev/null +++ b/vid-automation/conf/environments @@ -0,0 +1,23 @@ +{ + "headers": ["Environment ID", "Environment Name", "ECOMP Environment ID", "ECOMP Environment Name", "Tenant Context", "Environment Type", "Workload Context", "Status", "Action", "Attach Manifest"], + "basicList": [ + ["f07ca256-96dd-40ad-b4d2-7a77e2a974ea", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""], + ["f07ca256-96dd-40ad-b4d2-7a77e2a974eb", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""], + ["f07ca256-96dd-40ad-b4d2-7a77e2a974ec", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""] + ], + "fullList": [ + ["f07ca256-96dd-40ad-b4d2-7a77e2a974ea", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""], + ["f07ca256-96dd-40ad-b4d2-7a77e2a974eb", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""], + ["f07ca256-96dd-40ad-b4d2-7a77e2a974ec", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""], + ["f07ca256-96dd-40ad-b4d2-7a77e2a974ef", "New VNF Environment", "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", "ECOMP Env Name", "ECOMP Test", "VNF", "VNF_Test", "Inactive", "Activate", ""] + ], + "sortedList": [ + ["f07ca256-96dd-40ad-b4d2-7a77e2a974ec", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""], + ["f07ca256-96dd-40ad-b4d2-7a77e2a974eb", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""], + ["f07ca256-96dd-40ad-b4d2-7a77e2a974ea", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""] + + ], + "filteredList": [ + ["f07ca256-96dd-40ad-b4d2-7a77e2a974eb", "Op Env Name", "UUID of the ECOMP Operational Environment", "Name of the ECOMP Operational Environment", "Test", "VNF", "VNF_Development", "Active", "Deactivate", ""] + ] +}
\ No newline at end of file diff --git a/vid-automation/conf/newEnvironment b/vid-automation/conf/newEnvironment new file mode 100644 index 000000000..ce09ff34b --- /dev/null +++ b/vid-automation/conf/newEnvironment @@ -0,0 +1,9 @@ +{ + "operationalEnvironmentId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ef", + "operationalEnvironmentName": "New VNF Environment", + "operationalEnvironmentType": "VNF", + "EcompEnvironmentId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "EcompEnvironmentName": "ECOMP Env Name", + "tenantContext": "ECOMP Test", + "workloadContext": "VNF_Test" +}
\ No newline at end of file diff --git a/vid-automation/conf/services b/vid-automation/conf/services new file mode 100644 index 000000000..0fa92f1ff --- /dev/null +++ b/vid-automation/conf/services @@ -0,0 +1,22 @@ +{ "services": { + "c079d859-4d81-4add-a9c3-94551f96e2b0": { + "type":"vnf", + "uuid": "418f32e5-484a-4073-8fa9-fab7d497459f", + "invariantUuid": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "name": "1707vidnf", + "version": "9.0", + "category": "Mobility", + "description": "1707 Models that contain: nf_type,nf_role,nf_function,nf_code.", + "serviceRole" : "pnf" + }, + "f39389e4-2a9c-4085-8ac3-04aea9c651be": { + "type" : "pnf", + "uuid": "f39389e4-2a9c-4085-8ac3-04aea9c651be", + "invariantUuid": "ec0c4bab-c272-4dab-b087-875031bb0c9f", + "name": "Dev2DevPnfService", + "version": "1.0", + "category": "Network L1-3", + "description": "macro model", + "serviceRole": "pnf" + }} +}
\ No newline at end of file diff --git a/vid-automation/conf/users b/vid-automation/conf/users new file mode 100644 index 000000000..26be7ceda --- /dev/null +++ b/vid-automation/conf/users @@ -0,0 +1,31 @@ +{ + "users": { + "readonly": { + "credentials": { + "userId": "2", + "password": "2" + }, + "subscribers": null, + "serviceTypes": null, + "tenants": null + }, + "uspVoiceVirtualUsp": { + "credentials": { + "userId": "1", + "password": "1" + }, + "subscribers": ["e433710f-9217-458d-a79d-1c7aff376d89"], + "serviceTypes": ["VIRTUAL USP"], + "tenants": ["092eb9e8e4b7412e8787dd091bc58e86"] + }, + "mobilityMobility": { + "credentials": { + "userId": "3", + "password": "3" + }, + "subscribers": ["a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb"], + "serviceTypes": ["Mobility"], + "tenants": null + } + } +}
\ No newline at end of file diff --git a/vid-automation/pom.xml b/vid-automation/pom.xml new file mode 100644 index 000000000..faabc420c --- /dev/null +++ b/vid-automation/pom.xml @@ -0,0 +1,145 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>com.att.vid</groupId> + <artifactId>automationTest</artifactId> + <version>1.0-SNAPSHOT</version> + + <properties> + <springframework.version>4.2.0.RELEASE</springframework.version> + </properties> + + <repositories> + <repository> + <!-- Snapshots repository has ECOMP snapshot artifacts --> + <id>att-mavencentral-ecomp-snapshots-repo</id> + <name>ATT Maven Central - Snapshots</name> + <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-snapshots/</url> + </repository> + </repositories> + <dependencies> + <dependency> + <groupId>org.openecomp.sdc</groupId> + <artifactId>ui-ci</artifactId> + <version>1.0.2-SNAPSHOT</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.12</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <version>6.9.10</version> + </dependency> + <dependency> + <groupId>javax.ws.rs</groupId> + <artifactId>javax.ws.rs-api</artifactId> + <version>2.0.1</version> + </dependency> + <dependency> + <groupId>javax.ws.rs</groupId> + <artifactId>javax.ws.rs-api</artifactId> + <version>2.0.1</version> + </dependency> + <dependency> + <groupId>org.glassfish.jersey.core</groupId> + <artifactId>jersey-common</artifactId> + <version>2.23.1</version> + </dependency> + <dependency> + <groupId>org.glassfish.jersey.core</groupId> + <artifactId>jersey-common</artifactId> + <version>2.23.1</version> + </dependency> + <dependency> + <groupId>org.glassfish.jersey.core</groupId> + <artifactId>jersey-client</artifactId> + <version>2.23.1</version> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-core</artifactId> + <version>${springframework.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-web</artifactId> + <version>${springframework.version}</version> + </dependency> + <dependency> + <groupId>org.skyscreamer</groupId> + <artifactId>jsonassert</artifactId> + <version>1.5.0</version> + </dependency> + <dependency> + <groupId>com.google.collections</groupId> + <artifactId>google-collections</artifactId> + <version>1.0</version> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>2.5</version> + </dependency> + <dependency> + <groupId>org.mariadb.jdbc</groupId> + <artifactId>mariadb-java-client</artifactId> + <version>1.4.6</version> + </dependency> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>hamcrest-all</artifactId> + <version>1.3</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.5.5</version> + <executions> + <execution> + <id>create.jar.with.dependencies</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <archive> + <manifest> + <mainClass>vid.automation.test.StartTest</mainClass> + </manifest> + </archive> + <descriptorRefs> + <descriptorRef>jar-with-dependencies</descriptorRef> + </descriptorRefs> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + + +</project>
\ No newline at end of file diff --git a/vid-automation/src/main/java/vid/automation/test/Constants.java b/vid-automation/src/main/java/vid/automation/test/Constants.java new file mode 100644 index 000000000..17b96fc74 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/Constants.java @@ -0,0 +1,343 @@ +package vid.automation.test; + +public class Constants { + public static final String SERVICE_NAME = "Service Name"; + public static final String SERVICE_UUID = "Service UUID"; + public static final String SERVICE_INVARIANT_UUID = "Service Invariant UUID"; + public static final String SERVICE_VERSION = "Service Version"; + public static final String SERVICE_DESCRIPTION = "Service Description"; + public static final String SERVICE_CATEGORY = "Service Category"; + public static final String SUBSCRIBER_NAME = "Subscriber Name"; + public static final String SERVICE_TYPE = "Service Type"; + public static final String SERVICE_ROLE = "Service Role"; + public static final int generalTimeout = 20; + public static final int generalRetries = 30; + public static final String generalSubmitButtonId = "submit"; + public static final String generalCancelButtonId = "cancel"; + public static final String generalCloseModalButtonClass = "modal-close"; + public static final String generalModalTitleClass = "modal-title"; + public static final String DROPDOWN_PERMITTED_ASSERT_FAIL_MESSAGE = "Dropdown permitted options are not according to user permissions."; + public static final String CONFIRM_BUTTON_TESTS_ID = "confirmButton"; + public static final String CLOSE_BUTTON_TEXT = "Close"; + public static final String SUBMIT_BUTTON_TEXT = "Submit"; + public static final String SERVICE_TYPE_SELECT_TESTS_ID = "serviceType"; + public static final String BROWSE_SEARCH = "browseFilter"; + public static final String SUBSCRIBER_NAME_SELECT_TESTS_ID = "subscriberName"; + public static final String SUPPRESS_ROLLBACK_SELECT_TESTS_ID = "suppressRollback"; + public static final String INSTANCE_NAME_SELECT_TESTS_ID = "instanceName"; + public static final String DEPLOY_BUTTON_TESTS_ID_PREFIX = "deploy-"; + public static final String VIEW_BUTTON_TEXT = "View"; + public static final String VIEW_EDIT_BUTTON_TEXT = "View/Edit"; + public static final String VIEW_EDIT_TEST_ID_PREFIX = "view/edit-test-data-id-"; + public static final String INSTANCE_ID_FOR_NAME_TEST_ID_PREFIX = "instance-id-for-name-"; + public static final String MULTI_SELECT_UNSELECTED_CLASS = "item-unselected"; + public static final String ACTIVE = "Active"; + public static final String INACTIVE = "Inactive"; + + + public static final String PNF_SERVICE_TYPE = "pnf"; + + public class SideMenu { + public static final int numOfButtons = 7; + public static final String buttonClass = "att-accordion__group"; + public static final String SEARCH_EXISTING_SERVICE = "Search for Existing Service Instances"; + public static final String BROWSE_ASDC_SERVICE_MODELS = "Browse ASDC Service Models"; + public static final String CREATE_NEW_SERVICE = "Create New Service Instance"; + public static final String VNF_CHANGES = "VNF Changes"; + public static final String TEST_ENVIRONMENTS = "Test Environments"; + } + + public class ChangeManagement { + //general constants: + public static final String pageHeadlineId = "change-management-headline"; + + //headline bar constants: + public static final String headlineNewButtonId = "change-management-new-button"; + public static final String headlineSchedulerButtonId = "change-management-scheduler-button"; + public static final String headlineSearchInputId = "change-management-search"; + + //new change management modal constants: + public static final String newModalSubscriberInputId = "subscriber"; + public static final String newModalServiceTypeInputId = "serviceType"; + public static final String newModalVNFTypeInputId = "vnfType"; + public static final String newModalFromVNFVersionInputId = "fromVNFVersion"; + public static final String newModalVNFNameInputId = "vnfName"; + public static final String newModalWorkFlowInputId = "workflow"; + public static final String newModalTargetVersionInputsClass = "vnf-versions-select-as-text"; + + + //Scheduler + + public static final String schedulerModalRangeLabel = "Range"; + public static final String schedulerModalNowLabel = "Now"; + public static final String schedulerModalStartDateInputId = "startDate"; + public static final String schedulerModalEndDateInputId = "endDate"; + public static final String schedulerModalNextMonthButtonClass = "adp-next"; + public static final String schedulerModalScheduleButtonText = "Schedule"; + public static final String schedulerModalTimeUnitSelectId = "timeUnitSelect"; + public static final String schedulerModalPolicySelectId = "policy"; + public static final String schedulerModalDurationInputTestId = "durationInput"; + public static final String schedulerModalFallbackInputTestId = "fallbackInput"; + public static final String schedulerModalConcurrencyLimitInputTestId = "concurrencyLimitInput"; + public static final String schedulerModalHoursOption = "hours"; + + //dashboard constants: + public static final String dashboardActiveTabId = "active-tab"; + public static final String dashboardFinishedTabId = "finished-tab"; + public static final String dashboardActiveTableId = "active-table"; + public static final String dashboardFinishedTableId = "finished-table"; + public static final String dashboardInProgressTheadId = "in-progress-table-head"; + public static final String dashboardPendingTheadId = "pending-table-head"; + public static final String dashboardFinishedTheadId = "finished-table-head"; + public static final String failedIconClass = "icon-x"; + public static final String processIconClass = "icon-process"; + public static final String alertIconClass = "icon-alert"; + public static final String pendingIconClass = "icon-pending"; + public static final String viewIconClass = "icon-view"; + public static final String pendingTableId = "pending-table"; + public static final String cancelPendingButtonClass = "cancel-action"; + + //failed change management modal constants: + public static final String failedModalHeaderId = "failed-modal-header"; + public static final String failedModalContentId = "failed-modal-content"; + public static final String failedModalRetryButtonId = "failed-retry-button"; + public static final String failedModalRollbackButtonId = "failed-rollback-button"; + + //in progress change management modal constants: + public static final String inProgressModalHeaderId = "in-progress-modal-header"; + public static final String inProgressModalContentId = "in-progress-modal-content"; + public static final String inProgressModalStopButtonId = "in-progress-stop-button"; + public static final String inProgressModalRollbackButtonId = "in-progress-rollback-button"; + + //alert change management modal constants: + public static final String alertModalHeaderId = "alert-modal-header"; + public static final String alertModalContentId = "alert-modal-content"; + public static final String alertModalContinueButtonId = "alert-continue-button"; + public static final String alertModalRollbackButtonId = "alert-rollback-button"; + + //pending change management modal constants: + public static final String pendingModalHeaderId = "pending-modal-header"; + public static final String pendingModalContentId = "pending-modal-content"; + public static final String pendingModalRescheduleButtonId = "pending-reschedule-button"; + public static final String pendingModalRollbackButtonId = "pending-rollback-button"; + public static final String pendingModalCancelWorkflowButtonClass = "btn-cancel-workflow"; + } + + public class TestEnvironments { + // general constants: + public static final String PAGE_HEADLINE = "test-environments-headline"; + + // headline bar constants: + public static final String HEADLINE_NEW_BUTTON = "test-environments-new-button"; + public static final String HEADLINE_SEARCH_INPUT = "test-environments-search"; + public static final String SEARCH_INPUT = "test-search-input"; + public static final String TEXT_TO_FILTER = "4eb"; + + public static final String REFRESH_BUTTON = "test-environments-refresh"; + public static final String NO_DATA_MESSAGE = "test-environments-no-data"; + public static final String ERROR_MESSAGE = "test-environments-error"; + public static final String TRY_AGAIN_BUTTON = "try-again"; + public static final String ENVIRONMENTS_TABLE = "test-environments-table"; + public static final String TABLE_HEADER_ASC = "tablesorter-headerAsc"; + + // new popup + public static final String NEW_ENVIRONMENT_FORM = "test-new-environment-form"; + public static final String INSTANCE_NAME_INPUT = "environment-name"; + public static final String ECOMP_ID_DROP_DOWN = "ecomp-instance-id"; + public static final String ECOMP_NAME_INPUT = "ecomp-instance-name"; + public static final String TENANT_CONTEXT_INPUT = "tenant-context"; + public static final String ENVIRONMENT_TYPE_DROP_DOWN = "operational-environment-type"; + public static final String WORKLOAD_CONTEXT_DROP_DOWN = "workload-context"; + public static final String SUBMIT_BUTTON = "submit-button"; + public static final String CANCEL_BUTTON = "cancel-button"; + public static final String MODAL_CLOSE_BUTTON_CLASS = "modal-close"; + public static final String POPUP_ERROR_MESSAGE = "test-new-environment-error"; + public static final String environmentCreatedSuccesfullyMessage = "Operational Environment successfully created"; + + // json content + public static final String HEADERS_LIST = "headers"; + public static final String BASIC_LIST = "basicList"; + public static final String FULL_LIST = "fullList"; + public static final String FILTERED_LIST = "filteredList"; + public static final String SORTED_LIST = "sortedList"; + + // activate + public static final String environmentActivatedSuccesfullyMessage = "Operational Environment successfully activated"; + public static final String environmentDeactivatedSuccesfullyMessage = "Operational Environment successfully deactivated"; + public static final String activateButtonIdPrefix = "testEnvActivate-"; + public static final String deactivateButtonIdPrefix = "testEnvDeactivate-"; + public static final String environmentStatusIdPrefix = "testEnvStatus-"; + public static final String attachButtonIdPrefix = "testEnvAttach-"; + } + + public class Modals { + public static final String modalClass = "div[modal-animation='true']"; + } + + public class BrowseASDC { + public static final String DATE_FORMAT = "yyyy-MM-dd_HH-mm-ss-SSS"; + public static final String SERVICE_INSTANCE_NAME_PREFIX = "vid-e2e-test_service_"; + public static final String DEPOLY_SERVICE_CLASS = "deploy-service-class"; + public static final String SERVICE_INSTANCE_CREATED_SUCCESSFULLY_TEXT = "COMPLETE - Service Instance was created successfully."; + public static final String SERVICE_INSTANCE_CREATION_FAILED_MESSAGE = "failed to create service instance"; + public static final String CREATE_SERVICE_INSTANCE = "Create Service Instance"; + public static final String MSO_COMMIT_DIALOG_CLOSE_BUTTON = "msoCommitDialogCloseButton"; + public static final String AIC_OPTION_CLASS = "aic_zoneOption"; + } + + public class EditExistingInstance { + public static final String SELECT_SERVICE_INSTANCE = "Select a Service Instance"; + public static final String SERVICE_INSTANCE_ID = "Service Instance Id"; + public static final String SERVICE_INSTANCE_NAME = "Service Instance Name"; + public static final String SEARCH_FOR_EXISTING_INSTANCES_INPUT = "searchForExistingInstancesText"; + public static final String SELECT_OWNING_ENTITY_ID = "selectOwningEntity"; + public static final String SELECT_PROJECT_ID = "selectProject"; + + public static final String DELETE_VNF_BTN = "delete-vnf-btn"; + public static final String ADD_VNF_MODULE_DROPDOWN = "add-vnf-module-dropdown"; + public static final String ADD_CUSTOM_VNF_MODULE_DROPDOWN = "add-custom-vnf-module-dropdown"; + public static final String ADD_CUSTOM_VOLUME_GROUP = "add-custom-volume-group"; + public static final String ADD_VOLUME_GROUP = "add-volume-group"; + public static final String DELETE_VF_MODULE = "delete-vf-module"; + public static final String DELETE_VNF_VOLUME_GROUP = "delete-vnf-volume-group"; + public static final String DELETE_NETWORK = "delete-network"; + } + + public class CreateNewInstance { + public static final String SUBSCRIBER_NAME_OPTION_CLASS = "subscriberNameOption"; + public static final String SERVICE_TYPE_OPTION_CLASS = "serviceTypeOption"; + public static final String SELECTED_SUBSCRIBER_NAME_TEST_ID = "selectedSubscriberName"; + public static final String SELECTED_SERVICE_TYPE_NAME_TEST_ID = "selectedServiceTypeName"; + public static final String SERVICE_INSTANCE_NAME_PREFIX = "vid-e2e-test_aai_service_"; + } + + public class ViewEdit { + public static final String VNF_CREATED_SUCCESSFULLY_TEXT = "COMPLETE - Vnf has been created successfully."; + public static final String VOLUME_GROUP_CREATED_SUCCESSFULLY_TEXT = "COMPLETE - Volume Group has been created successfully."; + public static final String VF_MODULE_CREATED_SUCCESSFULLY_TEXT = "COMPLETE - VF Module has been created successfully."; + public static final String VNF_CREATION_FAILED_MESSAGE = "failed to create service instance VNF"; + public static final String VOLUME_GROUP_CREATION_FAILED_MESSAGE = "failed to create Volume Group"; + public static final String VF_MODULE_CREATION_FAILED_MESSAGE = "failed to create VF Module"; + public static final String PRODUCT_FAMILY_SELECT_TESTS_ID = "productFamily"; + public static final String LCP_REGION_SELECT_TESTS_ID = "lcpRegion"; + public static final String LEGACY_REGION_INPUT_TESTS_ID = "lcpRegionText"; + public static final String TENANT_SELECT_TESTS_ID = "tenant"; + public static final String TENANT_OPTION_CLASS = "tenantOption"; + public static final String VNF_INSTANCE_NAME_PREFIX = "vid-e2e-test_vnf_"; + public static final String AIC_ZONE_TEST_ID = "aic_zone"; + public static final String VOLUME_GROUP_OPTION_TEST_ID_PREFIX = "addVolumeGroupOption-"; + public static final String VF_MODULE_OPTION_TEST_ID_PREFIX = "addVFModuleOption-"; + public static final String VNF_OPTION_TEST_ID_PREFIX = "addVNFOption-"; + public static final String VOLUME_GROUP_INSTANCE_NAME_PREFIX = "vid-e2e-test-volume_group_"; + public static final String VF_MODULE_INSTANCE_NAME_PREFIX = "vid-e2e-test-volume_vf_module_"; + public static final String ADD_VNF_BUTTON_TEST_ID = "addVNFButton"; + public static final String ADD_VOLUME_GROUP_BUTTON_TEST_ID = "addVolumeGroupButton"; + public static final String ADD_VF_MODULE_GROUP_BUTTON_TEST_ID = "addVFModuleButton"; + public static final String DELETE_VNF_BUTTON_TEST_ID = "deleteVNFButton"; + public static final String DELETE_VF_MODULE_BUTTON_TEST_ID = "deleteVFModuleButton"; + public static final String DELETE_VNF_VOLUME_GROUP_BUTTON_TEST_ID = "deleteVNFVolumeGroupButton"; + public static final String ACTIVATE_BUTTON_TEST_ID = "activateButton"; + public static final String OPTION_IN_DROPDOWN_NOT_EXISTS = "the option %s in dropdown %s not exists"; + public static final String DISSOCIATE_BTN_CLASS = "dissociate-pnf"; + public static final String DISSOCIATE_CONFIRM_MODAL_TEXT = "Are you sure you would like to dissociate %s from the service instance?"; + public static final String DEACTIVATE_BUTTON_TEST_ID = "deactivateButton"; + public static final String ENABLE_ERROR_MESSAGE = "The %s option should not be enabled"; + public static final String DISABLE_ERROR_MESSAGE = "The %s option should be enabled"; + public static final String DISSOCIATE_CONFIRM_MODAL_BTN_ID = "ok-button"; + + } + public class PnfAssociation { + public static final String PNF_NAME_TEST_ID = "pnfName"; + public static final String SEARCH_PNF_TEST_ID = "searchPnf"; + public static final String ASSOCIATE_PNF_TEST_ID = "associatePnf"; + public static final String PNF_ENABLE_ASSOCIATE_ERROR_MESSAGE = "The Associate option not enabled"; + public static final String PNF_DISABLE_ASSOCIATE_ERROR_MESSAGE = "The Associate option enabled when pnf is not found"; + public static final String PNF_ASSOCIATED_SUCCESSFULLY_TEXT = "COMPLETE - PNF has been associated successfully."; + public static final String PNF_ASSOCIATED_FAILED_MESSAGE = "failed to associate PNF to service instance"; + public static final String NOT_FOUND_ERROR_TEST_ID = "pnfNotFoundErrorMessage"; + public static final String NOT_FOUND_ERROR_MESSAGE = "Errorn with the error messge not found PNF"; + + public static final String MSO_MODAL_TEST_ID = "msoPopup"; + public static final String MSO_MODAL_STATUS_TEST_ID = "msoRequestStatus"; + //pnf properties + public static final String PNF_INSTANCE_NAME_TEST_ID = "pnfInstancePnfName"; + public static final String PNF_INSTANCE_NAME2_TEST_ID = "pnfInstancePnfName2"; + public static final String PNF_INSTANCE_NAME2_SOURCE_TEST_ID = "pnfInstancePnfName2Source"; + public static final String PNF_INSTANCE_ID_TEST_ID = "pnfInstancePnfId"; + public static final String PNF_INSTANCE_EQUIP_TYPE_TEST_ID = "pnfInstanceEquipType"; + public static final String PNF_INSTANCE_EQUIP_VENDOR_TEST_ID = "pnfInstanceEquipVendor"; + public static final String PNF_INSTANCE_EQUIP_MODEL_TEST_ID = "pnfInstanceEquipModel"; + public static final String PNF_INSTANCE_ERROR_MESSAGE = "The PNF Instance info %s does not match"; + + } + public class serviceModelInfo{ + public static final String INFO_TEST_ID_PREFIX = "info-test-data-id-"; + public static final String SERVIICE_NAME_KEY = "ServiceName"; + public static final String SUBSCRIBER_NAME_KEY = "SubscriberName"; + public static final String SERVICE_INSTANCE_NAME = "ServiceInstanceName"; + public static final String MODEL_NAME = "ModelName"; + public static final String MODEL_INVARIANT_UUID = "ModelInvariantUUID"; + public static final String MODEL_VERSION = "ModelVersion"; + public static final String MODEL_UUID = "ModelUUID"; + public static final String MODEL_CUSTOMIZATION_UUID = "ModelCustomizationUUID"; + public static final String RESOURCE_NAME = "ResourceName"; + public static final String NF_TYPE = "NFType"; + public static final String NF_ROLE = "NFRole"; + public static final String NF_FUNCTION = "NFFunction"; + public static final String NF_NAMING_CODE = "NFNamingCode"; + public static final String METADETA_ERROR_MESSAGE = "The service model info %s does not match"; + } + + public class OwningEntity { + public static final String PROJECT_SELECT_TEST_ID = "project"; + public static final String OWNING_ENTITY_SELECT_TEST_ID = "owningEntity"; + public static final String PLATFORM_SELECT_TEST_ID = "platform"; + public static final String LOB_SELECT_TEST_ID = "lineOfBusiness"; + } + + public class Users { + public static final String READONLY = "readonly"; + public static final String USP_VOICE_VIRTUAL_USP = "uspVoiceVirtualUsp"; + public static final String MOBILITY_MOBILITY = "mobilityMobility"; + public static final String SUPRE_USER = "su"; + } + + public class RegisterToSimulator { + + //separated simulated json files according to pages + public class SearchForServiceInstance { + public static final String GET_FULL_SUBSCRIBERS = "search_for_service_instance/aai_get_full_subscribers.json"; + public static final String GET_SERVICES = "search_for_service_instance/aai_get_services.json"; + public static final String FILTER_SERVICE_INSTANCE_BY_ID = "search_for_service_instance/aai_filter_service_instance_by_id.json"; + public static final String FILTER_SERVICE_INSTANCE_BY_ID_2 = "search_for_service_instance/aai_filter_service_instance_by_id_2.json"; + public static final String GET_SUBSCRIBERS_FOR_CUSTOMER = "search_for_service_instance/aai_get_subscribers_for_customer.json"; + public static final String GET_SUBSCRIBERS_FOR_CUSTOMER_2 = "search_for_service_instance/aai_get_subscribers_for_customer_2.json"; + public static final String NAMED_QUERY_VIEW_EDIT = "search_for_service_instance/aai_named_query_for_view_edit.json"; + public static final String NAMED_QUERY_VIEW_EDIT_2 = "search_for_service_instance/aai_named_query_for_view_edit_2.json"; + } + + public class pProbe { + public static final String GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS = "pProbe/aai_get_service_instance_with_logical_links.json"; + public static final String GET_LOGICAL_LINK = "pProbe/aai_get_logical_link.json"; + public static final String GET_SPECIFIC_PNF = "pProbe/aai_get_specific_pnf.json"; + public static final String GET_SPECIFIC_PNF_ERROR = "pProbe/aai_get_specific_pnf_error.json"; + public static final String ADD_PNF_RELATIONSHIP = "pProbe/mso_add_pnf_relationship.json"; + public static final String ADD_PNF_RELATIONSHIP_ERROR = "pProbe/mso_add_pnf_relationship_error.json"; + public static final String GET_ADD_PNF_RELATIONSHIP_ORCH_REQ = "pProbe/mso_get_add_relationship_orch_req.json"; + public static final String REMOVE_PNF_RELATIONSHIP = "pProbe/mso_remove_pnf_relationship.json"; + public static final String GET_REMOVE_PNF_RELATIONSHIP_ORCH_REQ = "pProbe/mso_get_remove_relationship_orch_req.json"; + public static final String REMOVE_PNF_RELATIONSHIP_ERROR = "pProbe/mso_remove_pnf_relationship_error.json"; + } + + public class activateDeactivate{ + public static final String AAI_GET_SERVICE_INSTANCE = "activateDeactivate/aai_get_service_instance.json"; + public static final String ACTIVATE_SERVICE_INSTANCE = "activateDeactivate/mso_activate_service_instance.json"; + public static final String ACTIVATE_SERVICE_INSTANCE_ERROR = "activateDeactivate/mso_activate_service_instance_error.json"; + public static final String ACTIVATE_SERVICE_INSTANCE_ORCH_REQUEST = "activateDeactivate/mso_activate_service_instance_orch_req.json"; + } + + public class genericRequest{ + public static final String ECOMP_PORTAL_GET_SESSION_SLOT_CHECK_INTERVAL = "ecompportal_getSessionSlotCheckInterval.json"; + } + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/StartTest.java b/vid-automation/src/main/java/vid/automation/test/StartTest.java new file mode 100644 index 000000000..742cb6f1e --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/StartTest.java @@ -0,0 +1,66 @@ +package vid.automation.test; + +import org.testng.TestNG; +import org.apache.log4j.Logger; +import org.apache.log4j.PropertyConfigurator; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.atomic.AtomicBoolean; + +/** + * Created by itzikliderman on 21/06/2017. + */ +public class StartTest { + public static boolean debug = false; + + public static AtomicBoolean loggerInitialized = new AtomicBoolean(false); + + protected static Logger logger = null; + + public static void main (String[] args) throws IOException { + String debugEnabled = System.getProperty("debug"); + if (debugEnabled != null && debugEnabled.equalsIgnoreCase("true")) { + debug = true; + } + System.out.println("Debug mode is " + (debug ? "enabled" : "disabled")); + + enableLogger(); + + TestNG testng = new TestNG(); + + List<String> suites = new ArrayList<String>(); + suites.add(args[0]); + testng.setTestSuites(suites); + testng.setUseDefaultListeners(true); + testng.setOutputDirectory("target/"); + + testng.run(); + } + + public StartTest() { + logger = Logger.getLogger(StartTest.class.getName()); + } + + public static void enableLogger() { + + if (false == loggerInitialized.get()) { + + loggerInitialized.set(true); + + String log4jPropsFile = System.getProperty("log4j.configuration"); +// if (System.getProperty("os.name").contains("Windows")) { + String logProps = "src/main/resources/ci/conf/log4j.properties"; + if (log4jPropsFile == null) { + System.setProperty("targetlog", "target/"); + log4jPropsFile = logProps; + } + +// } + PropertyConfigurator.configureAndWatch(log4jPropsFile); + + } + } + +} diff --git a/vid-automation/src/main/java/vid/automation/test/infra/Click.java b/vid-automation/src/main/java/vid/automation/test/infra/Click.java new file mode 100644 index 000000000..f2cbbef80 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/infra/Click.java @@ -0,0 +1,54 @@ +package vid.automation.test.infra; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.ui.Select; + +import java.util.List; + +public class Click { + public static void byText(String text) { + WebElement element = GeneralUIUtils.findByText(text); + Assert.assertTrue(element != null); + + element.click(); + } + + public static void byId(String id) { + WebElement element = Get.byId(id); + Assert.assertTrue(element != null); + + element.click(); + } + + public static void byTestId(String testId) { + WebElement element = Get.byTestId(testId); + Assert.assertTrue(element != null); + element.click(); + } + + public static void byClass(String className) { + List<WebElement> elements = Get.byClass(className); + Assert.assertTrue(elements != null && elements.size() > 0); + + elements.get(0).click(); + } + + public static void onFirstSelectOptionById(String id) { + Select selectlist = new Select(Get.byId(id)); + if(selectlist.getOptions().size() > 1) { + selectlist.selectByIndex(1); + } + } + + public static void onFirstSelectOptionByClass(String className) { + final List<WebElement> webElements = Get.byClass(className); + webElements.forEach(webElement -> { + Select selectlist = new Select(webElement); + if (selectlist.getOptions().size() > 1) { + selectlist.selectByIndex(1); + } + }); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/infra/Exists.java b/vid-automation/src/main/java/vid/automation/test/infra/Exists.java new file mode 100644 index 000000000..14339d63f --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/infra/Exists.java @@ -0,0 +1,34 @@ +package vid.automation.test.infra; + +import org.openqa.selenium.NoSuchElementException; +import vid.automation.test.Constants; + +public class Exists { + public static boolean byId(String id) { + return Get.byId(id) != null; + } + + public static boolean byTestId(String testId) { + return Get.byTestId(testId) != null; + } + + public static boolean byClass(String className) { + return Get.byClass(className) != null; + } + + public static boolean byClassAndText(String className, String text) { + return Get.byClassAndText(className, text) != null; + } + + public static boolean byCssSelectorAndText(String css, String text) { + return Get.byCssSelectorAndText(css, text) != null; + } + + public static boolean modal() { + try { + return Get.byCssSelector(Constants.Modals.modalClass) != null; + } catch (NoSuchElementException exception) { + return false; + } + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/infra/Get.java b/vid-automation/src/main/java/vid/automation/test/infra/Get.java new file mode 100644 index 000000000..f9ce529f8 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/infra/Get.java @@ -0,0 +1,95 @@ +package vid.automation.test.infra; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.By; +import org.openqa.selenium.WebElement; + +import java.util.ArrayList; +import java.util.List; + +public class Get { + public static WebElement byId(String id) { + try { + return GeneralUIUtils.getDriver().findElement(By.id(id)); + } catch (Exception var2) { + return null; + } + } + + public static WebElement byTestId(String dataTestId) { + try { + return GeneralUIUtils.getDriver().findElement(By.xpath("//*[@data-tests-id='" + dataTestId + "']")); + } catch (Exception var2) { + return null; + } + } + + + + public static WebElement byClassAndText(String className, String text) { + WebElement result = null; + List<WebElement> elements = GeneralUIUtils.getWebElementsListByContainsClassName(className); + + for(WebElement element : elements) { + if (element.getText().contains(text)) { + result = element; + break; + } + } + + return result; + } + + public static WebElement byCssSelectorAndText(String css, String text) { + WebElement element = GeneralUIUtils.getDriver().findElement(By.cssSelector(css)); + + if (element != null && element.getText().contains(text)) { + return element; + } + + return null; + } + + public static String selectedOptionText(String dataTestId) { + return GeneralUIUtils.getSelectedElementFromDropDown(dataTestId).getText(); + } + + public static List<WebElement> byClass(String className) { + return GeneralUIUtils.getWebElementsListByContainsClassName(className); + } + + public static WebElement byCssSelector(String css) { + return GeneralUIUtils.getDriver().findElement(By.cssSelector(css)); + } + + public static List<String> tableHeaderValuesByTestId(String tableId) { + return tableValuesById(tableId, "thead", "th").get(0); + } + + public static List<List<String>> tableBodyValuesByTestId(String tableId) { + return tableValuesById(tableId, "tbody", "td"); + } + + private static List<WebElement> rowsByTableId(String tableId,String section, String column) { + try { + return GeneralUIUtils.getElemenetsFromTable(By.xpath("//table[@data-tests-id=\"" + tableId + "\"]/" + section + "/tr")); + } catch (Exception var2) { + return null; + } + } + + private static List<List<String>> tableValuesById(String tableId, String section, String column) { + List<WebElement> rows = rowsByTableId(tableId, section, column); + if(rows != null) { + List<List<String>> tableContent = new ArrayList<List<String>>(); + for(WebElement row:rows) { + List<WebElement> columns = row.findElements(By.xpath(column)); + tableContent.add(GeneralUIUtils.getWebElementListText(columns)); + } + return tableContent; + } + else { + return null; + } + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/infra/Input.java b/vid-automation/src/main/java/vid/automation/test/infra/Input.java new file mode 100644 index 000000000..15fa22549 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/infra/Input.java @@ -0,0 +1,38 @@ +package vid.automation.test.infra; + +import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang3.SystemUtils; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; + +/** + * Created by itzikliderman on 11/09/2017. + */ +public class Input { + public static void text(String text, String inputTestsId) { + WebElement inputElement = GeneralUIUtils.getWebElementByTestID(inputTestsId, 30); + inputElement.sendKeys(text); + } + + public static String getValueByTestId(String testId) { + WebElement input = GeneralUIUtils.getInputElement(testId); + return input.getAttribute("value"); + } + + /* + Get relative path to resource and id of file input element, + and send the resource full path to the input element + */ + public static void file(String pathInResources, String inputId) { + + String path = Input.class.getResource("../../../../"+pathInResources).getPath().toString(); + if (SystemUtils.IS_OS_WINDOWS) { + path = FilenameUtils.separatorsToSystem(path); + if (path.charAt(0)=='\\') { + path = path.substring(1); + } + } + WebElement inputElement = Get.byId(inputId); + inputElement.sendKeys(path); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/infra/SelectOption.java b/vid-automation/src/main/java/vid/automation/test/infra/SelectOption.java new file mode 100644 index 000000000..048174e99 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/infra/SelectOption.java @@ -0,0 +1,47 @@ +package vid.automation.test.infra; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.ui.Select; +import vid.automation.test.Constants; + +import java.util.List; + +/** + * Created by itzikliderman on 18/07/2017. + */ +public class SelectOption { + public static Select byValue(String value, String dataTestsId) { + Select select = new Select(GeneralUIUtils.getWebElementByTestID(dataTestsId)); + if(value != null) { + select.selectByValue(value); + } + + return select; + } + + public static void byIdAndVisibleText(String id, String text) { + Select selectlist = new Select(Get.byId(id)); + selectlist.selectByVisibleText(text); + } + + public static void byClassAndVisibleText(String className, String text) { + final List<WebElement> webElements = Get.byClass(className); + webElements.forEach(webElement -> { + final String id = webElement.getAttribute("id"); + byIdAndVisibleText(id, text); + }); + } + + public static void byTestIdAndVisibleText(String displayName, String selectDataTestId) { + GeneralUIUtils.getSelectList(displayName, selectDataTestId); + } + + public static void selectFirstTwoOptionsFromMultiselectById(String multiSelectId) throws InterruptedException { + Click.byId(multiSelectId); + Thread.sleep(1000); + Click.byClass(Constants.MULTI_SELECT_UNSELECTED_CLASS); + Click.byClass(Constants.MULTI_SELECT_UNSELECTED_CLASS); + + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/infra/Wait.java b/vid-automation/src/main/java/vid/automation/test/infra/Wait.java new file mode 100644 index 000000000..fa6ce4f38 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/infra/Wait.java @@ -0,0 +1,99 @@ +package vid.automation.test.infra; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.JavascriptExecutor; +import org.openqa.selenium.NoSuchElementException; +import vid.automation.test.Constants; + +import java.util.concurrent.TimeUnit; +import java.util.function.Predicate; + +public class Wait { + public static boolean byText(String text) { + return GeneralUIUtils.findAndWaitByText(text, Constants.generalTimeout); + } + + public static <T> boolean waitFor(Predicate<T> predicate, T input, int numOfRetries, int interval, TimeUnit intervalUnit) { + for (int i=0; i<numOfRetries; i++) { + try { + if (predicate.test(input)) { + return true; + } + } + catch (Throwable t) { + System.out.println("a retry failed duo to:" +t.getMessage()); + } + try { + intervalUnit.sleep(interval); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + return false; + } + + public static <T> boolean waitFor(Predicate<T> predicate, T input, int numOfRetries, int interval) { + return waitFor(predicate, input, numOfRetries, interval, TimeUnit.SECONDS); + } + + public static boolean waitByClassAndText(String className, String text, int timeoutInSeconds) { + return waitFor((x->Get.byClassAndText(className,text)!=null),null, timeoutInSeconds, 1); + } + + public static boolean waitByTestId(String dataTestId, int timeoutInSeconds) { + return waitFor((x->Get.byTestId(dataTestId)!=null),null, timeoutInSeconds, 1); + } + + public static void angularHttpRequestsLoaded() { + JavascriptExecutor js = (JavascriptExecutor) GeneralUIUtils.getDriver(); + for (int i=0; i<Constants.generalRetries; i++) { + Object result = js.executeScript("return window.angular.element('body').injector().get('$http').pendingRequests.length;"); + if(result.toString().equals("0")) { + break; + } else { + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + } + } + + public static void modalToDisappear() { + for (int i=0; i<Constants.generalRetries; i++) { + try { + Object modalElement = Get.byCssSelector(Constants.Modals.modalClass); + if(modalElement == null) { + break; + } else { + Thread.sleep(1000); + } + } catch (NoSuchElementException e) { + break; + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + } + + public static void modalToBeDisplayed() { + for (int i=0; i<Constants.generalRetries; i++) { + try { + Object modalElement = Get.byCssSelector(Constants.Modals.modalClass); + if(modalElement == null) { + Thread.sleep(1000); + } else { + break; + } + } catch (Exception e) { + try { + Thread.sleep(1000); + } catch (InterruptedException e1) { + e1.printStackTrace(); + } + e.printStackTrace(); + } + } + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/model/Credentials.java b/vid-automation/src/main/java/vid/automation/test/model/Credentials.java new file mode 100644 index 000000000..0dc26aefd --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/model/Credentials.java @@ -0,0 +1,9 @@ +package vid.automation.test.model; + +/** + * Created by itzikliderman on 26/06/2017. + */ +public class Credentials { + public String userId; + public String password; +} diff --git a/vid-automation/src/main/java/vid/automation/test/model/Environment.java b/vid-automation/src/main/java/vid/automation/test/model/Environment.java new file mode 100644 index 000000000..9304dd998 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/model/Environment.java @@ -0,0 +1,11 @@ +package vid.automation.test.model; + +public class Environment { + public String operationalEnvironmentId; + public String operationalEnvironmentName; + public String operationalEnvironmentType; + public String EcompEnvironmentId; + public String EcompEnvironmentName; + public String tenantContext; + public String workloadContext; +} diff --git a/vid-automation/src/main/java/vid/automation/test/model/Service.java b/vid-automation/src/main/java/vid/automation/test/model/Service.java new file mode 100644 index 000000000..f5eaf6b0d --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/model/Service.java @@ -0,0 +1,27 @@ +package vid.automation.test.model; + +import java.util.ArrayList; + +/** + * Created by itzikliderman on 19/06/2017. + */ +public class Service { + + public String type; + + public String uuid; + + public String invariantUuid; + + public String name; + + public String version; + + public String category; + + public String description; + + public String serviceRole; + + public Service() {} +} diff --git a/vid-automation/src/main/java/vid/automation/test/model/ServicesObject.java b/vid-automation/src/main/java/vid/automation/test/model/ServicesObject.java new file mode 100644 index 000000000..2ab0df296 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/model/ServicesObject.java @@ -0,0 +1,11 @@ +package vid.automation.test.model; + +import java.util.HashMap; +import java.util.List; + +/** + * Created by itzikliderman on 21/06/2017. + */ +public class ServicesObject { + public HashMap<String, Service> services; +} diff --git a/vid-automation/src/main/java/vid/automation/test/model/User.java b/vid-automation/src/main/java/vid/automation/test/model/User.java new file mode 100644 index 000000000..c4b06d4bc --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/model/User.java @@ -0,0 +1,15 @@ +package vid.automation.test.model; + +import vid.automation.test.model.Credentials; + +import java.util.ArrayList; + +/** + * Created by Oren on 7/16/17. + */ +public class User { + public Credentials credentials; + public ArrayList<String> subscribers; + public ArrayList<String> serviceTypes; + public ArrayList<String> tenants; +} diff --git a/vid-automation/src/main/java/vid/automation/test/model/UsersObject.java b/vid-automation/src/main/java/vid/automation/test/model/UsersObject.java new file mode 100644 index 000000000..e03ac0d4a --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/model/UsersObject.java @@ -0,0 +1,13 @@ +package vid.automation.test.model; + +import vid.automation.test.model.User; + +import java.util.HashMap; +import java.util.List; + +/** + * Created by Oren on 7/16/17. + */ +public class UsersObject { + public HashMap<String, User> users; +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/BrowseASDCPage.java b/vid-automation/src/main/java/vid/automation/test/sections/BrowseASDCPage.java new file mode 100644 index 000000000..f9a2e43a5 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/BrowseASDCPage.java @@ -0,0 +1,12 @@ +package vid.automation.test.sections; + +import vid.automation.test.Constants; + +/** + * Created by itzikliderman on 13/06/2017. + */ +public class BrowseASDCPage extends VidBasePage { + public String generateInstanceName() { + return generateInstanceName(Constants.BrowseASDC.SERVICE_INSTANCE_NAME_PREFIX); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/ChangeManagementPage.java b/vid-automation/src/main/java/vid/automation/test/sections/ChangeManagementPage.java new file mode 100644 index 000000000..bcf035c00 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/ChangeManagementPage.java @@ -0,0 +1,15 @@ +package vid.automation.test.sections; + +import vid.automation.test.Constants; +import vid.automation.test.infra.Click; + +public class ChangeManagementPage extends VidBasePage { + public static void openChangeManagementPage() { + Click.byText(Constants.SideMenu.VNF_CHANGES); + } + + public static void openNewChangeManagementModal() { + ChangeManagementPage.openChangeManagementPage(); + Click.byId(Constants.ChangeManagement.headlineNewButtonId); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/CreateNewInstancePage.java b/vid-automation/src/main/java/vid/automation/test/sections/CreateNewInstancePage.java new file mode 100644 index 000000000..2eef9b3af --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/CreateNewInstancePage.java @@ -0,0 +1,21 @@ +package vid.automation.test.sections; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import vid.automation.test.Constants; +import vid.automation.test.model.Service; + +/** + * Created by itzikliderman on 13/06/2017. + */ +public class CreateNewInstancePage extends VidBasePage { + + public CreateNewInstancePage clickCloseButton() { + GeneralUIUtils.clickOnElementByTestId(Constants.BrowseASDC.MSO_COMMIT_DIALOG_CLOSE_BUTTON, 30); + return this; + } + + public String generateInstanceName() { + return generateInstanceName(Constants.CreateNewInstance.SERVICE_INSTANCE_NAME_PREFIX); + } + +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/CreationDialog.java b/vid-automation/src/main/java/vid/automation/test/sections/CreationDialog.java new file mode 100644 index 000000000..fdc78d2e5 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/CreationDialog.java @@ -0,0 +1,8 @@ +package vid.automation.test.sections; + +/** + * Created by itzikliderman on 31/07/2017. + */ +public class CreationDialog extends VidBasePage{ + +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/LoginExternalPage.java b/vid-automation/src/main/java/vid/automation/test/sections/LoginExternalPage.java new file mode 100644 index 000000000..c1053d2a5 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/LoginExternalPage.java @@ -0,0 +1,29 @@ +package vid.automation.test.sections; + +import org.openecomp.sdc.ci.tests.datatypes.UserCredentials; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.By; +import org.openqa.selenium.WebElement; +import static org.junit.Assert.*; + + +public class LoginExternalPage { + + + static private final String SUCCESSFUL_LOGIN_STRING_SEARCH = "Welcome to VID"; + + static void sendUserAndPasswordKeys(UserCredentials userCredentials) { + WebElement loginIdInputElem = GeneralUIUtils.getWebElementBy(By.name("loginId")); + loginIdInputElem.sendKeys(userCredentials.getUserId()); + WebElement passwordInputElem = GeneralUIUtils.getWebElementBy(By.name("password")); + passwordInputElem.sendKeys(userCredentials.getPassword()); + } + + static public void performLoginExternal(UserCredentials userCredentials) { + sendUserAndPasswordKeys(userCredentials); + WebElement loginButton = GeneralUIUtils.getWebElementBy(By.id("loginBtn"), 30); + loginButton.click(); + boolean isLoginSuccess = GeneralUIUtils.findAndWaitByText(SUCCESSFUL_LOGIN_STRING_SEARCH, 30); + assertTrue(isLoginSuccess); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/PnfSearchAssociationPage.java b/vid-automation/src/main/java/vid/automation/test/sections/PnfSearchAssociationPage.java new file mode 100644 index 000000000..3f8061a78 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/PnfSearchAssociationPage.java @@ -0,0 +1,24 @@ +package vid.automation.test.sections; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import vid.automation.test.Constants; + +public class PnfSearchAssociationPage extends VidBasePage { + public PnfSearchAssociationPage setPnfName(String pnfName){ + setInputText(Constants.PnfAssociation.PNF_NAME_TEST_ID, pnfName); + return this; + } + public PnfSearchAssociationPage clickSearchButton() { + GeneralUIUtils.clickOnElementByTestId(Constants.PnfAssociation.SEARCH_PNF_TEST_ID, 60); + return this; + } + public PnfSearchAssociationPage clickAssociateButton() { + GeneralUIUtils.clickOnElementByTestId(Constants.PnfAssociation.ASSOCIATE_PNF_TEST_ID, 100); + return this; + } + + + +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/SearchExistingPage.java b/vid-automation/src/main/java/vid/automation/test/sections/SearchExistingPage.java new file mode 100644 index 000000000..5fc4894e9 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/SearchExistingPage.java @@ -0,0 +1,77 @@ +package vid.automation.test.sections; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import vid.automation.test.Constants; + + +/** + * Created by pickjonathan on 10/07/2017. + */ + +public class SearchExistingPage extends VidBasePage { + + public SearchExistingPage() {} + + public void selectSearchById(){ + selectSearchBy(Constants.EditExistingInstance.SERVICE_INSTANCE_ID); + } + + public void selectSearchByName(){ + selectSearchBy(Constants.EditExistingInstance.SERVICE_INSTANCE_NAME); + } + + public void selectSearchBy(String searchTypeOptionText) { + boolean findAndWaitByText = GeneralUIUtils.findAndWaitByText(Constants.EditExistingInstance.SELECT_SERVICE_INSTANCE, 30); + Assert.assertTrue(findAndWaitByText); + GeneralUIUtils.clickOnElementByText(Constants.EditExistingInstance.SELECT_SERVICE_INSTANCE, 30); + + boolean isSearchByIdAvailable = GeneralUIUtils.findAndWaitByText(searchTypeOptionText, 30); + Assert.assertTrue(isSearchByIdAvailable); + GeneralUIUtils.clickOnElementByText(searchTypeOptionText, 30); + } + + public void searchForInstanceByUuid(String uuid) { + selectSearchById(); + startSearchByInstanceIdentifier(uuid); + } + + private void startSearchByInstanceIdentifier(String text) { + WebElement textInputWebElement = GeneralUIUtils.getWebElementByTestID(Constants.EditExistingInstance.SEARCH_FOR_EXISTING_INSTANCES_INPUT, 30); + Assert.assertTrue(textInputWebElement != null); + textInputWebElement.sendKeys(text); + clickSubmitButton(); + } + + public void searchForInstanceByName(String name) { + selectSearchByName(); + startSearchByInstanceIdentifier(name); + } + + public void checkForEditButtons() { + boolean isDeleteVisible = GeneralUIUtils.waitForElementInVisibilityByTestId(Constants.EditExistingInstance.DELETE_VNF_BTN, 30); + Assert.assertFalse(isDeleteVisible); + + boolean isAddVnfModuleVisible = GeneralUIUtils.waitForElementInVisibilityByTestId(Constants.EditExistingInstance.ADD_VNF_MODULE_DROPDOWN, 30); + Assert.assertFalse(isAddVnfModuleVisible); + + boolean isAddCustomVnfModuleVisible = GeneralUIUtils.waitForElementInVisibilityByTestId(Constants.EditExistingInstance.ADD_CUSTOM_VNF_MODULE_DROPDOWN, 30); + Assert.assertFalse(isAddCustomVnfModuleVisible); + + boolean isAddCustomVolumeGroupVisible = GeneralUIUtils.waitForElementInVisibilityByTestId(Constants.EditExistingInstance.ADD_CUSTOM_VOLUME_GROUP, 30); + Assert.assertFalse(isAddCustomVolumeGroupVisible); + + boolean isAddVolumeGroupVisible = GeneralUIUtils.waitForElementInVisibilityByTestId(Constants.EditExistingInstance.ADD_VOLUME_GROUP, 30); + Assert.assertFalse(isAddVolumeGroupVisible); + + boolean isDeleteVfModuleVisible = GeneralUIUtils.waitForElementInVisibilityByTestId(Constants.EditExistingInstance.DELETE_VF_MODULE, 30); + Assert.assertFalse(isDeleteVfModuleVisible); + + boolean isDeleteVnfGroupVisible = GeneralUIUtils.waitForElementInVisibilityByTestId(Constants.EditExistingInstance.DELETE_VNF_VOLUME_GROUP, 30); + Assert.assertFalse(isDeleteVnfGroupVisible); + + boolean isDeleteNetworkVisible = GeneralUIUtils.waitForElementInVisibilityByTestId(Constants.EditExistingInstance.DELETE_NETWORK); + Assert.assertFalse(isDeleteNetworkVisible); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/SideMenu.java b/vid-automation/src/main/java/vid/automation/test/sections/SideMenu.java new file mode 100644 index 000000000..8745001dd --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/SideMenu.java @@ -0,0 +1,30 @@ +package vid.automation.test.sections; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import vid.automation.test.Constants; + +public class SideMenu { + public static void navigateToBrowseASDCPage() { + navigateToPage(Constants.SideMenu.BROWSE_ASDC_SERVICE_MODELS); + } + + public static void navigateToSearchExistingPage() { + navigateToPage(Constants.SideMenu.SEARCH_EXISTING_SERVICE); + } + + public static void navigateToCreateNewServicePage() { + navigateToPage(Constants.SideMenu.CREATE_NEW_SERVICE); + } + + public static void navigateToTestEnvironmentsPage() { + navigateToPage(Constants.SideMenu.TEST_ENVIRONMENTS); + } + + private static void navigateToPage(String PageName) { + boolean findAndWaitByText = GeneralUIUtils.findAndWaitByText(PageName, 30); + Assert.assertTrue(findAndWaitByText); + GeneralUIUtils.clickOnElementByText(PageName, 150); + GeneralUIUtils.ultimateWait(); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/TestEnvironmentPage.java b/vid-automation/src/main/java/vid/automation/test/sections/TestEnvironmentPage.java new file mode 100644 index 000000000..f63906323 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/TestEnvironmentPage.java @@ -0,0 +1,39 @@ +package vid.automation.test.sections; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.By; +import org.openqa.selenium.WebElement; +import org.testng.Assert; +import vid.automation.test.Constants; +import vid.automation.test.infra.Click; +import vid.automation.test.infra.Get; + +import java.util.List; + +import static org.junit.Assert.assertEquals; + +public class TestEnvironmentPage extends VidBasePage { + + public static void clickTestEnvironmentActivate(String envId) { + getTestEnvironmentActivationButton(envId).click(); + } + + public static void clickTestEnvironmentDeactivate(String envId) { + getTestEnvironmentDeactivationButton(envId).click(); + } + + public static WebElement getTestEnvironmentActivationButton(String envId) { + WebElement webElement = Get.byId(Constants.TestEnvironments.activateButtonIdPrefix + envId); + return webElement; + } + + public static WebElement getTestEnvironmentDeactivationButton(String envId) { + WebElement webElement = Get.byId(Constants.TestEnvironments.deactivateButtonIdPrefix + envId); + return webElement; + } + + public static WebElement getTestEnvironmentAttachButton(String envId) { + WebElement webElement = Get.byId(Constants.TestEnvironments.attachButtonIdPrefix + envId); + return webElement; + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/VidBasePage.java b/vid-automation/src/main/java/vid/automation/test/sections/VidBasePage.java new file mode 100644 index 000000000..6e0367edd --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/VidBasePage.java @@ -0,0 +1,132 @@ +package vid.automation.test.sections; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import vid.automation.test.Constants; +import vid.automation.test.infra.Click; +import vid.automation.test.infra.SelectOption; +import vid.automation.test.infra.Wait; + +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.Date; + +public class VidBasePage { + + public VidBasePage setInstanceName(String name) { + setInputText(Constants.INSTANCE_NAME_SELECT_TESTS_ID, name); + return this; + } + + public void generateAndSetInstanceName(String prefix) { + String instanceName = generateInstanceName(prefix); + setInstanceName(instanceName); + } + + public VidBasePage setInputText(String inputTestsId, String text) { + WebElement instanceNameInput = GeneralUIUtils.getInputElement(inputTestsId); + instanceNameInput.sendKeys(text); + return this; + } + + public String generateInstanceName(String prefix) { + SimpleDateFormat sdf = new SimpleDateFormat(Constants.BrowseASDC.DATE_FORMAT); + Date now = Calendar.getInstance().getTime(); + return prefix + sdf.format(now); + } + + public VidBasePage selectServiceTypeByName(String serviceType) { + SelectOption.byTestIdAndVisibleText(serviceType, Constants.SERVICE_TYPE_SELECT_TESTS_ID); + return this; + } + + public static void selectSubscriberById(String subscriberId) { + SelectOption.byValue(subscriberId, Constants.SUBSCRIBER_NAME_SELECT_TESTS_ID); + } + + public VidBasePage selectProductFamily(String productFamily) { + SelectOption.byValue(productFamily, Constants.ViewEdit.PRODUCT_FAMILY_SELECT_TESTS_ID); + return this; + } + + public VidBasePage selectSuppressRollback(String shouldSuppress) { + SelectOption.byTestIdAndVisibleText(shouldSuppress, Constants.SUPPRESS_ROLLBACK_SELECT_TESTS_ID); + return this; + } + + public VidBasePage clickDeployServiceButtonByServiceUUID(String serviceUUID) { + setInputText(Constants.BROWSE_SEARCH, serviceUUID); + String elementTestId = Constants.DEPLOY_BUTTON_TESTS_ID_PREFIX + serviceUUID; + GeneralUIUtils.clickOnElementByTestId(elementTestId, 30); + GeneralUIUtils.ultimateWait(); + return this; + } + + public VidBasePage clickEditViewByInstanceId(String instanceId) { + String elementTestId = Constants.VIEW_EDIT_TEST_ID_PREFIX + instanceId; + GeneralUIUtils.clickOnElementByTestId(elementTestId, 100); + GeneralUIUtils.ultimateWait(); + return this; + } + + public VidBasePage clickSubmitButton() { + GeneralUIUtils.clickOnElementByText(Constants.SUBMIT_BUTTON_TEXT, 30); + return this; + } + + public VidBasePage clickCancelButton() { + Click.byId(Constants.generalCancelButtonId); + return this; + } + + + public VidBasePage clickConfirmButton() { + GeneralUIUtils.clickOnElementByTestId(Constants.CONFIRM_BUTTON_TESTS_ID, 30); + return this; + } + + public VidBasePage clickCloseButton() { + GeneralUIUtils.clickOnElementByText(Constants.CLOSE_BUTTON_TEXT, 30); + return this; + } + + public VidBasePage selectLcpRegion(String lcpRegion) { + SelectOption.byValue(lcpRegion, Constants.ViewEdit.LCP_REGION_SELECT_TESTS_ID); + return this; + } + + public VidBasePage selectTenant(String tenant) { + SelectOption.byValue(tenant, Constants.ViewEdit.TENANT_SELECT_TESTS_ID); + return this; + } + + public VidBasePage selectAicZone(String aicZone) { + SelectOption.byValue(aicZone, Constants.ViewEdit.AIC_ZONE_TEST_ID); + return this; + } + + public void assertButtonState(String dataTestId, boolean shouldBeEnabled) { + GeneralUIUtils.ultimateWait(); + WebElement webElement = GeneralUIUtils.getWebElementByTestID(dataTestId, 60); + boolean enabledElement= webElement.getAttribute("disabled")==null?true:false; + if(shouldBeEnabled) { + Assert.assertTrue(String.format(Constants.ViewEdit.ENABLE_ERROR_MESSAGE,dataTestId), enabledElement); + }else{ + Assert.assertFalse(String.format(Constants.ViewEdit.DISABLE_ERROR_MESSAGE,dataTestId),enabledElement); + } + + } + public VidBasePage assertMsoRequestModal(String statusMsg) { + boolean waitForTextResult = Wait.waitByClassAndText("status", statusMsg, 60); + Assert.assertTrue(statusMsg + " message didn't appear on time", waitForTextResult); + + return this; + } + + public VidBasePage refreshPage() { + GeneralUIUtils.getDriver().navigate().refresh(); + return this; + } + +} diff --git a/vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java b/vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java new file mode 100644 index 000000000..5f532d22a --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/sections/ViewEditPage.java @@ -0,0 +1,84 @@ +package vid.automation.test.sections; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.By; +import org.openqa.selenium.WebElement; +import vid.automation.test.Constants; +import vid.automation.test.infra.Get; +import vid.automation.test.infra.SelectOption; +import vid.automation.test.infra.Wait; + +/** + * Created by itzikliderman on 13/06/2017. + */ +public class ViewEditPage extends VidBasePage { + public ViewEditPage selectNodeInstanceToAdd(String vnfName) { + selectFromDropdownByTestId(Constants.ViewEdit.VNF_OPTION_TEST_ID_PREFIX + vnfName, + Constants.ViewEdit.ADD_VNF_BUTTON_TEST_ID); + return this; + } + + public ViewEditPage selectVolumeGroupToAdd(String volumeGroupName) { + selectFromDropdownByTestId(Constants.ViewEdit.VOLUME_GROUP_OPTION_TEST_ID_PREFIX + volumeGroupName, + Constants.ViewEdit.ADD_VOLUME_GROUP_BUTTON_TEST_ID); + return this; + } + + public ViewEditPage selectFromDropdownByText(String itemText, String dropdownButtonTestId) { + GeneralUIUtils.clickOnElementByTestId(dropdownButtonTestId, 30); + GeneralUIUtils.clickOnElementByText(itemText, 30); + return this; + } + + public ViewEditPage selectFromDropdownByTestId(String itemTestId, String dropdownButtonTestId) { + GeneralUIUtils.clickOnElementByTestId(dropdownButtonTestId, 60); + Assert.assertTrue(String.format(Constants.ViewEdit.OPTION_IN_DROPDOWN_NOT_EXISTS,dropdownButtonTestId,"Add network instance"),GeneralUIUtils.getWebElementByTestID(itemTestId) != null ); + GeneralUIUtils.clickOnElementByTestId(itemTestId, 60); + return this; + } + + public ViewEditPage selectProductFamily(String productFamily){ + SelectOption.byValue(productFamily, Constants.ViewEdit.PRODUCT_FAMILY_SELECT_TESTS_ID); + return this; + } + + public ViewEditPage selectLCPRegion(String lcpRegion){ + SelectOption.byValue(lcpRegion, Constants.ViewEdit.LCP_REGION_SELECT_TESTS_ID); + return this; + } + + public ViewEditPage setLegacyRegion(String legacyRegionName){ + setInputText(Constants.ViewEdit.LEGACY_REGION_INPUT_TESTS_ID, legacyRegionName); + return this; + } + + public ViewEditPage selectTenant(String tenant){ + SelectOption.byValue(tenant, Constants.ViewEdit.TENANT_SELECT_TESTS_ID); + return this; + } + + public VidBasePage clickActivateButton() { + GeneralUIUtils.clickOnElementByTestId(Constants.ViewEdit.ACTIVATE_BUTTON_TEST_ID, 60); + return this; + } + + public WebElement getPnf(String pnfName) { + WebElement pnfElement = Get.byClassAndText("tree-node", "PNF: " + pnfName); + Assert.assertNotNull("Pnf "+ pnfName +" not found under service instance", pnfElement); + return pnfElement; + } + + public ViewEditPage clickDissociatePnfButton(String pnfName) { + WebElement pnfToDissociate = getPnf(pnfName); + WebElement dissociateBtn = pnfToDissociate.findElement(By.className(Constants.ViewEdit.DISSOCIATE_BTN_CLASS)); + Assert.assertNotNull("Dissociate button not found for pnf " + pnfName, dissociateBtn); + dissociateBtn.click(); + return this; + } + + public VidBasePage clickDeactivateButton() { + GeneralUIUtils.clickOnElementByTestId(Constants.ViewEdit.DEACTIVATE_BUTTON_TEST_ID, 30); + return this; + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/services/BulkRegistration.java b/vid-automation/src/main/java/vid/automation/test/services/BulkRegistration.java new file mode 100644 index 000000000..4cdd85d24 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/services/BulkRegistration.java @@ -0,0 +1,94 @@ +package vid.automation.test.services; + +import com.google.common.collect.ImmutableMap; +import vid.automation.test.Constants; + +public class BulkRegistration { + + public static void searchExistingServiceInstance() { + searchExistingServiceInstance("Active"); + } + public static void searchExistingServiceInstance(String orchStatus) { + SimulatorApi.registerExpectation( + new String [] { + Constants.RegisterToSimulator.genericRequest.ECOMP_PORTAL_GET_SESSION_SLOT_CHECK_INTERVAL, + Constants.RegisterToSimulator.SearchForServiceInstance.GET_FULL_SUBSCRIBERS, + Constants.RegisterToSimulator.SearchForServiceInstance.GET_SERVICES, + Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER, + Constants.RegisterToSimulator.SearchForServiceInstance.FILTER_SERVICE_INSTANCE_BY_ID, + Constants.RegisterToSimulator.SearchForServiceInstance.NAMED_QUERY_VIEW_EDIT + + }, ImmutableMap.<String, Object>of("<ORCH_STATUS>", orchStatus)); + } + + public static void searchExistingServiceInstance2(String orchStatus) { + SimulatorApi.registerExpectation( + new String [] { + Constants.RegisterToSimulator.SearchForServiceInstance.GET_FULL_SUBSCRIBERS, + Constants.RegisterToSimulator.SearchForServiceInstance.GET_SERVICES, + Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_2, + Constants.RegisterToSimulator.SearchForServiceInstance.FILTER_SERVICE_INSTANCE_BY_ID_2, + Constants.RegisterToSimulator.SearchForServiceInstance.NAMED_QUERY_VIEW_EDIT_2 + }, ImmutableMap.<String, Object>of("<ORCH_STATUS>", orchStatus)); + } + + public static void associatePnf() { + SimulatorApi.registerExpectation( + new String [] { + Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS, + Constants.RegisterToSimulator.pProbe.GET_SPECIFIC_PNF, + Constants.RegisterToSimulator.pProbe.ADD_PNF_RELATIONSHIP, + Constants.RegisterToSimulator.pProbe.GET_ADD_PNF_RELATIONSHIP_ORCH_REQ + }, ImmutableMap.<String, Object>of()); + } + + public static void searchPnfError() { + SimulatorApi.registerExpectation( + new String [] { + Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS, + Constants.RegisterToSimulator.pProbe.GET_SPECIFIC_PNF_ERROR + }, ImmutableMap.<String, Object>of()); + } + public static void associatePnfError() { + SimulatorApi.registerExpectation( + new String [] { + Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS, + Constants.RegisterToSimulator.pProbe.GET_SPECIFIC_PNF, + Constants.RegisterToSimulator.pProbe.ADD_PNF_RELATIONSHIP_ERROR + }, ImmutableMap.<String, Object>of()); + } + + public static void dissociatePnf() { + SimulatorApi.registerExpectation( + new String [] { + Constants.RegisterToSimulator.pProbe.REMOVE_PNF_RELATIONSHIP, + Constants.RegisterToSimulator.pProbe.GET_REMOVE_PNF_RELATIONSHIP_ORCH_REQ + }, ImmutableMap.<String, Object>of()); + } + + public static void getAssociatedPnfs() { + SimulatorApi.registerExpectation( + new String [] { + Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS, + Constants.RegisterToSimulator.pProbe.GET_LOGICAL_LINK + }, ImmutableMap.<String, Object>of()); + } + + public static void activateServiceInstance(String action) { + SimulatorApi.registerExpectation( + new String [] { + Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS, + Constants.RegisterToSimulator.activateDeactivate.ACTIVATE_SERVICE_INSTANCE, + Constants.RegisterToSimulator.activateDeactivate.ACTIVATE_SERVICE_INSTANCE_ORCH_REQUEST + }, ImmutableMap.<String, Object>of("<ACTIVE_ACTION>", action)); + } + + public static void activateServiceInstanceError(String action) { + SimulatorApi.registerExpectation( + new String []{ + Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS, + Constants.RegisterToSimulator.activateDeactivate.ACTIVATE_SERVICE_INSTANCE_ERROR + } , ImmutableMap.<String, Object>of("<ACTIVE_ACTION>", action)); + } + +} diff --git a/vid-automation/src/main/java/vid/automation/test/services/ServicesService.java b/vid-automation/src/main/java/vid/automation/test/services/ServicesService.java new file mode 100644 index 000000000..39f235b9e --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/services/ServicesService.java @@ -0,0 +1,47 @@ +package vid.automation.test.services; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openecomp.sdc.ci.tests.utilities.FileHandling; +import vid.automation.test.model.Service; +import vid.automation.test.model.ServicesObject; + +import java.io.File; +import java.io.IOException; +import java.util.HashMap; + +/** + * Created by itzikliderman on 08/09/2017. + */ +public class ServicesService { + private HashMap<String, Service> services; + + public ServicesService() throws IOException { + services = getServicesFromJson(); + + } + + HashMap<String, Service> getServicesFromJson() throws IOException { + String fileName = "services"; + ObjectMapper mapper = new ObjectMapper(); + ServicesObject servicesObject; + try { + File servicesFile = FileHandling.getConfigFile(fileName); + if(!servicesFile.exists()) { + String basePath = System.getProperty("BASE_PATH"); + servicesFile = new File( basePath + File.separator + "conf" + File.separator + fileName); + } + servicesObject = mapper.readValue(servicesFile, ServicesObject.class); + return servicesObject.services; + } catch (IOException e) { + e.printStackTrace(); + return null; + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + public Service getService(String serviceId) { + return services.get(serviceId); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/services/SimulatorApi.java b/vid-automation/src/main/java/vid/automation/test/services/SimulatorApi.java new file mode 100644 index 000000000..95370fc82 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/services/SimulatorApi.java @@ -0,0 +1,98 @@ +package vid.automation.test.services; + +import com.google.common.collect.ImmutableMap; +import org.apache.commons.io.IOUtils; +import org.apache.log4j.Logger; +import org.glassfish.jersey.client.ClientProperties; +import org.glassfish.jersey.uri.internal.JerseyUriBuilder; +import org.springframework.http.HttpStatus; + +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; +import javax.ws.rs.client.Entity; +import javax.ws.rs.client.WebTarget; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; +import java.io.IOException; +import java.io.InputStream; +import java.net.URI; +import java.util.Map; + +import static org.testng.Assert.assertEquals; + +public class SimulatorApi { + + private static Logger logger = Logger.getLogger(SimulatorApi.class.getName()); + + public enum RegistrationStrategy { + APPEND, CLEAR_THEN_SET + } + + private static final URI uri; + private static final Client client; + + static { + String host = System.getProperty("VID_HOST", "127.0.0.1" ); + Integer port = Integer.valueOf(System.getProperty("VID_PORT", "8080")); + uri = new JerseyUriBuilder().host(host).port(port).scheme("http").path("vidSimulator").build(); + client = ClientBuilder.newClient(); + client.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true); + } + + public static void registerExpectation(String expectationFilename) { + registerExpectation(expectationFilename, ImmutableMap.<String, Object>of(), RegistrationStrategy.APPEND); + } + + public static void registerExpectation(String expectationFilename, RegistrationStrategy registrationStrategy) { + registerExpectation(expectationFilename, ImmutableMap.<String, Object>of(), registrationStrategy); + } + + public static void registerExpectation(String expectationTemplateFilename, ImmutableMap<String, Object> templateParams) { + registerExpectation(expectationTemplateFilename, templateParams, RegistrationStrategy.APPEND); + } + + public static void registerExpectation(String... expectationTemplateFilenames) { + registerExpectation(expectationTemplateFilenames, ImmutableMap.of()); + } + + public static void registerExpectation(String[] expectationTemplateFilenames, ImmutableMap<String, Object> templateParams) { + for (String expectationTemplateFilename: expectationTemplateFilenames) { + registerExpectation(expectationTemplateFilename, templateParams); + } + } + + public static void registerExpectation(String expectationTemplateFilename, ImmutableMap<String, Object> templateParams, RegistrationStrategy registrationStrategy) { + + try { + final InputStream resource = SimulatorApi.class.getClassLoader().getResourceAsStream("registration_to_simulator/" + expectationTemplateFilename); + if (resource == null) throw new RuntimeException("template file not found: " + "/registration_to_simulator/" + expectationTemplateFilename); + String content = IOUtils.toString(resource, "UTF-8"); + + for (Map.Entry<String, Object> templateParam : templateParams.entrySet()) { + content = content.replaceAll(templateParam.getKey(), templateParam.getValue().toString()); + } + + registerToSimulatorAndAssertSuccess(content, registrationStrategy); + + } catch (IOException e) { + logger.error("couldn't read " + expectationTemplateFilename, e); +// throw new RuntimeException("couldn't read " + expectationTemplateFilename, e); + } + } + + private static void registerToSimulatorAndAssertSuccess(String content, RegistrationStrategy registrationStrategy) { + WebTarget webTarget = client.target(uri).path("registerToVidSimulator"); + Response response; + if (registrationStrategy == RegistrationStrategy.CLEAR_THEN_SET) { + response = webTarget.request().delete(); + assertEquals(response.getStatus(), HttpStatus.OK.value()); + } + response = webTarget.request(MediaType.APPLICATION_JSON_TYPE).post(Entity.json(content)); + assertEquals(response.getStatus(), HttpStatus.OK.value()); + } + + public static void clearAll() { + WebTarget webTarget = client.target(uri).path("registerToVidSimulator"); + webTarget.request().delete(); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/services/UsersService.java b/vid-automation/src/main/java/vid/automation/test/services/UsersService.java new file mode 100644 index 000000000..e8df17764 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/services/UsersService.java @@ -0,0 +1,31 @@ +package vid.automation.test.services; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openecomp.sdc.ci.tests.utilities.FileHandling; +import vid.automation.test.model.User; +import vid.automation.test.model.UsersObject; +import vid.automation.test.utils.ReadFile; + +import java.io.File; +import java.io.IOException; +import java.util.HashMap; + +/** + * Created by itzikliderman on 08/09/2017. + */ +public class UsersService { + private HashMap<String, User> users; + + public UsersService() throws IOException { + users = getUsersFromJson(); + } + + HashMap<String, User> getUsersFromJson() throws IOException { + UsersObject usersObject = ReadFile.getJsonFile("users", UsersObject.class); + return usersObject.users; + } + + public User getUser(String userId) { + return users.get(userId); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java b/vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java new file mode 100644 index 000000000..894be37b0 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/AssociatePnfTest.java @@ -0,0 +1,201 @@ +package vid.automation.test.test; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import org.testng.annotations.Test; +import vid.automation.test.Constants; +import vid.automation.test.infra.Click; +import vid.automation.test.infra.Exists; +import vid.automation.test.infra.Get; +import vid.automation.test.infra.Wait; +import vid.automation.test.model.User; +import vid.automation.test.sections.PnfSearchAssociationPage; +import vid.automation.test.sections.VidBasePage; +import vid.automation.test.sections.ViewEditPage; +import vid.automation.test.services.BulkRegistration; +import vid.automation.test.services.SimulatorApi; +import vid.automation.test.services.UsersService; + +import java.io.IOException; + +public class AssociatePnfTest extends VidBaseTestCase { + + private UsersService usersService = new UsersService(); + private VidBasePage vidBasePage = new VidBasePage(); + private ViewEditPage viewEditPage = new ViewEditPage(); + private PnfSearchAssociationPage pnfSearchAssociationPage = new PnfSearchAssociationPage(); + private String serviceInstanceId = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d"; + private String pnfInstanceName = "MX_960-F722"; + private String pnfModelName = "pnf 0"; + + public AssociatePnfTest() throws IOException { } + //work with Simulator & asdc client + @Test + public void testAssociatePnf() throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance(); + BulkRegistration.associatePnf(); + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + goToExistingInstanceById(serviceInstanceId);//vid-test-444 + addPNF(pnfModelName);//vid-test-444 + searchPNF(pnfInstanceName); + testResultSearchPNF(); + associatePNF(); + vidBasePage.assertMsoRequestModal("COMPLETE - Success"); + vidBasePage.clickCloseButton(); + } + + @Test + public void testRainyAssociatePnf() throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance(); + BulkRegistration.associatePnfError(); + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + goToExistingInstanceById(serviceInstanceId); + addPNF(pnfModelName); + searchPNF(pnfInstanceName); + associatePNF(); + vidBasePage.assertMsoRequestModal("Error"); + vidBasePage.clickCloseButton(); + } + @Test + public void testRainyChoosePnf() throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance(); + BulkRegistration.associatePnfError(); + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + goToExistingInstanceById(serviceInstanceId); + String pnfName= "pnf 1"; + GeneralUIUtils.clickOnElementByTestId(Constants.ViewEdit.ADD_VNF_BUTTON_TEST_ID, 60); + String message = String.format(Constants.ViewEdit.OPTION_IN_DROPDOWN_NOT_EXISTS, + Constants.ViewEdit.ADD_VNF_BUTTON_TEST_ID,"Add network instance"); + boolean waitForElementResult = Wait.waitByTestId(Constants.ViewEdit.VNF_OPTION_TEST_ID_PREFIX + pnfName, 60); + Assert.assertTrue(message, !waitForElementResult); + } + @Test + public void testRainySearchPnfInstance() throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance(); + BulkRegistration.associatePnfError(); + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + goToExistingInstanceById(serviceInstanceId); + addPNF(pnfModelName); + searchPNF("AAAAA"); + Wait.angularHttpRequestsLoaded(); + WebElement errorMessageWebElement = GeneralUIUtils.getWebElementByTestID(Constants.PnfAssociation.NOT_FOUND_ERROR_TEST_ID, 60); + Assert.assertEquals("not found PNF instance, error message not equals the expected message","The specified PNF instance AAAAA does not exist in A&AI.\n" + + "Please note: A&AI is case sensitive",errorMessageWebElement.getText()); + Assert.assertTrue(Constants.PnfAssociation.NOT_FOUND_ERROR_MESSAGE, errorMessageWebElement!=null); + assertAssociateButtonState(false); + } + + private void assertAssociateButtonState(boolean shouldBeEnabled) { + WebElement associateWebElement = GeneralUIUtils.getWebElementByTestID(Constants.PnfAssociation.ASSOCIATE_PNF_TEST_ID, 60); + boolean enabledAssociate=associateWebElement.isEnabled(); + + if(shouldBeEnabled) { + Assert.assertTrue(Constants.PnfAssociation.PNF_ENABLE_ASSOCIATE_ERROR_MESSAGE, enabledAssociate); + }else{ + Assert.assertTrue(Constants.PnfAssociation.PNF_DISABLE_ASSOCIATE_ERROR_MESSAGE, !enabledAssociate); + } + GeneralUIUtils.ultimateWait(); + } + private void associatePNF() throws InterruptedException { + pnfSearchAssociationPage.clickAssociateButton(); + } + + private void addPNF(String name){ + viewEditPage.selectNodeInstanceToAdd(name); + checkServiceModelInfo(); + assertAssociateButtonState(false); + } + + private void searchPNF(String name){ + pnfSearchAssociationPage.setPnfName(name); + pnfSearchAssociationPage.clickSearchButton(); + } + + private void testResultSearchPNF(){ + checkPnfProperties(); + Wait.angularHttpRequestsLoaded(); + assertAssociateButtonState(true); + } + private void checkServiceModelInfo() { + Wait.angularHttpRequestsLoaded(); + //Service name + String elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.SERVIICE_NAME_KEY; + String infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"Demo Service 1"); + //model name + elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.MODEL_NAME; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"Test Pnf"); + //service instance name + elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.SERVICE_INSTANCE_NAME; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"vid-test-444"); + //Model Invariant UUID + elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.MODEL_INVARIANT_UUID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"61eba322-c758-48f6-8942-1a7625aaaffb"); + //ubscriber NameModel Invariant UUID + elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.SUBSCRIBER_NAME_KEY; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"USP VOICE"); + //Model Version + elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.MODEL_VERSION; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"0.1"); + //Model UUID + elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.MODEL_UUID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"089b1c03-ff6b-4914-8c20-a7de3d375e8d"); + //Model Customization UUID + elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.MODEL_CUSTOMIZATION_UUID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,"cabf6d26-c362-4444-ba06-f850e8af2d35"); + //Resource Name + elementTestId = Constants.serviceModelInfo.INFO_TEST_ID_PREFIX + Constants.serviceModelInfo.RESOURCE_NAME; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.serviceModelInfo.METADETA_ERROR_MESSAGE,elementTestId),infoItemText,pnfModelName); + } + + private void checkPnfProperties() { + //Pnf Instance unique name + String elementTestId = Constants.PnfAssociation.PNF_INSTANCE_NAME_TEST_ID; + String infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.PnfAssociation.PNF_INSTANCE_ERROR_MESSAGE,elementTestId),infoItemText,pnfInstanceName); + //Pnf Instance name2 + elementTestId = Constants.PnfAssociation.PNF_INSTANCE_NAME2_TEST_ID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.PnfAssociation.PNF_INSTANCE_ERROR_MESSAGE,elementTestId),infoItemText,"MX_960-F722-name-2"); + //Pnf Instance name2 source + elementTestId = Constants.PnfAssociation.PNF_INSTANCE_NAME2_SOURCE_TEST_ID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.PnfAssociation.PNF_INSTANCE_ERROR_MESSAGE,elementTestId),infoItemText,"MX_960-F722-name-2-source"); + //Pnf Instance Id + elementTestId = Constants.PnfAssociation.PNF_INSTANCE_ID_TEST_ID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.PnfAssociation.PNF_INSTANCE_ERROR_MESSAGE,elementTestId),infoItemText,"MX_960-F722-id"); + //Pnf Instance Equipment type + elementTestId = Constants.PnfAssociation.PNF_INSTANCE_EQUIP_TYPE_TEST_ID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.PnfAssociation.PNF_INSTANCE_ERROR_MESSAGE,elementTestId),infoItemText,"Switch"); + //Pnf Instance Equipment vendor + elementTestId = Constants.PnfAssociation.PNF_INSTANCE_EQUIP_VENDOR_TEST_ID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.PnfAssociation.PNF_INSTANCE_ERROR_MESSAGE,elementTestId),infoItemText,"Cisco"); + //Pnf Instance Equipment model + elementTestId = Constants.PnfAssociation.PNF_INSTANCE_EQUIP_MODEL_TEST_ID; + infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText(); + Assert.assertEquals(String.format(Constants.PnfAssociation.PNF_INSTANCE_ERROR_MESSAGE,elementTestId),infoItemText,"ASR1002-X"); + } + + + +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/BrowseASDCTest.java b/vid-automation/src/main/java/vid/automation/test/test/BrowseASDCTest.java new file mode 100644 index 000000000..eb1c62faa --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/BrowseASDCTest.java @@ -0,0 +1,221 @@ +package vid.automation.test.test; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.testng.annotations.Test; +import vid.automation.test.Constants; +import vid.automation.test.infra.Click; +import vid.automation.test.model.*; +import vid.automation.test.sections.BrowseASDCPage; +import vid.automation.test.sections.SideMenu; +import vid.automation.test.sections.ViewEditPage; +import vid.automation.test.services.ServicesService; +import vid.automation.test.services.UsersService; + +import java.io.IOException; + +public class BrowseASDCTest extends CreateInstanceDialogBaseTest { + private UsersService usersService = new UsersService(); + private ServicesService servicesService = new ServicesService(); + + public BrowseASDCTest() throws IOException { + } + + @Test + public void testPNFOnCreatePopup() throws Exception { + Service service = servicesService.getService("f39389e4-2a9c-4085-8ac3-04aea9c651be"); + BrowseASDCPage browseASDCPage = new BrowseASDCPage(); + SideMenu.navigateToBrowseASDCPage(); + browseASDCPage.clickDeployServiceButtonByServiceUUID(service.uuid); + assertThatServiceCreationDialogIsVisible(); + validatePNFCreationDialog(service, "Mobility", "pnf"); + } + + private void validatePNFCreationDialog(Service service, String serviceType, String serviceRole) { + assertServiceMetadata(serviceType, Constants.SERVICE_TYPE); + assertServiceMetadata(serviceRole, Constants.SERVICE_ROLE); + validateServiceCreationDialog(service); + } + + @Test + private void testPNFMacroInstantation() throws Exception { + User user = usersService.getUser(Constants.Users.MOBILITY_MOBILITY); + relogin(user.credentials); + + BrowseASDCPage browseASDCPage = new BrowseASDCPage(); + SideMenu.navigateToBrowseASDCPage(); + browseASDCPage.clickDeployServiceButtonByServiceUUID("f39389e4-2a9c-4085-8ac3-04aea9c651be"); + assertThatServiceCreationDialogIsVisible(); + assertDropdownPermittedItemsByValue(user.subscribers, Constants.CreateNewInstance.SUBSCRIBER_NAME_OPTION_CLASS); + browseASDCPage.selectSubscriberById("a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb"); + browseASDCPage.selectProductFamily("ebc3bc3d-62fd-4a3f-a037-f619df4ff034"); + GeneralUIUtils.ultimateWait(); + + browseASDCPage.selectServiceTypeByName("Mobility"); + GeneralUIUtils.ultimateWait(); + browseASDCPage.selectLcpRegion("mtn16"); + + browseASDCPage.selectTenant("a259ae7b7c3f493cb3d91f95a7c18149"); + assertAllIsPermitted(Constants.BrowseASDC.AIC_OPTION_CLASS); + browseASDCPage.selectAicZone("NFT1"); + + Click.onFirstSelectOptionById(Constants.OwningEntity.PROJECT_SELECT_TEST_ID); + Click.onFirstSelectOptionById(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID); + + browseASDCPage.clickConfirmButton(); + + assertSuccessfulServiceInstanceCreation(); + + browseASDCPage.clickCloseButton(); + + ViewEditPage viewEditPage = new ViewEditPage(); + viewEditPage.clickActivateButton(); + } + + @Test + private void testServiceInstantation() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + + BrowseASDCPage browseASDCPage = new BrowseASDCPage(); + SideMenu.navigateToBrowseASDCPage(); + + Service service = servicesService.getService("c079d859-4d81-4add-a9c3-94551f96e2b0"); + + browseASDCPage.clickDeployServiceButtonByServiceUUID(service.uuid); + validateServiceCreationDialog(service); + + browseASDCPage.setInstanceName(browseASDCPage.generateInstanceName()); + + assertDropdownPermittedItemsByValue(user.subscribers, Constants.CreateNewInstance.SUBSCRIBER_NAME_OPTION_CLASS); + browseASDCPage.selectSubscriberById("e433710f-9217-458d-a79d-1c7aff376d89"); + + String serviceType = "VIRTUAL USP"; + GeneralUIUtils.findAndWaitByText(serviceType, 30); + + assertDropdownPermittedItemsByValue(user.serviceTypes, Constants.CreateNewInstance.SERVICE_TYPE_OPTION_CLASS); + browseASDCPage.selectServiceTypeByName(serviceType); + + Click.onFirstSelectOptionById(Constants.OwningEntity.PROJECT_SELECT_TEST_ID); + Click.onFirstSelectOptionById(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID); + + browseASDCPage.selectSuppressRollback("false"); + + browseASDCPage.clickConfirmButton(); + + assertSuccessfulServiceInstanceCreation(); + + browseASDCPage.clickCloseButton(); + GeneralUIUtils.ultimateWait(); + + addVNF("VID-PCRF-05-15-17 0", "AAIAIC25", "092eb9e8e4b7412e8787dd091bc58e86", + "false", "some legacy region", "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", user.tenants); + addVolumeGroup("VidPcrf051517..pcrf_nimbus_pcm..module-4", "AAIAIC25", + "092eb9e8e4b7412e8787dd091bc58e86", "false", "some legacy region", user.tenants); + addVFModule("VidPcrf051517..pcrf_nimbus_psm..module-1", "AAIAIC25", + "092eb9e8e4b7412e8787dd091bc58e86", "false", "some legacy region", user.tenants); + } + + @Test + private void testCategoryParamsDropdownsExistsInCreationDialog() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + + BrowseASDCPage browseASDCPage = new BrowseASDCPage(); + SideMenu.navigateToBrowseASDCPage(); + + Service service = servicesService.getService("c079d859-4d81-4add-a9c3-94551f96e2b0"); + + browseASDCPage.clickDeployServiceButtonByServiceUUID(service.uuid); + assertThatServiceCreationDialogIsVisible(); + + GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID); + GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID); + } + + @Test + private void testOwningEntityRequiredAndProjectOptional() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + + BrowseASDCPage browseASDCPage = new BrowseASDCPage(); + SideMenu.navigateToBrowseASDCPage(); + + Service service = servicesService.getService("c079d859-4d81-4add-a9c3-94551f96e2b0"); + + browseASDCPage.clickDeployServiceButtonByServiceUUID(service.uuid); + validateServiceCreationDialog(service); + + browseASDCPage.setInstanceName(browseASDCPage.generateInstanceName()); + + assertDropdownPermittedItemsByValue(user.subscribers, Constants.CreateNewInstance.SUBSCRIBER_NAME_OPTION_CLASS); + browseASDCPage.selectSubscriberById("e433710f-9217-458d-a79d-1c7aff376d89"); + + String serviceType = "VIRTUAL USP"; + GeneralUIUtils.findAndWaitByText(serviceType, 30); + + assertDropdownPermittedItemsByValue(user.serviceTypes, Constants.CreateNewInstance.SERVICE_TYPE_OPTION_CLASS); + browseASDCPage.selectServiceTypeByName(serviceType); + + browseASDCPage.clickConfirmButton(); + + GeneralUIUtils.findAndWaitByText("Missing data", 5); + + Click.onFirstSelectOptionById(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID); + + browseASDCPage.clickConfirmButton(); + assertSuccessfulServiceInstanceCreation(); + } + + @Test + protected void testLineOfBusinessOptionalAndPlatformRequired() throws Exception { + + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + + BrowseASDCPage browseASDCPage = new BrowseASDCPage(); + SideMenu.navigateToBrowseASDCPage(); + + Service service = servicesService.getService("c079d859-4d81-4add-a9c3-94551f96e2b0"); + + browseASDCPage.clickDeployServiceButtonByServiceUUID(service.uuid); + validateServiceCreationDialog(service); + + browseASDCPage.setInstanceName(browseASDCPage.generateInstanceName()); + + assertDropdownPermittedItemsByValue(user.subscribers, Constants.CreateNewInstance.SUBSCRIBER_NAME_OPTION_CLASS); + browseASDCPage.selectSubscriberById("e433710f-9217-458d-a79d-1c7aff376d89"); + + String serviceType = "VIRTUAL USP"; + GeneralUIUtils.findAndWaitByText(serviceType, 30); + + assertDropdownPermittedItemsByValue(user.serviceTypes, Constants.CreateNewInstance.SERVICE_TYPE_OPTION_CLASS); + browseASDCPage.selectServiceTypeByName(serviceType); + + Click.onFirstSelectOptionById(Constants.OwningEntity.OWNING_ENTITY_SELECT_TEST_ID); + + browseASDCPage.clickConfirmButton(); + assertSuccessfulServiceInstanceCreation(); + + browseASDCPage.clickCloseButton(); + GeneralUIUtils.ultimateWait(); + + //now add the VNF + ViewEditPage viewEditPage = new ViewEditPage(); + + viewEditPage.selectNodeInstanceToAdd("VID-PCRF-05-15-17 0"); + viewEditPage.generateAndSetInstanceName(Constants.ViewEdit.VNF_INSTANCE_NAME_PREFIX); + viewEditPage.selectProductFamily("a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb"); + viewEditPage.selectLCPRegion("AAIAIC25"); + viewEditPage.selectTenant("092eb9e8e4b7412e8787dd091bc58e86"); + viewEditPage.setLegacyRegion("llkjhlkjhlkjh"); + + browseASDCPage.clickConfirmButton(); + + GeneralUIUtils.findAndWaitByText("Missing data", 5); + + Click.onFirstSelectOptionById(Constants.OwningEntity.PLATFORM_SELECT_TEST_ID); + + viewEditPage.clickConfirmButton(); + assertSuccessfulVNFCreation(); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/ChangeManagementTest.java b/vid-automation/src/main/java/vid/automation/test/test/ChangeManagementTest.java new file mode 100644 index 000000000..732d2998c --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/ChangeManagementTest.java @@ -0,0 +1,596 @@ +package vid.automation.test.test; + + +//import com.sun.tools.internal.jxc.ap.Const; + +import com.google.common.primitives.Ints; +import org.json.JSONException; +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.datatypes.UserCredentials; +import org.openqa.selenium.support.ui.Select; +import org.skyscreamer.jsonassert.JSONAssert; +import org.skyscreamer.jsonassert.JSONCompareMode; +import org.testng.annotations.*; +import vid.automation.test.Constants; +import vid.automation.test.infra.*; +import vid.automation.test.sections.ChangeManagementPage; +import vid.automation.test.services.SimulatorApi; + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.SQLException; +import java.sql.Statement; +import java.util.Arrays; +import java.util.List; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.greaterThan; +import static org.hamcrest.collection.IsEmptyCollection.empty; +import static org.hamcrest.core.IsNot.not; + +public class ChangeManagementTest extends VidBaseTestCase { + + @Test + public void testLeftPanelChangeManagementButton() { + Assert.assertTrue(Wait.byText(Constants.SideMenu.VNF_CHANGES)); + } + + @Test + public void testChangeManagementHeaderLine() { + ChangeManagementPage.openChangeManagementPage(); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.pageHeadlineId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.headlineNewButtonId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.headlineSearchInputId)); + } + + @Test + public void testOpenNewChangeManagementModal() { + ChangeManagementPage.openNewChangeManagementModal(); + Assert.assertTrue(Exists.modal()); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.newModalSubscriberInputId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.newModalServiceTypeInputId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.newModalVNFNameInputId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.newModalVNFTypeInputId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.newModalFromVNFVersionInputId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.newModalWorkFlowInputId)); + Assert.assertTrue(Exists.byId(Constants.generalSubmitButtonId)); + Assert.assertTrue(Exists.byId(Constants.generalCancelButtonId)); + Click.byId(Constants.generalCancelButtonId); + Wait.modalToDisappear(); + } + + private void openAndFill1stScreen(String vnfName, String vnfTargetVersion, String workflow) { + String subscriberId = VNF_DATA_WITH_IN_PLACE.subscriberId; + String serviceType = VNF_DATA_WITH_IN_PLACE.serviceType; + String vnfType = VNF_DATA_WITH_IN_PLACE.vnfType; + String vnfSourceVersion = VNF_DATA_WITH_IN_PLACE.vnfSourceVersion; + + ChangeManagementPage.openNewChangeManagementModal(); + Wait.angularHttpRequestsLoaded(); + ChangeManagementPage.selectSubscriberById(subscriberId); + Wait.angularHttpRequestsLoaded(); + SelectOption.byIdAndVisibleText(Constants.ChangeManagement.newModalServiceTypeInputId, serviceType); + Wait.angularHttpRequestsLoaded(); + SelectOption.byIdAndVisibleText(Constants.ChangeManagement.newModalVNFTypeInputId, vnfType); + Wait.angularHttpRequestsLoaded(); + SelectOption.byIdAndVisibleText(Constants.ChangeManagement.newModalFromVNFVersionInputId, vnfSourceVersion); + Wait.angularHttpRequestsLoaded(); + Click.byId(Constants.ChangeManagement.newModalVNFNameInputId); + Click.byText(vnfName); + Wait.angularHttpRequestsLoaded(); + if (vnfTargetVersion != null) { + SelectOption.byClassAndVisibleText(Constants.ChangeManagement.newModalTargetVersionInputsClass, vnfTargetVersion); + Wait.angularHttpRequestsLoaded(); + } + SelectOption.byIdAndVisibleText(Constants.ChangeManagement.newModalWorkFlowInputId, workflow); + + } + + public void scheduleChange2ndScreen(String duration, String fallback, String concurrencyLimit, String policy) { + + Wait.byText(Constants.ChangeManagement.schedulerModalNowLabel); + Click.byText(Constants.ChangeManagement.schedulerModalNowLabel); + +// Click.byId(Constants.ChangeManagement.schedulerModalStartDateInputId); //next month must be in the future +// Click.byClass(Constants.ChangeManagement.schedulerModalNextMonthButtonClass); +// Wait.byText(startDate); +// Click.byText(startDate); +// +// Click.byId(Constants.ChangeManagement.schedulerModalEndDateInputId); //next month must be in the future +// Click.byClass(Constants.ChangeManagement.schedulerModalNextMonthButtonClass); +// Wait.byText(endDate); +// Click.byText(endDate); + + SelectOption.byValue(Constants.ChangeManagement.schedulerModalHoursOption, Constants.ChangeManagement.schedulerModalTimeUnitSelectId); + + Input.text(duration, Constants.ChangeManagement.schedulerModalDurationInputTestId); + Input.text(fallback, Constants.ChangeManagement.schedulerModalFallbackInputTestId); + Input.text(concurrencyLimit, Constants.ChangeManagement.schedulerModalConcurrencyLimitInputTestId); + Wait.angularHttpRequestsLoaded(); + SelectOption.byIdAndVisibleText(Constants.ChangeManagement.schedulerModalPolicySelectId, policy); + + Click.byText(Constants.ChangeManagement.schedulerModalScheduleButtonText); + + } + + static class DB_CONFIG { + static String url = String.format("jdbc:mariadb://%s:%d/vid_portal", + System.getProperty("DB_HOST", System.getProperty("VID_HOST", "127.0.0.1" )), + Integer.valueOf(System.getProperty("DB_PORT", "3306")) + ); + static String username = "euser"; + static String password = "euser"; + + static final int userId = 822; + static final int roleVFlowLogicId = 10822; + static final int roleMobilityId = 11822; + static final int vnfZrdm3amdns02test2Id = 11822; + static final int vnfHarrisonKrisId = 12822; + } + + static class VNF_DATA_WITH_IN_PLACE { + static String subscriberId = "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb"; + static String serviceType = "vFlowLogic"; + static String vnfType = "vMobileDNS"; + static String vnfSourceVersion = "1.0"; + static String vnfName = "zrdm3amdns02test2"; + static String vnfTargetVersion = "5.0"; + static String workflowName = "VNF In Place Software Update"; + } + + @AfterClass + protected void dropUser822() { + System.out.println("Connecting database..."); + + try (Connection connection = DriverManager.getConnection(DB_CONFIG.url, DB_CONFIG.username, DB_CONFIG.password)) { + System.out.println("Database connected!"); + Statement stmt = connection.createStatement(); + stmt.addBatch("DELETE FROM `fn_user_role` WHERE `USER_ID` = " + DB_CONFIG.userId); + stmt.addBatch("DELETE FROM `fn_role` WHERE `ROLE_ID` = " + DB_CONFIG.roleVFlowLogicId); + stmt.addBatch("DELETE FROM `fn_role` WHERE `ROLE_ID` = " + DB_CONFIG.roleMobilityId); + stmt.addBatch("DELETE FROM `fn_user` WHERE `USER_ID` = " + DB_CONFIG.userId); + int[] executeBatch = stmt.executeBatch(); + + stmt = connection.createStatement(); + stmt.addBatch("DELETE FROM `vid_vnf_workflow` WHERE `VNF_DB_ID` = " + DB_CONFIG.vnfZrdm3amdns02test2Id); + stmt.addBatch("DELETE FROM `vid_vnf` WHERE `VNF_DB_ID` = " + DB_CONFIG.vnfZrdm3amdns02test2Id); + executeBatch = stmt.executeBatch(); + + stmt = connection.createStatement(); + stmt.addBatch("DELETE FROM `vid_vnf_workflow` WHERE `VNF_DB_ID` = " + DB_CONFIG.vnfHarrisonKrisId); + stmt.addBatch("DELETE FROM `vid_vnf` WHERE `VNF_DB_ID` = " + DB_CONFIG.vnfHarrisonKrisId); + executeBatch = stmt.executeBatch(); + + } catch (SQLException e) { + throw new IllegalStateException("Cannot connect the database!", e); + } + } + + @BeforeClass + protected void registerToSimulator() { + SimulatorApi.registerExpectation( + "changeManagement/ecompportal_getSessionSlotCheckInterval.json" + , "changeManagement/get_aai_get_subscribers.json" + , "changeManagement/get_aai_sub_details.json" + , "changeManagement/get_scheduler_details_short.json" + , "changeManagement/get_sdc_catalog_services_2f80c596.json" + , "changeManagement/get_service-design-and-creation.json" + , "changeManagement/get_vnf_data_by_globalid_and_service_type.json" + , "changeManagement/service-design-and-creation.json" + ); + } + + @BeforeClass + protected void prepareUser822() { + + dropUser822(); + + System.out.println("Connecting database..."); + + try (Connection connection = DriverManager.getConnection(DB_CONFIG.url, DB_CONFIG.username, DB_CONFIG.password)) { + + System.out.println("Database connected!"); + + /////////////////////////////// + // Add user with specific roles + Statement stmt = connection.createStatement(); + stmt.addBatch("INSERT INTO `fn_user` (`USER_ID`, `ORG_USER_ID`, `LOGIN_ID`, `LOGIN_PWD`) VALUES (" + DB_CONFIG.userId + ", 'Porfirio Gerhardt', '"+ DB_CONFIG.userId +"', '"+ DB_CONFIG.userId +"')"); + stmt.addBatch("INSERT INTO `fn_role` (`ROLE_ID`, `ROLE_NAME`, `ACTIVE_YN`, `PRIORITY`) VALUES (" + DB_CONFIG.roleVFlowLogicId + ", 'PACKET CORE___vFlowLogic', 'Y', 5)"); + stmt.addBatch("INSERT INTO `fn_role` (`ROLE_ID`, `ROLE_NAME`, `ACTIVE_YN`, `PRIORITY`) VALUES (" + DB_CONFIG.roleMobilityId + ", 'PACKET CORE___Mobility', 'Y', 5)"); + stmt.addBatch("INSERT INTO `fn_user_role` (`USER_ID`, `ROLE_ID`, `PRIORITY`, `APP_ID`) VALUES (" + DB_CONFIG.userId + ", 16, NULL, 1)"); + stmt.addBatch("INSERT INTO `fn_user_role` (`USER_ID`, `ROLE_ID`, `PRIORITY`, `APP_ID`) VALUES (" + DB_CONFIG.userId + ", " + DB_CONFIG.roleVFlowLogicId + ", NULL, 1)"); + stmt.addBatch("INSERT INTO `fn_user_role` (`USER_ID`, `ROLE_ID`, `PRIORITY`, `APP_ID`) VALUES (" + DB_CONFIG.userId + ", " + DB_CONFIG.roleMobilityId + ", NULL, 1)"); + int[] executeBatch = stmt.executeBatch(); + assertThat(Ints.asList(executeBatch), everyItem(greaterThan(0))); + + /////////////////////////////// + // Add 2 vnfs with some workflows + stmt = connection.createStatement(); + stmt.addBatch("INSERT INTO `vid_vnf` (`VNF_DB_ID`, `VNF_APP_UUID`, `VNF_APP_INVARIANT_UUID`) " + + "VALUES (" + DB_CONFIG.vnfZrdm3amdns02test2Id + ", '76e908e0-5201-44d2-a3e2-9e6128d05820', '72e465fe-71b1-4e7b-b5ed-9496118ff7a8')"); + stmt.addBatch("INSERT INTO `vid_vnf_workflow` (`VNF_DB_ID`, `WORKFLOW_DB_ID`) VALUES (" + DB_CONFIG.vnfZrdm3amdns02test2Id + ", 2)"); + stmt.addBatch("INSERT INTO `vid_vnf_workflow` (`VNF_DB_ID`, `WORKFLOW_DB_ID`) VALUES (" + DB_CONFIG.vnfZrdm3amdns02test2Id + ", 3)"); + executeBatch = stmt.executeBatch(); + assertThat(Ints.asList(executeBatch), everyItem(greaterThan(0))); + + stmt = connection.createStatement(); + stmt.addBatch("INSERT INTO `vid_vnf` (`VNF_DB_ID`, `VNF_APP_UUID`, `VNF_APP_INVARIANT_UUID`) " + + "VALUES (" + DB_CONFIG.vnfHarrisonKrisId + ", '0903e1c0-8e03-4936-b5c2-260653b96413', '00beb8f9-6d39-452f-816d-c709b9cbb87d')"); + stmt.addBatch("INSERT INTO `vid_vnf_workflow` (`VNF_DB_ID`, `WORKFLOW_DB_ID`) VALUES (" + DB_CONFIG.vnfHarrisonKrisId + ", 1)"); + stmt.addBatch("INSERT INTO `vid_vnf_workflow` (`VNF_DB_ID`, `WORKFLOW_DB_ID`) VALUES (" + DB_CONFIG.vnfHarrisonKrisId + ", 2)"); + executeBatch = stmt.executeBatch(); + assertThat(Ints.asList(executeBatch), everyItem(greaterThan(0))); + + } catch (SQLException e) { + throw new IllegalStateException("Cannot connect the database!", e); + } + + } + + @Override + protected UserCredentials getUserCredentials() { + return new UserCredentials("" + DB_CONFIG.userId, "" + DB_CONFIG.userId, "", "", ""); + } + + + @Test + public void testWorkflowVNFInPlaceSoftwareUpdateNotInWorkflowsListWhenNotExpected() { + List<String> workflows = getListOfWorkflowsFor("Harrison Kris"); + assertThat(workflows, not(hasItem(VNF_DATA_WITH_IN_PLACE.workflowName))); + } + + @Test + public void testWorkflowVNFInPlaceSoftwareUpdateInWorkflowsListWhenExpected() { + List<String> workflows = getListOfWorkflowsFor(VNF_DATA_WITH_IN_PLACE.vnfName); + assertThat(workflows, hasItem(VNF_DATA_WITH_IN_PLACE.workflowName)); + } + + public void openAndFill1stScreenWithWorkflowVNFInPlaceSoftwareUpdate() { + openAndFill1stScreen(VNF_DATA_WITH_IN_PLACE.vnfName, VNF_DATA_WITH_IN_PLACE.vnfTargetVersion, VNF_DATA_WITH_IN_PLACE.workflowName); + } + + @AfterMethod(alwaysRun = true) + public void closeForm() { + // Tries closing left-out popups, if any + // If none -- catch clause will swallow the exception + try { + Click.byId(Constants.generalCancelButtonId); + Click.byId(Constants.generalCancelButtonId); + Click.byId(Constants.generalCancelButtonId); + } catch (Exception | Error e) { + // ok, stop + } + Wait.modalToDisappear(); + } + + @Test + public void testWorkflowVNFInPlaceSoftwareUpdateShows3Fields() { + openAndFill1stScreenWithWorkflowVNFInPlaceSoftwareUpdate(); + + List<String> idsWithoutMatchingElement = + Stream.of( + "operations-timeout", + "existing-software-version", + "new-software-version") + .filter(id -> Get.byId(id) == null) + .collect(Collectors.toList()); + assertThat("all three special VNFInPlace fields should appear", idsWithoutMatchingElement, is(empty())); + + assertThat(Get.byId(Constants.generalSubmitButtonId).isEnabled(), is(false)); + } + + @Test + public void testWorkflowVNFInPlaceSoftwareUpdate3ValidValues() { + openAndFill1stScreenWithWorkflowVNFInPlaceSoftwareUpdate(); + + final String[][] options = { + {"true", "111", "222", "333"} + , {"true", "14710454", "Cz-Ou0EK5eH9.gAK1", "G9bUiFX3QM8xpxF8TlZ7b5T0"} + , {"true", "25316893", "fMx9V5kp.5.JGtYRhNGVTPoJ", "Jv5IieY0kTNjkfZ64bHXngR6"} + , {"true", "8", "3t3MhTRqkyjB85o5NC9OacAw", "B.bJ6f7KYI6WzDMR0fyNM9r4"} + , {"true", "3176", "ZlRS7tczf0cbMxQbBfyc6AP5", "1G1"} + , {"true", "78058488", "n", "WkH"} + , {"true", "501778", "1.d74LrJbBmcR.7bfvH.UZMX", "tFTAel7PS4RKEJeJ0b6mTeVT"} + , {"true", "76639623", "m2.EhbBxRE.rJj3j6qDtMxGR", "Rgkm-EPM1K0KAWm43Ex1wwjj"} + , {"true", "91244280", "zPDHRrXW65xR6GV.gVZND8C0", "mkrqFG26m7Vmv-28etQVyp04"} + , {"true", "8966", "7k2sRK2qSFRVCFpEvrlbmxAL", "IlvfmWTqzpF0Jo3elpZPHXx"} + , {"true", "01303495", "G26yl8B0NbLIKxu23h86QbZz", "vSou1seqCrcv9KoVbhlj4Wa4"} + , {"true", "787", "ce7joKCHYowpM2PtCb53Zs2v", ".qw1oY9HKjfAF2Yt05JNgib9"} + , {"true", "40116583", "-3bDEzEn.RbNnT2hWKQqf2HL", "QzlKlKZiIpc7sQ.EzO"} + , {"false", "", "222", "333"} + , {"false", "111", "", "333"} + , {"false", "111", "222", ""} + , {"false", "111a", "222", "333"} + , {"false", "aaa", "222", "333"} + , {"false", "111-", "222", "333"} +// , {"false", " 111", "222", "333"} +// , {"false", "111", "222 ", "333"} +// , {"false", "111", "222", " 333"} + , {"false", "111", "222", "3 33"} + , {"false", "111", "22,2", "333"} + , {"false", "111", "222~", "333"} + , {"false", "111", "222", "333&"} + , {"false", "$", "222", "333"} + , {"false", "111", "@", "333"} + , {"false", "111", "222", "^^^^^^"} + }; + + for (String[] option : options) { + fillVNFInPlace3Fields(option[1], option[2], option[3]); + assertThat("failed for set: " + Arrays.toString(option), + Get.byId(Constants.generalSubmitButtonId).isEnabled(), is(Boolean.parseBoolean(option[0]))); + } + + } + + private void fillVNFInPlace3Fields(String operationsTimeout, String existingSwVersion, String newSwVersion) { + Get.byId("operations-timeout").clear(); + Get.byId("existing-software-version").clear(); + Get.byId("new-software-version").clear(); + + Get.byId("operations-timeout").sendKeys(operationsTimeout); + Get.byId("existing-software-version").sendKeys(existingSwVersion); + Get.byId("new-software-version").sendKeys(newSwVersion); + } + + private List<String> getListOfWorkflowsFor(String vnfName) { + + openAndFill1stScreen(vnfName, null /*no matter*/, "Replace"); + + Select selectlist = new Select(Get.byId("workflow")); + List<String> workflows = selectlist.getOptions().stream().map(we -> we.getText()).collect(Collectors.toList()); + + Click.byId(Constants.generalCancelButtonId); + + return workflows; + } + + @DataProvider + public static Object[][] dataForUpdateWorkflowPartialWithInPlace() { + return new Object[][] { + { "1111", "22222", "33333" } + , {"8", "3t3MhTRqkyjB85o5NC9OacAw", "B.bJ6f7KYI6Wz-----DMR0.fyNM9r4"} + , {"78058488", "n", "WkH"} + }; + } + + @Test(dataProvider = "dataForUpdateWorkflowPartialWithInPlace") + public void testVidToMsoCallbackDataWithInPlaceSWUpdate(String operationsTimeout, String existingSwVersion, String newSwVersion) { + + openAndFill1stScreenWithWorkflowVNFInPlaceSoftwareUpdate(); + fillVNFInPlace3Fields(operationsTimeout, existingSwVersion, newSwVersion); + + String payload = "\"payload\":\"{\\\"existing-software-version\\\":\\\""+ existingSwVersion +"\\\",\\\"new-software-version\\\":\\\""+ newSwVersion +"\\\",\\\"operation-timeout\\\":\\\""+ operationsTimeout +"\\\"}\","; + + assertThatVidToMsoCallbackDataIsOk(VNF_DATA_WITH_IN_PLACE.workflowName, payload); + } + + @Test + public void testVidToMsoCallbackData() { + String workflow = "Replace"; + + openAndFill1stScreen(VNF_DATA_WITH_IN_PLACE.vnfName, VNF_DATA_WITH_IN_PLACE.vnfTargetVersion, workflow); + + assertThatVidToMsoCallbackDataIsOk(workflow, ""); + } + + private void assertThatVidToMsoCallbackDataIsOk(String workflow, String payload) { + Assert.assertTrue(Get.byId(Constants.generalSubmitButtonId).isEnabled()); + Click.byId(Constants.generalSubmitButtonId); + + String vidToMsoCallbackData = Input.getValueByTestId("vidToMsoCallbackData"); + + String modelInvariantId = "72e465fe-71b1-4e7b-b5ed-9496118ff7a8"; + String vnfInstanceId = "8e5e3ba1-3fe6-4d86-966e-f9f03dab4855"; + String expected = getExpectedVidToMsoCallbackData(modelInvariantId, vnfInstanceId, VNF_DATA_WITH_IN_PLACE.vnfName, VNF_DATA_WITH_IN_PLACE.vnfTargetVersion, workflow, payload); + + try { + JSONAssert.assertEquals("built mso request is not ok", expected, vidToMsoCallbackData, JSONCompareMode.STRICT); + } catch (JSONException e) { + throw new RuntimeException(e); + } + + Click.byId(Constants.generalCancelButtonId); + } + + @Test(enabled = false) + public void testUpdateWorkflowNow() { + + String workflow = "Update"; + + String duration = "1"; + String fallback = "1"; + String concurrencyLimit = "1"; + String policy = "SNIRO_1710.Config_MS_PlacementOptimizationPolicy_dhv_v1.1.xml"; + + openAndFill1stScreen(VNF_DATA_WITH_IN_PLACE.vnfName, VNF_DATA_WITH_IN_PLACE.vnfTargetVersion, workflow); + Assert.assertTrue(Get.byId(Constants.generalSubmitButtonId).isEnabled()); + Click.byId(Constants.generalSubmitButtonId); + + scheduleChange2ndScreen(duration, fallback, concurrencyLimit, policy); + } + + @Test + public void testNewChangeManagementCreation() { + ChangeManagementPage.openChangeManagementPage(); + + //TODO: After scheduler will be ready than we will examine if the creation working fine. + } + + @Test + public void testMainDashboardTable() { + ChangeManagementPage.openChangeManagementPage(); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.dashboardActiveTabId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.dashboardFinishedTabId)); + + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.dashboardActiveTableId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.dashboardInProgressTheadId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.dashboardPendingTheadId)); + + Click.byId(Constants.ChangeManagement.dashboardFinishedTabId); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.dashboardFinishedTableId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.dashboardFinishedTheadId)); + Click.byId(Constants.ChangeManagement.dashboardActiveTabId); + } + + @Test + public void testMainDashboardTableContent() { + ChangeManagementPage.openChangeManagementPage(); + + //TODO: After scheduler will be ready than we will examine if the content is valid. + } + + @Test(enabled = false) + public void testOpenFailedStatusModal() { + ChangeManagementPage.openChangeManagementPage(); + + if(!Exists.byClass(Constants.ChangeManagement.failedIconClass)) { + //TODO: Create a job which will shown with status fail. + } + + Click.byClass(Constants.ChangeManagement.failedIconClass); + Wait.modalToBeDisplayed(); + Assert.assertTrue(Exists.modal()); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.failedModalHeaderId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.failedModalContentId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.failedModalRetryButtonId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.failedModalRollbackButtonId)); + + Click.byClass(Constants.generalCloseModalButtonClass); + Wait.modalToDisappear(); + } + + @Test(enabled = false) + public void testOpenInProgressStatusModal() { + ChangeManagementPage.openChangeManagementPage(); + + if(!Exists.byClass(Constants.ChangeManagement.processIconClass)) { + //TODO: Create a job which will shown with status in-progress. + } + + Click.byClass(Constants.ChangeManagement.processIconClass); + Wait.modalToBeDisplayed(); + Assert.assertTrue(Exists.modal()); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.inProgressModalHeaderId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.inProgressModalContentId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.inProgressModalStopButtonId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.inProgressModalRollbackButtonId)); + + Click.byClass(Constants.generalCloseModalButtonClass); + Wait.modalToDisappear(); + } + + @Test(enabled = false) + public void testOpenAlertStatusModal() { + ChangeManagementPage.openChangeManagementPage(); + + if(!Exists.byClass(Constants.ChangeManagement.alertIconClass)) { + //TODO: Create a job which will shown with status alert. + } + + Click.byClass(Constants.ChangeManagement.alertIconClass); + Wait.modalToBeDisplayed(); + Assert.assertTrue(Exists.modal()); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.alertModalHeaderId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.alertModalContentId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.alertModalContinueButtonId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.alertModalRollbackButtonId)); + + Click.byClass(Constants.generalCloseModalButtonClass); + Wait.modalToDisappear(); + } + + @Test(enabled = false) + public void testOpenPendingStatusModal() { + ChangeManagementPage.openChangeManagementPage(); + + if(!Exists.byClass(Constants.ChangeManagement.pendingIconClass)) { + //TODO: Create a job which will shown with status pending. + } + + Click.byClass(Constants.ChangeManagement.pendingIconClass); + Wait.modalToBeDisplayed(); + Assert.assertTrue(Exists.modal()); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.pendingModalHeaderId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.pendingModalContentId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.pendingModalRescheduleButtonId)); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.pendingModalRollbackButtonId)); + + Click.byClass(Constants.generalCloseModalButtonClass); + Wait.modalToDisappear(); + } + + @Test(enabled = false) + public void testSuccessCancelPendingWorkflow() { + ChangeManagementPage.openChangeManagementPage(); + Wait.angularHttpRequestsLoaded(); + + Click.byClass(Constants.ChangeManagement.cancelPendingButtonClass); //cancel pending workflow modal + Wait.modalToBeDisplayed(); + Assert.assertTrue(Exists.modal()); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.pendingModalHeaderId)); + Assert.assertTrue(Exists.byClass(Constants.ChangeManagement.pendingModalCancelWorkflowButtonClass)); + Click.byClass(Constants.ChangeManagement.pendingModalCancelWorkflowButtonClass); + Wait.angularHttpRequestsLoaded(); + + Wait.modalToBeDisplayed(); //success alert modal should appear + Assert.assertTrue(Exists.modal()); + Assert.assertTrue(Exists.byId(Constants.ChangeManagement.alertModalHeaderId)); + Assert.assertTrue(Exists.byClassAndText(Constants.generalModalTitleClass, "Success")); + Click.byClass(Constants.generalCloseModalButtonClass); + Wait.modalToDisappear(); + //TODO check the workflow deleted from table/changed to deleted action + } + + private String getExpectedVidToMsoCallbackData(String modelInvariantId, String vnfInstanceId, String vnfName, String vnfTargetVersion, String workflow, String payload) { + return "" + + "{" + + " \"requestType\": \"" + workflow + "\"," + + " \"requestDetails\": [" + + " {" + + " \"vnfName\": \"" + vnfName + "\"," + + " \"vnfInstanceId\": \"" + vnfInstanceId + "\"," + + " \"modelInfo\": {" + + " \"modelType\": \"vnf\"," + + " \"modelInvariantId\": \"" + modelInvariantId + "\"," + + " \"modelVersionId\": \"76e908e0-5201-44d2-a3e2-9e6128d05820\"," + + " \"modelName\": \"" + vnfName + "\"," + + " \"modelVersion\": \"" + vnfTargetVersion + "\"," + + " \"modelCustomizationId\": \"c00e8fc8-af39-4da8-8c78-a7efc2fe5994\"" + + " }," + + " \"cloudConfiguration\": {" + + " \"lcpCloudRegionId\": \"mdt1\"," + + " \"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\"" + + " }," + + " \"requestInfo\": {" + + " \"source\": \"VID\"," + + " \"suppressRollback\": false," + + " \"requestorId\": \"az2016\"" + + " }," + + " \"relatedInstanceList\": [" + + " {" + + " \"relatedInstance\": {" + + " \"instanceId\": \"97315a05-e6f3-4c47-ae7e-d850c327aa08\"," + + " \"modelInfo\": {" + + " \"modelType\": \"service\"," + + " \"modelInvariantId\": \"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0\"," + + " \"modelVersionId\": \"76e908e0-5201-44d2-a3e2-9e6128d05820\"," + + " \"modelName\": \"action-data\"," + + " \"modelVersion\": \"1.0\"" + + " }" + + " }" + + " }" + + " ]," + + " \"requestParameters\": {" + + payload + + " \"usePreload\": true" + + " }" + + " }" + + " ]" + + "}"; + } + +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/CreateInstanceDialogBaseTest.java b/vid-automation/src/main/java/vid/automation/test/test/CreateInstanceDialogBaseTest.java new file mode 100644 index 000000000..ff7dc3441 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/CreateInstanceDialogBaseTest.java @@ -0,0 +1,35 @@ +package vid.automation.test.test; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import vid.automation.test.Constants; +import vid.automation.test.model.Service; + +public class CreateInstanceDialogBaseTest extends VidBaseTestCase { + void assertServiceMetadata(String expectedMetadata, String actualMetadata) { + WebElement serviceNameElem = GeneralUIUtils.getWebElementByTestID(actualMetadata); + String actualServiceName = serviceNameElem.getText(); + Assert.assertEquals(expectedMetadata, actualServiceName); + } + + void validateServiceCreationDialog(Service expectedService) { + assertThatServiceCreationDialogIsVisible(); + assertServiceMetadata(expectedService.name, Constants.SERVICE_NAME); + assertServiceMetadata(expectedService.uuid, Constants.SERVICE_UUID); + assertServiceMetadata(expectedService.invariantUuid, Constants.SERVICE_INVARIANT_UUID); + assertServiceMetadata(expectedService.category, Constants.SERVICE_CATEGORY); + assertServiceMetadata(expectedService.version, Constants.SERVICE_VERSION); + assertServiceMetadata(expectedService.description, Constants.SERVICE_DESCRIPTION); + } + + void assertThatServiceCreationDialogIsVisible() { + boolean byText = GeneralUIUtils.findAndWaitByText(Constants.BrowseASDC.CREATE_SERVICE_INSTANCE, 15); + Assert.assertTrue(byText); + } + + void assertSuccessfulServiceInstanceCreation() { + boolean byText = GeneralUIUtils.findAndWaitByText(Constants.BrowseASDC.SERVICE_INSTANCE_CREATED_SUCCESSFULLY_TEXT, 100); + Assert.assertTrue(Constants.BrowseASDC.SERVICE_INSTANCE_CREATION_FAILED_MESSAGE, byText); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/CreateNewInstanceTest.java b/vid-automation/src/main/java/vid/automation/test/test/CreateNewInstanceTest.java new file mode 100644 index 000000000..46238acac --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/CreateNewInstanceTest.java @@ -0,0 +1,84 @@ +package vid.automation.test.test; + +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import org.testng.Assert; +import org.testng.annotations.Test; +import vid.automation.test.Constants; +import vid.automation.test.model.Service; +import vid.automation.test.model.User; +import vid.automation.test.sections.CreateNewInstancePage; +import vid.automation.test.sections.SideMenu; +import vid.automation.test.services.ServicesService; +import vid.automation.test.services.UsersService; + +import java.io.IOException; + +public class CreateNewInstanceTest extends CreateInstanceDialogBaseTest { + private UsersService usersService = new UsersService(); + private ServicesService servicesService = new ServicesService(); + + public CreateNewInstanceTest() throws IOException { + } + + @Test + private void testCreateNewServiceInstance() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + + SideMenu.navigateToCreateNewServicePage(); + + CreateNewInstancePage createNewInstancePage = new CreateNewInstancePage(); + + String subscriberName = "USP VOICE"; + assertDropdownPermittedItemsByValue(user.subscribers, Constants.CreateNewInstance.SUBSCRIBER_NAME_OPTION_CLASS); + createNewInstancePage.selectSubscriberById("e433710f-9217-458d-a79d-1c7aff376d89"); + createNewInstancePage.clickSubmitButton(); + assertSuccessfulSelection(Constants.CreateNewInstance.SELECTED_SUBSCRIBER_NAME_TEST_ID, subscriberName); + + String serviceType = "VIRTUAL USP"; + assertDropdownPermittedItemsByName(user.serviceTypes, Constants.CreateNewInstance.SERVICE_TYPE_OPTION_CLASS); + createNewInstancePage.selectServiceTypeByName(serviceType); + createNewInstancePage.clickSubmitButton(); + assertSuccessfulSelection(Constants.CreateNewInstance.SELECTED_SERVICE_TYPE_NAME_TEST_ID, serviceType); + + Service service = servicesService.getService( "c079d859-4d81-4add-a9c3-94551f96e2b0"); + + createNewInstancePage.clickDeployServiceButtonByServiceUUID(service.uuid); + + validateServiceCreationDialog(service, subscriberName, serviceType); + + String instanceName = createNewInstancePage.generateInstanceName(); + createNewInstancePage.setInstanceName(instanceName); + createNewInstancePage.selectSuppressRollback("false"); + createNewInstancePage.clickConfirmButton(); + + assertSuccessfulServiceInstanceCreation(); + + createNewInstancePage.clickCloseButton(); + + GeneralUIUtils.ultimateWait(); + + goToExistingInstanceByName(instanceName); + + addVNF("VID-PCRF-05-15-17 0", "AAIAIC25", "092eb9e8e4b7412e8787dd091bc58e86", + "false", "some legacy region", "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", user.tenants); + addVolumeGroup("VidPcrf051517..pcrf_nimbus_pcm..module-4", "AAIAIC25", + "092eb9e8e4b7412e8787dd091bc58e86", "false", "some legacy region", user.tenants); + addVFModule("VidPcrf051517..pcrf_nimbus_psm..module-1", "AAIAIC25", + "092eb9e8e4b7412e8787dd091bc58e86", "false", "some legacy region", user.tenants); + } + + private void assertSuccessfulSelection(String elementTestId, String expectedSelection) { + GeneralUIUtils.ultimateWait(); + WebElement selectedElement = GeneralUIUtils.getWebElementByTestID(elementTestId, 30); + Assert.assertEquals(selectedElement.getText(), expectedSelection); + } + + private void validateServiceCreationDialog(Service expectedService, String subscriberName, String serviceType) { + assertServiceMetadata(subscriberName, Constants.SUBSCRIBER_NAME); + assertServiceMetadata(serviceType, Constants.SERVICE_TYPE); + validateServiceCreationDialog(expectedService); + + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/EnvironmentsTest.java b/vid-automation/src/main/java/vid/automation/test/test/EnvironmentsTest.java new file mode 100644 index 000000000..1c8101953 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/EnvironmentsTest.java @@ -0,0 +1,484 @@ +package vid.automation.test.test; + +import com.google.common.collect.ImmutableMap; +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.WebElement; +import org.springframework.http.HttpStatus; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; +import vid.automation.test.Constants; +import vid.automation.test.infra.*; +import vid.automation.test.model.Environment; +import vid.automation.test.sections.SideMenu; +import vid.automation.test.services.SimulatorApi.RegistrationStrategy; + +import vid.automation.test.sections.TestEnvironmentPage; +import vid.automation.test.sections.VidBasePage; +import vid.automation.test.services.SimulatorApi; +import vid.automation.test.utils.ReadFile; + +import java.util.List; +import java.util.Map; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import static vid.automation.test.Constants.TestEnvironments.REFRESH_BUTTON; + + +/* + +1. Activate + a. Happy scenario + i. Polling screen is displayed + ii. Environment status become active in environments table + iii. Button become deactivation + iv. Attach file button is shown + b. Non JSON file content – error is shown + c. Invalid manifest format in the JSON – error is shown + d. MSO Error – 500/400 – error is shown +2. Attach manifest + a. Happy scenario + i. Polling screen is displayed + b. MSO Error – 500/400 – error is shown + +3. Deactivate + a. Happy scenario + i. Polling screen is displayed + ii. Environment status become inactive in environments table + iii. Button become activation + iv. Attach file button is not shown + b. MSO Error – 500/400 – error is shown + + */ + +public class EnvironmentsTest extends VidBaseTestCase { + + public static final String GET_EMPTY_OPERATIONAL_ENVIRONMENT_JSON = "get_empty_operational_environment.json"; + public static final String GET_OPERATIONAL_ENVIRONMENT_JSON = "get_operational_environment.json"; + public static final String GET_FULL_OPERATIONAL_ENVIRONMENT_JSON = "get_full_operational_environment.json"; + public static final String GET_ERROR_OPERATIONAL_ENVIRONMENT_JSON = "get_error_operational_environment.json"; + public static final String POST_OPERATIONAL_ENVIRONMENT_JSON = "post_operational_environment.json"; + static final String ENVIRONMENTS_CONF = "environments"; + static final String NEW_ENVIRONMENT_CONF = "newEnvironment"; + + public static final String ENV_ID_FOR_ACTIVATION = "f07ca256-96dd-40ad-b4d2-7a77e2a974eb"; + public static final String ENV_ID_FOR_DEACTIVATION = "f07ca256-96dd-40ad-b4d2-7a77e2a974ec"; + private VidBasePage vidBasePage = new VidBasePage(); + + public static enum FailureType { + ACTIVATION_FAILURE, + DEACTIVATION_FAILURE, + GET_STATUS_FAILURE + } + + @Test + public void testLeftPanelTestEnvironmentButton() { + List<WebElement> leftPanelButtons = Get.byClass(Constants.SideMenu.buttonClass); + Assert.assertTrue(Wait.byText(Constants.SideMenu.TEST_ENVIRONMENTS)); + } + + @Test + public void testEnvironmentHeaderLine() { + SideMenu.navigateToTestEnvironmentsPage(); + Assert.assertTrue(Exists.byTestId(Constants.TestEnvironments.PAGE_HEADLINE)); + Assert.assertTrue(Exists.byTestId(Constants.TestEnvironments.HEADLINE_NEW_BUTTON)); + Assert.assertTrue(Exists.byTestId(Constants.TestEnvironments.HEADLINE_SEARCH_INPUT)); + } + + @Test + public void testTable() throws Exception { + SimulatorApi.registerExpectation(GET_OPERATIONAL_ENVIRONMENT_JSON); + vidBasePage.refreshPage(); + Map <String, List<String>> file = ReadFile.getJsonFile(ENVIRONMENTS_CONF, Map.class); + String tableId = Constants.TestEnvironments.ENVIRONMENTS_TABLE; + SideMenu.navigateToTestEnvironmentsPage(); + boolean emptyTableMessage = Exists.byTestId(Constants.TestEnvironments.NO_DATA_MESSAGE); + boolean errorMessage = Exists.byTestId(Constants.TestEnvironments.ERROR_MESSAGE); + Assert.assertFalse(emptyTableMessage || errorMessage); + List<String> headers = Get.tableHeaderValuesByTestId(tableId); + Assert.assertEquals(file.get(Constants.TestEnvironments.HEADERS_LIST), headers); + List<List<String>> body = Get.tableBodyValuesByTestId(tableId); + Assert.assertEquals(file.get(Constants.TestEnvironments.BASIC_LIST), body); + } + + @Test + public void testSortTable() throws Exception { + SimulatorApi.registerExpectation(GET_OPERATIONAL_ENVIRONMENT_JSON, RegistrationStrategy.CLEAR_THEN_SET); + vidBasePage.refreshPage(); + Map <String, List<String>> file = ReadFile.getJsonFile(ENVIRONMENTS_CONF, Map.class); + String tableId = Constants.TestEnvironments.ENVIRONMENTS_TABLE; + SideMenu.navigateToTestEnvironmentsPage(); + Click.byClass(Constants.TestEnvironments.TABLE_HEADER_ASC); + GeneralUIUtils.ultimateWait(); + List<List<String>> body = Get.tableBodyValuesByTestId(tableId); + Assert.assertEquals(file.get(Constants.TestEnvironments.SORTED_LIST), body); + GeneralUIUtils.ultimateWait(); + } + + @Test + public void testFilterTable() throws Exception { + SimulatorApi.registerExpectation(GET_OPERATIONAL_ENVIRONMENT_JSON, RegistrationStrategy.CLEAR_THEN_SET); + vidBasePage.refreshPage(); + Map <String, List<String>> file = ReadFile.getJsonFile(ENVIRONMENTS_CONF, Map.class); + String tableId = Constants.TestEnvironments.ENVIRONMENTS_TABLE; + SideMenu.navigateToTestEnvironmentsPage(); + Input.text(Constants.TestEnvironments.TEXT_TO_FILTER, Constants.TestEnvironments.SEARCH_INPUT); + GeneralUIUtils.ultimateWait(); + List<List<String>> body = Get.tableBodyValuesByTestId(tableId); + Assert.assertEquals(file.get(Constants.TestEnvironments.FILTERED_LIST), body); + GeneralUIUtils.ultimateWait(); + } + + + @Test + public void testEmptyTableMessage() throws Exception { + SimulatorApi.registerExpectation(GET_EMPTY_OPERATIONAL_ENVIRONMENT_JSON); + vidBasePage.refreshPage(); + SideMenu.navigateToTestEnvironmentsPage(); + boolean emptyTableMessage = Exists.byTestId(Constants.TestEnvironments.NO_DATA_MESSAGE); + Assert.assertTrue(emptyTableMessage); + Assert.assertFalse(Exists.byTestId(Constants.TestEnvironments.TRY_AGAIN_BUTTON)); + Assert.assertFalse(Exists.byTestId(Constants.TestEnvironments.ENVIRONMENTS_TABLE)); + GeneralUIUtils.ultimateWait(); + } + + @Test + public void testErrorMessage() throws Exception { + SimulatorApi.registerExpectation(GET_ERROR_OPERATIONAL_ENVIRONMENT_JSON); + vidBasePage.refreshPage(); + SideMenu.navigateToTestEnvironmentsPage(); + boolean errorMessage = Exists.byTestId(Constants.TestEnvironments.ERROR_MESSAGE); + Assert.assertTrue(errorMessage); + Assert.assertTrue(Exists.byTestId(Constants.TestEnvironments.TRY_AGAIN_BUTTON)); + Assert.assertFalse(Exists.byTestId(Constants.TestEnvironments.ENVIRONMENTS_TABLE)); + GeneralUIUtils.ultimateWait(); + } + + @Test + public void testNewEnvironmentPopup() throws Exception { + SimulatorApi.registerExpectation(GET_OPERATIONAL_ENVIRONMENT_JSON, RegistrationStrategy.CLEAR_THEN_SET); + SimulatorApi.registerExpectation(POST_OPERATIONAL_ENVIRONMENT_JSON); + SimulatorApi.registerExpectation("environment/status/get_cloud_resources_request_status.json", + ImmutableMap.of("status_message", Constants.TestEnvironments.environmentCreatedSuccesfullyMessage, + "REQUEST-TYPE","Create")); + vidBasePage.refreshPage(); + Environment environment = ReadFile.getJsonFile(NEW_ENVIRONMENT_CONF, Environment.class); + SideMenu.navigateToTestEnvironmentsPage(); + Click.byTestId(Constants.TestEnvironments.HEADLINE_NEW_BUTTON); + Wait.modalToBeDisplayed(); + Assert.assertTrue(Exists.byTestId(Constants.TestEnvironments.NEW_ENVIRONMENT_FORM)); + + boolean errorMessage = Exists.byTestId(Constants.TestEnvironments.POPUP_ERROR_MESSAGE); + Assert.assertFalse(errorMessage); + + Assert.assertFalse(Get.byTestId(Constants.TestEnvironments.SUBMIT_BUTTON).isEnabled()); + Input.text(environment.operationalEnvironmentName, Constants.TestEnvironments.INSTANCE_NAME_INPUT); + + GeneralUIUtils.ultimateWait(); + SelectOption.byTestIdAndVisibleText(environment.EcompEnvironmentId, Constants.TestEnvironments.ECOMP_ID_DROP_DOWN); + + String ecompNameText = Input.getValueByTestId(Constants.TestEnvironments.ECOMP_NAME_INPUT); + Assert.assertEquals(environment.EcompEnvironmentName, ecompNameText); + + String tenantContextText = Input.getValueByTestId(Constants.TestEnvironments.TENANT_CONTEXT_INPUT); + Assert.assertEquals(environment.tenantContext, tenantContextText); + + String environmentTypeDefault = Get.selectedOptionText(Constants.TestEnvironments.ENVIRONMENT_TYPE_DROP_DOWN); + Assert.assertEquals(environment.operationalEnvironmentType, environmentTypeDefault); + + SelectOption.byTestIdAndVisibleText(environment.workloadContext, Constants.TestEnvironments.WORKLOAD_CONTEXT_DROP_DOWN); + + WebElement submitButton = Get.byTestId(Constants.TestEnvironments.SUBMIT_BUTTON); + Assert.assertTrue(submitButton.isEnabled()); + Click.byTestId(Constants.TestEnvironments.SUBMIT_BUTTON); + boolean waitForTextResult = Wait.waitByClassAndText("status", Constants.TestEnvironments.environmentCreatedSuccesfullyMessage, 60); + assertTrue(Constants.TestEnvironments.environmentCreatedSuccesfullyMessage + " message didn't appear on time", waitForTextResult); + + vidBasePage.clickCloseButton(); + GeneralUIUtils.ultimateWait(); + + // refresh table + Map <String, List<String>> file = ReadFile.getJsonFile(ENVIRONMENTS_CONF, Map.class); + String tableId = Constants.TestEnvironments.ENVIRONMENTS_TABLE; + SimulatorApi.registerExpectation(GET_FULL_OPERATIONAL_ENVIRONMENT_JSON, + ImmutableMap.of("new_name", environment.operationalEnvironmentName, "new_tenant", environment.tenantContext, "new_ecomp_id", environment.EcompEnvironmentId, "new_ecomp_name", environment.EcompEnvironmentName, "new_workload_context", environment.workloadContext), RegistrationStrategy.CLEAR_THEN_SET); + Click.byTestId(REFRESH_BUTTON); + Wait.angularHttpRequestsLoaded(); + List<List<String>> body = Get.tableBodyValuesByTestId(tableId); + Assert.assertEquals(file.get(Constants.TestEnvironments.FULL_LIST), body); + GeneralUIUtils.ultimateWait(); + } + + @Test + public void testAaiErrorNewEnvironmentPopup() throws Exception { + SimulatorApi.registerExpectation(GET_ERROR_OPERATIONAL_ENVIRONMENT_JSON); + vidBasePage.refreshPage(); + SideMenu.navigateToTestEnvironmentsPage(); + Click.byTestId(Constants.TestEnvironments.HEADLINE_NEW_BUTTON); + Assert.assertTrue(Exists.byTestId(Constants.TestEnvironments.NEW_ENVIRONMENT_FORM)); + GeneralUIUtils.ultimateWait(); + boolean errorMessage = Exists.byTestId(Constants.TestEnvironments.POPUP_ERROR_MESSAGE); + Assert.assertTrue(errorMessage); + Click.byTestId(Constants.TestEnvironments.CANCEL_BUTTON); + Wait.modalToDisappear(); + GeneralUIUtils.ultimateWait(); + } + + @Test + public void testCancelNewPopup() { + SideMenu.navigateToTestEnvironmentsPage(); + Click.byTestId(Constants.TestEnvironments.HEADLINE_NEW_BUTTON); + Assert.assertTrue(Exists.modal()); + Click.byTestId(Constants.TestEnvironments.CANCEL_BUTTON); + Wait.modalToDisappear(); + Assert.assertFalse(Exists.modal()); + GeneralUIUtils.ultimateWait(); + } + + @Test + public void testCloseNewPopup() { + SideMenu.navigateToTestEnvironmentsPage(); + Click.byTestId(Constants.TestEnvironments.HEADLINE_NEW_BUTTON); + Wait.modalToBeDisplayed(); + Assert.assertTrue(Exists.modal()); + GeneralUIUtils.ultimateWait(); + Click.byClass(Constants.TestEnvironments.MODAL_CLOSE_BUTTON_CLASS); + Wait.modalToDisappear(); + GeneralUIUtils.ultimateWait(); + Assert.assertFalse(Exists.modal()); + GeneralUIUtils.ultimateWait(); + } + + @Test + public void testApplicationEnvironmentActivation() throws Exception { + String envId = ENV_ID_FOR_ACTIVATION; + SimulatorApi.registerExpectation("environment/activate/get_operational_environments_aai1.json"); + SimulatorApi.registerExpectation("environment/activate/post_activate_operational_environment.json", + ImmutableMap.of("ENV-UUID", envId)); + SimulatorApi.registerExpectation("environment/status/get_cloud_resources_request_status.json", + ImmutableMap.of("status_message", Constants.TestEnvironments.environmentActivatedSuccesfullyMessage, + "REQUEST-TYPE","Activate")); + clickOnActivationButtonAndUploadFile(envId, "manifest.json"); + + Click.byId(Constants.generalSubmitButtonId); + SimulatorApi.registerExpectation("environment/activate/get_operational_environments_aai1.json", + ImmutableMap.of("Deactivate", "Activate")); + + boolean waitForTextResult = Wait.waitByClassAndText("status", Constants.TestEnvironments.environmentActivatedSuccesfullyMessage, 60); + assertTrue(Constants.TestEnvironments.environmentActivatedSuccesfullyMessage + " message didn't appear on time", waitForTextResult); + + vidBasePage.clickCloseButton(); + + GeneralUIUtils.ultimateWait(); + + WebElement deactivationButton = TestEnvironmentPage.getTestEnvironmentDeactivationButton(envId); + assertTrue("Failed to find Deactivate button for test env with id: "+envId, deactivationButton.isDisplayed()); + + WebElement status = Get.byId(Constants.TestEnvironments.environmentStatusIdPrefix + envId); + assertEquals("Active", status.getText()); + + WebElement attachButton = TestEnvironmentPage.getTestEnvironmentAttachButton(envId); + assertTrue("Failed to find Attach button for test env with id: "+envId, attachButton.isDisplayed()); + + //make sure page is clickable + SideMenu.navigateToTestEnvironmentsPage(); + } + + @Test + public void testApplicationEnvironmentDeactivation() throws Exception { + String envId = ENV_ID_FOR_DEACTIVATION; + SimulatorApi.registerExpectation("environment/activate/get_operational_environments_aai1.json"); + SimulatorApi.registerExpectation("environment/deactivate/post_deactivate_operational_environment.json", + ImmutableMap.of("ENV-UUID", envId)); + SimulatorApi.registerExpectation("environment/status/get_cloud_resources_request_status.json", + ImmutableMap.of("status_message", Constants.TestEnvironments.environmentDeactivatedSuccesfullyMessage, + "REQUEST-TYPE","Deactivate")); + deactivateEnv(envId); + + SimulatorApi.registerExpectation("environment/deactivate/get_operational_environments_aai1.json"); + GeneralUIUtils.findAndWaitByText(Constants.TestEnvironments.environmentDeactivatedSuccesfullyMessage, 60); + + vidBasePage.clickCloseButton(); + + GeneralUIUtils.ultimateWait(); + + WebElement activationButton = TestEnvironmentPage.getTestEnvironmentActivationButton(envId); + assertTrue("Failed to find Activate button for test env with id: "+envId, activationButton.isDisplayed()); + + WebElement status = Get.byId(Constants.TestEnvironments.environmentStatusIdPrefix + envId); + assertEquals("Inactive", status.getText()); + + WebElement attachButton = TestEnvironmentPage.getTestEnvironmentAttachButton(envId); + assertFalse("attach button shouldn't be displayed for test env with id: "+envId, attachButton.isDisplayed()); + + SideMenu.navigateToTestEnvironmentsPage(); + } + + private void deactivateEnv(String envId) { + vidBasePage.refreshPage(); + SideMenu.navigateToTestEnvironmentsPage(); + WebElement deactivationButton = TestEnvironmentPage.getTestEnvironmentDeactivationButton(envId); + assertTrue("Failed to find Deactivation button for test env with id: "+envId, deactivationButton.isDisplayed()); + deactivationButton.click(); + } + + @DataProvider + public static Object[][] badManifestProvider() { + return new Object[][]{ + {"bad_manifest_structure.json","Manifest structure is wrong"}, + {"manifest_with_wrong_recovery_action.json", "Wrong value for RecoveryAction in manifest. Allowed options are: abort,retry,skip. Wrong value is: leave"} + }; + }; + + @Test + public void testApplicationEnvironmentActivationBadManifestStructure() throws Exception { + testApplicationEnvironmentActivationBadManifestStructure("bad_manifest_structure.json", "Manifest structure is wrong"); + testApplicationEnvironmentActivationBadManifestStructure("manifest_with_wrong_recovery_action.json", + "Wrong value for RecoveryAction in manifest. Allowed options are: abort, retry, skip. Wrong value is: leave"); + } + + //@Test(dataProvider = "badManifestProvider") TODO : use data provider here (for some reason not work with ui-ci framework) + public void testApplicationEnvironmentActivationBadManifestStructure(String badManifestFileName, String exceptedErrorMsg) throws Exception { + SimulatorApi.registerExpectation("environment/activate/get_operational_environments_aai1.json"); + clickOnActivationButtonAndUploadFile(ENV_ID_FOR_ACTIVATION, badManifestFileName); + WebElement attachButton = Get.byId("submit"); + assertEquals("Wrong text for submit button in activate modal", "Attach", attachButton.getText()); + attachButton.click(); + boolean waitForTextResult = Wait.waitByClassAndText("error", exceptedErrorMsg, 30); + assertTrue(exceptedErrorMsg+ " message didn't appear on time", waitForTextResult); + vidBasePage.clickCloseButton(); + GeneralUIUtils.ultimateWait(); + SideMenu.navigateToTestEnvironmentsPage(); + } + + @Test + public void testApplicationEnvironmentActivationNonJsonManifest() throws Exception { + SimulatorApi.registerExpectation("environment/activate/get_operational_environments_aai1.json"); + String fileName = "non_valid_json.json"; + clickOnActivationButtonAndUploadFile(ENV_ID_FOR_ACTIVATION, fileName); + WebElement errorLabel = Get.byId("errorLabel"); + assertEquals("wrong error message for non valid json file", "file: " + fileName + " is not a valid JSON", errorLabel.getText()); + vidBasePage.clickCancelButton(); + GeneralUIUtils.ultimateWait(); + } + + private void clickOnActivationButtonAndUploadFile(String envId, String inputFileName) { + vidBasePage.refreshPage(); + SideMenu.navigateToTestEnvironmentsPage(); + WebElement activationButton = TestEnvironmentPage.getTestEnvironmentActivationButton(envId); + assertTrue("Failed to find Activate button for test env with id: "+envId, activationButton.isDisplayed()); + activationButton.click(); + Input.file("applicationEnvironment/"+inputFileName, "testEnvManifestFileInput"); + WebElement manifestFileName = Get.byId("manifestFileName"); + assertEquals("Manifest file name is wrong in test environment activation modal", inputFileName, manifestFileName.getText()); + } + + @Test + public void testAttachManifestFileHappyFlow() throws Exception { + String envId = ENV_ID_FOR_ACTIVATION; + SimulatorApi.registerExpectation("environment/activate/post_activate_operational_environment.json", + ImmutableMap.of("ENV-UUID", envId)); + SimulatorApi.registerExpectation("environment/attachManifest/get_attachable_operational_environment.json"); + SimulatorApi.registerExpectation("environment/status/get_cloud_resources_request_status.json", + ImmutableMap.of("status_message", Constants.TestEnvironments.environmentActivatedSuccesfullyMessage)); + vidBasePage.refreshPage(); + SideMenu.navigateToTestEnvironmentsPage(); + WebElement attachButton = TestEnvironmentPage.getTestEnvironmentAttachButton(ENV_ID_FOR_ACTIVATION); + attachButton.click(); + + Input.file("applicationEnvironment/manifest.json", "testEnvManifestFileInput"); + + Click.byId(Constants.generalSubmitButtonId); + + boolean waitForTextResult = Wait.waitByClassAndText("status", Constants.TestEnvironments.environmentActivatedSuccesfullyMessage, 60); + assertTrue(Constants.TestEnvironments.environmentActivatedSuccesfullyMessage + " message didn't appear on time", waitForTextResult); + + vidBasePage.clickCloseButton(); + } + @Test + public void testApplicationEnvironmentActivationErrorResponseFromMso() throws Exception { + String payload = "ERROR_PAYLOAD"; + testApplicationEnvironmentActivationErrorResponseFromMso(HttpStatus.INTERNAL_SERVER_ERROR, payload, FailureType.ACTIVATION_FAILURE); + testApplicationEnvironmentActivationErrorResponseFromMso(HttpStatus.BAD_REQUEST, payload, FailureType.ACTIVATION_FAILURE); + testApplicationEnvironmentActivationErrorResponseFromMso(HttpStatus.INTERNAL_SERVER_ERROR, payload, FailureType.GET_STATUS_FAILURE); + testApplicationEnvironmentActivationErrorResponseFromMso(HttpStatus.BAD_REQUEST, payload, FailureType.GET_STATUS_FAILURE); + } + + + public void testApplicationEnvironmentActivationErrorResponseFromMso(HttpStatus errorStatus, String payload, FailureType failureType) throws Exception { + + String envId = ENV_ID_FOR_ACTIVATION; + SimulatorApi.registerExpectation("environment/activate/get_operational_environments_aai1.json"); + switch (failureType) { + case ACTIVATION_FAILURE: + SimulatorApi.registerExpectation("environment/activate/mso_error_response_for_post_operational_environment.json", + ImmutableMap.of("ERROR_CODE", errorStatus.value(), "ENV-UUID", envId)); + break; + case GET_STATUS_FAILURE: + SimulatorApi.registerExpectation("environment/activate/post_activate_operational_environment.json", + ImmutableMap.of("ENV-UUID", envId)); + break; + } + + SimulatorApi.registerExpectation("environment/status/get_cloud_resources_request_status_bad_response.json", + ImmutableMap.of("ERROR_CODE", errorStatus.value(), "ENV-UUID", envId)); + + clickOnActivationButtonAndUploadFile(envId, "manifest.json"); + Click.byId(Constants.generalSubmitButtonId); + Wait.waitByClassAndText("error", "System failure", 60); + Wait.waitByClassAndText("log", errorStatus.getReasonPhrase(), 60); + Wait.waitByClassAndText("log", payload, 60); + vidBasePage.clickCloseButton(); + + GeneralUIUtils.waitForAngular(); + + WebElement status = Get.byId(Constants.TestEnvironments.environmentStatusIdPrefix + envId); + assertEquals(Constants.INACTIVE, status.getText()); + //make sure page is clickable + SideMenu.navigateToTestEnvironmentsPage(); + } + + @Test + public void testApplicationEnvironmentDeactivationErrorResponseFromMso() throws Exception { + String payload = "<html><head><title>Error</title></head><body>REASON</body></html>"; + testApplicationEnvironmentDeactivationErrorResponseFromMso(HttpStatus.INTERNAL_SERVER_ERROR, payload, FailureType.DEACTIVATION_FAILURE); + testApplicationEnvironmentDeactivationErrorResponseFromMso(HttpStatus.BAD_REQUEST, payload, FailureType.DEACTIVATION_FAILURE); + testApplicationEnvironmentDeactivationErrorResponseFromMso(HttpStatus.INTERNAL_SERVER_ERROR, payload, FailureType.GET_STATUS_FAILURE); + testApplicationEnvironmentDeactivationErrorResponseFromMso(HttpStatus.BAD_REQUEST, payload, FailureType.GET_STATUS_FAILURE); + } + + public void testApplicationEnvironmentDeactivationErrorResponseFromMso(HttpStatus errorStatus, String payload, FailureType failureType) throws Exception { + String envId = ENV_ID_FOR_DEACTIVATION; + payload = payload.replace("REASON", errorStatus.getReasonPhrase()); + SimulatorApi.registerExpectation("environment/activate/get_operational_environments_aai1.json"); + switch (failureType) { + case DEACTIVATION_FAILURE: + SimulatorApi.registerExpectation("environment/deactivate/error_deactivate_operational_environment.json", + ImmutableMap.of("ERROR_CODE", errorStatus.value(), "ENV-UUID", envId,"ERROR_PAYLOAD", payload)); + break; + case GET_STATUS_FAILURE: + SimulatorApi.registerExpectation("environment/deactivate/post_deactivate_operational_environment.json", + ImmutableMap.of("ENV-UUID", envId)); + break; + } + SimulatorApi.registerExpectation("environment/status/get_cloud_resources_request_status_bad_response.json", + ImmutableMap.of("ERROR_CODE", errorStatus.value(), "ENV-UUID", envId, "ERROR_PAYLOAD", payload)); + deactivateEnv(envId); + + Wait.waitByClassAndText("error", "System failure", 60); + Wait.waitByClassAndText("log", errorStatus.getReasonPhrase(), 60); + Wait.waitByClassAndText("log", payload, 60); + vidBasePage.clickCloseButton(); + + GeneralUIUtils.ultimateWait(); + + WebElement status = Get.byId(Constants.TestEnvironments.environmentStatusIdPrefix + envId); + assertEquals(Constants.ACTIVE, status.getText()); + //make sure page is clickable + SideMenu.navigateToTestEnvironmentsPage(); + } + + +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/ReadOnlyTest.java b/vid-automation/src/main/java/vid/automation/test/test/ReadOnlyTest.java new file mode 100644 index 000000000..5607496dc --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/ReadOnlyTest.java @@ -0,0 +1,64 @@ +package vid.automation.test.test; + +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.datatypes.UserCredentials; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.By; + +import org.openqa.selenium.WebElement; +import org.testng.annotations.Test; +import vid.automation.test.Constants; +import vid.automation.test.model.User; +import vid.automation.test.sections.SearchExistingPage; +import vid.automation.test.sections.SideMenu; +import vid.automation.test.services.UsersService; + +import java.io.IOException; +import java.util.ArrayList; + +/** + * Created by Oren on 7/16/17. + */ +public class ReadOnlyTest extends VidBaseTestCase { + UsersService usersService = new UsersService(); + + public ReadOnlyTest() throws IOException { + } + + @Override + protected UserCredentials getUserCredentials() { + User user = usersService.getUser(Constants.Users.READONLY); + return new UserCredentials(user.credentials.userId, user.credentials.password, "", "", ""); + } + + @Test + public void testBrowsASDCReadOnly() { + SideMenu.navigateToBrowseASDCPage(); + Assert.assertTrue(isDeployBtnDisabled()); + } + + private boolean isDeployBtnDisabled(){ + WebElement deployBtn = GeneralUIUtils.getWebElementBy(By.className(Constants.BrowseASDC.DEPOLY_SERVICE_CLASS)); + return !deployBtn.isEnabled(); + } + + @Test + public void testSearchExistingReadOnly() { + String UUID = "1dddde21-daad-4433-894e-bd715e98d587"; + SearchExistingPage searchExistingPage = new SearchExistingPage(); + SideMenu.navigateToSearchExistingPage(); + searchExistingPage.searchForInstanceByUuid(UUID); + searchExistingPage.clickSubmitButton(); + assertViewEditButtonState(Constants.VIEW_BUTTON_TEXT, UUID); + searchExistingPage.clickEditViewByInstanceId(UUID); + searchExistingPage.checkForEditButtons(); + } + + @Test + private void testCreateNewInstanceReadOnly() { + SideMenu.navigateToCreateNewServicePage(); + assertDropdownPermittedItemsByValue(new ArrayList<String>(), Constants.CreateNewInstance.SUBSCRIBER_NAME_OPTION_CLASS); + } + + +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/SearchExistingInstanceTest.java b/vid-automation/src/main/java/vid/automation/test/test/SearchExistingInstanceTest.java new file mode 100644 index 000000000..f3261a21a --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/SearchExistingInstanceTest.java @@ -0,0 +1,83 @@ +package vid.automation.test.test; + +import org.testng.annotations.Test; +import vid.automation.test.Constants; +import vid.automation.test.infra.Click; +import vid.automation.test.model.User; +import vid.automation.test.sections.SearchExistingPage; +import vid.automation.test.sections.SideMenu; +import vid.automation.test.services.UsersService; + +import java.io.IOException; + +public class SearchExistingInstanceTest extends VidBaseTestCase { + + private UsersService usersService = new UsersService(); + + public SearchExistingInstanceTest() throws IOException { + } + + @Test + private void testSearchExistingInstanceById() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + SideMenu.navigateToSearchExistingPage(); + goToExistingInstanceById("3f93c7cb-2fd0-4557-9514-e189b7b04f9d"); + + //a flow that updates an existing instance is tested in testCreateNewServiceInstance. + } + + @Test + private void testSearchExistingInstanceByOwningEntitySingleValue() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + SearchExistingPage searchExistingPage = new SearchExistingPage(); + SideMenu.navigateToSearchExistingPage(); + Click.byId(Constants.EditExistingInstance.SELECT_OWNING_ENTITY_ID); + Thread.sleep(1000); + Click.byText("owning-entity-SDN-RXU4"); + searchExistingPage.clickSubmitButton(); + searchExistingPage.clickEditViewByInstanceId("SDN-RXU4-B-servInstance-E1802"); + } + + @Test + private void testSearchExistingInstanceByOwningEntityMultiValue() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + SearchExistingPage searchExistingPage = new SearchExistingPage(); + SideMenu.navigateToSearchExistingPage(); + Click.byId(Constants.EditExistingInstance.SELECT_OWNING_ENTITY_ID); + Thread.sleep(1000); + Click.byText("owning-entity-SDN-RXU4"); + Click.byText("owning-entity-SDN-LT1"); + searchExistingPage.clickSubmitButton(); + searchExistingPage.clickEditViewByInstanceId("SDN-LT1-B-servInstance-E1802"); + } + + @Test + private void testSearchExistingInstanceByProjectSingleValue() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + SearchExistingPage searchExistingPage = new SearchExistingPage(); + SideMenu.navigateToSearchExistingPage(); + Click.byId(Constants.EditExistingInstance.SELECT_PROJECT_ID); + Thread.sleep(1000); + Click.byText("x1"); + searchExistingPage.clickSubmitButton(); + searchExistingPage.clickEditViewByInstanceId("SDN-LT1-B-servInstance-E1802"); + } + + @Test + private void testSearchExistingInstanceByProjectMultiValue() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + SearchExistingPage searchExistingPage = new SearchExistingPage(); + SideMenu.navigateToSearchExistingPage(); + Click.byId(Constants.EditExistingInstance.SELECT_PROJECT_ID); + Thread.sleep(1000); + Click.byText("x1"); + Click.byText("x3"); + searchExistingPage.clickSubmitButton(); + searchExistingPage.clickEditViewByInstanceId("SDN-LT1-B-servInstance-E1802"); + } +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/VidBaseTestCase.java b/vid-automation/src/main/java/vid/automation/test/test/VidBaseTestCase.java new file mode 100644 index 000000000..d4e09be2d --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/VidBaseTestCase.java @@ -0,0 +1,235 @@ +package vid.automation.test.test; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.junit.Assert; +import org.openecomp.sdc.ci.tests.datatypes.Configuration; +import org.openecomp.sdc.ci.tests.datatypes.UserCredentials; +import org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest; +import org.openecomp.sdc.ci.tests.utilities.FileHandling; +import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils; +import org.openqa.selenium.By; +import org.openqa.selenium.WebElement; +import vid.automation.test.Constants; +import vid.automation.test.infra.Click; +import vid.automation.test.infra.SelectOption; +import vid.automation.test.model.*; +import vid.automation.test.sections.*; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import static org.testng.AssertJUnit.fail; + + +public class VidBaseTestCase extends SetupCDTest { + + static String currentUserId = null; + + @Override + protected UserCredentials getUserCredentials() { + ObjectMapper mapper = new ObjectMapper().enableDefaultTyping(); + try { + File configFile = FileHandling.getConfigFile("credentials"); + if(!configFile.exists()) { + String basePath = System.getProperty("BASE_PATH"); + configFile = new File( basePath + File.separator + "conf" + File.separator + "credentials"); + } + Credentials credentials = mapper.readValue(configFile, Credentials.class); + return new UserCredentials(credentials.userId, credentials.password, "", "", ""); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + @Override + protected org.openecomp.sdc.ci.tests.datatypes.Configuration getEnvConfiguration() { + + try { + String envUrl = System.getProperty("ENV_URL"); + boolean isCustomLogin = Boolean.valueOf(System.getProperty("CUSTOM_LOGIN")); + Configuration configuration = new org.openecomp.sdc.ci.tests.datatypes.Configuration(envUrl, isCustomLogin); + //configuration.setBrowser("chorme"); + return configuration; + //return new org.openecomp.sdc.ci.tests.datatypes.Configuration(envUrl, isCustomLogin); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + @Override + protected void loginToLocalSimulator(UserCredentials userCredentials) { + LoginExternalPage.performLoginExternal(userCredentials); + } + + protected void relogin(Credentials credentials) throws Exception { + if (!credentials.userId.equals(currentUserId)) { + currentUserId = credentials.userId; + UserCredentials userCredentials = new UserCredentials(credentials.userId, + credentials.password, "", "", ""); + reloginWithNewRole(userCredentials); + } + } + + /** + * Validates that permitted options are enabled and others are disabled. + * + * @param permittedItems the list of permitted items. + * @param dropdownOptionsClassName the class name of the specific dropdown options. + * @return true, if all dropdown options disabled state is according to the permissions. + */ + protected void assertDropdownPermittedItemsByValue(ArrayList<String> permittedItems, String dropdownOptionsClassName) { + GeneralUIUtils.ultimateWait(); + List<WebElement> optionsList = + GeneralUIUtils.getWebElementsListBy(By.className(dropdownOptionsClassName), 30); + for (WebElement option : + optionsList) { + String optionValue = option.getAttribute("value"); + if ((option.isEnabled() && !permittedItems.contains(optionValue)) || + !option.isEnabled() && permittedItems.contains(optionValue)) { + fail(Constants.DROPDOWN_PERMITTED_ASSERT_FAIL_MESSAGE); + } + } + } + + protected void assertAllIsPermitted(String dropdownOptionsClassName) { + GeneralUIUtils.ultimateWait(); + List<WebElement> optionsList = + GeneralUIUtils.getWebElementsListBy(By.className(dropdownOptionsClassName), 30); + for (WebElement option : + optionsList) { + String optionValue = option.getAttribute("value"); + if (!option.isEnabled()) { + fail(Constants.DROPDOWN_PERMITTED_ASSERT_FAIL_MESSAGE); + } + } + } + + protected void assertDropdownPermittedItemsByName(ArrayList<String> permittedItems, String dropdownOptionsClassName) { + GeneralUIUtils.ultimateWait(); + List<WebElement> optionsList = + GeneralUIUtils.getWebElementsListBy(By.className(dropdownOptionsClassName), 30); + for (WebElement option : + optionsList) { + String optionText = option.getText(); + if ((option.isEnabled() && !permittedItems.contains(optionText)) || + !option.isEnabled() && permittedItems.contains(optionText)) { + fail(Constants.DROPDOWN_PERMITTED_ASSERT_FAIL_MESSAGE); + } + } + } + + protected void assertViewEditButtonState(String expectedButtonText, String UUID) { + WebElement viewEditWebElement = GeneralUIUtils.getWebElementByTestID(Constants.VIEW_EDIT_TEST_ID_PREFIX + UUID, 100); + Assert.assertEquals(expectedButtonText, viewEditWebElement.getText()); + GeneralUIUtils.ultimateWait(); + } + + protected void addVNF(String name, String lcpRegion, String tenant, String suppressRollback, + String legacyRegion, String productFamily, ArrayList<String> permittedTenants) throws InterruptedException { + ViewEditPage viewEditPage = new ViewEditPage(); + + viewEditPage.selectNodeInstanceToAdd(name); + viewEditPage.generateAndSetInstanceName(Constants.ViewEdit.VNF_INSTANCE_NAME_PREFIX); + viewEditPage.selectProductFamily(productFamily); + viewEditPage.selectLCPRegion(lcpRegion); + + assertDropdownPermittedItemsByValue(permittedTenants, Constants.ViewEdit.TENANT_OPTION_CLASS); + viewEditPage.selectTenant(tenant); + + Click.onFirstSelectOptionById(Constants.OwningEntity.PLATFORM_SELECT_TEST_ID); + SelectOption.selectFirstTwoOptionsFromMultiselectById(Constants.OwningEntity.LOB_SELECT_TEST_ID); + + viewEditPage.selectSuppressRollback(suppressRollback); + + viewEditPage.setLegacyRegion(legacyRegion); + + viewEditPage.clickConfirmButton(); + assertSuccessfulVNFCreation(); + viewEditPage.clickCloseButton(); + GeneralUIUtils.ultimateWait(); + } + + protected void addVFModule(String name, String lcpRegion, String tenant, String suppressRollback, + String legacyRegion, ArrayList<String> permittedTenants) { + ViewEditPage viewEditPage = new ViewEditPage(); + + viewEditPage.selectVolumeGroupToAdd(name); + viewEditPage.generateAndSetInstanceName(Constants.ViewEdit.VF_MODULE_INSTANCE_NAME_PREFIX); + viewEditPage.selectLCPRegion(lcpRegion); + + assertDropdownPermittedItemsByValue(permittedTenants, Constants.ViewEdit.TENANT_OPTION_CLASS); + viewEditPage.selectTenant(tenant); + + viewEditPage.selectSuppressRollback(suppressRollback); + + viewEditPage.setLegacyRegion(legacyRegion); + + viewEditPage.clickConfirmButton(); + assertSuccessfulVFModuleCreation(); + viewEditPage.clickCloseButton(); + GeneralUIUtils.ultimateWait(); + } + + protected void addVolumeGroup(String name, String lcpRegion, String tenant, String suppressRollback, + String legacyRegion, ArrayList<String> permittedTenants) { + ViewEditPage viewEditPage = new ViewEditPage(); + + viewEditPage.selectVolumeGroupToAdd(name); + viewEditPage.generateAndSetInstanceName(Constants.ViewEdit.VOLUME_GROUP_INSTANCE_NAME_PREFIX); + viewEditPage.selectLCPRegion(lcpRegion); + + assertDropdownPermittedItemsByValue(permittedTenants, Constants.ViewEdit.TENANT_OPTION_CLASS); + viewEditPage.selectTenant(tenant); + + viewEditPage.selectSuppressRollback(suppressRollback); + + viewEditPage.setLegacyRegion(legacyRegion); + + viewEditPage.clickConfirmButton(); + assertSuccessfulVolumeGroupCreation(); + viewEditPage.clickCloseButton(); + GeneralUIUtils.ultimateWait(); + } + + void assertSuccessfulVNFCreation() { + boolean byText = GeneralUIUtils.findAndWaitByText(Constants.ViewEdit.VNF_CREATED_SUCCESSFULLY_TEXT, 100); + Assert.assertTrue(Constants.ViewEdit.VNF_CREATION_FAILED_MESSAGE, byText); + } + + void assertSuccessfulPNFAssociation() { + //TODO + boolean byText = GeneralUIUtils.findAndWaitByText(Constants.PnfAssociation.PNF_ASSOCIATED_SUCCESSFULLY_TEXT, 100); + Assert.assertTrue(Constants.PnfAssociation.PNF_ASSOCIATED_FAILED_MESSAGE, byText); + } + void assertSuccessfulVolumeGroupCreation() { + boolean byText = GeneralUIUtils.findAndWaitByText(Constants.ViewEdit.VOLUME_GROUP_CREATED_SUCCESSFULLY_TEXT, 100); + Assert.assertTrue(Constants.ViewEdit.VOLUME_GROUP_CREATION_FAILED_MESSAGE, byText); + } + + void assertSuccessfulVFModuleCreation() { + boolean byText = GeneralUIUtils.findAndWaitByText(Constants.ViewEdit.VF_MODULE_CREATED_SUCCESSFULLY_TEXT, 100); + Assert.assertTrue(Constants.ViewEdit.VF_MODULE_CREATION_FAILED_MESSAGE, byText); + } + + void goToExistingInstanceById(String instanceUUID) { + SearchExistingPage searchExistingPage = new SearchExistingPage(); + SideMenu.navigateToSearchExistingPage(); + searchExistingPage.searchForInstanceByUuid(instanceUUID); + assertViewEditButtonState( Constants.VIEW_EDIT_BUTTON_TEXT, instanceUUID); + searchExistingPage.clickEditViewByInstanceId(instanceUUID); + } + + void goToExistingInstanceByName(String instanceName) { + SearchExistingPage searchExistingPage = new SearchExistingPage(); + SideMenu.navigateToSearchExistingPage(); + searchExistingPage.searchForInstanceByName(instanceName); + WebElement instanceIdRow = GeneralUIUtils.getWebElementByTestID(Constants.INSTANCE_ID_FOR_NAME_TEST_ID_PREFIX + instanceName, 30); + String instanceId = instanceIdRow.getText(); + assertViewEditButtonState( Constants.VIEW_EDIT_BUTTON_TEXT, instanceId); + searchExistingPage.clickEditViewByInstanceId(instanceId); + } + +} diff --git a/vid-automation/src/main/java/vid/automation/test/test/ViewEditServiceInstanceTest.java b/vid-automation/src/main/java/vid/automation/test/test/ViewEditServiceInstanceTest.java new file mode 100644 index 000000000..f38433bde --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/test/ViewEditServiceInstanceTest.java @@ -0,0 +1,158 @@ +package vid.automation.test.test; + +import org.junit.Assert; +import org.junit.Before; +import org.openqa.selenium.WebElement; +import org.testng.annotations.Test; +import vid.automation.test.Constants; +import vid.automation.test.infra.Exists; +import vid.automation.test.infra.Get; +import vid.automation.test.infra.Wait; +import vid.automation.test.model.User; +import vid.automation.test.sections.ViewEditPage; +import vid.automation.test.services.BulkRegistration; +import vid.automation.test.services.SimulatorApi; +import vid.automation.test.services.UsersService; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +public class ViewEditServiceInstanceTest extends VidBaseTestCase { + + private ViewEditPage viewEditPage = new ViewEditPage(); + private UsersService usersService = new UsersService(); + private String serviceInstanceId = "3f93c7cb-2fd0-4557-9514-e189b7b04f9d"; + private String serviceInstanceId2 ="f36f5734-e9df-4fbf-9f35-61be13f028a1"; + private final String DEACTIVATE_ACTION = "deactivate"; + private final String ACTIVATE_ACTION = "activate"; + private List<String> pnfs = Arrays.asList("SANITY6785cce9", "tesai371ve2"); + + public ViewEditServiceInstanceTest() throws IOException { } + + @Test + public void testGetAssociatedPnfsForServiceInstance() { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance(); + BulkRegistration.getAssociatedPnfs(); + + goToExistingInstanceById(serviceInstanceId); + for (String pnf: pnfs) { + viewEditPage.getPnf(pnf); + } + } + + @Test + public void testPnfsNotExistForServiceInstance() { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance(); + + goToExistingInstanceById(serviceInstanceId); + assertNoPnfExists(); + } + @Test + public void testActivateServiceInstance()throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance("Created"); + BulkRegistration.activateServiceInstance(ACTIVATE_ACTION); + goToExistingInstanceById(serviceInstanceId); + viewEditPage.assertButtonState(Constants.ViewEdit.ACTIVATE_BUTTON_TEST_ID,true); + viewEditPage.assertButtonState(Constants.ViewEdit.DEACTIVATE_BUTTON_TEST_ID,false); + viewEditPage.clickActivateButton(); + viewEditPage.assertMsoRequestModal("COMPLETE - Success"); + viewEditPage.clickCloseButton(); + } + + @Test + public void testActivateServiceInstanceError()throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance("Created"); + BulkRegistration.activateServiceInstanceError(ACTIVATE_ACTION); + goToExistingInstanceById(serviceInstanceId); + viewEditPage.assertButtonState(Constants.ViewEdit.ACTIVATE_BUTTON_TEST_ID,true); + viewEditPage.assertButtonState(Constants.ViewEdit.DEACTIVATE_BUTTON_TEST_ID,false); + viewEditPage.clickActivateButton(); + viewEditPage.assertMsoRequestModal("Error"); + viewEditPage.clickCloseButton(); + } + @Test + public void testDeactivateServiceInstance(){ + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance("Active"); + BulkRegistration.activateServiceInstance(DEACTIVATE_ACTION); + goToExistingInstanceById(serviceInstanceId); + viewEditPage.assertButtonState(Constants.ViewEdit.DEACTIVATE_BUTTON_TEST_ID,true); + viewEditPage.assertButtonState(Constants.ViewEdit.ACTIVATE_BUTTON_TEST_ID,false); + viewEditPage.clickDeactivateButton(); + viewEditPage.assertMsoRequestModal("COMPLETE - Success"); + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance("PendingDelete"); + BulkRegistration.activateServiceInstance(ACTIVATE_ACTION); + viewEditPage.clickCloseButton(); + viewEditPage.assertButtonState(Constants.ViewEdit.ACTIVATE_BUTTON_TEST_ID,true); + viewEditPage.assertButtonState(Constants.ViewEdit.DEACTIVATE_BUTTON_TEST_ID,false); + } + + @Test + public void testDeactivateServiceInstanceError()throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance("Active"); + BulkRegistration.activateServiceInstanceError(DEACTIVATE_ACTION); + goToExistingInstanceById(serviceInstanceId); + viewEditPage.assertButtonState(Constants.ViewEdit.ACTIVATE_BUTTON_TEST_ID,false); + viewEditPage.assertButtonState(Constants.ViewEdit.DEACTIVATE_BUTTON_TEST_ID,true); + viewEditPage.clickDeactivateButton(); + viewEditPage.assertMsoRequestModal("Error"); + viewEditPage.clickCloseButton(); + } + @Test + public void testSuccessDissociatePnfFromServiceInstance() throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance(); + BulkRegistration.getAssociatedPnfs(); + BulkRegistration.dissociatePnf(); + goToExistingInstanceById(serviceInstanceId); + dissociatePnf(pnfs.get(0)); //SANITY6785cce9 + viewEditPage.assertMsoRequestModal("COMPLETE - Success"); + viewEditPage.clickCloseButton(); + } + + @Test + public void testFailDissociatePnfFromServiceInstance() throws Exception { + SimulatorApi.clearAll(); + BulkRegistration.searchExistingServiceInstance(); + BulkRegistration.getAssociatedPnfs(); + SimulatorApi.registerExpectation(Constants.RegisterToSimulator.pProbe.REMOVE_PNF_RELATIONSHIP_ERROR); + + goToExistingInstanceById(serviceInstanceId); + dissociatePnf(pnfs.get(0)); //SANITY6785cce9 + viewEditPage.assertMsoRequestModal("Error"); + viewEditPage.clickCloseButton(); + } + + private void assertNoPnfExists() { + WebElement pnfElement = viewEditPage.getPnf(""); + Assert.assertNull("Pnf found under service instance", pnfElement); + } + + private void dissociatePnf(String pnfName) throws InterruptedException { + viewEditPage.clickDissociatePnfButton(pnfName); + assertDissociateConfirmModal(pnfName); + } + + private void assertDissociateConfirmModal(String pnfName) { + Wait.modalToBeDisplayed(); + Assert.assertTrue(Exists.modal()); + Assert.assertTrue(Exists.byCssSelectorAndText(".modal-body span", String.format(Constants.ViewEdit.DISSOCIATE_CONFIRM_MODAL_TEXT, pnfName))); + WebElement confirmBtn = Get.byId(Constants.ViewEdit.DISSOCIATE_CONFIRM_MODAL_BTN_ID); + Assert.assertNotNull(confirmBtn); + confirmBtn.click(); + Wait.modalToDisappear(); + } + @Before + public void before() throws Exception { + User user = usersService.getUser(Constants.Users.USP_VOICE_VIRTUAL_USP); + relogin(user.credentials); + } + +} diff --git a/vid-automation/src/main/java/vid/automation/test/utils/ReadFile.java b/vid-automation/src/main/java/vid/automation/test/utils/ReadFile.java new file mode 100644 index 000000000..7652e09b7 --- /dev/null +++ b/vid-automation/src/main/java/vid/automation/test/utils/ReadFile.java @@ -0,0 +1,33 @@ +package vid.automation.test.utils; + +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openecomp.sdc.ci.tests.utilities.FileHandling; +import vid.automation.test.model.User; +import vid.automation.test.model.UsersObject; + +import java.io.File; +import java.io.IOException; +import java.util.HashMap; + +public class ReadFile { + public static <T> T getJsonFile(String fileName, Class<T> clazz) throws IOException { + ObjectMapper mapper = new ObjectMapper(); + T list; + try { + File testCaseFile = FileHandling.getConfigFile(fileName); + if(!testCaseFile.exists()) { + String basePath = System.getProperty("BASE_PATH"); + testCaseFile = new File( basePath + File.separator + "conf" + File.separator + fileName); + } + list = (T) mapper.readValue(testCaseFile, clazz); + return list; + } catch (IOException e) { + e.printStackTrace(); + return null; + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + +} diff --git a/vid-automation/src/main/resources/applicationEnvironment/bad_manifest_structure.json b/vid-automation/src/main/resources/applicationEnvironment/bad_manifest_structure.json new file mode 100644 index 000000000..7f228f99e --- /dev/null +++ b/vid-automation/src/main/resources/applicationEnvironment/bad_manifest_structure.json @@ -0,0 +1 @@ +{"a":"b"}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/applicationEnvironment/manifest.json b/vid-automation/src/main/resources/applicationEnvironment/manifest.json new file mode 100644 index 000000000..f7d969ce2 --- /dev/null +++ b/vid-automation/src/main/resources/applicationEnvironment/manifest.json @@ -0,0 +1,12 @@ +{ + "serviceModelList": [ + { + "serviceModelVersionId": "uuid1", + "recoveryAction": "abort" + }, + { + "serviceModelVersionId": "uuid2", + "recoveryAction": "retry" + } + ] +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/applicationEnvironment/manifest2.json b/vid-automation/src/main/resources/applicationEnvironment/manifest2.json new file mode 100644 index 000000000..5ef273454 --- /dev/null +++ b/vid-automation/src/main/resources/applicationEnvironment/manifest2.json @@ -0,0 +1,3 @@ +{ + "a":"b" +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/applicationEnvironment/manifest_with_wrong_recovery_action.json b/vid-automation/src/main/resources/applicationEnvironment/manifest_with_wrong_recovery_action.json new file mode 100644 index 000000000..379f926a7 --- /dev/null +++ b/vid-automation/src/main/resources/applicationEnvironment/manifest_with_wrong_recovery_action.json @@ -0,0 +1,12 @@ +{ + "serviceModelList": [ + { + "serviceModelVersionId": "uuid1", + "recoveryAction": "leave" + }, + { + "serviceModelVersionId": "uuid2", + "recoveryAction": "retry" + } + ] +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/applicationEnvironment/non_valid_json.json b/vid-automation/src/main/resources/applicationEnvironment/non_valid_json.json new file mode 100644 index 000000000..ef1e2455a --- /dev/null +++ b/vid-automation/src/main/resources/applicationEnvironment/non_valid_json.json @@ -0,0 +1 @@ +abvbv
\ No newline at end of file diff --git a/vid-automation/src/main/resources/ci/conf/log4j.properties b/vid-automation/src/main/resources/ci/conf/log4j.properties new file mode 100644 index 000000000..3e159ec8d --- /dev/null +++ b/vid-automation/src/main/resources/ci/conf/log4j.properties @@ -0,0 +1,34 @@ +# Define the root logger with appender file +log4j.rootLogger = DEBUG, FILE, stdout + +# Define the file appender +log4j.appender.FILE=org.apache.log4j.RollingFileAppender +log4j.appender.FILE.File=${targetlog}logs/ci-log.out + +# Define the layout for file appender +log4j.appender.FILE.layout=org.apache.log4j.PatternLayout +log4j.appender.FILE.layout.conversionPattern=%d{yyyy-MM-dd HH:mm:ss} %5p [%10c] : %m%n + +# Set the maximum file size before rollover +log4j.appender.FILE.maxFileSize=5MB + +# Set the the backup index +log4j.appender.FILE.maxBackupIndex=10 + + +############################################################# + +# Direct log messages to stdout +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.Target=System.out +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +#log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n +log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %5p %10c:%L - %m%n + +log4j.logger.org.apache.cassandra.service.StorageProxy=DEBUG +log4j.logger.com.thinkaurelius.titan.diskstorage.cassandra.CassandraTransaction=INFO, FILE, stdout + +log4j.logger.org.openecomp.sdc.ci.tests.utils=TRACE, FILE, stdout +log4j.additivity.org.openecomp.sdc.ci.tests.utils=false + + diff --git a/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/aai_get_service_instance.json b/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/aai_get_service_instance.json new file mode 100644 index 000000000..055300a90 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/aai_get_service_instance.json @@ -0,0 +1,80 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/business/customers/customer/31739f3e-526b-11e6-beb8-9e71128cae77/service-subscriptions/service-subscription/AIM+Transport/service-instances/service-instance/f36f5734-e9df-4fbf-9f35-61be13f028a1" + } , + "simulatorResponse": { + "responseCode": 200, + "body":{ + "service-instance-id": "5e72ff6e-8bab-4ec7-bfc9-54f58c01a666", + "service-instance-name": "MISVPN_TRANSPORT_00001", + "service-type": "TRANSPORT", + "service-role": "MISVPN", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "6ffab618-bc86-46b4-bc8c-685ee48b316a", + "model-version-id": "2f2ae06d-02e8-45ba-a54b-597f66830558", + "resource-version": "1508513387222", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "zone", + "related-link": "/aai/v11/network/zones/zone/TAT37", + "relationship-data": [ + { + "relationship-key": "zone.zone-id", + "relationship-value": "TAT37" + } + ], + "related-to-property": [ + { + "property-key": "zone.zone-name", + "property-value": "TESAAISD-TAT37" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/tesai371ve2%3Aae10%7Ctesaaisdgraclz1a1%3Apo100", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "tesai371ve2:ae10|tesaaisdgraclz1a1:po100" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/tesai372ve2%3Aae10%7Ctesaaisdgrbclz1a1%3Apo100", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "tesai372ve2:ae10|tesaaisdgrbclz1a1:po100" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY6757cce9%3ALAG1988%7CSANITY6785cce9%3ALAG1957", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY6757cce9:LAG1988|SANITY6785cce9:LAG1957" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY6758cce9%3ALAG1992%7CSANITY6785cce9%3ALAG1961", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY6758cce9:LAG1992|SANITY6785cce9:LAG1961" + } + ] + } + ] + } + } } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance.json b/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance.json new file mode 100644 index 000000000..a620ee06c --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance.json @@ -0,0 +1,16 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/ecomp/mso/infra/serviceInstances/v6/3f93c7cb-2fd0-4557-9514-e189b7b04f9d/<ACTIVE_ACTION>" + } , + "simulatorResponse": { + "responseCode": 202, + "body": { + "requestReferences": { + "instanceId": "3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "requestId": "b6dc9806-b094-42f7-9386-a48de8218ce8" + } + } + } +} + diff --git a/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance_error.json b/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance_error.json new file mode 100644 index 000000000..20a3eb35d --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance_error.json @@ -0,0 +1,9 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/ecomp/mso/infra/serviceInstances/v6/3f93c7cb-2fd0-4557-9514-e189b7b04f9d/<ACTIVE_ACTION>" + } , + "simulatorResponse": { + "responseCode": 500 + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance_orch_req.json b/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance_orch_req.json new file mode 100644 index 000000000..e1a430aa4 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/activateDeactivate/mso_activate_service_instance_orch_req.json @@ -0,0 +1,27 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/ecomp/mso/infra/orchestrationRequests/v5/b6dc9806-b094-42f7-9386-a48de8218ce8" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "b6dc9806-b094-42f7-9386-a48de8218ce8", + "startTime": "Mon, 23 Oct 2017 23:28:39 GMT", + "requestScope": "service", + "requestType": "<ACTIVE_ACTION>", + "instanceReferences": { + "serviceInstanceId": "3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "requestorId": "1" + }, + "requestStatus": { + "requestState": "COMPLETE", + "statusMessage": "Success", + "percentProgress": 100, + "finishTime": "Mon, 23 Oct 2017 23:28:39 GMT" + } + } + } + } + } diff --git a/vid-automation/src/main/resources/registration_to_simulator/changeManagement/ecompportal_getSessionSlotCheckInterval.json b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/ecompportal_getSessionSlotCheckInterval.json new file mode 100644 index 000000000..a43092ef9 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/ecompportal_getSessionSlotCheckInterval.json @@ -0,0 +1,33 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/ecompportal_att/auxapi//getSessionSlotCheckInterval" + }, + "simulatorResponse": { + "responseCode": 200, + "body": "300000" + } + }, + { + "simulatorRequest": { + "method": "POST", + "path": "/ecompportal_att/auxapi//extendSessionTimeOuts" + }, + "simulatorResponse": { + "responseCode": 200, + "body": "300000" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/ecompportal_att/auxapi/context/get_user" + }, + "simulatorResponse": { + "responseCode": 200, + "body": [ + ] + } + } +]
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_aai_get_subscribers.json b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_aai_get_subscribers.json new file mode 100644 index 000000000..a5661c1a2 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_aai_get_subscribers.json @@ -0,0 +1,47 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../business/customers", + "queryParams" : { + "subscriber-type": [ "INFRA" ], + "depth": [ "0" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "customer":[ + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"FIREWALL/MISC", + "subscriber-type":"INFRA", + "resource-version":"1494254802147" + }, + { + "global-customer-id":"VidE2ETest", + "subscriber-name":"VidTest20161020", + "subscriber-type":"INFRA", + "resource-version":"1494254856862" + }, + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"Mobility", + "subscriber-type":"INFRA", + "resource-version":"1494255056308" + }, + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"PACKET CORE", + "subscriber-type":"INFRA", + "resource-version":"1506548476111" + }, + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"USP VOICE", + "subscriber-type":"INFRA", + "resource-version":"1494254832007" + } + ] + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_aai_sub_details.json b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_aai_sub_details.json new file mode 100644 index 000000000..567a0f5c0 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_aai_sub_details.json @@ -0,0 +1,3914 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "queryParams" : { + "depth": [ "2" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"Mobility", + "subscriber-type":"INFRA", + "resource-version":"1494255056308", + "service-subscriptions":{ + "service-subscription":[ + { + "service-type":"vFlowLogic", + "resource-version":"1501700976809", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"414db2d4-18d0-415e-aac2-f255b586cfb5", + "service-instance-name":"vFlowLogic-vflf_080117", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502391806301", + "orchestration-status":"Active", + "model-invariant-id":"64dbe153-48c6-4d6f-95e7-12ff4cce9871", + "model-version-id":"4e8b6372-dea3-4028-81d0-16eba59c94fb" + }, + { + "service-instance-id":"769be44e-981a-4da8-af3b-ca5fa76b7fb1", + "service-instance-name":"vFlowLogic-vflp_080117", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501712783617", + "orchestration-status":"Active", + "model-invariant-id":"14a99b56-dfb6-4300-97e1-ef10198ec936", + "model-version-id":"9c6eee3b-8bd6-4a01-8afc-39441b63ecc9" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"Mobility", + "resource-version":"1505402148533", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"3fe4de27-728c-45f1-80a5-9fe49ec02d27", + "service-instance-name":"forin", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507919421031", + "orchestration-status":"Active", + "model-invariant-id":"d9da05fb-7a91-4c81-bbb4-923448f7fa34", + "model-version-id":"f2e0d059-deb0-4ce8-aa8b-3e8fe02b3eb5" + }, + { + "service-instance-id":"63d396ed-d457-40a0-9cf4-a3cf9828835c", + "service-instance-name":"CreateSvc_1710_298109_vPROBE-II_kk364s_0310", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506977865222", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"4431827a-2cb1-49f4-8056-6d8e51470781" + }, + { + "service-instance-id":"1a71b058-8607-4690-bebb-4d9011cb0594", + "service-instance-name":"mDNSpreload1710service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508865364605", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"be3f0f35-0cd6-4b64-a9a1-ef66ebf2df38", + "service-instance-name":"mdns_2017_1011_sb063v_1024", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508858365648", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"9fb6d4cd-6d8e-41d6-afcf-37d151df1976", + "service-instance-name":"zrdm_Mobility_Service_297772_kk364s_1010_1400", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507658384805", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"bbbcbe28-850f-42a5-8f46-8bd2a30c3014", + "service-instance-name":"mdns_2017_1011_kk364s", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508962475505", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"fd533b88-9e23-4636-8a32-3d2bf24db80b", + "service-instance-name":"Mobility_Service_297772", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505500142924", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"14cfc148-ff07-49a3-a4e2-0aa5ce237624", + "service-instance-name":"rdm5b_mdns_2017_1011_IST_Service_kk364s", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509122521715", + "orchestration-status":"Active", + "model-invariant-id":"899b5f00-2603-44ec-a49f-144bccc7d8fb", + "model-version-id":"abe58ee2-0710-4825-87ae-c6cc9f27f46b" + }, + { + "service-instance-id":"c3fb6917-7281-418c-a0de-4bd94352ea1c", + "service-instance-name":"test-amichai", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509919155873", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"be6e1f9e-dc44-4ae0-a368-731a44b66e7e", + "service-instance-name":"Service_vPROBE_298109_SG_2009_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505939678484", + "orchestration-status":"Active", + "model-invariant-id":"429b7c51-6a5d-4bd7-98de-78b2cc58357f", + "model-version-id":"954a9b29-68bd-42aa-8ace-0d8890844ac8" + }, + { + "service-instance-id":"c18085d4-107a-4b8d-be19-e8ebade634ac", + "service-instance-name":"Service_vPROBE_298109_2_sb_0920", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505914792267", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"3afa7504-be8c-4fb1-b6c2-071f78faee18", + "service-instance-name":"mDNS_preload_1710_0914_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506538704860", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"005306d7-5430-4c10-ae02-d4eb42397717", + "service-instance-name":"Service_vPROBE_298109_SG_2009", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505936743593", + "orchestration-status":"Active", + "model-invariant-id":"429b7c51-6a5d-4bd7-98de-78b2cc58357f", + "model-version-id":"954a9b29-68bd-42aa-8ace-0d8890844ac8" + }, + { + "service-instance-id":"9518ac27-f88f-40bc-8c62-d94fcd8f370b", + "service-instance-name":"ewgh", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1510045546493", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"8afac90c-5b5f-495d-bbf6-6259ff11387b" + }, + { + "service-instance-id":"18094982-779d-48b7-ab75-93da74944583", + "service-instance-name":"rdm5_mdns_2017_1011", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509045878842", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"5dc95f62-6080-495b-8c6f-6e5920131ab2", + "service-instance-name":"x_291364a_ASTRA_vVIG_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506346505944", + "orchestration-status":"Active", + "model-invariant-id":"81136370-2afb-4738-bc93-de2bc64f573b", + "model-version-id":"056345ca-6105-4bb5-8406-e4e151380bc0" + }, + { + "service-instance-id":"8ccda9f2-2a5f-4445-ba64-fc3dad56cdb6", + "service-instance-name":"CVNF_1710_298109_vPROBE-II_0410", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507064736392", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"4431827a-2cb1-49f4-8056-6d8e51470781" + }, + { + "service-instance-id":"cc8fa0a9-7576-4c39-af31-7ad61d057ac9", + "service-instance-name":"ServiceInstance_1710_298109_vPROBE-II", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507151571441", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"4431827a-2cb1-49f4-8056-6d8e51470781" + }, + { + "service-instance-id":"f150ea88-9157-4aa6-ae85-b0e9d0de3fed", + "service-instance-name":"UVNF_1710_298109_vPROBE-II_2809", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506542110910", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"f032606a-5add-4a12-87f7-4df1f0734594", + "service-instance-name":"Zmtn6_Mobility_Service_297772_kk364s_1010_1130", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507649564599", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"c1025cab-9fe7-4e2e-962e-a946f0fa013b", + "service-instance-name":"Lital234", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506327356099", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"25e3176d-655d-46a3-83f8-143b66150a2f", + "service-instance-name":"RVNF_1710_298109_vPROBE-II", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506631522048", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"f96484a5-ba01-4bf5-a440-9efaf51a3796", + "service-instance-name":"CR1710_298109_vPROBE-II_SG_2009", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505914990778", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"0d9d1292-f2bb-4a43-95fc-c9e1e4e9c510", + "service-instance-name":"CR_SVC_Mobility_Service_297772_ss616y_09_28", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506539863926", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"3dce6e29-0f2a-4890-90cd-b77323e62230", + "service-instance-name":"ForInput_service_instance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507828289329", + "orchestration-status":"Active", + "model-invariant-id":"d9da05fb-7a91-4c81-bbb4-923448f7fa34", + "model-version-id":"dc20bb16-d464-4245-95fb-78223dc2d918" + }, + { + "service-instance-id":"076bf40a-7eca-4412-ab6e-5de4cf598256", + "service-instance-name":"CService_mDNS_preload_1710_0914_1110", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507752734878", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"6b5afca0-73dc-4ced-9b31-a04b509d38c8", + "service-instance-name":"crSvc_2016-191_vIRC_CC_SVC_ss", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506359727251", + "orchestration-status":"Active", + "model-invariant-id":"c471663a-e66b-4f6f-aac3-c588b8e9a578", + "model-version-id":"1496150d-9b5a-46f6-a8ce-9efdcf47f1b1" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vBNG", + "resource-version":"1498068165053", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"b8da83c3-0572-4f05-a74d-54642d6c8d6e", + "service-instance-name":"MSODEV-1702-10-vBNG", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149574", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"ba4d9222-f052-4359-93fb-537eb4407142", + "service-instance-name":"VbngServiceSriovProviderNetworkService_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498052045639", + "orchestration-status":"Active", + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + }, + { + "service-instance-id":"c6ee9475-c10f-4da7-bf96-c6fdb1461267", + "service-instance-name":"MSO_Dev_1702_SJK_VBNG_SI", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136028", + "orchestration-status":null, + "model-invariant-id":"ff3514e3-5a33-55df-13ab-12abad84e7ff", + "model-version-id":null + }, + { + "service-instance-id":"d2dd16c6-ded7-4042-927d-adf3e1447851", + "service-instance-name":"vBNG_Service_for_E2E_Test_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149821", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"3852ca70-2e64-47b5-ba96-41f304056493", + "service-instance-name":"VbngServiceTenantOamNetworkService_9", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149868", + "orchestration-status":null, + "model-invariant-id":"731cb2c4-989f-46e4-89cc-701f664fdf64", + "model-version-id":"eea48998-03e8-4905-aefc-86209a36043d" + }, + { + "service-instance-id":"5a7a4ace-2331-492e-ae82-7e54e09bb7e5", + "service-instance-name":"VbngServiceTenantOamNetworkService_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151679", + "orchestration-status":null, + "model-invariant-id":"731cb2c4-989f-46e4-89cc-701f664fdf64", + "model-version-id":"eea48998-03e8-4905-aefc-86209a36043d" + }, + { + "service-instance-id":"3dec9868-1af0-4417-93b0-bda1d80a567a", + "service-instance-name":"VbngServiceSriovProviderNetworkService_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498060092248", + "orchestration-status":"Active", + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + }, + { + "service-instance-id":"fde6ab76-3d70-4743-8afd-2b370ca11af2", + "service-instance-name":"VbngServiceSriovProviderNetworkService_3", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498761160118", + "orchestration-status":"Active", + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + }, + { + "service-instance-id":"7492cc2b-facb-4b81-abbe-a35cd4188fd7", + "service-instance-name":"crSVC_Mobility_Service_297772_ss616y_09_26", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506440095410", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"f1b2bd7a-67bc-44de-b51d-c4b91b98c603", + "service-instance-name":"vBNG_Service_for_E2E_Test_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150703", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"a92aa05d-cced-4c10-b4c2-edac7603b570", + "service-instance-name":"SI_Test_vBNG_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148567", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"b8781e26-850a-439b-8e61-cb66244fcb44", + "service-instance-name":"VbngServiceSriovProviderNetworkService_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149265", + "orchestration-status":null, + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vVoiceMail", + "resource-version":"1494254889686", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"cfedc428-5b2a-4fdf-b55e-4975ff40a912", + "service-instance-name":"MVM_SBC_1710_092017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508331851301", + "orchestration-status":"Active", + "model-invariant-id":"6a71ca0e-81c3-4041-bca0-25a0c5ba59e9", + "model-version-id":"fa22e848-b243-4cf2-aeab-40afb601774c" + }, + { + "service-instance-id":"f568a4a1-0605-4062-8b03-31981f0ef3e0", + "service-instance-name":"MVM_1710_091417_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506546098478", + "orchestration-status":"Active", + "model-invariant-id":"2797ac29-022f-49fd-a9f7-f83da286fd9e", + "model-version-id":"6ae98a26-a40b-4bbc-afd5-2c4c98f27323" + }, + { + "service-instance-id":"e98d2d5d-ffec-4eee-b32a-229e94ec8b24", + "service-instance-name":"mDNS_1710_preload_test_Svc_01_PB", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505233873380", + "orchestration-status":"Active", + "model-invariant-id":"be1ba2ed-8942-4f6b-b4fc-39f7ac16fd4b", + "model-version-id":"71cef858-dfcb-452e-a336-a53747cd30ee" + }, + { + "service-instance-id":"258a043f-d8bd-46e8-a5f1-1118da623347", + "service-instance-name":"HnportalSriovProviderNet3_4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506021716378", + "orchestration-status":"PendingDelete", + "model-invariant-id":"d32fefb2-e9b6-42fa-8c1b-c09517199e9c", + "model-version-id":"66e59070-4f8f-4d07-a9e0-521fafb1777f" + }, + { + "service-instance-id":"90b42f50-9d55-4729-b5b0-74806c0f4770", + "service-instance-name":"MVM_F5_2017-414_042117_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506710238260", + "orchestration-status":"Active", + "model-invariant-id":"c7c71089-517e-4c90-8aab-4aa41091df09", + "model-version-id":"9951bac3-227b-4395-b70d-8c35e4a5e760" + }, + { + "service-instance-id":"a8ab2c37-db0c-4dca-99f5-8d7a99dc6bf5", + "service-instance-name":"mDNS_1710_preload_test_Svc_PB_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506367121901", + "orchestration-status":"Active", + "model-invariant-id":"be1ba2ed-8942-4f6b-b4fc-39f7ac16fd4b", + "model-version-id":"6862005a-0d9e-40da-854a-407059138df0" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"Nimbus", + "resource-version":"1509369877126", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"b9da929b-eb5f-4d14-b671-2fb49e245f0c", + "service-instance-name":"ssdrSvc-1.0-v1.0-rev4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149792", + "orchestration-status":null, + "model-invariant-id":"920e2b1d-91b5-4f88-bb37-d8a5db39dae3", + "model-version-id":"72f879f1-8c25-460f-974b-66eec443225f" + }, + { + "service-instance-id":"d93fa084-80f4-4900-ba57-8b736db3271b", + "service-instance-name":"mDNS_preload_1710_0914_1024", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508876558729", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"123466fa-e678-439e-a89f-29bdb2747d13", + "service-instance-name":"MDNS_NETWORK_OAM_ISTinE2E", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509557184342", + "orchestration-status":"Active", + "model-invariant-id":"868d39cc-0e79-43f2-85b3-df89f3296a75", + "model-version-id":"9c14df78-5b81-47e4-818b-0db85e4bb461" + }, + { + "service-instance-id":"8a4674e2-fbca-4857-af78-e611b1574f5a", + "service-instance-name":"mdns_pa2396_1027", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509045174529", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"75442b9d-e3de-4311-bfd8-b8bed4541742", + "service-instance-name":"rdm5b_mdns_2017_1011_kk364s_2910", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509215537269", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"f022b8c0-9796-4389-90ae-5c46df9e8574", + "service-instance-name":"PCRF_1610_2.4_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148885", + "orchestration-status":null, + "model-invariant-id":"6da262c4-7cf9-4122-9769-ff9e4a01d885", + "model-version-id":"b41ff679-0d3e-460c-9597-9c31f3238fdb" + }, + { + "service-instance-id":"28d984e4-0c50-46da-9369-6b4ddb9e0346", + "service-instance-name":"CGWY20_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509468547152", + "orchestration-status":"Active", + "model-invariant-id":"b830bf07-cb9a-4d75-95cb-fc515f78516f", + "model-version-id":"b43c811c-dcf5-42b7-adcb-5baf21be0216" + }, + { + "service-instance-id":"25158088-c7b1-4898-b511-de0c78e093c9", + "service-instance-name":"MOBT-Nimbus-3-Sprint-1-Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506094357348", + "orchestration-status":"Active", + "model-invariant-id":"a030d7ca-8566-4036-abfd-91c8e98ad755", + "model-version-id":"4c6df106-3c94-4d9d-9c1b-af37c0ff80d4" + }, + { + "service-instance-id":"b84af18a-c01a-4408-8e3c-74517a94af6f", + "service-instance-name":"Nimbus-IXLA-0705-Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506715142169", + "orchestration-status":"Active", + "model-invariant-id":"c4f9d180-e9b6-44cc-8497-83cb10621373", + "model-version-id":"6891a270-b49e-4659-b877-aa085dee23d4" + }, + { + "service-instance-id":"af094e85-8d60-4721-ae23-5a0efe1258d5", + "service-instance-name":"IXLT_2017-348_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147843", + "orchestration-status":null, + "model-invariant-id":"a09fecc5-748b-4ae3-9e87-9e19a6269673", + "model-version-id":"f4d4a83d-3082-4ee7-a479-281c834818cd" + }, + { + "service-instance-id":"fff0b350-ffaa-46ed-b927-8e82b3497af8", + "service-instance-name":"mDNS-1710-AF-SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506435654274", + "orchestration-status":"Active", + "model-invariant-id":"be75772a-1361-4385-88f3-60b4d29eeac8", + "model-version-id":"9297fadd-1f12-4f0f-aa74-97b6c3f0d9f3" + }, + { + "service-instance-id":"77d79cda-f8f4-4a9e-80d2-3199fefe6eb4", + "service-instance-name":"Nimbus_LDSA_0705_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499869842847", + "orchestration-status":"Active", + "model-invariant-id":"15dced86-174b-4129-bf72-2279b0a71377", + "model-version-id":"e80f59a4-969c-48f3-b14b-5530decf300b" + }, + { + "service-instance-id":"cedac8e7-43ef-47a9-ace6-90aadafdc01a", + "service-instance-name":"Mobility-Ntwking-Svc-Model", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505507866717", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"b287a10e-6dcb-402e-87bf-fe78fdcc54cf", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_1410_1205", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507997085749", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "service-instance-id":"2ef18b98-b026-4a77-b0e9-71d4e9a1a0ac", + "service-instance-name":"mdns_createServiceInstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508165923307", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"ab8bcc6c-3bc8-4f0e-8100-5d3bbdf5d8de", + "service-instance-name":"mdns_2017_1011_Create_SerInstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508082674808", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"b41a499d-a2e1-4e9e-8717-ee1167bd43e9", + "service-instance-name":"Service_Nimbus_Demo_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135772", + "orchestration-status":null, + "model-invariant-id":"148381a9-5e08-48fe-bfa5-756fd721945e", + "model-version-id":null + }, + { + "service-instance-id":"af913107-ddea-425d-ab84-886b1a754bd1", + "service-instance-name":"Nimbus_IXLT_0705_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500051698402", + "orchestration-status":"Active", + "model-invariant-id":"0ef3bd6d-9081-41c7-84c3-e5a7aefef66c", + "model-version-id":"0c13ef9b-c40c-4293-9c21-54a90d2f90bd" + }, + { + "service-instance-id":"ec1eb896-f519-4e71-bec9-ead21fd5d633", + "service-instance-name":"mobility_Service_1011", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507736303848", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"8867266e-1ba1-4ae8-9e52-ccfd5647acbf", + "service-instance-name":"MOBT_1610_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147802", + "orchestration-status":null, + "model-invariant-id":"e9c5074a-69bf-46c8-a400-feea5f82a248", + "model-version-id":"eda80797-115d-4328-b198-330cb1042564" + }, + { + "service-instance-id":"66b13cb4-b575-449f-aa45-ffbfe005c7b1", + "service-instance-name":"mDNS_preload_1710_0914", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505856078810", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"1525f534-99a2-408f-b847-ff636997d352" + }, + { + "service-instance-id":"870f55a9-692d-45af-970b-7630317b46ea", + "service-instance-name":"Mobisupport_PCRF_Network_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152926", + "orchestration-status":null, + "model-invariant-id":"33431ee0-3bc5-4daf-a13e-7c10ae6733cc", + "model-version-id":"9cb1d42a-b07c-47a9-9976-7280fbda2042" + }, + { + "service-instance-id":"abc17093-fad2-41fc-ad30-65985b34bdfc", + "service-instance-name":"rdm5b_mdns_2017_1011_kk364s_2010_1006", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508517379024", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"b3372b34-2085-40b3-b293-df1e546dddee", + "service-instance-name":"zrdm5bpxmc02_092017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505937237447", + "orchestration-status":"Active", + "model-invariant-id":"273bc227-a379-4b40-880e-7d9bb2bae2cb", + "model-version-id":"21823359-ca5b-4d14-9229-09c789e1434c" + }, + { + "service-instance-id":"e5bb3b98-56b4-4a79-95da-34f56dccb8f3", + "service-instance-name":"FCGI_Svc_456_2017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507580363163", + "orchestration-status":"Active", + "model-invariant-id":"6a4c0f43-9b3b-45a4-b8f3-c39df18f07df", + "model-version-id":"aa11d0a4-af5a-4a7b-856f-beee64a7111a" + }, + { + "service-instance-id":"9b24c4e2-6e63-4de5-8a20-741ec8289ae1", + "service-instance-name":"Mobility_Service_297772_pb_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507665028261", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"ea5650f4-9d80-431e-a177-b6c43fd4ade0", + "service-instance-name":"zrdm_Mobility_Service_297772_kk364s_1110_1045", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507733035901", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"cd9aa07d-e670-498a-adef-82250a1428a0", + "service-instance-name":"mdns_2017_pa2396_1013", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507833492086", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"7cce8c53-d391-42aa-984d-c6166dee9abe" + }, + { + "service-instance-id":"c0e1d353-b3cc-4472-94a6-ce974faf6c1c", + "service-instance-name":"asdfASDF", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507708265856", + "orchestration-status":"Active", + "model-invariant-id":"ad80a27a-ea63-4ab8-95fa-5dfa80e7d38d", + "model-version-id":"99bafe37-dcaf-4955-840d-f728f5151937" + }, + { + "service-instance-id":"a15b35f0-81eb-43a7-ad51-a05331e629ca", + "service-instance-name":"Nimbus_FN_Int_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148152", + "orchestration-status":null, + "model-invariant-id":"4c025c78-3f79-436b-a284-880842716c35", + "model-version-id":"7d04da63-89c1-496f-ae3c-22e59111b9c2" + }, + { + "service-instance-id":"9ad4ac55-a5e0-4b49-95c0-b2d846abf700", + "service-instance-name":"mDNS_preload_1710_0914_100417", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507144734087", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"446ab0be-b944-4e28-a1fc-520a56530064", + "service-instance-name":"larry_test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148893", + "orchestration-status":null, + "model-invariant-id":"39ef2db5-dcf0-4ab9-94a3-0eb75a42038b", + "model-version-id":"b411cc01-20d9-465a-a5ed-f6382045f829" + }, + { + "service-instance-id":"4183a1b5-6bf0-4446-9c50-01851e8b4f50", + "service-instance-name":"PXMC_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148483", + "orchestration-status":null, + "model-invariant-id":"6e75e64e-8e0e-4ee9-97be-6412af4080cf", + "model-version-id":"62e404df-933e-49db-bee9-ad0658e7f8f4" + }, + { + "service-instance-id":"5ff07408-0eff-4c41-9708-cf53261dc8b5", + "service-instance-name":"LMSP-01_11_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136025", + "orchestration-status":null, + "model-invariant-id":"2ce458b8-4b52-4f94-b641-58a9595da86c", + "model-version-id":null + }, + { + "service-instance-id":"e4a7a120-9a19-4757-9d91-41f1dc89a708", + "service-instance-name":"Nimbus_FN_SGI_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148283", + "orchestration-status":null, + "model-invariant-id":"bf62dc03-fe33-4798-9e7c-5591bb1c2379", + "model-version-id":"8c6eb850-9dd9-4cad-ad4f-4a7fc81a0dc6" + }, + { + "service-instance-id":"4a22fd74-0af6-4527-b4f5-a03fa7f3223b", + "service-instance-name":"FCGI_01_10_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147938", + "orchestration-status":null, + "model-invariant-id":"a88591c3-4de7-4cf8-85ac-50f1f7be15d8", + "model-version-id":"41a82132-9c2c-4eb0-bad4-22daf0d3bf81" + }, + { + "service-instance-id":"9af46bd0-6c9b-4498-826c-c88bbefd3108", + "service-instance-name":"CGWY19min_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152066", + "orchestration-status":null, + "model-invariant-id":"9bba548f-cab7-4e15-b162-9e055edaebe0", + "model-version-id":"bbefc853-e4aa-4ea3-b745-19da81dca95b" + }, + { + "service-instance-id":"85bfb318-d203-42bd-a13f-e8c7508105df", + "service-instance-name":"mDNS_02-06-2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147914", + "orchestration-status":null, + "model-invariant-id":"e8790ee9-f79b-4c26-8a70-d80480d4b563", + "model-version-id":"a73e5a6d-a13a-4ad1-84a8-28fd48b462fe" + }, + { + "service-instance-id":"b7131866-5f70-4c29-9875-98878ad7ac72", + "service-instance-name":"ssdrSVc_2.0_v1.0_rev1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504734308340", + "orchestration-status":"Active", + "model-invariant-id":"4d2bc5a2-9405-45f0-96f0-268b75f3d339", + "model-version-id":"d06a62d3-978f-4239-857e-71981d91622d" + }, + { + "service-instance-id":"17901377-cd73-4d92-abc8-b4905e720ae8", + "service-instance-name":"Nimbus_3.0spr1_PCRF_v2.7_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504819759422", + "orchestration-status":"Active", + "model-invariant-id":"2b85a18a-2f54-4e93-b072-08a065b4d2d7", + "model-version-id":"84775948-1cf2-4640-b918-4bbd1e6177ff" + }, + { + "service-instance-id":"4a55321e-6707-497d-8b06-c4fb1ff065d5", + "service-instance-name":"PXTC_v7_svc_082817", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504292485665", + "orchestration-status":"Active", + "model-invariant-id":"85966804-e850-48bb-a8f1-786810930042", + "model-version-id":"8501d6d5-3618-4d68-b6d9-6196218f9ca9" + }, + { + "service-instance-id":"176f6ba6-633e-471c-8864-e34468207552", + "service-instance-name":"LDSA_2017-345_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147835", + "orchestration-status":null, + "model-invariant-id":"615a07d6-baac-408b-a893-3ce5541e39a8", + "model-version-id":"01f99c19-46f7-4194-8254-2fbf60971181" + }, + { + "service-instance-id":"33b57047-687f-47a3-99b5-b568a4e7f9ff", + "service-instance-name":"vmdns_2017_1030", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509738824795", + "orchestration-status":"Active", + "model-invariant-id":"728b8d44-a194-4afd-aa40-041d90e8f2f7", + "model-version-id":"81a34cab-d31b-4beb-907c-c3a72d19d478" + }, + { + "service-instance-id":"614e9b44-5388-4a60-a566-35c83ace67b3", + "service-instance-name":"mdns_2017_1011_PB", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509739169686", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"c329b72c-84d5-4625-b261-faed89057e7c", + "service-instance-name":"SVC_zrdm5bpxtc02_092017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506356801452", + "orchestration-status":"Active", + "model-invariant-id":"8abf167e-55ea-4357-8a8c-f745640eca81", + "model-version-id":"f8d2b69c-79f6-4f98-9aeb-95e8f2f5d9f3" + }, + { + "service-instance-id":"08cdfd4b-9d25-40c8-a8c3-a15a3025d021", + "service-instance-name":"Nimbus_3.1_PCRF_0717_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504061752729", + "orchestration-status":"Active", + "model-invariant-id":"f8987f18-2a44-4650-b5ce-b58dd4e94ded", + "model-version-id":"b1c7e5ca-93b6-40c5-b152-d28c150a5ba4" + }, + { + "service-instance-id":"0c916c04-d2ca-43f3-90f8-e0266b3e97c8", + "service-instance-name":"mdns_pa23961111", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508338875497", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"ead68f27-e78f-417a-9d74-d7af3871c406", + "service-instance-name":"mdns_2017_1011_oh22u_1103", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509728889955", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"54ba3628-9ee5-4b32-8a2a-3abf001bed4e", + "service-instance-name":"mdns_2017_1011_oh22u_20171103", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509730482946", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"9ecab3e4-c4f4-4c46-a46e-9be98f89a664", + "service-instance-name":"mdns_createservice_pa23961026", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509032288508", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"11d25472-cbfb-4e10-a1f2-bea25d7c0823", + "service-instance-name":"mdns_2017_1011_v4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508054069141", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"8c88375a-fe46-4f03-9729-cb2850d8e122", + "service-instance-name":"mdns_2017_1011_ServiceInstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508097853649", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"f054ce69-a3d0-4061-b6a6-cdb4ea8b4968", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_1014_1700", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507929319130", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "service-instance-id":"facff1e4-e1d1-4b9c-bdb4-2b5088c19904", + "service-instance-name":"Forinput", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507937743069", + "orchestration-status":"Active", + "model-invariant-id":"d9da05fb-7a91-4c81-bbb4-923448f7fa34", + "model-version-id":"f2e0d059-deb0-4ce8-aa8b-3e8fe02b3eb5" + }, + { + "service-instance-id":"1abdbf2b-d08d-4f64-b123-7ecca7b8c9aa", + "service-instance-name":"mdns_2017_1011_pa2396", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507749134293", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"4a7882f6-128f-4303-8a47-9ee44a885965", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_1210", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507752287291", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"7cdd3596-a11f-4508-87ff-f0a9be0796c9", + "service-instance-name":"Cservice_mdns_2017_1011_sg", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507755029185", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"a43da41c-1510-4f2c-aef5-435534accf9f", + "service-instance-name":"mdns_2017_1011", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507748135880", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"5a477ab8-fcd7-42eb-8142-0e3139c7c9ff", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254900024", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"7eef7c51-70fe-4723-b762-bf8de2d4ea52", + "service-instance-name":"Nimbus_LU2_CGWY_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135961", + "orchestration-status":null, + "model-invariant-id":"bcb2c2c0-c0e1-4e17-a56d-2a8c32572068", + "model-version-id":null + }, + { + "service-instance-id":"745fd172-4a08-4f14-a2d0-a9a0e2a3f725", + "service-instance-name":"rdm5b_mdns_2017_1011_kk364s_1028", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509129321340", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"8fca8138-d6fa-4779-9205-c3071bde68d8", + "service-instance-name":"RDN5B_AMP_Shared_oam_protected_net", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509486357784", + "orchestration-status":"Active", + "model-invariant-id":"868d39cc-0e79-43f2-85b3-df89f3296a75", + "model-version-id":"9c14df78-5b81-47e4-818b-0db85e4bb461" + }, + { + "service-instance-id":"c3175084-5d15-44f0-b9c8-ea1fa63815c8", + "service-instance-name":"ssdrSvc_2.0_v1.0_rev2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504886219231", + "orchestration-status":"Active", + "model-invariant-id":"8923d812-fb34-4042-b401-082aedc9dee2", + "model-version-id":"28e36fec-f4ea-4ea7-9ab8-05c0fd2f7418" + }, + { + "service-instance-id":"77b4ba1c-c4df-4e3c-a73a-6c89967086a8", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507812622773", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"f7f8b3d0-bff3-4e10-b973-18ab33a40cb7", + "service-instance-name":"PXMC_v7_Service_062317", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1503434415225", + "orchestration-status":"Active", + "model-invariant-id":"dc7b5fb3-0bd1-46a8-8726-feac0d1a646c", + "model-version-id":"72c95ee1-08c7-4505-b9c5-2ccfc30944b3" + }, + { + "service-instance-id":"ea11b06a-369b-4028-b67a-ffe8b7d87272", + "service-instance-name":"lll_svc_022017A", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150038", + "orchestration-status":null, + "model-invariant-id":"a88591c3-4de7-4cf8-85ac-50f1f7be15d8", + "model-version-id":"41a82132-9c2c-4eb0-bad4-22daf0d3bf81" + }, + { + "service-instance-id":"a8372edb-c2ff-4008-a5d1-1e790873d92f", + "service-instance-name":"mDNS_Service_New_HEAT", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501704876346", + "orchestration-status":"Active", + "model-invariant-id":"3751418e-a3a4-4135-b282-b5a55a35973f", + "model-version-id":"3b27b79c-edb6-4817-9997-790620804267" + }, + { + "service-instance-id":"7a9e9d7a-820a-46df-8cc9-79ba677fbf70", + "service-instance-name":"mDNS_1710_preload_test_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505319453315", + "orchestration-status":"Active", + "model-invariant-id":"be1ba2ed-8942-4f6b-b4fc-39f7ac16fd4b", + "model-version-id":"a309577b-f193-49e8-9bdd-0a7d0ac7db15" + }, + { + "service-instance-id":"f195837b-ef28-42c3-8dea-47ad37eaed95", + "service-instance-name":"mDNS_preload_1710_0914_0920", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505964829466", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"74409bb2-17f8-427e-846c-0ef4d95059bf", + "service-instance-name":"FNAT_2017_432_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499977566343", + "orchestration-status":"Active", + "model-invariant-id":"b5ad06fc-b862-42af-86e8-e0e9f7e3e14e", + "model-version-id":"e7f7731c-59dc-4f4c-9e5d-73cf2c4873bc" + }, + { + "service-instance-id":"6f57e83f-9807-437c-8087-98fa79709648", + "service-instance-name":"vSAEGW_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499983137373", + "orchestration-status":"Active", + "model-invariant-id":"eb710f16-73b4-40b8-9e78-e920fde3d45c", + "model-version-id":"9972f060-be31-4021-975d-331a274e0b26" + }, + { + "service-instance-id":"f2f54623-94b0-4dcb-a381-c58b82229d12", + "service-instance-name":"mdns_2017_1011_CreateSerInstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508186235886", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"84eaf29a-c532-45f0-a6ba-da1dc302da7c", + "service-instance-name":"FDNT_01_10_2017-Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136032", + "orchestration-status":null, + "model-invariant-id":"6c4e8e19-d4a6-4f5c-a4f6-1552c5717f79", + "model-version-id":null + }, + { + "service-instance-id":"da2718cc-7f27-4716-9a0d-0aee0d029425", + "service-instance-name":"MOBT_RDM5B_0623_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499463885812", + "orchestration-status":"Active", + "model-invariant-id":"5435dd76-8001-477e-872a-133a7ce5d86a", + "model-version-id":"efeac9e7-52a4-4f23-a423-c333af26b818" + }, + { + "service-instance-id":"41de54a4-c2d7-41e6-b7e4-0125231e1a75", + "service-instance-name":"mdns_20171014_298940", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507921979277", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "service-instance-id":"9b3f5b80-7aaf-4c71-9066-79ba0beea6ae", + "service-instance-name":"mdns_298109_serviceinstance_pa2396", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507921462300", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "service-instance-id":"55dabffc-0f6c-424b-afd1-d3a3c515a8b3", + "service-instance-name":"mDNS_20170705_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499710772965", + "orchestration-status":"Active", + "model-invariant-id":"39d3974d-bb37-4b8d-a17b-e7c18a243325", + "model-version-id":"54be5f71-4271-4cc7-8472-a899915936c3" + }, + { + "service-instance-id":"b49aadf0-1435-468c-b338-1be1f86a1291", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_1310", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507906471665", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"7cce8c53-d391-42aa-984d-c6166dee9abe" + }, + { + "service-instance-id":"f9b00b35-3cb7-4b6f-9e21-922b4c291e70", + "service-instance-name":"mdns_298109", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507907071149", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"7cce8c53-d391-42aa-984d-c6166dee9abe" + }, + { + "service-instance-id":"203d5521-85e9-46f1-9aa2-df593be5f464", + "service-instance-name":"Nimbus_FN_Cor_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149671", + "orchestration-status":null, + "model-invariant-id":"97cbc9ae-eb1c-4d5f-a7e5-750d5a870b7a", + "model-version-id":"93873031-710e-4753-bd5b-42b70a16b608" + }, + { + "service-instance-id":"5164424e-5cc0-4050-9cd2-3598d0ed23a3", + "service-instance-name":"Nimbus_FN_HSL_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149745", + "orchestration-status":null, + "model-invariant-id":"1d64d07b-7afe-4094-b0ab-cbd209d8498c", + "model-version-id":"518938f2-4c86-42d3-9615-d1d4b4b4e947" + }, + { + "service-instance-id":"d750f7d0-8543-4c71-8949-12b1cbbb623f", + "service-instance-name":"Nimbus_FN_Internet_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150967", + "orchestration-status":null, + "model-invariant-id":"d4080c19-daaf-4e82-8e6a-ce7b555c1f74", + "model-version-id":"bbb4970b-739b-4172-a928-676a6633083a" + }, + { + "service-instance-id":"38b3186b-53ce-4e43-ab80-4e64546f2b2d", + "service-instance-name":"FCMD_01_10_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136026", + "orchestration-status":null, + "model-invariant-id":"48d59ac2-8117-4846-a3dc-1cd815af92e9", + "model-version-id":null + }, + { + "service-instance-id":"0d867a3c-66c2-49bb-89b3-a934209f04c9", + "service-instance-name":"RDM5b_mdns_2017_1011_oh222u_10312017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509393490120", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"29f8d538-a1d0-44f4-9bb9-5f7ac1691aa6" + }, + { + "service-instance-id":"49f9bca2-1442-4974-8b55-c7d7b3fb968e", + "service-instance-name":"Mobiltynimbus_1031", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509471800562", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"0d94c422-73bf-4973-b561-2c9083b7c14c", + "service-instance-name":"mdns_2017_1011_IST_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509374793651", + "orchestration-status":"Active", + "model-invariant-id":"899b5f00-2603-44ec-a49f-144bccc7d8fb", + "model-version-id":"abe58ee2-0710-4825-87ae-c6cc9f27f46b" + }, + { + "service-instance-id":"97d698da-4e7b-44b8-8596-f0fed1cb992e", + "service-instance-name":"MDNS_NETWORK_OAM", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509478420584", + "orchestration-status":"Active", + "model-invariant-id":"868d39cc-0e79-43f2-85b3-df89f3296a75", + "model-version-id":"e802d72e-97ab-4f9b-8b9b-46cfa3c58a5b" + }, + { + "service-instance-id":"8bafeb61-f9cd-4afb-b7a5-cd786df0c751", + "service-instance-name":"mdns_2017_1011_ServiceCreation_pa23061030", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509379856680", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"4620225f-8347-4baa-b079-5e49ef7bc6bf", + "service-instance-name":"INT_FW_DNS_Network_298109a", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509571358783", + "orchestration-status":"Active", + "model-invariant-id":"dbf9fa52-27f5-42d3-a1d4-b583dcb3869a", + "model-version-id":"9cbdceff-bac0-4bd3-ba2c-1a51393a37db" + }, + { + "service-instance-id":"16cd6439-ebd6-46f2-aa14-fcaa9b8c5ce7", + "service-instance-name":"PXTC_02_23_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150076", + "orchestration-status":null, + "model-invariant-id":"82e3c4a3-3727-4588-8a40-a15291be3d28", + "model-version-id":"450fea92-fc50-4949-be5e-4a749fbfb294" + }, + { + "service-instance-id":"4767ab93-da7b-492c-833f-d063c7452caa", + "service-instance-name":"Nimbus_LDST_0705_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501261983060", + "orchestration-status":"Active", + "model-invariant-id":"1f485a79-6ae9-4617-b33d-fb97e6ce7392", + "model-version-id":"3dba30e4-e212-4953-ba61-56292bad2f27" + }, + { + "service-instance-id":"c6fc80c1-de71-4484-86e5-b15ccc7e3432", + "service-instance-name":"mDNS_02-06-2017_Svc_DS_0814", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502734680482", + "orchestration-status":"Active", + "model-invariant-id":"e8790ee9-f79b-4c26-8a70-d80480d4b563", + "model-version-id":"67ff6798-1cd2-4b74-ba73-4521bc4dc6e3" + }, + { + "service-instance-id":"8af2a480-8db5-40d2-bcbc-ae3faa7804a1", + "service-instance-name":"FNAT_01_17_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152963", + "orchestration-status":null, + "model-invariant-id":"93297bb9-2a1b-4b8f-a268-23ea4cde7d7d", + "model-version-id":"cc232d92-a182-4253-b468-36430c412df3" + }, + { + "service-instance-id":"6fbb6d14-8c78-4460-9b15-68081ae7c7df", + "service-instance-name":"LDST_2017-346_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152979", + "orchestration-status":null, + "model-invariant-id":"c46f991d-94c5-4bb2-99f3-89882909798e", + "model-version-id":"7f8b2c34-3d43-4c56-afc4-66fe81ab6d95" + }, + { + "service-instance-id":"5c355bce-3469-4792-a70b-f886f73000c0", + "service-instance-name":"IXLA_2017-347_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152986", + "orchestration-status":null, + "model-invariant-id":"4199c14b-51a5-4139-941c-f49080525fb8", + "model-version-id":"a156b14f-f46d-4580-8eb2-ab79ee8686b7" + }, + { + "service-instance-id":"4aea7e38-ddfd-45dc-b019-f2fcd9b5d473", + "service-instance-name":"LMSP_Service_062317", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499796536502", + "orchestration-status":"Active", + "model-invariant-id":"ebfc4102-d174-4e8f-b30c-24552c895f9d", + "model-version-id":"8a5c4e8a-642d-480a-8341-81efe83d5594" + }, + { + "service-instance-id":"c5597127-8e60-45bc-bbe9-5053c1141340", + "service-instance-name":"FCGI_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499799955696", + "orchestration-status":"Active", + "model-invariant-id":"6a4c0f43-9b3b-45a4-b8f3-c39df18f07df", + "model-version-id":"aa11d0a4-af5a-4a7b-856f-beee64a7111a" + }, + { + "service-instance-id":"a1e29ae4-259c-4efe-8bc9-4988dd5a7bcc", + "service-instance-name":"FCMD_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499804481264", + "orchestration-status":"Active", + "model-invariant-id":"509c270c-7feb-4170-bb17-bd2b0f0e85ad", + "model-version-id":"bd60033d-a830-4dad-a769-284553c0b220" + }, + { + "service-instance-id":"1541b46f-ff19-4779-a30e-0c299080df97", + "service-instance-name":"FDNT_Service_062317", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499956663328", + "orchestration-status":"Active", + "model-invariant-id":"61f5e3da-5806-4002-9a06-ef4ca196ca84", + "model-version-id":"14015c8a-d304-4ffd-8071-81e10008a215" + }, + { + "service-instance-id":"8de54913-279f-406d-8585-e2152222373f", + "service-instance-name":"Nimbus_IXLA_0705_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499963829384", + "orchestration-status":"Active", + "model-invariant-id":"c4f9d180-e9b6-44cc-8497-83cb10621373", + "model-version-id":"6891a270-b49e-4659-b877-aa085dee23d4" + }, + { + "service-instance-id":"f9dcb4e4-a47a-4f6a-b224-5fd3b30a83a0", + "service-instance-name":"Nimbus_SGI_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148003", + "orchestration-status":null, + "model-invariant-id":"2b8d03af-1809-4d4b-ae8e-d74e46eee92b", + "model-version-id":"6a0999e5-4c0e-4c28-92ef-044a0abac425" + }, + { + "service-instance-id":"d5c83af3-4b48-4778-b2c3-07fba2362c79", + "service-instance-name":"Nimbus_FN_OAM_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148499", + "orchestration-status":null, + "model-invariant-id":"b7a39648-5c7f-447f-9308-666023c0711f", + "model-version-id":"3b47cd74-a02e-4744-b9a3-35b4618ed055" + }, + { + "service-instance-id":"dce199f8-bb6a-4e99-a861-19b544c5438f", + "service-instance-name":"Mobility_Service_297772_pb", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507663693747", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"554acac8-1482-47d3-8faf-a3127a1bd09b", + "service-instance-name":"MOBTSvc0628_svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498771282977", + "orchestration-status":"Active", + "model-invariant-id":"081804b9-dd84-409b-a724-d837939845c4", + "model-version-id":"7ed9e317-49fc-4a32-808e-2adca524b65b" + }, + { + "service-instance-id":"38811ee9-901a-46e9-8dbd-4a7faceaebd4", + "service-instance-name":"mdns_createinstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508269726756", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"6fcd3f57-51d0-41b2-8825-ad2820253e5c", + "service-instance-name":"Nimbus_Int_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147871", + "orchestration-status":null, + "model-invariant-id":"389564be-7cbb-4043-9533-710fff8081ea", + "model-version-id":"1f233dc1-4bd8-431e-82a8-4c4f072acae0" + }, + { + "service-instance-id":"5aaebe92-b062-473b-9a0c-017568386d8b", + "service-instance-name":"mdns_createService", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508265751686", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"a146b14c-6b06-435e-9c9a-f78cbcad626e", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508266016689", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + } + ] + }, + "is-permitted":true + }, + { + "service-type":"vSEGW", + "resource-version":"1494254851983", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"5dfa2fc6-5dfe-4db6-ad73-a66e0cb878f4", + "service-instance-name":"SeGW_012417_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147946", + "orchestration-status":null, + "model-invariant-id":"4800cbc9-fd8d-44d7-8d49-4722d3d55f6d", + "model-version-id":"84200623-96b0-4ba4-8e6b-a40c49db75fc" + }, + { + "service-instance-id":"8e296fb3-0308-4634-9d8e-d715c8365ae7", + "service-instance-name":"vSeGW_07_05_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499698647185", + "orchestration-status":"Active", + "model-invariant-id":"9cb8e888-a4c5-4fcb-9c8c-4366b0bfdeaa", + "model-version-id":"f97950d4-4b47-4e42-bd0d-713590f84f4f" + }, + { + "service-instance-id":"33aa1c9f-5634-447a-8fce-31727ad2b22b", + "service-instance-name":"SI_vPE_alacarte_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147970", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"3bd716aa-7817-4b04-bd91-dbc7acf028f0", + "service-instance-name":"SI_AVPN_OAM_Network_E2E_0207", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152970", + "orchestration-status":null, + "model-invariant-id":"b5373453-c64a-4bab-88cb-90d8cf04d215", + "model-version-id":"a0b35f52-6f10-4d7d-b50f-6f69ea8a0a3e" + }, + { + "service-instance-id":"5e32f45a-d406-4780-a8d2-29aa720c8f88", + "service-instance-name":"SI_vPE_custuuid_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147962", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vVM", + "resource-version":"1494255049530", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"def03e43-8993-423f-b903-50a95271b69a", + "service-instance-name":"vivtest21417", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148182", + "orchestration-status":null, + "model-invariant-id":"868522e5-efdf-4603-91eb-42538f1da8be", + "model-version-id":"b60e3c88-a403-4439-9f61-b988e4682d32" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vOTA", + "resource-version":"1501692006937", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"70ea5910-b338-417e-a3a5-b63e7780bc13", + "service-instance-name":"RDM3_vOTA3_072717_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501863709431", + "orchestration-status":"Active", + "model-invariant-id":"a21adfdb-a491-4dd1-b87d-e46a5a96da35", + "model-version-id":"eaa52657-9bbf-4312-bb45-035bb0947c83" + }, + { + "service-instance-id":"8db3b285-40ec-4fce-8d56-3f9f160ed015", + "service-instance-name":"vOTA_2016-11-10_v2_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148733", + "orchestration-status":null, + "model-invariant-id":"c3b2c93b-720a-499b-b4f2-58d9b1160639", + "model-version-id":"ba735c56-fb6a-4949-b7a7-4d586998fb51" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vMME", + "resource-version":"1497729820723", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"26731151-6854-4936-8ddc-1eb2b28cef26", + "service-instance-name":"vMME_2017-33_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152917", + "orchestration-status":null, + "model-invariant-id":"d0535cb6-cf25-4a97-aff4-6d57a0e2be7b", + "model-version-id":"44f6ed9a-93c1-488d-8926-18fa525e8579" + }, + { + "service-instance-id":"b75fb352-0719-465b-ba48-3aa7d781b394", + "service-instance-name":"vMME1610Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148345", + "orchestration-status":null, + "model-invariant-id":"1aa670c7-3637-415f-a10b-057b46ba921c", + "model-version-id":"02f741e0-9488-48ee-aa9d-b6907a95bb2a" + }, + { + "service-instance-id":"1d291ab5-0440-4263-8648-1846a09d6135", + "service-instance-name":"vMME_1610_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148352", + "orchestration-status":null, + "model-invariant-id":"1aa670c7-3637-415f-a10b-057b46ba921c", + "model-version-id":"02f741e0-9488-48ee-aa9d-b6907a95bb2a" + }, + { + "service-instance-id":"05427532-2f81-4d56-921f-52645e40dd9a", + "service-instance-name":"Vive2evmme1020", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148467", + "orchestration-status":null, + "model-invariant-id":"1aa670c7-3637-415f-a10b-057b46ba921c", + "model-version-id":"02f741e0-9488-48ee-aa9d-b6907a95bb2a" + }, + { + "service-instance-id":"14ce9494-9a75-49bf-a898-3503697c29f1", + "service-instance-name":"vMME+Svc+Jul+14", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135820", + "orchestration-status":null, + "model-invariant-id":"441ae8cd-a16a-44c3-9acc-4eaf2613792c", + "model-version-id":null + }, + { + "service-instance-id":"72960ff3-a1e9-493d-93f4-ac026b22326b", + "service-instance-name":"vMME_CI_110216_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136021", + "orchestration-status":null, + "model-invariant-id":"ff482e1a-cd62-4b8a-8603-e61a4208fe8e", + "model-version-id":null + }, + { + "service-instance-id":"c9bf0fc4-b621-40d1-8b89-7f8235171ffb", + "service-instance-name":"vMME1.8_LAB_8152017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504727411210", + "orchestration-status":"Active", + "model-invariant-id":"14d5ea8d-151f-4837-80f3-5bc21d4c4969", + "model-version-id":"53d25dca-3727-4d5c-b4f7-db7df6df5a6e" + }, + { + "service-instance-id":"aee4df10-4289-4ae1-acdc-7f8cffa61603", + "service-instance-name":"xx_2017_417_vMME_0622_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498675414340", + "orchestration-status":"Active", + "model-invariant-id":"ca096fc9-8f1b-437f-a385-2c06ce7abcba", + "model-version-id":"7bb74b3a-e257-474b-af50-5f4a19f098b0" + }, + { + "service-instance-id":"816042cd-d75a-4743-8bd0-0e74d816b5b0", + "service-instance-name":"tier_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148749", + "orchestration-status":null, + "model-invariant-id":"d26e00fb-cfa7-459d-a22d-94ae6dbd252d", + "model-version-id":"4d4db128-302a-4931-92c6-ee3e688f9270" + }, + { + "service-instance-id":"ac425fe4-3ce1-4966-8160-557eb3e2f219", + "service-instance-name":"demolily328", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148931", + "orchestration-status":null, + "model-invariant-id":"868522e5-efdf-4603-91eb-42538f1da8be", + "model-version-id":"b60e3c88-a403-4439-9f61-b988e4682d32" + }, + { + "service-instance-id":"e22f6619-7592-47e3-8f91-7a359489bae0", + "service-instance-name":"ldf_test_020915", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148050", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"124ee346-1aac-4db6-aed6-606bbc29f7c2", + "service-instance-name":"lll051817A", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495135780761", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"2b897f5c-83e1-4600-a76b-d41d54e79e21" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vMNS", + "resource-version":"1509391084129", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"3816ce95-6d3f-45fb-8909-d80ea53505f6", + "service-instance-name":"MNS_OAM_2017-331_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152438", + "orchestration-status":null, + "model-invariant-id":"774eca04-a60e-4624-8354-0e6acf03b5c3", + "model-version-id":"a9b4f3b5-91cc-4073-8971-b5998c541524" + }, + { + "service-instance-id":"52c11364-cd16-459c-9ae4-5bac77d3da20", + "service-instance-name":"MNS_FN_COR_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148818", + "orchestration-status":null, + "model-invariant-id":"b1cf73b5-c0a8-494e-8919-7dcfe179592e", + "model-version-id":"067baf5f-c809-4800-918f-af9aba6b54eb" + }, + { + "service-instance-id":"9bfc7f49-a286-4c85-95b4-cd5b7850e468", + "service-instance-name":"MNS_15_VFW_V4_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1510005095746", + "orchestration-status":"Active", + "model-invariant-id":"1fc1e151-0984-43d9-a127-f89704d2f182", + "model-version-id":"6e63db20-8fb7-457b-9c02-b4e75d5f1b06" + }, + { + "service-instance-id":"2d292275-6da1-4cce-814a-299f9af029d4", + "service-instance-name":"JSA_1610_728_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136034", + "orchestration-status":null, + "model-invariant-id":"e08d1989-cce4-42d2-9d5a-c81bc0fa9873", + "model-version-id":null + }, + { + "service-instance-id":"0fbc620f-3132-4ce5-9477-376413580282", + "service-instance-name":"MNS_FN_OAM_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148664", + "orchestration-status":null, + "model-invariant-id":"1f0f50ab-ceb3-47ef-ba37-69de8d8fbfdd", + "model-version-id":"4758c71e-7599-452d-9cae-6edc698d7684" + }, + { + "service-instance-id":"28db0d95-d564-448e-ae9d-0a17eb9eb0a1", + "service-instance-name":"MNS_FN_DMZ_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148757", + "orchestration-status":null, + "model-invariant-id":"7ac7bcc2-a3e7-46e3-abd6-471b9bf122f4", + "model-version-id":"1aa13e60-2e3c-4e73-bbd2-fc3061afc35b" + }, + { + "service-instance-id":"186eabfb-006b-45cf-bdb6-02176fac43c8", + "service-instance-name":"MNS_EXN_2017-331_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495047516159", + "orchestration-status":"Active", + "model-invariant-id":"4542e241-0a6a-40ed-bd7a-83603efe55b3", + "model-version-id":"b9714211-7ea7-4750-a410-b9b60e6f7a64" + }, + { + "service-instance-id":"77111d90-c390-4d8f-8ce2-7f5fd2cc20fc", + "service-instance-name":"APN_DNS_LB_SVC_1710", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504713849873", + "orchestration-status":"Active", + "model-invariant-id":"78384e06-013b-4928-a07c-ee162e7b9f40", + "model-version-id":"3dfbc0aa-ecc1-4869-bd85-477fabf5984a" + }, + { + "service-instance-id":"630447a3-17b5-437f-a262-7a359973c94a", + "service-instance-name":"MNS_FN_GN_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149019", + "orchestration-status":null, + "model-invariant-id":"abccc2d4-3e4b-47b1-b026-6118ba1cd47b", + "model-version-id":"6a8bc628-4ca9-4ddc-a38b-f341cef85a0e" + }, + { + "service-instance-id":"ae887a30-4a47-4765-ab66-443d9db45e86", + "service-instance-name":"MNS_FN2_OAM_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150423", + "orchestration-status":null, + "model-invariant-id":"1200c85e-c786-4246-a2a9-da6bc16f77da", + "model-version-id":"1ee1e95a-7dc3-4902-9873-5dd638c6a694" + }, + { + "service-instance-id":"6af70748-40a0-455b-a891-2ef2626dd0ab", + "service-instance-name":"JSA_AUG_2017_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501688416370", + "orchestration-status":"Active", + "model-invariant-id":"af01c62c-9909-410e-834c-89e201d18b57", + "model-version-id":"90ba0937-fed0-4ead-8021-4226f499ff76" + }, + { + "service-instance-id":"8326443b-29ea-4646-ad3a-22d406e9b4ca", + "service-instance-name":"TT_ISBC_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136028", + "orchestration-status":null, + "model-invariant-id":"204f0695-5cdc-4b92-9eda-a6b6f490a61d", + "model-version-id":null + }, + { + "service-instance-id":"c1f21fc9-f169-4a35-9f91-b4ccd1857f2e", + "service-instance-name":"MNS_DMZ02_FW_CNTR3.0_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149319", + "orchestration-status":null, + "model-invariant-id":"61a81f9e-3e13-4d05-b878-bb603111954a", + "model-version-id":"945eea0e-623e-4300-8435-24ea185f0155" + }, + { + "service-instance-id":"52bdd6f0-3cf4-4607-a0ee-345e5c1ee370", + "service-instance-name":"MNS_Mobility_Network_RDM6B", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509390672331", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"4909bb7b-42ff-4892-a3c6-cf3219804b54", + "service-instance-name":"MNS_15_VNF_VFW_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508887742652", + "orchestration-status":"Active", + "model-invariant-id":"39468fdb-dc81-4e5e-a429-bb5b4e22d456", + "model-version-id":"fe156d98-923c-4387-97cf-a74e22dfe8a8" + }, + { + "service-instance-id":"b4d67b16-1cf1-4301-a6e0-1fd3487e1279", + "service-instance-name":"viv21517", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147955", + "orchestration-status":null, + "model-invariant-id":"868522e5-efdf-4603-91eb-42538f1da8be", + "model-version-id":"b60e3c88-a403-4439-9f61-b988e4682d32" + }, + { + "service-instance-id":"d3880a9f-2f9d-432f-8aaa-c9911c9d9b64", + "service-instance-name":"MNS_EXN02_FW_CNTR3.0_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496770656655", + "orchestration-status":"Active", + "model-invariant-id":"510f925c-aec2-4740-a377-6a61df81893c", + "model-version-id":"3d4a7459-2072-40e5-8507-18554f2f5e67" + }, + { + "service-instance-id":"140b40e4-57a2-4b32-82b9-2f8475368f96", + "service-instance-name":"Mobility_Ntwking_vMNS_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507653879814", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"17b401bb-bcf9-45d3-a6fd-78474fefe44d", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254851840", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"2eb492dd-90d5-489a-9a28-5d0ae8657ed9", + "service-instance-name":"MNS_Test_2016-11-03_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147979", + "orchestration-status":null, + "model-invariant-id":"72acf076-e865-4986-9c0e-11a96ac1030e", + "model-version-id":"d16a6ed6-5f06-4af3-a5f6-b35c01cf419d" + }, + { + "service-instance-id":"f2ac821f-d0de-44d2-a635-d3c2768f6e32", + "service-instance-name":"Mobility+Proted+Network+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135548", + "orchestration-status":null, + "model-invariant-id":"f33b82c2-b4bb-4334-bf09-8cf13e7bf26d", + "model-version-id":null + }, + { + "service-instance-id":"75c4fa31-b89f-48d7-9192-2f0fd1918ca0", + "service-instance-name":"MNS%20EXN%20FW%20Cntr2.5%20Aug%2010%20Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135688", + "orchestration-status":null, + "model-invariant-id":"e409b0a0-e12f-432f-ad1c-7447f01a3d32", + "model-version-id":null + }, + { + "service-instance-id":"18c26081-ced9-4295-8363-2f5dec967175", + "service-instance-name":"Mobility+HSL+Network+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135993", + "orchestration-status":null, + "model-invariant-id":"3ea63aa3-15a6-4a22-991c-abcfd62b7131", + "model-version-id":null + }, + { + "service-instance-id":"100c48e7-ff0e-40b3-b34e-fc7789c361ce", + "service-instance-name":"Mobility+Mgmt+Network+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136003", + "orchestration-status":null, + "model-invariant-id":"ab3aff70-17cf-4644-b721-99131c8504c61", + "model-version-id":null + }, + { + "service-instance-id":"b5db5280-84ed-11e6-ae22-56b6b6499611", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254817461", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"dae4013c-8907-4c40-83e2-e4f28227a2cb", + "service-instance-name":"Mobility+Direct+Network+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136019", + "orchestration-status":null, + "model-invariant-id":"4bd8f38f-a4b0-43b9-9a5e-7cf195603521", + "model-version-id":null + }, + { + "service-instance-id":"834befdc-3acc-4a92-823f-079f6ebc693f", + "service-instance-name":"JSA_SEP_2017_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505853446859", + "orchestration-status":"Active", + "model-invariant-id":"b8e4e9a2-27af-4b14-a639-92a2096ed310", + "model-version-id":"aa0eb807-5222-4a3e-9e4b-42d317f656dc" + }, + { + "service-instance-id":"e37ba66a-07e7-4725-b336-a8df9df5cce4", + "service-instance-name":"MNS_DMZ_2017_331_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496850754822", + "orchestration-status":"Active", + "model-invariant-id":"ff0e9212-b0e4-46a8-9177-66763d33b903", + "model-version-id":"2beda03b-a8cc-489a-9f9a-dbfd64353dcb" + }, + { + "service-instance-id":"6c48980f-e78a-4bf6-88f5-eb10f10f05b1", + "service-instance-name":"MNS_DMZ_FW_SVC_062017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499721527038", + "orchestration-status":"Active", + "model-invariant-id":"d77c66b1-9eda-4a58-b0bc-8c0e8405a8b8", + "model-version-id":"44fd0d77-df33-453d-b0d1-7b8f8f504eb5" + }, + { + "service-instance-id":"4ca5a532-6737-447b-9c66-6fef3b9c2f0e", + "service-instance-name":"larry_test_031617", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148634", + "orchestration-status":null, + "model-invariant-id":"1f0f50ab-ceb3-47ef-ba37-69de8d8fbfdd", + "model-version-id":"4758c71e-7599-452d-9cae-6edc698d7684" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vSCP", + "resource-version":"1501532104695", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"b3614fb3-9430-4e21-824a-69b7838a6afa", + "service-instance-name":"vSCP_FW_INT2_20170727_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501864174017", + "orchestration-status":"Active", + "model-invariant-id":"6665336b-718d-4eb9-a4d3-699e6ce1837f", + "model-version-id":"3b667807-757c-4311-b8d2-252b6e471e24" + }, + { + "service-instance-id":"e3eb131c-d057-41af-af1f-72b16599cab0", + "service-instance-name":"larry_sample_test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136033", + "orchestration-status":null, + "model-invariant-id":"7c19573d-4984-4229-b61d-8476612418e5", + "model-version-id":null + }, + { + "service-instance-id":"116dda7f-1728-4276-b976-e750d3e360d6", + "service-instance-name":"vSCP_FW+INT1+Sept+22+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135497", + "orchestration-status":null, + "model-invariant-id":"62097076-5762-4df6-9844-75b590f19ba9", + "model-version-id":null + }, + { + "service-instance-id":"09c90fc9-b977-4611-9f62-d265908cadb4", + "service-instance-name":"larry_vsamp12_test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135516", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":null + }, + { + "service-instance-id":"49a01bf2-7793-4ba8-8b86-85fc7fe37b0f", + "service-instance-name":"e2e10202016", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152561", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":"d6d8331d-fc0a-43d9-9188-b5de9aba281e" + }, + { + "service-instance-id":"ee52ca93-8309-4b66-b935-ffc1a3a5d2b0", + "service-instance-name":"vSCP_INT1_Sept_20_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500661099821", + "orchestration-status":"Active", + "model-invariant-id":"4d97242b-89eb-4a7f-b6b6-a656a64e5ddf", + "model-version-id":"78a2d193-ba47-4a87-ba16-d30ccf281e5f" + }, + { + "service-instance-id":"771e40c1-9449-4564-bd12-3a9c32c9ef88", + "service-instance-name":"larry_test_samp12", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136037", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":null + }, + { + "service-instance-id":"f64cf888-12d7-4d98-900b-d3bb2f2a096c", + "service-instance-name":"vSCP_SVC_INT2_0722", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135475", + "orchestration-status":null, + "model-invariant-id":"d84ee2f6-2dac-4c7c-9408-20074afc0338", + "model-version-id":null + }, + { + "service-instance-id":"25ccf760-66eb-4500-990a-66d423174fae", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254851844", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"23952183-78cb-47ac-8ddd-75fc8d3e71f8", + "service-instance-name":"test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1503321384484", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"2b897f5c-83e1-4600-a76b-d41d54e79e21" + }, + { + "service-instance-id":"6eac6301-8583-4ac0-b1bf-c79eb528c95d", + "service-instance-name":"vSCP_FW_INT2_20170727_SVC_VL", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505230561129", + "orchestration-status":"Active", + "model-invariant-id":"6665336b-718d-4eb9-a4d3-699e6ce1837f", + "model-version-id":"f3e552bf-701e-4caf-b7df-e02fd00d36ed" + }, + { + "service-instance-id":"1966d1ae-fd53-4796-8eef-74d6027a67a8", + "service-instance-name":"LitalTest", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505197462504", + "orchestration-status":"Active", + "model-invariant-id":"2b85a18a-2f54-4e93-b072-08a065b4d2d7", + "model-version-id":"84775948-1cf2-4640-b918-4bbd1e6177ff" + }, + { + "service-instance-id":"7494d3c5-e6d1-4b36-9c1f-0793f4dd0752", + "service-instance-name":"ldf_test_020817", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147995", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"b229a960-06ab-4994-91d1-5ac6a7dac01c", + "service-instance-name":"vSCP_RDM3_Lab_INT2_0712_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502889690377", + "orchestration-status":"Active", + "model-invariant-id":"25f296a0-b941-45ea-8460-46f6d5bea315", + "model-version-id":"9ee7ea07-bcad-4816-bf11-56a3d39a7f53" + }, + { + "service-instance-id":"6292f85e-59cd-4ebf-a4e4-082c81ba7f19", + "service-instance-name":"LitalZ123", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505387397073", + "orchestration-status":"Active", + "model-invariant-id":"9134eae7-8e6a-46fd-9719-59244dbe752f", + "model-version-id":"33e52193-7fee-46d4-a935-9e21332b9d9e" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"VPMS", + "resource-version":"1509738154248", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"116dfe0b-d469-442f-bc8e-ff35ce2b80a3", + "service-instance-name":"Radcom-VPMS-26071-D-01-Networks", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509736844902", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"7b0c7517-fbbf-4931-89d5-3a89e2926723", + "service-instance-name":"SI_VG_test_621_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498077980067", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"dd0faef2-aa6b-4f35-bdbe-2bdda9aa05ef", + "service-instance-name":"clementdemovprobe112", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135500", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":null + }, + { + "service-instance-id":"cd3a9458-12d7-4e08-91cc-3cb1855625ce", + "service-instance-name":"Vive2evscp_vprobe1025", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148167", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"9150328a-922b-46e6-81c0-586d31cdf07a", + "service-instance-name":"Vive2evscp_vprobe1025", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152546", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"1bc1002b-d12a-4cbb-a977-f21bf9b4a7a9", + "service-instance-name":"viv2vscpe2e1025", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152553", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"44fd57f7-6027-40af-88a5-c54f74010397", + "service-instance-name":"larry_test_vprobe", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152702", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"201efd11-6cc4-40e5-b4a7-480ef9966947", + "service-instance-name":"demo1027vprobe", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152779", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"7a39c617-cfd5-41f3-986e-2e20c5d25cb6", + "service-instance-name":"vivdemo21517", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147904", + "orchestration-status":null, + "model-invariant-id":"e14dfbd9-1a46-42ba-bfe5-f5bbf6c62e90", + "model-version-id":"dfdc3990-118c-4726-af2a-dd4f65cc58f9" + }, + { + "service-instance-id":"34dc46dc-6193-4dd0-b562-f630f1d27dba", + "service-instance-name":"VPMS-BE-11-2-5-3-SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509112065190", + "orchestration-status":"Active", + "model-invariant-id":"80751ac0-adaa-4a07-917e-0c245a7f5e3c", + "model-version-id":"3474f2ed-560f-497e-9043-f8f3979586da" + }, + { + "service-instance-id":"300856aa-3ac6-4005-ad79-aac342d30006", + "service-instance-name":"vProbes_2017_FE_service_11_2_3_3_0712", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499876569894", + "orchestration-status":"Active", + "model-invariant-id":"32e665f5-e06e-41cb-8d4a-fb319045d290", + "model-version-id":"2f16e52a-5da0-4aa5-843e-8d298747016a" + }, + { + "service-instance-id":"8cc34639-ac55-42f3-8660-1c67dc0e673c", + "service-instance-name":"vPROBE_FE_Svc_2017-334_RDM3", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151275", + "orchestration-status":null, + "model-invariant-id":"ee5851c1-5f2c-48b8-af0b-8d9e9f68baab", + "model-version-id":"a5deb984-f4e6-4b10-a796-1d64ae244bab" + }, + { + "service-instance-id":"bff67aec-a57e-44a2-bfab-a810264e6dd8", + "service-instance-name":"FN-Vprobe-FE-11-2-5-3-SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509131611548", + "orchestration-status":"Active", + "model-invariant-id":"c960274f-4e9f-46fb-93da-23552a849028", + "model-version-id":"0929d7f8-640f-483b-a71c-38d2aa3cfad8" + }, + { + "service-instance-id":"8344643c-7fcb-48dd-9b0d-a3f848387d2d", + "service-instance-name":"vProbe_BE_11.2.1_Svc_2017-333", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150106", + "orchestration-status":null, + "model-invariant-id":"b4888759-3953-48f4-b0dc-23526407dc9b", + "model-version-id":"ae13cb89-d9ff-42b0-8e33-74790bc2b4f3" + }, + { + "service-instance-id":"b06e9f78-398a-466d-af4e-deb66c19bd7d", + "service-instance-name":"Mobility-vprobe-FE-11-2-1-7-Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507062871959", + "orchestration-status":"Active", + "model-invariant-id":"84e719ba-a53a-462e-a794-1a7d9a729783", + "model-version-id":"c2235b48-a005-43d0-9443-3960d47bb4af" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vMMSC", + "resource-version":"1498752217386", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"3364befd-0802-4861-99af-47c5c047239b", + "service-instance-name":"HnportalSriovProviderNet_50", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148521", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"ab305113-b153-48c9-9d65-f0bee4172142", + "service-instance-name":"SI_VFModule_test_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497033325800", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"240f80d8-4b6e-4882-a069-67512dc66888", + "service-instance-name":"HnportalSriovProviderNet_88", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148043", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"48e6f4d3-8335-4669-9708-2e972fd2473f", + "service-instance-name":"HnportalSriovProviderNet_77", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149448", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"afdf3ac0-371e-4f52-bda1-e2273179bdc7", + "service-instance-name":"SI_e2e_vf", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148545", + "orchestration-status":null, + "model-invariant-id":"d26e00fb-cfa7-459d-a22d-94ae6dbd252d", + "model-version-id":"4d4db128-302a-4931-92c6-ee3e688f9270" + }, + { + "service-instance-id":"a6f0ec08-d397-4949-9627-1c97b7f7f79c", + "service-instance-name":"SI_mvm_Test_1707_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497272999236", + "orchestration-status":"Active", + "model-invariant-id":"5db8a2c4-2833-4ccb-859f-e7c0c3424c5c", + "model-version-id":"188db48e-a4f0-4207-b52e-6a58b9c72250" + }, + { + "service-instance-id":"060e9be8-8bcc-4d2d-90b4-c1921e484f93", + "service-instance-name":"si_net_628_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498682941300", + "orchestration-status":"Active", + "model-invariant-id":"e2a5bdba-15e4-488a-85dd-53cea110a61a", + "model-version-id":"0969a516-8867-43b0-b49b-2074894c495a" + }, + { + "service-instance-id":"b09cb6f4-2f79-4378-a2f7-dfe65b7ce412", + "service-instance-name":"SI_alacarte_network_628-1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498682468277", + "orchestration-status":"Active", + "model-invariant-id":"e1a6a74e-c386-4a70-ad67-069a32a49637", + "model-version-id":"3967529c-8101-4542-bc41-e8de36a42799" + }, + { + "service-instance-id":"a19cf235-598c-408b-aa56-644925e978f9", + "service-instance-name":"SI_network_628_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498682714775", + "orchestration-status":"Active", + "model-invariant-id":"1dfcd5bb-bfcb-42e8-99b3-e3daaed63165", + "model-version-id":"bd132c96-b4c1-4663-be24-081431307cfc" + }, + { + "service-instance-id":"526fe500-b06d-49e9-ac9c-9e305468f7d9", + "service-instance-name":"HnportalSriovProviderNet_89", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151379", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"7f05c8e1-0592-46ed-9ddb-ae03f9047730", + "service-instance-name":"VvigServiceVvigSriovProviderNetworkService_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149722", + "orchestration-status":null, + "model-invariant-id":"846f6cf0-cb82-4cd2-b035-f6a5b4c928cc", + "model-version-id":"ff79f357-6b41-488a-b762-87f146aa8dd9" + }, + { + "service-instance-id":"be3b207e-5a2e-4afc-a33e-f7b7234cc1ad", + "service-instance-name":"SI_test_vid619_DD_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497884131196", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"8c15d8b8-d62e-4066-b0bf-2d63224843a9", + "service-instance-name":"SI_mvm241_Testsvc_dd_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497548765890", + "orchestration-status":"Active", + "model-invariant-id":"5db8a2c4-2833-4ccb-859f-e7c0c3424c5c", + "model-version-id":"188db48e-a4f0-4207-b52e-6a58b9c72250" + }, + { + "service-instance-id":"d12538b2-d2f3-4879-87ac-f0b45fc6f84d", + "service-instance-name":"CRSVC_Mobility_Service_297772_ss616y_09_26_17_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506440871179", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"dc4b47a7-9834-4b94-a06d-05968e739fc0", + "service-instance-name":"SI_VNF_FlagTest_627_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498586212786", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"9e3499af-9d03-4831-ba04-05311508bcba", + "service-instance-name":"SI_mvm1707_test_dd_08", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498249852156", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"500da3fa-2b1d-4c7b-bafa-7f725ddf49e8", + "service-instance-name":"Service_Test_Demo_MOW_04", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135581", + "orchestration-status":null, + "model-invariant-id":"a44b38bb-3af7-4dc6-8599-1cdc364410e8", + "model-version-id":null + }, + { + "service-instance-id":"02e038e0-2321-44d5-a042-6c2eb6ee2ea4", + "service-instance-name":"x291364a_ASTRA_vVIG_Service_tutu", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506027459911", + "orchestration-status":"Active", + "model-invariant-id":"81136370-2afb-4738-bc93-de2bc64f573b", + "model-version-id":"056345ca-6105-4bb5-8406-e4e151380bc0" + }, + { + "service-instance-id":"0512c4cc-067f-44c3-a310-cce7efc45307", + "service-instance-name":"SI_VGTest_621_4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498082005284", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"804c924a-00fe-40a9-af10-fbaa4ad99390", + "service-instance-name":"vMMSC_Lab2_020217_Svc_Service_0617", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497721637609", + "orchestration-status":"Active", + "model-invariant-id":"157f09fe-15f1-4c9f-a0bc-c7a92e382f9d", + "model-version-id":"524f7306-5623-46fc-8383-1a695791c4b9" + }, + { + "service-instance-id":"2a5e8844-b9aa-4866-b202-a9ff7f6c6502", + "service-instance-name":"SI_network_621_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498074740050", + "orchestration-status":"Active", + "model-invariant-id":"857587a2-f160-4e8c-b993-b3a373694d26", + "model-version-id":"e27bb69f-8110-4429-9884-e1a79a6ba4e4" + }, + { + "service-instance-id":"590d330a-95c6-4bb7-876c-f88e9a26e24f", + "service-instance-name":"Service_Instance_Demo_MOW_05", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149372", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"96d051cf-0efd-4ce3-bca2-ac625b6f547a", + "service-instance-name":"", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149830", + "orchestration-status":null, + "model-invariant-id":"b5373453-c64a-4bab-88cb-90d8cf04d215", + "model-version-id":"a0b35f52-6f10-4d7d-b50f-6f69ea8a0a3e" + }, + { + "service-instance-id":"1b9e0bf1-13d9-4122-8364-6d94187a6e76", + "service-instance-name":"vMMSC_Lab2_010517_Svc_DS_0714_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500063304219", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"66395952-21dc-4f1d-a02a-41e67b1f5694", + "service-instance-name":"svc_lll_022017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148143", + "orchestration-status":null, + "model-invariant-id":"a88591c3-4de7-4cf8-85ac-50f1f7be15d8", + "model-version-id":"41a82132-9c2c-4eb0-bad4-22daf0d3bf81" + }, + { + "service-instance-id":"97ed0e33-3031-42c7-a4ce-519f3af21132", + "service-instance-name":"HnportalSriovProviderNet_29", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148377", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"022b44be-2fe1-465a-b9ad-e9d6c3c89778", + "service-instance-name":"VMMSC_AIC_3.0_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495556113481", + "orchestration-status":"Active", + "model-invariant-id":"ea082ff0-a1e3-425b-85de-0d083cad3f98", + "model-version-id":"2b32bcfb-7fbc-47c2-8e48-a9187236bcba" + }, + { + "service-instance-id":"72117a7f-e304-4f59-9ba5-d2b6419caa6b", + "service-instance-name":"HnportalSriovProviderNet_100", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148058", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"6e58ad4d-ef9f-47b8-91d9-13624a76118e", + "service-instance-name":"VbngServiceSriovProviderNetworkService_4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498761340221", + "orchestration-status":"Active", + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + }, + { + "service-instance-id":"26031c62-ca38-4427-a773-ee43a172ed3a", + "service-instance-name":"vMMSC_Test_06292017_Svc_0629_ud6361", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498782124079", + "orchestration-status":"Active", + "model-invariant-id":"a38c1661-ae00-4122-8b73-c58d58915e6b", + "model-version-id":"7b07c320-e0ca-4434-82ba-0e0cf217d4c9" + }, + { + "service-instance-id":"d3055874-7e1c-4a3d-b4d1-8ac3e91fcc28", + "service-instance-name":"vMMSC_Test_08182017_Svc_sb063v", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1503070451727", + "orchestration-status":"Active", + "model-invariant-id":"a38c1661-ae00-4122-8b73-c58d58915e6b", + "model-version-id":"7b07c320-e0ca-4434-82ba-0e0cf217d4c9" + }, + { + "service-instance-id":"4e08c0ae-21e7-4682-999d-1d76958155e2", + "service-instance-name":"VvigServiceVvigTenantOamNetwork_28", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148082", + "orchestration-status":null, + "model-invariant-id":"fe43c7d9-97d6-4cd2-a994-e1c4bb9019c2", + "model-version-id":"addb2e1d-78cf-45e7-9aa8-23bdf22cebe5" + }, + { + "service-instance-id":"9c44641c-a5e8-4a6a-9dc9-bcfec9971761", + "service-instance-name":"SI_vVIG_Service_vVIG_SRIOV_Provider_Network_Service_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149559", + "orchestration-status":null, + "model-invariant-id":"92bc714b-b0a9-42e6-8074-477e167edc48", + "model-version-id":"607ee147-9eb3-47a8-b4fb-ee810e11c681" + }, + { + "service-instance-id":"7b65977b-d255-4ed9-95cd-30ad6d78168c", + "service-instance-name":"VvigTenantOamNetworkSvc0627_14", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506032019917", + "orchestration-status":"Active", + "model-invariant-id":"452396ca-0a6b-4277-b72a-4ce17d00f40a", + "model-version-id":"0d7d7e3d-6077-4f60-a09c-20923d3eaba1" + }, + { + "service-instance-id":"743485e9-654e-449d-938c-3b2fbf7dae03", + "service-instance-name":"a_291364a_ASTRA_vVIG_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506032583103", + "orchestration-status":"Active", + "model-invariant-id":"81136370-2afb-4738-bc93-de2bc64f573b", + "model-version-id":"056345ca-6105-4bb5-8406-e4e151380bc0" + }, + { + "service-instance-id":"facedbb9-9703-4b61-a04b-d0f23e6a0188", + "service-instance-name":"crSVC_Mobility_Service_297772_ss616y_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506374487982", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"8c56447a-41c8-42b5-80b5-516a1106b891", + "service-instance-name":"VvigTenantOamNetworkSvc0627_13", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506031851552", + "orchestration-status":"Active", + "model-invariant-id":"452396ca-0a6b-4277-b72a-4ce17d00f40a", + "model-version-id":"0d7d7e3d-6077-4f60-a09c-20923d3eaba1" + }, + { + "service-instance-id":"2ddb263f-f061-4b29-8ca6-0b87faf31ac5", + "service-instance-name":"SI_MVM_Test_DD_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495718844830", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"c74aaa37-6eee-48cf-bcd1-ad7cc0a7118f", + "service-instance-name":"SI_vg_518", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495136200559", + "orchestration-status":"Active", + "model-invariant-id":"d26e00fb-cfa7-459d-a22d-94ae6dbd252d", + "model-version-id":"60a0d00c-7af4-4011-8368-c8b21c4d93fc" + }, + { + "service-instance-id":"c9dd1438-d10f-406d-be46-39ff3edfac80", + "service-instance-name":"lll_mvm_sbc_2017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495134122399", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"fd202522-5f89-4ce9-b892-5f75956f93b3", + "service-instance-name":"HnportalSriovProviderNet_112", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149987", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"a83695df-061f-4871-80fe-0be5f7113ad0", + "service-instance-name":"HnportalSriovProviderNet_53", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148198", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"3d443a66-504d-49d3-967d-5f6523ec2e7b", + "service-instance-name":"HnportalSriovProviderNet_55", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148205", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"9365e5c7-bdd6-4f50-a8d2-96d5b3293842", + "service-instance-name":"HnportalSriovProviderNet_123", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149295", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"1f3f0dda-0835-4606-a142-5468853e09df", + "service-instance-name":"service_intsnace_test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149662", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"d71ac15f-3774-4418-8df0-6087ab5a554a", + "service-instance-name":"AvpnMowVpeOamNetworkNew_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150623", + "orchestration-status":null, + "model-invariant-id":"8af0c0bb-6cf2-4815-ba64-d3b4cafc6674", + "model-version-id":"b875ace5-161f-40ac-87f8-7accc181e515" + }, + { + "service-instance-id":"5ba77479-e6e4-4bd1-996e-66d04c0b8314", + "service-instance-name":"SI_ds1707_test_dd_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500409249772", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"e6405160-81f8-42c2-9f9e-930897d9c320", + "service-instance-name":"cSvc_291364a_ASTRA_vVIG_Service_sstest", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506359010172", + "orchestration-status":"Active", + "model-invariant-id":"81136370-2afb-4738-bc93-de2bc64f573b", + "model-version-id":"056345ca-6105-4bb5-8406-e4e151380bc0" + }, + { + "service-instance-id":"537b6fdd-1753-4be6-8b12-d325eebc3e32", + "service-instance-name":"createService_Mobility_Service_297772_09_28_ss616y", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506543405211", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"7f8b4e13-fc46-4b67-b2b7-d6d8226476fe", + "service-instance-name":"x_mdns_2017_1011_CSI", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509729899645", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"4ec4f2c8-6f55-4244-aa36-aac847ac048f", + "service-instance-name":"vMMSC+Sept+22+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136029", + "orchestration-status":null, + "model-invariant-id":"0e0e6da4-5ca6-4d83-b63c-89c5e3c3d004", + "model-version-id":null + }, + { + "service-instance-id":"39324f70-406f-486e-8b3b-5c0f7abd7640", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254803645", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"9c3042f1-62b9-4ef2-81c0-333fbfbb6510", + "service-instance-name":"SI_vsamp_1117", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135562", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":null + }, + { + "service-instance-id":"4b0f6c91-239c-4311-bb96-6e7326a39147", + "service-instance-name":"larry_test110216", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136003", + "orchestration-status":null, + "model-invariant-id":"7c19573d-4984-4229-b61d-8476612418e5", + "model-version-id":null + }, + { + "service-instance-id":"3191493c-46cd-40d0-b659-c7d1e5f14bda", + "service-instance-name":"vMMSC_MMS_Lab_3_121416_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152771", + "orchestration-status":null, + "model-invariant-id":"c730ab8c-7758-44f6-b613-99182802b3ad", + "model-version-id":"1693b862-1cb5-44dd-b9bc-b2f4c4fb8848" + }, + { + "service-instance-id":"5d826b36-65d8-4110-82d4-14b87fb2496a", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254819442", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"ee612d09-aa6d-455d-97ad-3259d2098d75", + "service-instance-name":"HnportalSriovProviderNet_58", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151334", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"6301180d-d4d8-447d-88f9-37fa585b1502", + "service-instance-name":"vMMSC_AIC_3.0_0622_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500335097279", + "orchestration-status":"Active", + "model-invariant-id":"8b272d41-0cb9-4fb5-a27a-46bd2c8376e4", + "model-version-id":"43440f00-cb82-4f6a-8025-f960c714f409" + }, + { + "service-instance-id":"a5c57309-c13c-4d93-b849-78857cbc1620", + "service-instance-name":"Mobility_Service_297772_nb5443", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505761426908", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"8d79d575-fd8e-4df9-916b-52ddd77bf63b", + "service-instance-name":"Service_Test_Demo_AVPN_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151051", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"01c24b6b-c466-48d4-a9c5-d49ef23b6912", + "service-instance-name":"AvpnMowVpeOamNetwork_51", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151839", + "orchestration-status":null, + "model-invariant-id":"b5373453-c64a-4bab-88cb-90d8cf04d215", + "model-version-id":"a0b35f52-6f10-4d7d-b50f-6f69ea8a0a3e" + }, + { + "service-instance-id":"c254cb3d-d251-4754-a88f-2ade55a6fea8", + "service-instance-name":"SI_mvm1707_test_dd_05", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496164401395", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"c509bf00-9880-4393-8f24-c8cf4cdb5269", + "service-instance-name":"SI_namespace_test_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497033852857", + "orchestration-status":"Active", + "model-invariant-id":"a03eddac-24c5-4e66-92be-5b9e84647324", + "model-version-id":"106a818f-e37e-4bf7-922b-47c1e6e2e5c1" + }, + { + "service-instance-id":"e42898ae-c05a-4a78-8c43-ac54b0a890cb", + "service-instance-name":"SI_Test_619_DD_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500663275337", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"d6b2677e-12bf-4dfa-b187-da47fffbf0fe", + "service-instance-name":"SI_VBNG_OAM_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148221", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"faac5e72-5fa0-4a3c-84f9-7f582cb6dac7", + "service-instance-name":"HNPortal_OAM_NET_VTO_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151970", + "orchestration-status":null, + "model-invariant-id":"bc8f060e-bf77-4ec1-b817-fe3f341d3321", + "model-version-id":"965ac7c4-4668-4a47-bfe1-963aac391f6d" + }, + { + "service-instance-id":"4d02aab1-9733-4753-90fa-148b2149f99b", + "service-instance-name":"Service_Instance_Network_Demo_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149737", + "orchestration-status":null, + "model-invariant-id":"39ef2db5-dcf0-4ab9-94a3-0eb75a42038b", + "model-version-id":"b411cc01-20d9-465a-a5ed-f6382045f829" + }, + { + "service-instance-id":"da6cac78-6033-4600-867c-9ecb8e19134b", + "service-instance-name":"si_test_AVPN", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495135690422", + "orchestration-status":"Active", + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"b73c6911-be64-448a-bb4b-7b7a7006507a" + }, + { + "service-instance-id":"463f089f-0397-4423-962d-b6a08fadb1cd", + "service-instance-name":"SI_test_518_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495135626521", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"2b897f5c-83e1-4600-a76b-d41d54e79e21" + }, + { + "service-instance-id":"96ebc75f-fb74-4e90-a907-f8e95e12b2f7", + "service-instance-name":"Mobility_Service_297772_DS_0918_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505761575910", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"56ee9345-037e-4145-a678-0c91f31d986c", + "service-instance-name":"Sanity_Service_Redundancy_05", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152568", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"a5196283-561f-43c9-adf6-d303c2bfabd3", + "service-instance-name":"SI_vVIG_Test_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151348", + "orchestration-status":null, + "model-invariant-id":"846f6cf0-cb82-4cd2-b035-f6a5b4c928cc", + "model-version-id":"ff79f357-6b41-488a-b762-87f146aa8dd9" + }, + { + "service-instance-id":"ec6b2b5b-b3cc-428d-951a-246b5c520f2d", + "service-instance-name":"VMMSC_AIC_3.0_MVM_0612", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497298262657", + "orchestration-status":"Active", + "model-invariant-id":"ea082ff0-a1e3-425b-85de-0d083cad3f98", + "model-version-id":"6bd3502f-804e-49fd-b328-d07ee3abe284" + }, + { + "service-instance-id":"8eabacfe-c914-4891-9d1c-68f0ecff1944", + "service-instance-name":"VMMSC_AIC_30_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505484796812", + "orchestration-status":"Active", + "model-invariant-id":"2c1376b7-4041-4f2d-91a4-dcc028712131", + "model-version-id":"71f9aa6c-5a84-4c40-a021-f09c063e55f4" + }, + { + "service-instance-id":"125acc86-c526-4480-802f-a3be8a5cdee5", + "service-instance-name":"Service_Test_demo_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148369", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"7d05c5df-e627-43f2-8684-bac0762dacbd", + "service-instance-name":"HnportalSriovProviderNet_98", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149640", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"62b492ec-66c9-4817-9104-2d5dfa83e323", + "service-instance-name":"SI_vid619_test1707_dd_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497982285526", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"1f138e0a-8e8a-4a2f-b2b8-0d88ce49de11", + "service-instance-name":"SI_VG_620_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497990411263", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"c063b7bc-a213-4c89-9b48-e8369ffc78b2", + "service-instance-name":"SI_test_VG_621_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498078068416", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"fb433045-336d-4394-a158-1cd19f4bea7d", + "service-instance-name":"Service_vPROBE_298109_II_sb_0919", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505833529173", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"33c37a25-76a7-40fe-b08e-d88384e5654e", + "service-instance-name":"HnportalSriovProviderNet_96", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149632", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"3d689e37-9e68-470e-8b9f-ec1fa2700ff4", + "service-instance-name":"SI_VF_VG_e2e_196_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497884700308", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"d0dd8197-b506-4118-97c9-29fa49af77fd", + "service-instance-name":"vMMSC_Lab2_010517_Svc_DS_0615_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497539173826", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"01ea26d4-d83b-4e89-8e9e-f93f4d387933", + "service-instance-name":"SI_test_518_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495132055390", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"c0d6aca3-c3bb-48eb-8912-22a214b99dc1", + "service-instance-name":"SI_test_518", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495131822848", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"2b897f5c-83e1-4600-a76b-d41d54e79e21" + }, + { + "service-instance-id":"b18dcd6c-9581-458e-9e19-606bb7e8cf21", + "service-instance-name":"SI_MVM_test_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495133003732", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"e0aa3f05-1c5d-4205-be72-b4f53c5caf26", + "service-instance-name":"lll_051817_vmme_svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495131287067", + "orchestration-status":"Active", + "model-invariant-id":"bc95bd73-a2c5-4de6-bd79-50d7ce688afa", + "model-version-id":"070d4280-8e82-4338-819c-a15f22943576" + }, + { + "service-instance-id":"8514ebd9-b681-47e7-86bc-6c803b672dc4", + "service-instance-name":"vMMSC_Lab2_020217_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147818", + "orchestration-status":null, + "model-invariant-id":"157f09fe-15f1-4c9f-a0bc-c7a92e382f9d", + "model-version-id":"efd7db1d-3425-4f33-b637-21d4779e2a86" + }, + { + "service-instance-id":"d11b6e9b-0c72-4e65-a93e-a94d9c673d05", + "service-instance-name":"vMMSC_Test_06292017_Svc_ds_0720_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500490381801", + "orchestration-status":"Active", + "model-invariant-id":"a38c1661-ae00-4122-8b73-c58d58915e6b", + "model-version-id":"7b07c320-e0ca-4434-82ba-0e0cf217d4c9" + }, + { + "service-instance-id":"78f93382-b473-47c9-b921-3beb1e73477e", + "service-instance-name":"vMMSC_Lab2_010707_Svc_SA", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499368751374", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"512cea94-0ae9-4df5-a670-75fdeb709574", + "service-instance-name":"vMMSC_Lab2_010517_Svc_710", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499701812485", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"c4783855-6c77-4a41-a6b4-d3fe7714a2da", + "service-instance-name":"Service_Instance_Demo_MOW_06", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148700", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"a41138d3-528c-4b59-94a0-cda8f0b86d9b", + "service-instance-name":"Service_vPROBE_298109_sb_0914", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505421696638", + "orchestration-status":"Active", + "model-invariant-id":"429b7c51-6a5d-4bd7-98de-78b2cc58357f", + "model-version-id":"954a9b29-68bd-42aa-8ace-0d8890844ac8" + }, + { + "service-instance-id":"1481c145-43de-41dd-81a0-6a1fd3100a27", + "service-instance-name":"a_2016_191_vIRC_license_svr_Svc_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505491968433", + "orchestration-status":"Active", + "model-invariant-id":"29f1d520-0ac8-49c5-ac32-267530bec4aa", + "model-version-id":"d205a128-cab7-44d2-8167-7e30fa5e08e5" + }, + { + "service-instance-id":"8752cea8-ffee-4dcc-8f80-71641ce7017b", + "service-instance-name":"Service_vMMSC_298109_Svc_DS_0913_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505336746682", + "orchestration-status":"Active", + "model-invariant-id":"59e1f843-41d8-4010-814a-c480f68ec285", + "model-version-id":"78cb3626-e007-41d1-9676-7ac7f1a7e787" + }, + { + "service-instance-id":"5cd4b31f-17e3-4bc2-8a53-fd1aebfc40c8", + "service-instance-name":"HnportalSriovProviderNet_97", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149102", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"d7596d34-bc10-48cb-8282-363e534fa1dc", + "service-instance-name":"SI_demo_0502", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151312", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"5a2cb0c0-e32d-42a9-9a8c-e47ad9dd7978", + "service-instance-name":"HnportalSriovProviderNet_73", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149603", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"1664e68e-5323-4d0a-be16-fbf7a973aede", + "service-instance-name":"HnportalSriovProviderNet_82", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149782", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"83865127-f76c-4425-a775-a1c5678ef3ed", + "service-instance-name":"SI_test_0602", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496430868986", + "orchestration-status":"Active", + "model-invariant-id":"29dc99aa-7648-497f-8e2b-7d5ebedfdae2", + "model-version-id":"79b2df12-3759-426d-9b5e-4a9a0f2a28b1" + }, + { + "service-instance-id":"370073cf-89e9-4526-9fc0-dfff468571a8", + "service-instance-name":"SI_vVIGaas_Test_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148452", + "orchestration-status":null, + "model-invariant-id":"9134eae7-8e6a-46fd-9719-59244dbe752f", + "model-version-id":"8cb824f1-bc2a-46c7-a579-00579ead5392" + }, + { + "service-instance-id":"3295dd00-33a6-4f96-a6b6-88def31c106f", + "service-instance-name":"SI_MOW_AVPN_vMX_BV_vPE_VF_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149172", + "orchestration-status":null, + "model-invariant-id":"450006b7-9d95-405a-b1c5-8bd617a8600e", + "model-version-id":"1502c920-3ff9-4552-8ebd-d112591ddce8" + }, + { + "service-instance-id":"3b91aa28-6583-4820-9927-0ae67551b300", + "service-instance-name":"AvpnMowVpeOamNetworkNew_3", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151568", + "orchestration-status":null, + "model-invariant-id":"8af0c0bb-6cf2-4815-ba64-d3b4cafc6674", + "model-version-id":"b875ace5-161f-40ac-87f8-7accc181e515" + }, + { + "service-instance-id":"9e479ab8-7e19-4e16-9375-b0591da2b514", + "service-instance-name":"VvigServiceVvigTenantOamNetwork_27", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149179", + "orchestration-status":null, + "model-invariant-id":"fe43c7d9-97d6-4cd2-a994-e1c4bb9019c2", + "model-version-id":"addb2e1d-78cf-45e7-9aa8-23bdf22cebe5" + }, + { + "service-instance-id":"e757da92-6c9f-44d8-8ff8-15bde01290cb", + "service-instance-name":"SI_MOW_Test_Demo_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148474", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"885a79b0-ffd0-4b26-8f34-5e7eb22a959a", + "service-instance-name":"VvigSriovProviderNetworkSvc070317_9", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506032192216", + "orchestration-status":"Active", + "model-invariant-id":"5a4d1b5a-32a3-466f-92b4-1de7a3f6dbf6", + "model-version-id":"28720d53-a61e-468b-90ec-d11ffef70653" + }, + { + "service-instance-id":"7ada0691-8478-46e6-b77d-9509b17ccc5c", + "service-instance-name":"SI_test_245_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495655320076", + "orchestration-status":"Active", + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"b73c6911-be64-448a-bb4b-7b7a7006507a" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"SSD", + "resource-version":"1494254866295", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"0a6b93fa-7c56-4842-9410-4823067d279d", + "service-instance-name":"demotest1026", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152947", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vMOG", + "resource-version":"1500675745252", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"03d65b86-3ee9-4f8c-89a2-360b34b3fd2a", + "service-instance-name":"MOG11_1_VNF_Apr_6", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135885", + "orchestration-status":null, + "model-invariant-id":"b3359087-7153-4520-9eb7-053e0a40ca22", + "model-version-id":null + }, + { + "service-instance-id":"5629382d-c78c-4bce-9766-a4590b7779cd", + "service-instance-name":"MOG11_1_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152835", + "orchestration-status":null, + "model-invariant-id":"aab91394-722a-442f-bef8-cd86227b9e93", + "model-version-id":"a19962d3-8521-416a-a6d8-7645f5b0dcae" + }, + { + "service-instance-id":"8d5b0ad7-fc6f-4de9-844f-3566978953c4", + "service-instance-name":"MOG11ArbiterJune_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498843846042", + "orchestration-status":"Active", + "model-invariant-id":"c800355e-5b79-4afb-93e0-70450dd6968f", + "model-version-id":"6402ee72-0af8-4bea-89a9-ce099a563c70" + }, + { + "service-instance-id":"ccb99e3c-f9b4-4715-924e-57bbedea464a", + "service-instance-name":"xx_2017-328_vMOG1_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151817", + "orchestration-status":null, + "model-invariant-id":"868522e5-efdf-4603-91eb-42538f1da8be", + "model-version-id":"b60e3c88-a403-4439-9f61-b988e4682d32" + }, + { + "service-instance-id":"601fbb00-40ac-46b9-8386-34cc00222757", + "service-instance-name":"ARB14_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501268179140", + "orchestration-status":"Active", + "model-invariant-id":"a9d2bcc4-b547-48d4-94f0-344bfe277d0b", + "model-version-id":"ee7b9bb7-b1a3-4970-ad14-f3fe96d1a090" + }, + { + "service-instance-id":"d08cc422-cbcd-430a-a8f4-6c5c1a0e2380", + "service-instance-name":"ARB12_0811_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502907960465", + "orchestration-status":"Active", + "model-invariant-id":"97be5a08-14a3-4ed4-8de5-ab4d1511ca5f", + "model-version-id":"4d9a539e-ec4a-449b-8559-ef5d9661bd0a" + }, + { + "service-instance-id":"c2a66d59-7400-4800-9611-13cc29778c7a", + "service-instance-name":"MOG12.1_0628_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499103173947", + "orchestration-status":"Active", + "model-invariant-id":"4c61b8d0-bef3-48d7-bf67-849bafbd21a2", + "model-version-id":"40fed6d5-69c8-42cd-8319-01f531a370fa" + }, + { + "service-instance-id":"4fb75729-e127-4406-951c-f0cf169abda3", + "service-instance-name":"vMOGsvc1607Jul20", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135530", + "orchestration-status":null, + "model-invariant-id":"6e382ecb-bf03-4111-a125-de4442d84dcb", + "model-version-id":null + }, + { + "service-instance-id":"9dbfb551-6169-48ee-90f9-c7a8b7cb7226", + "service-instance-name":"test_larry_1206", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136012", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":null + }, + { + "service-instance-id":"37aa1cd2-decf-41a8-9edb-ed4407898201", + "service-instance-name":"vMMSC_Lab2_010517_Svc_Rollback", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499697119107", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"be3a57e8-5462-4ef6-8858-983152bfdfa4", + "service-instance-name":"MOG_11_1_ECOMP_2017_June_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498614215166", + "orchestration-status":"Active", + "model-invariant-id":"8c8fcdbf-c79c-485a-8a22-a76adc58895e", + "model-version-id":"55bf1513-82e3-4156-9d03-e8f09c1c661e" + }, + { + "service-instance-id":"629cb0e6-0f2d-421b-995e-bc1642bbe0a1", + "service-instance-name":"MOG12_0811_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502736104266", + "orchestration-status":"Active", + "model-invariant-id":"df2f9ea0-fb1e-45a0-9774-01b7e552cd9b", + "model-version-id":"413a6a21-54ab-4c6f-869b-02d57592779a" + }, + { + "service-instance-id":"3a4a80e4-1538-42e5-bc19-dea1db3e1908", + "service-instance-name":"vMOG_12142016_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152844", + "orchestration-status":null, + "model-invariant-id":"41dad78d-3711-40c4-beb1-dd261d85d8d9", + "model-version-id":"736dafd3-aca9-4acc-ae5f-cdc6c6ce9ce0" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"FIRSTNET", + "resource-version":"1509387060781", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"72745ee0-4236-43a4-a2a7-5156f7d5db4d", + "service-instance-name":"RDM5a_TFNET_CORE_NTWK_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151745", + "orchestration-status":null, + "model-invariant-id":"137fb14d-ad74-4295-9d39-400b920f8727", + "model-version-id":"7df8ffac-d441-42cd-acd0-56551443cced" + }, + { + "service-instance-id":"21343700-a9d3-401c-a9cb-d46dacecac8a", + "service-instance-name":"vSAEGW-FN-0630-Svc-RDM5B1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508454188209", + "orchestration-status":"Active", + "model-invariant-id":"eb710f16-73b4-40b8-9e78-e920fde3d45c", + "model-version-id":"9972f060-be31-4021-975d-331a274e0b26" + }, + { + "service-instance-id":"fe7b3002-fec0-4604-a60d-8ee5df52dd81", + "service-instance-name":"VPMS-FN-26071-T-01-FE-Networks", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508530185281", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"2548a167-6203-4bd2-a073-d93ba04375c7", + "service-instance-name":"APNDNS-1710-SVC-FN", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508510732055", + "orchestration-status":"Active", + "model-invariant-id":"76ddddcb-87a7-4b28-999c-10daac2dc6c9", + "model-version-id":"825e8b57-e4d6-4469-9a80-803ce4cf994a" + }, + { + "service-instance-id":"5b1b7638-ccfd-4115-98d1-9a8c79f52a0a", + "service-instance-name":"FMBT_05_30_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499565576697", + "orchestration-status":"Active", + "model-invariant-id":"dfd6095c-1fad-4c9d-b9e3-1e2766cb7c92", + "model-version-id":"0f5ae9a5-2616-4d44-b654-7e69b507dbb0" + }, + { + "service-instance-id":"6d66c7e2-15c3-4d47-b923-9e55973e06fe", + "service-instance-name":"FN-vProbe-BE-11-2-5-1-Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506374824011", + "orchestration-status":"Active", + "model-invariant-id":"0194713a-1215-435c-bccd-d23407937d9d", + "model-version-id":"0b421ba2-6ef1-4536-8b6e-66bdc6845946" + }, + { + "service-instance-id":"1b7a5027-4df7-4730-be55-8783d629db94", + "service-instance-name":"AMP_NSO_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509398451550", + "orchestration-status":"Active", + "model-invariant-id":"3381efde-c9b8-4845-b63f-a0402a8ab428", + "model-version-id":"2adce1bb-768a-4e0f-a3b6-e9bfed8cb813" + }, + { + "service-instance-id":"1f1c8086-ea43-42b7-b16c-cf84bd83fd0d", + "service-instance-name":"VEPDG_Firewall_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508447384962", + "orchestration-status":"Active", + "model-invariant-id":"810bf0f9-2ee4-42f4-ae7a-3c3f3d97ce4c", + "model-version-id":"81d50a2e-5848-4cc2-9f5e-403a4aab02de" + }, + { + "service-instance-id":"7bb7ea08-d091-433d-b3e5-1e32617b19d7", + "service-instance-name":"APNDNS-1710-SVC-FN-RDM5a", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509999807693", + "orchestration-status":"Active", + "model-invariant-id":"76ddddcb-87a7-4b28-999c-10daac2dc6c9", + "model-version-id":"825e8b57-e4d6-4469-9a80-803ce4cf994a" + }, + { + "service-instance-id":"bf1175e7-c0c3-403a-8d19-68647dc3a4e6", + "service-instance-name":"AMP_NSO_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509053109463", + "orchestration-status":"Active", + "model-invariant-id":"3381efde-c9b8-4845-b63f-a0402a8ab428", + "model-version-id":"2adce1bb-768a-4e0f-a3b6-e9bfed8cb813" + }, + { + "service-instance-id":"53926da2-2c9a-469a-b559-e4a23f19ba8e", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494294004261", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"6fa2437f-985a-4dd0-ad42-40ef06061c7d", + "service-instance-name":"vEPDG_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507824795872", + "orchestration-status":"Active", + "model-invariant-id":"b57ef9be-0d97-483d-959c-2f6747ca021f", + "model-version-id":"b36a8bdd-7d6b-47b3-a7d3-e505779cf1dc" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"ACTIVE_CHARGE", + "resource-version":"1494255101364", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"42671b61-6530-4494-b52e-3a553eca7315", + "service-instance-name":"AC_Svc20", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509480348906", + "orchestration-status":"Active", + "model-invariant-id":"a03eddac-24c5-4e66-92be-5b9e84647324", + "model-version-id":"7b4d4e9d-377a-4afc-a982-f4eeb78e6171" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vHSS", + "resource-version":"1494254877333", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"cebf5d96-09d7-4bee-9b5b-c5e116366c5b", + "service-instance-name":"vHSS-EPC-RDM3-Lab-SVC-0921", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507211398987", + "orchestration-status":"Active", + "model-invariant-id":"b97ec4b9-f87f-424e-a4c2-960970f6954e", + "model-version-id":"b70398dd-3e40-4486-9e17-c5f22e21ecc0" + }, + { + "service-instance-id":"6190f33b-ce93-4dce-8ef9-4c737ee0cccb", + "service-instance-name":"vHSS_RDM3_Lab_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496180262725", + "orchestration-status":"Active", + "model-invariant-id":"50bacdfb-7149-401d-aa26-adab4ee95d78", + "model-version-id":"bf701670-69cf-4628-a230-20d60c517cf7" + }, + { + "service-instance-id":"99ec97fc-d9c6-47df-b619-b8d51e693b00", + "service-instance-name":"vHSS-RDM3-Lab1-SVC-0803", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502120091585", + "orchestration-status":"Active", + "model-invariant-id":"46807b18-b0fc-4023-b21d-2d9ec283062b", + "model-version-id":"a688e914-ca02-4d26-9817-21934b366416" + }, + { + "service-instance-id":"86bad36c-e58a-4681-8d6e-9a72caed750e", + "service-instance-name":"vHSS-EPC-RDM3-Lab-SVC-0830", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505856441762", + "orchestration-status":"Active", + "model-invariant-id":"af10ca62-9116-40fe-90da-5d6d319325a6", + "model-version-id":"71a21369-dec7-4ba1-a80c-ed90181165a3" + } + ] + }, + "is-permitted":false + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_scheduler_details_short.json b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_scheduler_details_short.json new file mode 100644 index 000000000..ad4a8316f --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_scheduler_details_short.json @@ -0,0 +1,340 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/scheduler/v1/ChangeManagement/schedules/scheduleDetails/?" + }, + "simulatorResponse": { + "responseCode": 200, + "body": [ + { + "vnfName": "ctsf0002v", + "status": "Deleted", + "aotsChangeId": "CHG000004000643", + "aotsStatus": "Closed", + "aotsApprovalStatus": "Approved", + "groupId": "", + "dispatchTime": "2017-10-06T17:09:27Z", + "executionCompletedTime": "2017-10-06T17:09:37Z", + "msoRequestId": "1c74b28f-8914-4e8d-a23e-de036ccf88be", + "msoStatus": "COMPLETE", + "msoMessage": "Vf Module has been created successfully.", + "msoTime": "2017-10-06T17:09:37Z", + "scheduleRequest": { + "id": 506, + "createDateTime": "2017-10-06T17:09:11Z", + "optimizerAttemptsToSchedule": 0, + "optimizerTransactionId": "0226821c-3f32-4001-b236-a9dc34414fe3", + "scheduleId": "0226821c-3f32-4001-b236-a9dc34414fe3", + "scheduleName": "0226821c-3f32-4001-b236-a9dc34414fe3", + "status": "Deleted", + "userId": "su7376", + "domain": "ChangeManagement", + "deleteDateTime": "2017-10-06T17:10:37Z", + "domainData": [ + { + "id": 1516, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"service\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": true}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": false}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"vnf\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\", \"lcpCloudRegionId\": \"mdt1\"}}]}" + }, + { + "id": 1517, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1518, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [] + }, + "schedulesId": 0 + }, + { + "vnfName": "ZRDM1MMSC0450d9", + "vnfId": "", + "status": "Pending Approval", + "startTime": "2017-10-06T17:12:39Z", + "finishTime": "2017-10-06T17:14:29Z", + "groupId": "", + "lastInstanceStartTime": "2017-10-06T17:12:39Z", + "policyId": "SNIRO.TimeLimitAndVerticalTopology", + "scheduleRequest": { + "id": 508, + "createDateTime": "2017-10-06T17:11:39Z", + "optimizerDateTime": "2017-10-06T17:11:47Z", + "optimizerStatus": "Done.", + "optimizerAttemptsToSchedule": 0, + "optimizerReturnDateTime": "2017-10-06T17:11:47Z", + "optimizerTransactionId": "83aec7bf-602f-49eb-9788-bbc33ac550d9", + "schedule": "[{\"groupId\":\"\",\"startTime\":\"2017-10-06 17:12:39\",\"finishTime\":\"2017-10-06 17:14:29\",\"latestInstanceStartTime\":\"2017-10-06 17:12:39\",\"node\":[\"ZRDM1MMSC0450d9\"]}]", + "scheduleId": "83aec7bf-602f-49eb-9788-bbc33ac550d9", + "scheduleName": "83aec7bf-602f-49eb-9788-bbc33ac550d9", + "status": "Pending Approval", + "userId": "su7376", + "domain": "ChangeManagement", + "domainData": [ + { + "id": 1522, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"service\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": true}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": false}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"vnf\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\", \"lcpCloudRegionId\": \"mdt1\"}}]}" + }, + { + "id": 1523, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1524, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [ + { + "approvalDateTime": "2017-10-06T17:11:50Z", + "status": "Rejected", + "userId": "jf9860", + "approvalTypeId": 1 + } + ] + }, + "schedulesId": 0 + }, + { + "vnfName": "VNFName22056", + "vnfId": "", + "status": "Deleted", + "aotsChangeId": "CHG000004000637", + "aotsApprovalStatus": "Approved", + "startTime": "2017-10-06T17:04:33Z", + "finishTime": "2017-10-06T17:06:23Z", + "groupId": "", + "lastInstanceStartTime": "2017-10-06T17:04:33Z", + "policyId": "SNIRO.TimeLimitAndVerticalTopology", + "statusMessage": "CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=e23bf714-069c-43f5-97c9-870fee9b2056 VNF Name=VNFName22056 AOTS ChangeId=CHG000004000637 Status=Assigned Approval Status=Approval Required", + "scheduleRequest": { + "id": 504, + "createDateTime": "2017-10-06T17:03:33Z", + "optimizerDateTime": "2017-10-06T17:03:37Z", + "optimizerStatus": "Done.", + "optimizerAttemptsToSchedule": 0, + "optimizerReturnDateTime": "2017-10-06T17:03:37Z", + "optimizerTransactionId": "e23bf714-069c-43f5-97c9-870fee9b2056", + "schedule": "[{\"groupId\":\"\",\"startTime\":\"2017-10-06 17:04:33\",\"finishTime\":\"2017-10-06 17:06:23\",\"latestInstanceStartTime\":\"2017-10-06 17:04:33\",\"node\":[\"VNFName12056\",\"VNFName22056\",\"VNFName32056\"]}]", + "scheduleId": "e23bf714-069c-43f5-97c9-870fee9b2056", + "scheduleName": "e23bf714-069c-43f5-97c9-870fee9b2056", + "status": "Deleted", + "userId": "su7376", + "domain": "ChangeManagement", + "deleteDateTime": "2017-10-29T13:15:46Z", + "domainData": [ + { + "id": 1510, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"service\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": true}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": false}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"vnf\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\", \"lcpCloudRegionId\": \"mdt1\"}}]}" + }, + { + "id": 1511, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1512, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [ + { + "approvalDateTime": "2017-10-06T17:03:39Z", + "status": "Accepted", + "userId": "jf9860", + "approvalTypeId": 1 + } + ] + }, + "schedulesId": 0 + }, + { + "vnfName": "VNFName244dd", + "vnfId": "", + "status": "Deleted", + "aotsChangeId": "CHG000000000001", + "aotsStatus": "Closed", + "aotsApprovalStatus": "Approved", + "startTime": "2017-10-02T19:28:00Z", + "finishTime": "2017-10-02T19:29:50Z", + "groupId": "Group1", + "lastInstanceStartTime": "2017-10-02T19:28:00Z", + "policyId": "SNIRO.TimeLimitAndVerticalTopology", + "dispatchTime": "2017-10-02T19:27:59Z", + "executionCompletedTime": "2017-10-02T19:28:09Z", + "msoRequestId": "1c74b28f-8914-4e8d-a23e-de036ccf88be", + "msoStatus": "COMPLETE", + "msoMessage": "Vf Module has been created successfully.", + "msoTime": "2017-10-02T19:28:09Z", + "scheduleRequest": { + "id": 425, + "createDateTime": "2017-10-02T19:27:00Z", + "optimizerDateTime": "2017-10-02T19:27:06Z", + "optimizerStatus": "Done.", + "optimizerAttemptsToSchedule": 0, + "optimizerReturnDateTime": "2017-10-02T19:27:06Z", + "optimizerTransactionId": "654e859a-02c1-4ad9-ad44-66f0b6d144dd", + "schedule": "[{\"groupId\":\"Group1\",\"startTime\":\"2017-10-02 19:28:00\",\"finishTime\":\"2017-10-02 19:29:50\",\"latestInstanceStartTime\":\"2017-10-02 19:28:00\",\"node\":[\"VNFName144dd\",\"VNFName244dd\",\"VNFName344dd\",\"VNFName444dd\"]}]", + "scheduleId": "654e859a-02c1-4ad9-ad44-66f0b6d144dd", + "scheduleName": "654e859a-02c1-4ad9-ad44-66f0b6d144dd", + "status": "Deleted", + "userId": "su7376", + "domain": "ChangeManagement", + "deleteDateTime": "2017-10-02T19:28:56Z", + "domainData": [ + { + "id": 1273, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"service\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": true}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": false}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"vnf\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\", \"lcpCloudRegionId\": \"mdt1\"}}]}" + }, + { + "id": 1274, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1275, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [ + { + "approvalDateTime": "2017-10-02T19:27:11Z", + "status": "Accepted", + "userId": "jf9860", + "approvalTypeId": 1 + } + ] + }, + "schedulesId": 0 + }, + { + "vnfName": "satmo455vbc", + "status": "Scheduled", + "aotsChangeId": "CHG000004001141", + "aotsApprovalStatus": "Approved", + "groupId": "group1", + "scheduleRequest": { + "id": 529, + "createDateTime": "2017-10-11T21:06:51Z", + "optimizerAttemptsToSchedule": 0, + "optimizerTransactionId": "0b87fe60-50b0-4bac-a0a7-49e951b0ba9e", + "scheduleId": "0b87fe60-50b0-4bac-a0a7-49e951b0ba9e", + "scheduleName": "VnfUpgrade/DWF", + "status": "Scheduled", + "userId": "su7376", + "domain": "ChangeManagement", + "domainData": [ + { + "id": 1585, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1586, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + }, + { + "id": 1587, + "name": "CallbackData", + "value": "testing" + } + ], + "scheduleApprovals": [] + }, + "schedulesId": 0 + }, + { + "vnfName": "ZRDM1MMSC04482c", + "status": "Deleted", + "groupId": "", + "policyId": "SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone", + "scheduleRequest": { + "id": 2, + "createDateTime": "2017-09-06T13:34:07Z", + "optimizerDateTime": "2017-09-06T13:34:09Z", + "optimizerMessage": "Error while processing request ID: CM-896de9fc-aa5f-446d-b8ea-801f2bb9c282 -- Failed Processing; cause: Traceback (most recent call last):\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 1122, in _do_get\n return self._pool.get(wait, self._timeout)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/util/queue.py\", line 145, in get\n raise Empty\nsqlalchemy.util.queue.Empty\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/opt/app/sniro/sniroapp/sniro/optimizers/cmopt/rcscheduler/local_opt_processor.py\", line 15, in process_local_cm_scheduler_opt\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\n File \"/opt/app/sniro/sniroapp/sniro/optimizers/cmopt/rcscheduler/local_opt_processor.py\", line 38, in full_process_local_cm_scheduler_opt\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\n File \"/opt/app/sniro/sniroapp/sniro/optimizers/cmopt/rcscheduler/request_builder.py\", line 16, in create_cm_scheduler_request\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\n File \"/opt/app/sniro/sniroapp/sniro/datasources/aai/vertical_topology.py\", line 58, in __init__\n self.v_p_topo, self.clli = vserver_pserver_topology(self.vnfs)\n File \"/opt/app/sniro/sniroapp/sniro/datasources/aai/aai_vertica.py\", line 91, in vserver_pserver_topology\n vertica = AAIVertica()\n File \"/opt/app/sniro/sniroapp/sniro/datasources/aai/aai_vertica.py\", line 19, in __init__\n self.fresh_connection()\n File \"/opt/app/sniro/sniroapp/sniro/datasources/aai/aai_vertica.py\", line 23, in fresh_connection\n self.conn, self.cursor = VerticaDB().connect()\n File \"/opt/app/sniro/sniroapp/sniro/datasources/db_adapters/VerticaDB.py\", line 35, in connect\n conn = self.connection_pool.connect()\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 387, in connect\n return _ConnectionFairy._checkout(self)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 766, in _checkout\n fairy = _ConnectionRecord.checkout(pool)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 516, in checkout\n rec = pool._do_get()\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 1138, in _do_get\n self._dec_overflow()\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py\", line 66, in __exit__\n compat.reraise(exc_type, exc_value, exc_tb)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py\", line 187, in reraise\n raise value\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 1135, in _do_get\n return self._create_connection()\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 333, in _create_connection\n return _ConnectionRecord(self)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 461, in __init__\n self.__connect(first_connect_check=True)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 651, in __connect\n connection = pool._invoke_creator(self)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 294, in <lambda>\n return lambda crec: creator()\n File \"/opt/app/sniro/sniroapp/sniro/datasources/db_adapters/VerticaDB.py\", line 20, in get_connection\n jars=[p['db_driver']]\n File \"/usr/local/lib/python3.5/site-packages/jaydebeapi/__init__.py\", line 381, in connect\n jconn = _jdbc_connect(jclassname, url, driver_args, jars, libs)\n File \"/usr/local/lib/python3.5/site-packages/jaydebeapi/__init__.py\", line 199, in _jdbc_connect_jpype\n return jpype.java.sql.DriverManager.getConnection(url, *dargs)\njpype._jexception.java.sql.SQLExceptionPyRaisable: java.sql.SQLException: [Vertica][VJDBC](2983) FATAL: Database \"PDWQ\" does not exist\n", + "optimizerStatus": "failed", + "optimizerAttemptsToSchedule": 0, + "optimizerReturnDateTime": "2017-09-06T13:34:10Z", + "optimizerTransactionId": "e12ee39a-6c9c-42a7-9a96-0cfc6eca482c", + "scheduleId": "e12ee39a-6c9c-42a7-9a96-0cfc6eca482c", + "scheduleName": "e12ee39a-6c9c-42a7-9a96-0cfc6eca482c", + "status": "Deleted", + "userId": "su7376", + "domain": "ChangeManagement", + "deleteDateTime": "2017-11-07T12:40:50Z", + "domainData": [ + { + "id": 4, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelType\": \"service\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": \"True\"}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": \"False\"}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelType\": \"vnf\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"lcpCloudRegionId\": \"mdt1\", \"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\"}}]}" + }, + { + "id": 5, + "name": "WorkflowName", + "value": "Build Software Upgrade for vNFs" + }, + { + "id": 6, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [] + }, + "schedulesId": 0 + }, + { + "vnfName": "StaticallyRegistered ", + "status": "Pending Schedule", + "groupId": "", + "policyId": "SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone", + "scheduleRequest": { + "id": 1, + "createDateTime": "2017-09-06T13:29:43Z", + "optimizerDateTime": "2017-09-06T13:29:55Z", + "optimizerMessage": "\n{\n \"requestError\": {\n \"serviceException\": {\n \"messageId\": \"SVC0001\",\n \"requestId\": \"CM-c098bd33-a51e-461b-8fd2-6c4d2666c706\",\n \"text\": \"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: /pdp/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ecc00d6d8>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\",\n \"variables\": [\"severity\", 400]\n }\n }\n}", + "optimizerStatus": "HTTP Status: 400", + "optimizerAttemptsToSchedule": 1, + "optimizerTransactionId": "08fb4c32-ecb4-4d72-b618-a6156d3fc53a", + "scheduleId": "08fb4c32-ecb4-4d72-b618-a6156d3fc53a", + "scheduleName": "08fb4c32-ecb4-4d72-b618-a6156d3fc53a", + "status": "Schedule Failed", + "userId": "su7376", + "domain": "ChangeManagement", + "domainData": [ + { + "id": 1, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelType\": \"service\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": \"True\"}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": \"False\"}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelType\": \"vnf\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"lcpCloudRegionId\": \"mdt1\", \"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\"}}]}" + }, + { + "id": 2, + "name": "WorkflowName", + "value": "Build Software Upgrade for vNFs" + }, + { + "id": 3, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [] + }, + "schedulesId": 0 + } + ] + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_sdc_catalog_services_2f80c596.json b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_sdc_catalog_services_2f80c596.json new file mode 100644 index 000000000..be0a8c569 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_sdc_catalog_services_2f80c596.json @@ -0,0 +1,38 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd/toscaModel" + }, + "simulatorResponse": { + "responseCode": 200, + "file": "2f80c596.zip" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd/metadata" + }, + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "uuid": "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd", + "invariantUUID": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "name": "action-data", + "version": "1.0", + "toscaModelURL": "./2f80c596.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + } + } + } +]
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_service-design-and-creation.json b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_service-design-and-creation.json new file mode 100644 index 000000000..27c5bb42a --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_service-design-and-creation.json @@ -0,0 +1,414 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../service-design-and-creation/models", + "queryParams" : { + "model-invariant-id": [ "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", "00beb8f9-6d39-452f-816d-c709b9cbb87d" ], + "depth": [ "2" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "model":[ + { + "model-invariant-id":"72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-type":"resource", + "resource-version":"1507747452923", + "model-vers":{ + "model-ver":[ + { + "model-version-id":"76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-name":"mdns_2017_1011", + "model-version":"1.0", + "model-description":"mdns_2017_1011", + "resource-version":"1507747452925", + "model-elements":{ + "model-element":[ + { + "model-element-uuid":"10259f1b-85ca-486c-a016-5aa8d0422c99", + "new-data-del-flag":"T", + "cardinality":"unbounded", + "resource-version":"1507747452928", + "relationship-list":{ + "relationship":[ + { + "related-to":"model-ver", + "related-link":"/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property":[ + { + "property-key":"model-ver.model-name", + "property-value":"generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list":{ + "relationship":[ + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/ee6e6d7f-203c-4abb-b0d2-c807792093e2/model-elements/model-element/18e43321-edb8-4054-965c-13d5f0d41016/model-elements/model-element/ea0d60c1-9580-4056-86df-e20853ecdbb7", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"18e43321-edb8-4054-965c-13d5f0d41016" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"ea0d60c1-9580-4056-86df-e20853ecdbb7" + } + ] + } + ] + } + }, + { + "model-version-id":"90caad85-5d5c-4caf-9ddd-c05f6e088ba2", + "model-name":"mdns_2017_1011", + "model-version":"3.0", + "model-description":"mdns_2017_1011", + "resource-version":"1507920105086", + "model-elements":{ + "model-element":[ + { + "model-element-uuid":"c7abaf3b-7262-498a-984b-5d89047c631a", + "new-data-del-flag":"T", + "cardinality":"unbounded", + "resource-version":"1507920105089", + "relationship-list":{ + "relationship":[ + { + "related-to":"model-ver", + "related-link":"/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property":[ + { + "property-key":"model-ver.model-name", + "property-value":"generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list":{ + "relationship":[ + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/48d9a641-7f74-437b-8ec0-145ee54595d0/model-elements/model-element/ecbb139e-fd6c-4948-8a0d-1ccac7dd462a/model-elements/model-element/8b77ab8f-fa2f-414b-85be-45dafa2904e8", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"ecbb139e-fd6c-4948-8a0d-1ccac7dd462a" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"8b77ab8f-fa2f-414b-85be-45dafa2904e8" + } + ] + }, + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/e1092bfc-c14c-4de3-8ced-2d98c2a24dc3/model-elements/model-element/55764ab2-0308-4b1e-9c71-8c388064401a/model-elements/model-element/124f71f3-2e68-45fe-b264-b967294db411", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"55764ab2-0308-4b1e-9c71-8c388064401a" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"124f71f3-2e68-45fe-b264-b967294db411" + } + ] + } + ] + } + }, + { + "model-version-id":"afacccf6-397d-45d6-b5ae-94c39734b168", + "model-name":"mdns_2017_1011", + "model-version":"4.0", + "model-description":"mdns_2017_1011", + "resource-version":"1509315798030", + "model-elements":{ + "model-element":[ + { + "model-element-uuid":"05c54427-c298-43df-863b-ad0012bc389e", + "new-data-del-flag":"T", + "cardinality":"unbounded", + "resource-version":"1509315798038", + "relationship-list":{ + "relationship":[ + { + "related-to":"model-ver", + "related-link":"/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property":[ + { + "property-key":"model-ver.model-name", + "property-value":"generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list":{ + "relationship":[ + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/29f8d538-a1d0-44f4-9bb9-5f7ac1691aa6/model-elements/model-element/5cce81dd-a3d1-4cbf-bb20-b7573ed1484f/model-elements/model-element/47c8ce7e-1313-4c66-9b31-166ee34b6f25", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"29f8d538-a1d0-44f4-9bb9-5f7ac1691aa6" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"5cce81dd-a3d1-4cbf-bb20-b7573ed1484f" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"47c8ce7e-1313-4c66-9b31-166ee34b6f25" + } + ] + }, + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/a317f4e4-7dda-4470-a553-8b047107544f/model-elements/model-element/01402820-32ab-479a-ac1e-8208a3a86e9b/model-elements/model-element/dc8449df-40c6-4d57-af9c-f75aafdea8f2", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"01402820-32ab-479a-ac1e-8208a3a86e9b" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"dc8449df-40c6-4d57-af9c-f75aafdea8f2" + } + ] + } + ] + } + }, + { + "model-version-id":"b217c612-7fcf-484c-861b-df0a5c4b5bcb", + "model-name":"mdns_2017_1011", + "model-version":"2.0", + "model-description":"mdns_2017_1011", + "resource-version":"1507830869475", + "model-elements":{ + "model-element":[ + { + "model-element-uuid":"b4975b14-0e9c-4d1c-9019-aadb5e4b4efd", + "new-data-del-flag":"T", + "cardinality":"unbounded", + "resource-version":"1507830869478", + "relationship-list":{ + "relationship":[ + { + "related-to":"model-ver", + "related-link":"/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property":[ + { + "property-key":"model-ver.model-name", + "property-value":"generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list":{ + "relationship":[ + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/7cce8c53-d391-42aa-984d-c6166dee9abe/model-elements/model-element/bdc32cad-1eba-43c8-88f1-746ad4ac5f05/model-elements/model-element/26e3d430-abd1-4741-b63b-f71ca623f02b", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"7cce8c53-d391-42aa-984d-c6166dee9abe" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"bdc32cad-1eba-43c8-88f1-746ad4ac5f05" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"26e3d430-abd1-4741-b63b-f71ca623f02b" + } + ] + } + ] + } + } + ] + } + }, + { + "model-invariant-id": "00beb8f9-6d39-452f-816d-c709b9cbb87d", + "model-type": "resource", + "resource-version": "1507747452923", + "model-vers": { + "model-ver": [ + { + "model-version-id": "0903e1c0-8e03-4936-b5c2-260653b96413", + "model-name": "mdns_2017_1011", + "model-version": "1.0", + "model-description": "mdns_2017_1011", + "resource-version": "1507747452925", + "model-elements": { + "model-element": [ + { + "model-element-uuid": "10259f1b-85ca-486c-a016-5aa8d0422c99", + "new-data-del-flag": "T", + "cardinality": "unbounded", + "resource-version": "1507747452928", + "relationship-list": { + "relationship": [ + { + "related-to": "model-ver", + "related-link": "/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property": [ + { + "property-key": "model-ver.model-name", + "property-value": "generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "related-link": "/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/ee6e6d7f-203c-4abb-b0d2-c807792093e2/model-elements/model-element/18e43321-edb8-4054-965c-13d5f0d41016/model-elements/model-element/ea0d60c1-9580-4056-86df-e20853ecdbb7", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "18e43321-edb8-4054-965c-13d5f0d41016" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "ea0d60c1-9580-4056-86df-e20853ecdbb7" + } + ] + } + ] + } + } + ] + } + } + ] + } + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_vnf_data_by_globalid_and_service_type.json b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_vnf_data_by_globalid_and_service_type.json new file mode 100644 index 000000000..b3a26a492 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/get_vnf_data_by_globalid_and_service_type.json @@ -0,0 +1,554 @@ +{ + "simulatorRequest": { + "method": "PUT", + "path": "/aai/query", + "queryParams": { + "format": [ + "simple" + ] + }, + "body": "{\"start\": [\"business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances\"],\"query\": \"query/vnf-topology-fromServiceInstance\"}" + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "results": [ + { + "id": "3400916992", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/66b13cb4-b575-449f-aa45-ffbfe005c7b1", + "properties": { + "service-instance-id": "66b13cb4-b575-449f-aa45-ffbfe005c7b1", + "service-instance-name": "mDNS_preload_1710_0914", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "1525f534-99a2-408f-b847-ff636997d352", + "resource-version": "1505856078810", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3481829392", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec" + } + ] + }, + { + "id": "3771572432", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/f195837b-ef28-42c3-8dea-47ad37eaed95", + "properties": { + "service-instance-id": "f195837b-ef28-42c3-8dea-47ad37eaed95", + "service-instance-name": "mDNS_preload_1710_0914_0920", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "3915de55-a904-4cc6-8fc3-86f8bc316616", + "resource-version": "1505964829466", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3484520464", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1" + } + ] + }, + { + "id": "3775807704", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/9ad4ac55-a5e0-4b49-95c0-b2d846abf700", + "properties": { + "service-instance-id": "9ad4ac55-a5e0-4b49-95c0-b2d846abf700", + "service-instance-name": "mDNS_preload_1710_0914_100417", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "3915de55-a904-4cc6-8fc3-86f8bc316616", + "resource-version": "1507144734087", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3783459064", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/54626a59-ec0d-4fa9-b0c2-08d008688165" + } + ] + }, + { + "id": "4178862184", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/599c7247-b083-447c-b6b1-0cdd5170dfd2", + "properties": { + "service-instance-id": "599c7247-b083-447c-b6b1-0cdd5170dfd2", + "service-instance-name": "mDNS_preload_1710_0914_1010", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "3915de55-a904-4cc6-8fc3-86f8bc316616", + "resource-version": "1507664240411", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3892133896", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/d74503d8-abab-49c6-ba48-a6211eee9b7a" + } + ] + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08", + "properties": { + "service-instance-id": "97315a05-e6f3-4c47-ae7e-d850c327aa08", + "service-instance-name": "mDNS_preload_1710_0914_0927", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "3915de55-a904-4cc6-8fc3-86f8bc316616", + "resource-version": "1506527653053", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3418898432", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855" + } + ] + }, + { + "id": "3481829392", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec", + "properties": { + "vnf-id": "0c465dd3-4151-4da9-92a2-541bb3174cec", + "vnf-name": "Eoghan Fausto", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1505856137206", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "afacccf6-397d-45d6-b5ae-94c39734b168", + "model-customization-id": "b54689f8-45c5-4be2-9e91-f033e028feec", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vWheeler", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3285635208", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec/vf-modules/vf-module/d49713bf-1bff-4eab-bed1-a8f1bb83aa98" + }, + { + "id": "3441209432", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec/vf-modules/vf-module/b8397fec-cf13-40b3-be8f-7d0912506419" + }, + { + "id": "3687522312", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec/vf-modules/vf-module/fd098a52-09be-4c48-a9e9-a565d1b39db3" + }, + { + "id": "3400916992", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/66b13cb4-b575-449f-aa45-ffbfe005c7b1" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + } + ] + }, + { + "id": "3484520464", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1", + "properties": { + "vnf-id": "c2d2d389-fa00-4fb4-a269-e46d495719e1", + "vnf-name": "Odell Romana", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1505964996823", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-customization-id": "c00e8fc8-af39-4da8-8c78-a7efc2fe5994", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3447107680", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/c4711b5c-742e-4d03-8146-bff763f69fbd" + }, + { + "id": "3448307712", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/0ba3fcdd-0536-4ac7-a9ec-8d8622db7fb2" + }, + { + "id": "3692179528", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/6bb843eb-ef84-43b1-83b4-3154a7f9928c" + }, + { + "id": "3771588816", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/a4c008c6-cac0-4e3f-928f-90fa37dc8c4b" + }, + { + "id": "3904077944", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/eecb619c-a173-4ead-bf48-d4d09cbbdd5e" + }, + { + "id": "4027855088", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/1e29424e-2dca-45ac-b1df-59a8f74d0bc1" + }, + { + "id": "4390871192", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/b185220a-7f63-4b29-867d-1452813a4f09" + }, + { + "id": "4450529432", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/7a0c4b98-b3cc-490c-bbab-e2d7f169f2d7" + }, + { + "id": "3771572432", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/f195837b-ef28-42c3-8dea-47ad37eaed95" + } + ] + }, + { + "id": "3783459064", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/54626a59-ec0d-4fa9-b0c2-08d008688165", + "properties": { + "vnf-id": "54626a59-ec0d-4fa9-b0c2-08d008688165", + "vnf-name": "Dominika Fionnbharr", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1507144948937", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-customization-id": "c00e8fc8-af39-4da8-8c78-a7efc2fe5994", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3775807704", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/9ad4ac55-a5e0-4b49-95c0-b2d846abf700" + } + ] + }, + { + "id": "3892133896", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/d74503d8-abab-49c6-ba48-a6211eee9b7a", + "properties": { + "vnf-id": "d74503d8-abab-49c6-ba48-a6211eee9b7a", + "vnf-name": "mDNS_PreloadTest_VNF", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1507664288548", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-customization-id": "c00e8fc8-af39-4da8-8c78-a7efc2fe5994", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "4178862184", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/599c7247-b083-447c-b6b1-0cdd5170dfd2" + } + ] + }, + { + "id": "1507690314", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/385548e2-3f31-4900-9437-317d0346e49a", + "properties": { + "vnf-id": "385548e2-3f31-4900-9437-317d0346e49a", + "vnf-name": "Senga Gabrielle", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "7788675952902", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "b217c612-7fcf-484c-861b-df0a5c4b5bcb", + "model-customization-id": "ce15d245-763c-4079-ac82-fe93007adb69", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3664617648", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855/vf-modules/vf-module/788cde64-c288-4971-8e8c-77973c5009dc" + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + } + ] + }, + { + "id": "5278880615", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0465e048-92a4-4a7f-bfe7-de39b32de4bd", + "properties": { + "vnf-id": "0465e048-92a4-4a7f-bfe7-de39b32de4bd", + "vnf-name": "Constantius Raghu", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "7788675952902", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "afacccf6-397d-45d6-b5ae-94c39734b168", + "model-customization-id": "ce15d245-763c-4079-ac82-fe93007adb69", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vWheeler", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3664617648", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855/vf-modules/vf-module/788cde64-c288-4971-8e8c-77973c5009dc" + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + } + ] + }, + { + "id": "3418898432", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855", + "properties": { + "vnf-id": "8e5e3ba1-3fe6-4d86-966e-f9f03dab4855", + "vnf-name": "zrdm3amdns02test2", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1507132024933", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-customization-id": "c00e8fc8-af39-4da8-8c78-a7efc2fe5994", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3664617648", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855/vf-modules/vf-module/788cde64-c288-4971-8e8c-77973c5009dc" + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + }, + { + "id": "3647635704", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/b30b17e9-10d0-4475-b558-7d18ae0aade0" + }, + { + "id": "3664621744", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/d3b293ba-85de-440e-904b-9dad160fbdce" + }, + { + "id": "3975352504", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/495a9a72-c9f6-41ed-93eb-065ebc2bfb1f" + }, + { + "id": "4059455552", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/b4b9f419-3ed4-4bd8-bb2e-32b0a98e80b7" + }, + { + "id": "4098130088", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/94c79f43-e76d-461e-b8df-8af2acb08e1e" + }, + { + "id": "4401291416", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/99cad3c6-1301-49c4-ad67-ae3c955de5f1" + }, + { + "id": "4458950808", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/047354dc-0244-4241-b24a-7d7b00413b82" + } + ] + }, + { + "id": "1024648346", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/a58bf551-a79c-42d1-83b4-ed9288036245", + "properties": { + "vnf-id": "a58bf551-a79c-42d1-83b4-ed9288036245", + "vnf-name": "Harrison Kris", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "4679861552759", + "model-invariant-id": "00beb8f9-6d39-452f-816d-c709b9cbb87d", + "model-version-id": "0903e1c0-8e03-4936-b5c2-260653b96413", + "model-customization-id": "14e8057d-b22a-405c-84aa-90b82bfd6e46", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3664617648", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855/vf-modules/vf-module/788cde64-c288-4971-8e8c-77973c5009dc" + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + }, + { + "id": "3647635704", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/b30b17e9-10d0-4475-b558-7d18ae0aade0" + }, + { + "id": "3664621744", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/d3b293ba-85de-440e-904b-9dad160fbdce" + }, + { + "id": "3975352504", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/495a9a72-c9f6-41ed-93eb-065ebc2bfb1f" + }, + { + "id": "4059455552", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/b4b9f419-3ed4-4bd8-bb2e-32b0a98e80b7" + }, + { + "id": "4098130088", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/94c79f43-e76d-461e-b8df-8af2acb08e1e" + }, + { + "id": "4401291416", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/99cad3c6-1301-49c4-ad67-ae3c955de5f1" + }, + { + "id": "4458950808", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/047354dc-0244-4241-b24a-7d7b00413b82" + } + ] + } + ] + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/changeManagement/service-design-and-creation.json b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/service-design-and-creation.json new file mode 100644 index 000000000..9a892096c --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/changeManagement/service-design-and-creation.json @@ -0,0 +1,385 @@ +{ + "simulatorRequest": { + "method": "PUT", + "path": "/aai/query", + "body": "{\"start\" : \"service-design-and-creation\/models\/\", \"query\" : \"query\/servceModelsbyDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK\"}", + "queryParams": { + "format": [ + "resource" + ] + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "results": [ + { + "model": { + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-type": "resource", + "resource-version": "1500138206526", + "model-vers": { + "model-ver": [ + { + "model-version-id": "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd", + "model-name": "action-data", + "model-version": "1.0", + "model-description": "lustre settler sideways volcanic eight cellular", + "resource-version": "1500137463984", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/l2-bridge-for-wan-connector-model-id-ps-02/model-vers/model-ver/l2-bridge-for-wan-connector-resource-id-ps-02/model-elements/model-element/e874da22-729d-47bd-8c08-d596fd9c213d/model-elements/model-element/ccbb65b8-2faf-4f5f-80d9-804bb50f1455", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "l2-bridge-for-wan-connector-model-id-ps-02" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "l2-bridge-for-wan-connector-resource-id-ps-02" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "e874da22-729d-47bd-8c08-d596fd9c213d" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "ccbb65b8-2faf-4f5f-80d9-804bb50f1455" + } + ] + } + ] + } + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "9551346c-7d8b-4daf-9926-b93e96e2344a", + "model-type": "resource", + "resource-version": "1500138206526", + "model-vers": { + "model-ver": [ + { + "model-version-id": "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd", + "model-name": "action-data", + "model-version": "1.0", + "model-description": "decontamination arm circus ammonia hump edge", + "resource-version": "1500137463984" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "00beb8f9-6d39-452f-816d-c709b9cbb87d", + "model-type": "resource", + "resource-version": "4076846985447", + "model-vers": { + "model-ver": [ + { + "model-version-id": "0903e1c0-8e03-4936-b5c2-260653b96413", + "model-name": "action-data", + "model-version": "1.0", + "model-description": "honor immunity exile prong below misshapen", + "resource-version": "4076846985447" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "ea78c9e3-514d-4a0a-9162-13837fa54c35", + "model-type": "resource", + "resource-version": "1500137034452", + "model-vers": { + "model-ver": [ + { + "model-version-id": "666a06ee-4b57-46df-bacf-908da8f10c3f", + "model-name": "multicast-configuration", + "model-version": "1.0", + "model-description": "python bullwhip appointment computation ambidextrous heaving", + "resource-version": "1500136282691" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "78ca26d0-246d-11e7-93ae-92361f002671", + "model-type": "resource", + "resource-version": "1492627634298", + "model-vers": { + "model-ver": [ + { + "model-version-id": "20c4431c-246d-11e7-93ae-92361f002671", + "model-name": "vSAMP10aDEV::base::module-0", + "model-version": "2", + "model-description": "MSO aLaCarte VF vSAMP10aDEV Base", + "resource-version": "1492627634300" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "5b607929-6088-4614-97ef-cac817508e0e", + "model-type": "resource", + "resource-version": "1492814035001", + "model-vers": { + "model-ver": [ + { + "model-version-id": "797a6c41-0f80-4d35-a288-3920c4e06baa", + "model-name": "CONTRAIL30_L2NODHCP", + "model-version": "1.0", + "model-description": "contrail 3.0.x L2 network for AIC 3.x sites (and No DHCP).", + "resource-version": "1492814035003", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/52b49b5d-3086-4ffd-b5e6-1b1e5e7e062f/model-vers/model-ver/aed5a5b7-20d3-44f7-90a3-ddbd16f14d1e/model-elements/model-element/2f622421-1c67-4142-be6e-cecad5242af6/model-elements/model-element/2add7556-a23b-46b8-b6b4-ad300b47ceab", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "52b49b5d-3086-4ffd-b5e6-1b1e5e7e062f" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "aed5a5b7-20d3-44f7-90a3-ddbd16f14d1e" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "2f622421-1c67-4142-be6e-cecad5242af6" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "2add7556-a23b-46b8-b6b4-ad300b47ceab" + } + ] + } + ] + } + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "0143d57b-a517-4de9-a0a1-eb76db51f402", + "model-type": "resource", + "resource-version": "1497897268768", + "model-vers": { + "model-ver": [ + { + "model-version-id": "f1bde010-cc5f-4765-941f-75f15b24f9fc", + "model-name": "BkVmxAv061917..base_vPE_AV..module-0", + "model-version": "2", + "resource-version": "1497897268769", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/267ef491-3c1a-4c32-8e69-0e557bfb61e7/model-vers/model-ver/18655c7f-c846-4934-9e25-34378dfd33d6/model-elements/model-element/578492b2-36a4-47da-83dc-91b58c699ad1/model-elements/model-element/6b1fc7a5-fc01-4a9d-a87f-0ad0d8caa13f", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "267ef491-3c1a-4c32-8e69-0e557bfb61e7" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "18655c7f-c846-4934-9e25-34378dfd33d6" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "578492b2-36a4-47da-83dc-91b58c699ad1" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "6b1fc7a5-fc01-4a9d-a87f-0ad0d8caa13f" + } + ] + } + ] + } + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "ipe-resource-id-ps-02", + "model-type": "resource", + "resource-version": "1493389430122", + "model-vers": { + "model-ver": [ + { + "model-version-id": "ipe-resource-id-ps-02", + "model-name": "abc", + "model-version": "v1.0", + "resource-version": "1493389520357", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/l2-bridge-for-wan-connector-model-id-ps-02/model-vers/model-ver/l2-bridge-for-wan-connector-resource-id-ps-02/model-elements/model-element/e874da22-729d-47bd-8c08-d596fd9c213d/model-elements/model-element/ccbb65b8-2faf-4f5f-80d9-804bb50f1455", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "l2-bridge-for-wan-connector-model-id-ps-02" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "l2-bridge-for-wan-connector-resource-id-ps-02" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "e874da22-729d-47bd-8c08-d596fd9c213d" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "ccbb65b8-2faf-4f5f-80d9-804bb50f1455" + } + ] + } + ] + } + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "lmoser410-connector-model-id", + "model-type": "widget", + "resource-version": "1493389512180", + "model-vers": { + "model-ver": [ + { + "model-version-id": "lmoser410-connector-model-version-id", + "model-name": "connector", + "model-version": "v1.0", + "resource-version": "1493389444766" + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "named-query-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/named-queries/named-query/lmoser410-named-query-uuid/named-query-elements/named-query-element/48278a7d-2b1e-454f-89e6-5c0ba145f486", + "relationship-data": [ + { + "relationship-key": "named-query.named-query-uuid", + "relationship-value": "lmoser410-named-query-uuid" + }, + { + "relationship-key": "named-query-element.named-query-element-uuid", + "relationship-value": "48278a7d-2b1e-454f-89e6-5c0ba145f486" + } + ] + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "3a97db99-c4bb-498a-a13a-38f65f1ced3d", + "model-type": "resource", + "resource-version": "1492630209768", + "model-vers": { + "model-ver": [ + { + "model-version-id": "ff2ae348-214a-11e7-93ae-92361f002673", + "model-name": "vSAMP10aDEV::base::module-0", + "model-version": "1.0", + "model-description": "MACRO_vSAMP_module", + "resource-version": "1492630209769" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "3c504d40-b847-424c-9d25-4fb7e0a3e994", + "model-type": "widget", + "resource-version": "1493389430124", + "model-vers": { + "model-ver": [ + { + "model-version-id": "204c641a-3494-48c8-979a-86856f5fd32a", + "model-name": "named-query-element", + "model-version": "1.0", + "resource-version": "1493389423212" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "93e56950-cb19-44e6-ace4-8b50f2d02e45", + "model-type": "resource", + "resource-version": "1497898974232", + "model-vers": { + "model-ver": [ + { + "model-version-id": "acba1f72-c6e0-477f-9426-ad190151e100", + "model-name": "RG_6-19_Test", + "model-version": "1.0", + "model-description": "RG_6-19_Test", + "resource-version": "1497898974233", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/a07220ba-954e-422f-86b5-e8b95fe6b116/model-vers/model-ver/bf6dbd68-2c7d-4ba2-ade1-dfd4476aa505/model-elements/model-element/6e10fe2e-6d04-4198-9124-dd051a5ae65f/model-elements/model-element/cb3c22e1-9dc6-467f-9636-0a7aef10d5d0", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "a07220ba-954e-422f-86b5-e8b95fe6b116" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "bf6dbd68-2c7d-4ba2-ade1-dfd4476aa505" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "6e10fe2e-6d04-4198-9124-dd051a5ae65f" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "cb3c22e1-9dc6-467f-9636-0a7aef10d5d0" + } + ] + } + ] + } + } + ] + } + } + } + ] + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/ecompportal_getSessionSlotCheckInterval.json b/vid-automation/src/main/resources/registration_to_simulator/ecompportal_getSessionSlotCheckInterval.json new file mode 100644 index 000000000..a43092ef9 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/ecompportal_getSessionSlotCheckInterval.json @@ -0,0 +1,33 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/ecompportal_att/auxapi//getSessionSlotCheckInterval" + }, + "simulatorResponse": { + "responseCode": 200, + "body": "300000" + } + }, + { + "simulatorRequest": { + "method": "POST", + "path": "/ecompportal_att/auxapi//extendSessionTimeOuts" + }, + "simulatorResponse": { + "responseCode": 200, + "body": "300000" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/ecompportal_att/auxapi/context/get_user" + }, + "simulatorResponse": { + "responseCode": 200, + "body": [ + ] + } + } +]
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/activate/get_operational_environments_aai1.json b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/get_operational_environments_aai1.json new file mode 100644 index 000000000..ee434d074 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/get_operational_environments_aai1.json @@ -0,0 +1,87 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v12/cloud-infrastructure/operational-environments" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment":[{ + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship": [ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Deactivate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship": [ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + } + ]} + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/activate/mso_error_response_for_post_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/mso_error_response_for_post_operational_environment.json new file mode 100644 index 000000000..6d135dd8d --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/mso_error_response_for_post_operational_environment.json @@ -0,0 +1,13 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/ENV-UUID/activate" + } , + "simulatorResponse": { + "responseCode": "ERROR_CODE", + "responseHeaders": { + "Content-Type": "text/html" + }, + "body": "ERROR_PAYLOAD" + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/activate/post_activate_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/post_activate_operational_environment.json new file mode 100644 index 000000000..33f5d93d1 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/activate/post_activate_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/ENV-UUID/activate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "ENV-UUID", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/attachManifest/get_attachable_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/attachManifest/get_attachable_operational_environment.json new file mode 100644 index 000000000..8aac9b676 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/attachManifest/get_attachable_operational_environment.json @@ -0,0 +1,87 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v12/cloud-infrastructure/operational-environments" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment":[{ + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship": [ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship": [ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Deactivate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + } + ]} + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/error_deactivate_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/error_deactivate_operational_environment.json new file mode 100644 index 000000000..ee5fecd7b --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/error_deactivate_operational_environment.json @@ -0,0 +1,13 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/ENV-UUID/deactivate" + } , + "simulatorResponse": { + "responseCode": "ERROR_CODE", + "responseHeaders": { + "Content-Type": "text/html" + }, + "body": "ERROR_PAYLOAD" + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/get_operational_environments_aai1.json b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/get_operational_environments_aai1.json new file mode 100644 index 000000000..3b991a16f --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/get_operational_environments_aai1.json @@ -0,0 +1,87 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v12/cloud-infrastructure/operational-environments" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment":[{ + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Deactivate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Deactivate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + } + ]} + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/post_deactivate_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/post_deactivate_operational_environment.json new file mode 100644 index 000000000..494fa0b2f --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/deactivate/post_deactivate_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/ENV-UUID/deactivate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "ENV-UUID", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status.json b/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status.json new file mode 100644 index 000000000..3c501a093 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status.json @@ -0,0 +1,39 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/mso/cloudResourcesRequests/v1", + "queryParams" : { + "requestId": [ "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "3212b08c-0dcd-4d20-8c84-51e4f325c14a", + "startTime": "Thu, 02 Jun 2017 02:51:59 GMT", + "instanceReferences": { + "operationalEnvironmentInstanceId": "bc305d54-75b4-431b-adb2-eb6b9e546014" + }, + "requestScope": "operationalEnvironment", + "requestType": "REQUEST-TYPE", + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "source": "VID", + "requestorId": "az2017" + }, + "requestParameters": { + "operationalEnvironmentType": "VNF" + } + }, + "requestStatus": { + "timestamp": "Thu, 02 Jun 2017 02:53:39 GMT", + "requestState": "COMPLETE", + "statusMessage": "status_message", + "percentProgress": "100" + } + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status_bad_response.json b/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status_bad_response.json new file mode 100644 index 000000000..9b34b2a5a --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/environment/status/get_cloud_resources_request_status_bad_response.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/mso/cloudResourcesRequests/v1", + "queryParams": { + "requestId": [ + "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + ] + } + }, + "simulatorResponse": { + "responseCode": "ERROR_CODE", + "responseHeaders": { + "Content-Type": "text/html" + }, + "body": "ERROR_PAYLOAD" + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/get_empty_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/get_empty_operational_environment.json new file mode 100644 index 000000000..e8cff97f2 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/get_empty_operational_environment.json @@ -0,0 +1,12 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../cloud-infrastructure/operational-environments" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment":[] + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/get_error_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/get_error_operational_environment.json new file mode 100644 index 000000000..fd5dc51d4 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/get_error_operational_environment.json @@ -0,0 +1,10 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../cloud-infrastructure/operational-environments" + } , + "simulatorResponse": { + "responseCode": 500, + "body": "simulated error text" + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/get_full_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/get_full_operational_environment.json new file mode 100644 index 000000000..ff3869776 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/get_full_operational_environment.json @@ -0,0 +1,131 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../cloud-infrastructure/operational-environments", + "queryParams": { + "operational-environment-type" : "VNF" + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment":[{ + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": + { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ef", + "operational-environment-name": "new_name", + "operational-environment-type": "VNF", + "operational-environment-status": "Deactivate", + "tenant-context": "new_tenant", + "workload-context": "new_workload_context", + "resource-version": "1505228226913", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "new_ecomp_id" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "new_ecomp_name" + } + ] + } + ] + } + } + ]} + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/get_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/get_operational_environment.json new file mode 100644 index 000000000..9b29875d1 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/get_operational_environment.json @@ -0,0 +1,139 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../cloud-infrastructure/operational-environments", + "queryParams": { + "operational-environment-type": "VNF" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment": [ + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship": [ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship": [ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship": [ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + } + ] + } + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../cloud-infrastructure/operational-environments", + "queryParams": { + "operational-environment-type": "ECOMP" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment": [ + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + } + ] + } + } + } +] diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_logical_link.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_logical_link.json new file mode 100644 index 000000000..54d83eb99 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_logical_link.json @@ -0,0 +1,86 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/network/logical-links/logical-link/SANITY6758cce9:LAG1992|SANITY6785cce9:LAG1961" + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "link-name": "SANITY6758cce9:LAG1992|SANITY6785cce9:LAG1961", + "in-maint": false, + "link-type": "LAG", + "resource-version": "1508959992399", + "purpose": "test1", + "relationship-list": { + "relationship": [ + { + "related-to": "lag-interface", + "related-link": "/aai/v11/network/pnfs/pnf/SANITY6785cce9/lag-interfaces/lag-interface/LAG1961", + "relationship-data": [ + { + "relationship-key": "pnf.pnf-name", + "relationship-value": "SANITY6785cce9" + }, + { + "relationship-key": "lag-interface.interface-name", + "relationship-value": "LAG1961" + } + ] + }, + { + "related-to": "service-instance", + "related-link": "/aai/v11/business/customers/customer/31739f3e-526b-11e6-beb8-9e71128cae77/service-subscriptions/service-subscription/AIM%20Transport/service-instances/service-instance/f36f5734-e9df-4fbf-9f35-61be13f028a1", + "relationship-data": [ + { + "relationship-key": "customer.global-customer-id", + "relationship-value": "31739f3e-526b-11e6-beb8-9e71128cae77" + }, + { + "relationship-key": "service-subscription.service-type", + "relationship-value": "AIM Transport" + }, + { + "relationship-key": "service-instance.service-instance-id", + "relationship-value": "f36f5734-e9df-4fbf-9f35-61be13f028a1" + } + ], + "related-to-property": [ + { + "property-key": "service-instance.service-instance-name", + "property-value": "AIM_TRANSPORT_00004" + } + ] + }, + { + "related-to": "lag-interface", + "related-link": "/aai/v11/cloud-infrastructure/pservers/pserver/SANITY6758cce9/lag-interfaces/lag-interface/LAG1992", + "relationship-data": [ + { + "relationship-key": "pserver.hostname", + "relationship-value": "SANITY6758cce9" + }, + { + "relationship-key": "lag-interface.interface-name", + "relationship-value": "LAG1992" + } + ] + }, + { + "related-to": "lag-interface", + "related-link": "/aai/v11/network/pnfs/pnf/tesai371ve2/lag-interfaces/lag-interface/ae10", + "relationship-data": [ + { + "relationship-key": "pnf.pnf-name", + "relationship-value": "tesai371ve2" + }, + { + "relationship-key": "lag-interface.interface-name", + "relationship-value": "ae10" + } + ] + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_service_instance_with_logical_links.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_service_instance_with_logical_links.json new file mode 100644 index 000000000..49cbf9499 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_service_instance_with_logical_links.json @@ -0,0 +1,185 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/VIRTUAL+USP/service-instances/service-instance/3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "service-instance-id": "3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "service-instance-name": "vid-test-444", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500789244673", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c015cc0f-0f37-4488-aabf-53795fd93cd3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c015cc0f-0f37-4488-aabf-53795fd93cd3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fsd" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/0846287b-65bf-45a6-88f6-6a1af4149fac", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "0846287b-65bf-45a6-88f6-6a1af4149fac" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "kjkjk" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9908b762-136f-4b1f-8eb4-ef670ef58bb4", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9908b762-136f-4b1f-8eb4-ef670ef58bb4" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "uiui" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/543931f5-e50e-45a2-a69f-ab727e4c7f2f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "543931f5-e50e-45a2-a69f-ab727e4c7f2f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfsdfdsf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/25e84884-22d5-44c9-8212-cb459f63e0ba", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "25e84884-22d5-44c9-8212-cb459f63e0ba" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdada" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/013fb0ba-977b-496c-9faa-7f8e5f083eec", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "013fb0ba-977b-496c-9faa-7f8e5f083eec" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gvb" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/06914296-cb46-4b62-9453-329a706a6cbb", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "06914296-cb46-4b62-9453-329a706a6cbb" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "lkllll" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c55da606-cf38-42c7-bc3c-be8e23b19299", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c55da606-cf38-42c7-bc3c-be8e23b19299" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ss" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/27cc0914-70be-453e-b552-3df6b1d6cda9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "27cc0914-70be-453e-b552-3df6b1d6cda9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "yh" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/tesai372ve2%3Aae10%7Ctesaaisdgrbclz1a1%3Apo100", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "tesai372ve2:ae10|tesaaisdgrbclz1a1:po100" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY6758cce9%3ALAG1992%7CSANITY6785cce9%3ALAG1961", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY6758cce9:LAG1992|SANITY6785cce9:LAG1961" + } + ] + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_specific_pnf.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_specific_pnf.json new file mode 100644 index 000000000..3afcc3cc4 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_specific_pnf.json @@ -0,0 +1,33 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/network/pnfs/pnf/MX_960-F722" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "pnf-name": "MX_960-F722", + "pnf-name2": "MX_960-F722-name-2", + "pnf-name2-source": "MX_960-F722-name-2-source", + "pnf-id": "MX_960-F722-id", + "equip-type": "Switch", + "equip-vendor": "Cisco", + "equip-model": "ASR1002-X", + "resource-version": "1494001797554", + "relationship-list": { + "relationship": [ + { + "related-to": "complex", + "related-link": "/aai/v11/cloud-infrastructure/complexes/complex/NAMEAAI2", + "relationship-data": [ + { + "relationship-key": "complex.physical-location-id", + "relationship-value": "NAMEAAI2" + } + ] + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_specific_pnf_error.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_specific_pnf_error.json new file mode 100644 index 000000000..0b23cfc2e --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/aai_get_specific_pnf_error.json @@ -0,0 +1,10 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/network/pnfs/pnf/MX_960-F722" + } , + "simulatorResponse": { + "responseCode": 500, + "body": "ERROR_PAYLOAD" + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_add_pnf_relationship.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_add_pnf_relationship.json new file mode 100644 index 000000000..6d70d9ce4 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_add_pnf_relationship.json @@ -0,0 +1,15 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/ecomp/mso/infra/serviceInstances/v6/3f93c7cb-2fd0-4557-9514-e189b7b04f9d/addRelationships" + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "requestReferences": { + "instanceId": "ba00de9b-3c3e-4b0a-a1ad-0c5489e711fb", + "requestId": "311cc766-b673-4a50-b9c5-471f68914586" + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_add_pnf_relationship_error.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_add_pnf_relationship_error.json new file mode 100644 index 000000000..d92db4a16 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_add_pnf_relationship_error.json @@ -0,0 +1,38 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/ecomp/mso/infra/serviceInstances/v6/3f93c7cb-2fd0-4557-9514-e189b7b04f9d/addRelationships", + "body": { + "requestDetails": { + "modelInfo": { + "modelType": "service", + "modelInvariantId": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "modelVersionId": "240376de-870e-48df-915a-31f140eedd2c", + "modelName": "vid-test-444", + "modelVersion": "1.0" + }, + "requestInfo": { + "source": "VID", + "requestorId": "1" + }, + "relatedInstanceList": [ + { + "relatedInstance": { + "instanceName": "SANITY6785cce8", + "modelInfo": { + "modelType": "pnf" + } + } + } + ], + "requestParameters": { + "aLaCarte": true + } + } + } + }, + "simulatorResponse": { + "responseCode": 500 + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_get_add_relationship_orch_req.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_get_add_relationship_orch_req.json new file mode 100644 index 000000000..05517a94a --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_get_add_relationship_orch_req.json @@ -0,0 +1,27 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/ecomp/mso/infra/orchestrationRequests/v5/311cc766-b673-4a50-b9c5-471f68914586" + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "311cc766-b673-4a50-b9c5-471f68914586", + "startTime": "Mon, 23 Oct 2017 23:28:39 GMT", + "requestScope": "service", + "requestType": "addRelationships", + "instanceReferences": { + "serviceInstanceId": "3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "requestorId": "1" + }, + "requestStatus": { + "requestState": "COMPLETE", + "statusMessage": "Success", + "percentProgress": 100, + "finishTime": "Mon, 23 Oct 2017 23:28:39 GMT" + } + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_get_remove_relationship_orch_req.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_get_remove_relationship_orch_req.json new file mode 100644 index 000000000..1610b0357 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_get_remove_relationship_orch_req.json @@ -0,0 +1,27 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/ecomp/mso/infra/orchestrationRequests/v5/311cc766-b673-4a50-b9c5-471f68914581" + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "311cc766-b673-4a50-b9c5-471f68914581", + "startTime": "Mon, 23 Oct 2017 23:28:39 GMT", + "requestScope": "service", + "requestType": "removeRelationships", + "instanceReferences": { + "serviceInstanceId": "3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "requestorId": "1" + }, + "requestStatus": { + "requestState": "COMPLETE", + "statusMessage": "Success", + "percentProgress": 100, + "finishTime": "Mon, 23 Oct 2017 23:28:39 GMT" + } + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_remove_pnf_relationship.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_remove_pnf_relationship.json new file mode 100644 index 000000000..73cc14c23 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_remove_pnf_relationship.json @@ -0,0 +1,15 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/ecomp/mso/infra/serviceInstances/v6/3f93c7cb-2fd0-4557-9514-e189b7b04f9d/removeRelationships" + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "requestReferences": { + "instanceId": "3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "requestId": "311cc766-b673-4a50-b9c5-471f68914581" + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_remove_pnf_relationship_error.json b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_remove_pnf_relationship_error.json new file mode 100644 index 000000000..3e85903d4 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/pProbe/mso_remove_pnf_relationship_error.json @@ -0,0 +1,9 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/ecomp/mso/infra/serviceInstances/v6/3f93c7cb-2fd0-4557-9514-e189b7b04f9d/removeRelationships" + }, + "simulatorResponse": { + "responseCode": 500 + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/post_operational_environment.json b/vid-automation/src/main/resources/registration_to_simulator/post_operational_environment.json new file mode 100644 index 000000000..3681c016d --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/post_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments" +} , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body":{ + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ef", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_filter_service_instance_by_id.json b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_filter_service_instance_by_id.json new file mode 100644 index 000000000..0d15e8ab4 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_filter_service_instance_by_id.json @@ -0,0 +1,21 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/search/nodes-query", + "queryParams": { + "search-node-type": "service-instance", + "filter": "service-instance-id:EQUALS:3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/VIRTUAL%20USP/service-instances/service-instance/3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + } + ] + } + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_filter_service_instance_by_id_2.json b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_filter_service_instance_by_id_2.json new file mode 100644 index 000000000..79533b0a5 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_filter_service_instance_by_id_2.json @@ -0,0 +1,21 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/search/nodes-query", + "queryParams": { + "search-node-type": "service-instance", + "filter": "service-instance-id:EQUALS:f36f5734-e9df-4fbf-9f35-61be13f028a1" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/31739f3e-526b-11e6-beb8-9e71128cae77/service-subscriptions/service-subscription/AIM%20Transport/service-instances/service-instance/f36f5734-e9df-4fbf-9f35-61be13f028a1" + } + ] + } + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_full_subscribers.json b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_full_subscribers.json new file mode 100644 index 000000000..ae8305a40 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_full_subscribers.json @@ -0,0 +1,108 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/business/customers", + "queryParams": { + "subscriber-type": "INFRA", + "depth": 0 + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "customer":[ + { + "global-customer-id":"MSO_1610_ST", + "subscriber-name":"MSO_1610_ST", + "subscriber-type":"INFRA", + "resource-version":"1494001902987" + }, + { + "global-customer-id":"21014aa2-526b-11e6-beb8-9e71128cae77", + "subscriber-name":"PACKET CORE", + "subscriber-type":"INFRA", + "resource-version":"1494001776295" + }, + { + "global-customer-id":"DHV1707-TestSubscriber-2", + "subscriber-name":"ICORE CORE", + "subscriber-type":"INFRA", + "resource-version":"1498751754450" + }, + { + "global-customer-id":"DHV1707-TestSubscriber-1", + "subscriber-name":"PACKET1 CORE", + "subscriber-type":"INFRA", + "resource-version":"1498595633607" + }, + { + "global-customer-id":"jimmy-example", + "subscriber-name":"JimmyExampleCust-20161102", + "subscriber-type":"INFRA", + "resource-version":"1494001970063" + }, + { + "global-customer-id":"jimmy-example2", + "subscriber-name":"JimmyExampleCust-20161103", + "subscriber-type":"INFRA", + "resource-version":"1494001970225" + }, + { + "global-customer-id":"DHV1802-TestSub-PWT-102", + "subscriber-name":"DHV1802-TestSub-PWT-102", + "subscriber-type":"INFRA", + "resource-version":"1508852495058" + }, + { + "global-customer-id":"DHV1802-TestSub-PWT-101", + "subscriber-name":"DHV1802-TestSub-PWT-101", + "subscriber-type":"INFRA", + "resource-version":"1508179953733" + }, + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"Mobility", + "subscriber-type":"INFRA", + "resource-version":"1494001894192" + }, + { + "global-customer-id":"DHV1802-Subscriber-4", + "subscriber-name":"DHV1802-Subscriber-5", + "subscriber-type":"INFRA", + "resource-version":"1509134064531" + }, + { + "global-customer-id":"DHV1802-TestSub-PWT-103", + "subscriber-name":"DHV1802-TestSub-PWT-103", + "subscriber-type":"INFRA", + "resource-version":"1509045503736" + }, + { + "global-customer-id":"DHV1802-Subscriber-2", + "subscriber-name":"DHV1802-Subscriber-2", + "subscriber-type":"INFRA", + "resource-version":"1509122065439" + }, + { + "global-customer-id":"e433710f-9217-458d-a79d-1c7aff376d89", + "subscriber-name":"USP VOICE", + "subscriber-type":"INFRA", + "resource-version":"1494001938080" + }, + { + "global-customer-id":"DHV1802-Subscriber-3", + "subscriber-name":"DHV1802-Subscriber-3", + "subscriber-type":"INFRA", + "resource-version":"1509122759407" + }, + { + "global-customer-id":"31739f3e-526b-11e6-beb8-9e71128cae77", + "subscriber-name":"FIREWALL/MISC", + "subscriber-type":"INFRA", + "resource-version":"1494001772223" + } + ] + } + + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_services.json b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_services.json new file mode 100644 index 000000000..28421d2a3 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_services.json @@ -0,0 +1,124 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/service-design-and-creation/services" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "service":[ + { + "service-id":"ebc3bc3d-62fd-4a3f-a037-f619df4ff034", + "service-description":"DHV", + "resource-version":"1494001985150" + }, + { + "service-id":"17cc1042-527b-11e6-beb8-9e71128cae77", + "service-description":"FLEXREACH", + "resource-version":"1494001922171" + }, + { + "service-id":"36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e", + "service-description":"Netbond", + "resource-version":"1494001855144" + }, + { + "service-id":"a4f6f2ae-9bf5-4ed7-b904-06b2099c4bd7", + "service-description":"Enhanced Services", + "resource-version":"1494001980153" + }, + { + "service-id":"vRRaaS", + "service-description":"vRRaaS", + "resource-version":"1484865266" + }, + { + "service-id":"323d69d9-2efe-4r45-ay0a-89ea7ard4e6f", + "service-description":"vSCP", + "resource-version":"1494001903012" + }, + { + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "service-description":"Mobility", + "resource-version":"1503954056794" + }, + { + "service-id":"d8a6ed93-251c-47ca-adc9-86671fd19f4c", + "service-description":"BVOIP", + "resource-version":"1490910089351" + }, + { + "service-id":"db171b8f-115c-4992-a2e3-ee04cae357e0", + "service-description":"FIRSTNET", + "resource-version":"1490910095155" + }, + { + "service-id":"LRSI-OSPF", + "service-description":"LRSI-OSPF", + "resource-version":"1494001863930" + }, + { + "service-id":"vHNGWaas", + "service-description":"HNGATEWAY", + "resource-version":"1501192849249" + }, + { + "service-id":"vHNPaas", + "service-description":"HNPORTAL", + "resource-version":"1501192982895" + }, + { + "service-id":"e433710f-9217-458d-a79d-1c7aff376d89", + "service-description":"VIRTUAL USP", + "resource-version":"1494001802638" + }, + { + "service-id":"b6a3f28c-eebf-494c-a900-055cc7c874ce", + "service-description":"VROUTER", + "resource-version":"1492533254036" + }, + { + "service-id":"VIPRaaS", + "service-description":"vIPRaaS", + "resource-version":"1490910058887" + }, + { + "service-id":"0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1", + "service-description":"WAN Bonding", + "resource-version":"1498053422512" + }, + { + "service-id":"c7611ebe-c324-48f1-8085-94aef0c6ef3d", + "service-description":"HOSTED COMMUNICATIONS", + "resource-version":"1494001913639" + }, + { + "service-id":"e30755dc-5673-4b6b-9dcf-9abdd96b93d1", + "service-description":"Transport", + "resource-version":"1506361785997" + }, + { + "service-id":"vVIGaaS", + "service-description":"vVIGaaS", + "resource-version":"1494001900545" + }, + { + "service-id":"d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4", + "service-description":"uCPE-VMS", + "resource-version":"1494001941772" + }, + { + "service-id":"vPEaaS", + "service-description":"vPEaaS", + "resource-version":"1494001988229" + }, + { + "service-id":"12a96a9d-4b4c-4349-a950-fe1159602621", + "service-description":"HOSTED COMMUNICATIONS", + "resource-version":"1494001817126" + } + ] + } + + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_subscribers_for_customer.json b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_subscribers_for_customer.json new file mode 100644 index 000000000..43e1ae384 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_subscribers_for_customer.json @@ -0,0 +1,8289 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89", + "queryParams": { + "depth": 2 + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "global-customer-id": "e433710f-9217-458d-a79d-1c7aff376d89", + "subscriber-name": "USP VOICE", + "subscriber-type": "INFRA", + "resource-version": "1494001938080", + "service-subscriptions": { + "service-subscription": [ + { + "service-type": "HOSTED COMMUNICATIONS", + "resource-version": "1494001920845", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "67aba9ab-f745-442e-a37b-2040a17ec9c7", + "service-instance-name": "test_948473", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1501137356564", + "orchestration-status": "Active" + }, + { + "service-instance-id": "328e117c-8f27-4a59-beea-3b3c36e4652f", + "service-instance-name": "test_inputs_002", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1501142919029", + "orchestration-status": "Active" + }, + { + "service-instance-id": "66608fd9-a786-4f60-ae7b-c18d030c499b", + "service-instance-name": "testtt", + "service-type": "", + "service-role": "", + "model-invariant-id": "1cc41b64-5c12-4d51-bac9-448e963bd81d", + "model-version-id": "91f79100-6450-4078-80d7-531427b4fe74", + "resource-version": "1503224667654", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9d29dcf2-7742-4384-bca0-a38f6c296a79", + "service-instance-name": "test_9sdfkdfj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1500813552431", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e10414d0-692b-4e8e-b56e-9fdc5ef24059", + "service-instance-name": "test_04598485", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1501144603052", + "orchestration-status": "Active" + }, + { + "service-instance-id": "25a5cc93-73df-4c9c-9cc5-e2df9a72f3b7", + "service-instance-name": "test_inputs_values1", + "model-invariant-id": "b594a6ec-94e0-4c95-826f-4c3d3af56339", + "model-version-id": "59f3ea84-313a-4670-b7c2-8997e5749864", + "resource-version": "1501412516301", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9cfcd777-7f14-425c-80bf-a562fba03cfa", + "service-instance-name": "test_vl_inputs01", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "f263c8f6-b52f-4b6c-9ed9-0c83ad098697", + "resource-version": "1501421232100", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4173d5da-df33-474e-a4ef-c93be61a1355", + "service-instance-name": "test_instance_vl_01", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1500966394803", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1753f7eb-85db-498c-aa6a-c68a06fc77db", + "service-instance-name": "sdfjdfj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500991399818", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5d5520c7-dcbc-4287-bed2-50ff57c41a6f", + "service-instance-name": "tesy_jsdjjdj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501400257544", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/65a76ad1-2d53-4709-88e7-858655f55039", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "65a76ad1-2d53-4709-88e7-858655f55039" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_jddjf" + } + ] + } + ] + } + }, + { + "service-instance-id": "1ab8ad18-1445-412a-81f2-671b936ab650", + "service-instance-name": "Test_098765", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1500562034054", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2ae575e4-5103-4f5e-afd9-cc5f4bbae217", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2ae575e4-5103-4f5e-afd9-cc5f4bbae217" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test-0234574785" + } + ] + } + ] + } + }, + { + "service-instance-id": "a1427609-254d-4637-906f-8f0f6f6d4711", + "service-instance-name": "test343445", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502111792531", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f87c0dbe-2658-4971-8014-ad5da1f9df51", + "service-instance-name": "test_03494595", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1502006858511", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7a8dea9f-5f67-4755-9344-ec3736240b9e", + "service-instance-name": "test_045045", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502111390681", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8d0f4c13-a564-43ec-b756-c0017161dee2", + "service-instance-name": "testkjhjjj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1500553831697", + "orchestration-status": "Active" + }, + { + "service-instance-id": "27535e2a-785e-47e8-a482-16f4d019033a", + "service-instance-name": "test765766", + "service-type": "", + "service-role": "", + "model-invariant-id": "452538c0-ef1e-4d65-9939-697f6ed58934", + "model-version-id": "f430728a-4530-42be-a577-1206b9484cef", + "resource-version": "1502109495302", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9601d34e-d3f9-4108-932c-fc52312c260a", + "service-instance-name": "test_9459495", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502028721334", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e65ae593-afdd-4f31-8192-ba7606a026e4", + "service-instance-name": "test_84574854", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502026481024", + "orchestration-status": "Active" + }, + { + "service-instance-id": "29e210af-9fa5-44ae-940c-acca84b1b287", + "service-instance-name": "testjkdfkdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502114664500", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c1a81ab3-2bc6-4b6f-b04f-d358e67c1d01", + "service-instance-name": "test499494", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500552497782", + "orchestration-status": "Active" + }, + { + "service-instance-id": "01834681-686a-4258-aff0-6eea448deddd", + "service-instance-name": "tesr_iii_999", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502019889568", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/e4c23f76-53a0-46e2-b005-59503e55c832", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "e4c23f76-53a0-46e2-b005-59503e55c832" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "tesu_ooo_000" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4a7b7099-4d38-4ba4-aff8-1598bba0e704", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4a7b7099-4d38-4ba4-aff8-1598bba0e704" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_000988_ooo" + } + ] + } + ] + } + }, + { + "service-instance-id": "266008e8-04f9-440a-90e9-d9299821ec08", + "model-invariant-id": "", + "resource-version": "1494001993349", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bnfm0011v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bnfm0011v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bnfm0011v" + } + ] + } + ] + } + }, + { + "service-instance-id": "6c3a22e9-6b04-49d2-b1fa-1e49103971ca", + "model-invariant-id": "", + "resource-version": "1494001986409", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0006v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0006v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0006v" + } + ] + } + ] + } + }, + { + "service-instance-id": "918085fc-29cf-41c2-acc8-15878c0d58b3", + "model-invariant-id": "", + "resource-version": "1494001986411", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bnfm0010v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bnfm0010v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bnfm0010v" + } + ] + } + ] + } + }, + { + "service-instance-id": "1c464a9d-eff7-4d29-8e97-ed1e9e3c8458", + "model-invariant-id": "", + "resource-version": "1494001953169", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bnfm0012v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bnfm0012v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bnfm0012v" + } + ] + } + ] + } + }, + { + "service-instance-id": "bb2f563f-6db7-46ec-b521-fc6ee07e4f3e", + "model-invariant-id": "", + "resource-version": "1494002002228", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0004v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0004v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0004v" + } + ] + } + ] + } + }, + { + "service-instance-id": "4cf94a42-85b8-414f-8fb4-a43b1dac1d2f", + "model-invariant-id": "", + "resource-version": "1494001834026", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0005v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0005v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0005v" + } + ] + } + ] + } + }, + { + "service-instance-id": "ed7c0d8e-de81-408f-b695-47b9dd6b2ca0", + "model-invariant-id": "", + "resource-version": "1494001986403", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0003v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0003v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0003v" + } + ] + } + ] + } + }, + { + "service-instance-id": "8bf34b89-1648-4a41-a21f-9b752833bd4b", + "service-instance-name": "test-gkmf546g", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500377885652", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/e0994c94-fa19-472f-a5b7-ae7388105db2", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "e0994c94-fa19-472f-a5b7-ae7388105db2" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test-elftoerkk56" + } + ] + } + ] + } + }, + { + "service-instance-id": "082c606c-60d7-4d9a-87c7-1370de6e56ba", + "service-instance-name": "test123456", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1500375305701", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fac2ab99-7c5a-4f1e-aad8-d396f26ba7c4", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fac2ab99-7c5a-4f1e-aad8-d396f26ba7c4" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test12345" + } + ] + } + ] + } + }, + { + "service-instance-id": "c4707aae-9b16-49b4-8b52-cbeb8c4129ab", + "service-instance-name": "test_sdfdlfldl", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "cad9f2eb-39f7-4692-90c2-8726bb594610", + "resource-version": "1500376318829", + "orchestration-status": "Active" + }, + { + "service-instance-id": "86ab6048-9037-4367-ac01-f2e5881e8034", + "service-instance-name": "test1234456", + "model-invariant-id": "b1ed0d58-0700-4631-be18-d2f1e527d637", + "model-version-id": "849a6347-cca7-4ae6-b5c2-7d41e9f6d9b2", + "resource-version": "1500369079277", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/329f3b0e-4e03-4dc0-8e56-e786ef392984", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "329f3b0e-4e03-4dc0-8e56-e786ef392984" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test567" + } + ] + } + ] + } + }, + { + "service-instance-id": "a5e3b6ae-7b4c-4247-b975-1cd46c3b3e9a", + "service-instance-name": "pavel_usp_voice", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1506931067790", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/7aeacd8e-5d7c-496d-9ec7-1163cb809810", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "7aeacd8e-5d7c-496d-9ec7-1163cb809810" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "pavel_ucp_voice_vnf" + } + ] + } + ] + } + }, + { + "service-instance-id": "c9fb03a4-8c21-444a-84ee-a6f969698d9c", + "service-instance-name": "test_0e459495945kg", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502021459612", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/983823ce-2482-4943-9081-11d33be3c5f4", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "983823ce-2482-4943-9081-11d33be3c5f4" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_045495945" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/39acee2f-590e-4e42-8317-f4c624f5bd96", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "39acee2f-590e-4e42-8317-f4c624f5bd96" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_0e934834" + } + ] + } + ] + } + }, + { + "service-instance-id": "4fd55324-bc4d-4acf-8f76-2e1eb01ae6a5", + "service-instance-name": "test_0w459495", + "service-type": "", + "service-role": "", + "model-invariant-id": "e3ee9d25-2c6b-4734-8a8c-b6e0dee11ca9", + "model-version-id": "159cc54d-a6be-4c3b-bea3-3214181ebb5d", + "resource-version": "1502019352627", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bbccd5cf-f641-4082-8411-7ae123530d92", + "service-instance-name": "kkk", + "service-type": "", + "service-role": "", + "model-invariant-id": "331a194d-9248-4533-88bc-62c812ccb5c1", + "model-version-id": "171b3887-e73e-479d-8ef8-2690bf74f2aa", + "resource-version": "1502087710872", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/36110437-6ae0-466d-a3fb-992e90cd1f49", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "36110437-6ae0-466d-a3fb-992e90cd1f49" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ooo" + } + ] + } + ] + } + }, + { + "service-instance-id": "4c263e04-260e-434a-8ac2-b0335a02f30b", + "model-invariant-id": "", + "resource-version": "1494001791264", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0002v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0002v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0002v" + } + ] + } + ] + } + }, + { + "service-instance-id": "e4feb759-e4a9-4614-b2d2-985848ba3b9f", + "service-instance-name": "test345345342334f", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499869396079", + "orchestration-status": "Active" + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/5a8dba3e75e7433185b8004e2f2c546e", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "5a8dba3e75e7433185b8004e2f2c546e" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-D-CheckEcomp" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/0ee101c4b53542f49cfc5e1e49d28f88", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "0ee101c4b53542f49cfc5e1e49d28f88" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-US608multising" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/d0b6d63ca975464b9fc2c759a8b21270", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "d0b6d63ca975464b9fc2c759a8b21270" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-X-noPOD41581Cloned" + } + ] + } + ] + } + }, + { + "service-type": "VIRTUAL USP", + "resource-version": "1494001841964", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "c187e9fe-40c3-4862-b73e-84ff056205f6", + "service-instance-name": "test_sssdad", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503919915499", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8715ea55-6fcf-45b5-b42b-2ca37ec3cb39", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8715ea55-6fcf-45b5-b42b-2ca37ec3cb39" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sedawsdsda" + } + ] + } + ] + } + }, + { + "service-instance-id": "9929cdf2-1b2d-4530-b5a4-ae9a716c12cc", + "service-instance-name": "xcvxcvxcv", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503842185188", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4572aed2-f09d-4a34-9b20-34d8625ed4c6", + "service-instance-name": "dsdsfdfd334", + "service-type": "", + "service-role": "", + "model-invariant-id": "2f801573-11c6-4040-aa8c-d5548ef07b53", + "model-version-id": "80d68407-7b2c-48a4-96fc-4fe89c424cbe", + "resource-version": "1503920297893", + "orchestration-status": "Active" + }, + { + "service-instance-id": "037629ea-fd18-4b2f-9f19-27cb45799a41", + "service-instance-name": "iokooik", + "service-type": "", + "service-role": "", + "model-invariant-id": "caed4dbb-922a-4942-be87-1f99d56d426a", + "model-version-id": "b77dae3c-ac5b-459c-8df5-1f1de6c59737", + "resource-version": "1503920445391", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c9bbcc94-e27a-46ff-a292-29805358348c", + "service-instance-name": "iuiuiuoi", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1503919829011", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8ad6dc32-5ea9-46be-9a70-924a620dca58", + "service-instance-name": "dfgdfgdfg", + "service-type": "", + "service-role": "", + "model-invariant-id": "4c35d46f-de47-4bbc-bcda-0d46caeddf09", + "model-version-id": "9014b6b1-33c1-4092-87ab-62c230c74d74", + "resource-version": "1503920088993", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/acba27e0-18b5-4a9b-a8b5-c0e6a3d36769", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "acba27e0-18b5-4a9b-a8b5-c0e6a3d36769" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfdsfdf334" + } + ] + } + ] + } + }, + { + "service-instance-id": "7bdaca06-8242-48bc-a20e-b882426a1cd2", + "service-instance-name": "test_jhgjhghh5", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503843741682", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ff42af8d-9815-4bcd-bda1-8fdde723a1c9", + "service-instance-name": "awereware", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503919051810", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/1df3da26-b22a-4d01-b024-8e2250599b55", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "1df3da26-b22a-4d01-b024-8e2250599b55" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fgdssafg" + } + ] + } + ] + } + }, + { + "service-instance-id": "0fc0441b-92a8-4964-b80d-7df5c3f6bbcd", + "service-instance-name": "asdsdsdsd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503919005027", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b8db1779-52d6-41ff-823c-671e7ccb1dea", + "service-instance-name": "sdfsdfdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1503919113722", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/385a533f-c355-4891-ac26-056b76be21e1", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "385a533f-c355-4891-ac26-056b76be21e1" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ewrdsdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "13bee70f-40c8-4b4f-a691-9d36a661e22f", + "service-instance-name": "rtrtreert", + "service-type": "", + "service-role": "", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1503919611730", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b1891b75-b45a-4862-8f4d-bc41b68b9760", + "service-instance-name": "svc", + "service-type": "", + "service-role": "", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1503909634453", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c290be7e-4cae-4cfb-859e-7694849699ed", + "service-instance-name": "iioopi", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503918640292", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ba1855f1-6e1a-4f32-a8d4-36163e650a64", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ba1855f1-6e1a-4f32-a8d4-36163e650a64" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ertrtrtrt" + } + ] + } + ] + } + }, + { + "service-instance-id": "debaf16c-b0e0-4d1d-a1e6-a13434dd83e9", + "service-instance-name": "aaaqqq", + "service-type": "", + "service-role": "", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1503909401143", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/641b6bf5-b3fa-437d-af35-03a6f4127716", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "641b6bf5-b3fa-437d-af35-03a6f4127716" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_865654787" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/0efd35bc-0ea3-4b87-9a26-2fb20a3028e3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "0efd35bc-0ea3-4b87-9a26-2fb20a3028e3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sfdgdfgdfr55" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/075559bf-49b5-4b21-8ea6-1f96d7d2d7ce", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "075559bf-49b5-4b21-8ea6-1f96d7d2d7ce" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfgyhfghfg" + } + ] + } + ] + } + }, + { + "service-instance-id": "b1af7026-5c58-4f81-beef-7fbe28a40d8b", + "service-instance-name": "sddsfsdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1503844024814", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a77c74e9-7571-4f99-af53-4f7016a28418", + "service-instance-name": "dsdfdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503842375992", + "orchestration-status": "Active" + }, + { + "service-instance-id": "18479d32-e495-4610-b484-238a0c8af022", + "service-instance-name": "ddffeee", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503919781252", + "orchestration-status": "Active" + }, + { + "service-instance-id": "27b005b5-d631-43a6-8913-0a014277b1c7", + "service-instance-name": "test76546454565", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "b594a6ec-94e0-4c95-826f-4c3d3af56339", + "model-version-id": "a5b89224-c03d-4142-b4ce-8b8e8b8de54a", + "resource-version": "1506843154174", + "orchestration-status": "Active" + }, + { + "service-instance-id": "61bd4009-86ce-4603-842a-a3c872e327c2", + "service-instance-name": "litalamichai", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "ceab97cd-ca68-41a6-9b34-d571b2dd05ed", + "model-version-id": "1a6ae314-7a89-408b-93e5-6d8b8ee4c28a", + "resource-version": "1506856240745", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/70d82ea3-28b1-44c9-8cdd-7c0431b1a76e", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "70d82ea3-28b1-44c9-8cdd-7c0431b1a76e" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "litalamichai1" + } + ] + } + ] + } + }, + { + "service-instance-id": "afeb67ac-0777-4f49-855e-cc84700382ed", + "service-instance-name": "test_0409e4569", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1507013953885", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c42940b2-ce05-4305-a92c-6ab6139f34db", + "service-instance-name": "test4346565532", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507015242425", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5bf5afb9-68fd-4df6-b7cd-d7a72c2ebb6e", + "service-instance-name": "test_9876545566", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507015455080", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aceec6c9-3b3d-4c88-8b24-8fcf7aa5183f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aceec6c9-3b3d-4c88-8b24-8fcf7aa5183f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "testvnf4436554656" + } + ] + } + ] + } + }, + { + "service-instance-id": "3b89aadb-354c-4557-8f38-9267efe73340", + "service-instance-name": "testvgroupavila111", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507467637750", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9c073cff-5e87-49b8-be54-552717eb85a7", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9c073cff-5e87-49b8-be54-552717eb85a7" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fggert44w" + } + ] + } + ] + } + }, + { + "service-instance-id": "ea4434fe-b52f-4a4b-8cac-570fda09915e", + "service-instance-name": "tester34445", + "service-type": "test", + "service-role": "test", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1507547071064", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8a00c370-9aa6-4a66-a219-a63cac864f87", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8a00c370-9aa6-4a66-a219-a63cac864f87" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "testvnfff888" + } + ] + } + ] + } + }, + { + "service-instance-id": "8041258e-db6c-4aa4-8ea1-daa049bb4bcd", + "service-instance-name": "macroinstancenamingfalse", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1507466261065", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8b90a65c-cf97-4425-b0f9-cedeb66be73b", + "service-instance-name": "ServicePnf_15", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1507463828320", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/8b90a65c-cf97-4425-b0f9-cedeb66be73b/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "0bba7c99-b04d-4f7d-be83-64d677d938a7", + "service-instance-name": "test_094894934", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507468724856", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c2586a1a-7ffb-470d-b280-580cd3832855", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c2586a1a-7ffb-470d-b280-580cd3832855" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfsdfsdf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/88e8a1a2-26ee-4b64-8cfd-516567c6e085", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "88e8a1a2-26ee-4b64-8cfd-516567c6e085" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfsdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "f50fe353-f93f-42bf-881e-11afa56bc197", + "service-instance-name": "test_input01", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "b594a6ec-94e0-4c95-826f-4c3d3af56339", + "model-version-id": "a5b89224-c03d-4142-b4ce-8b8e8b8de54a", + "resource-version": "1506438016276", + "orchestration-status": "Active" + }, + { + "service-instance-id": "aefde1b5-f4fe-4294-8d24-7981fa0ebfc5", + "service-instance-name": "test_vf_vgroup001", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "ceab97cd-ca68-41a6-9b34-d571b2dd05ed", + "model-version-id": "1a6ae314-7a89-408b-93e5-6d8b8ee4c28a", + "resource-version": "1506428004236", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f42766e6-c15a-415d-8da9-44546787aa60", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f42766e6-c15a-415d-8da9-44546787aa60" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_9883458" + } + ] + } + ] + } + }, + { + "service-instance-id": "dc010843-43d2-442f-87ea-5a33129e820c", + "service-instance-name": "test034598459509345", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1506431351311", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e77db2e8-6e92-451c-bd9b-52f7edd12e34", + "service-instance-name": "ServicePnf_3", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1506431257301", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/e77db2e8-6e92-451c-bd9b-52f7edd12e34/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "27508166-a325-435f-9be5-e0f9c6525e0d", + "service-instance-name": "test_04587465", + "service-type": "", + "service-role": "", + "model-invariant-id": "0ab97204-7036-494b-bffc-d0dcf51221a6", + "model-version-id": "236624dc-0682-4f58-a20a-105b035b87cd", + "resource-version": "1505401406581", + "orchestration-status": "Active" + }, + { + "service-instance-id": "795b711c-41ce-4e31-a572-a898dc5a047e", + "service-instance-name": "vid-test-555", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505382167563", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7a18c22a-6ffc-409e-a904-731919a4d8bc", + "service-instance-name": "fghjSHANI", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1509624542659", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/96208579-2839-442d-bcd7-46902fb5b108", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "96208579-2839-442d-bcd7-46902fb5b108" + } + ] + } + ] + } + }, + { + "service-instance-id": "4f18b4a3-681d-4db2-be2f-f5721625db50", + "service-instance-name": "kmkl", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500324503096", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bcfc991c-f757-4aac-afd6-6a6ce2ee3a10", + "service-instance-name": "ijo", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500325226519", + "orchestration-status": "Active" + }, + { + "service-instance-id": "71c228f8-8737-4759-8ff5-756c61b6c6cc", + "service-instance-name": "sdasd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500328608207", + "orchestration-status": "Active" + }, + { + "service-instance-id": "fd10def6-838c-4caa-89f8-023d8c352d64", + "service-instance-name": "b", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500323167586", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8352d30d-7f79-4a92-bb07-d41482602f91", + "service-instance-name": "drg", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500310144871", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ff0ed1a9-c498-4fa3-9cc1-d1baea101b1a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ff0ed1a9-c498-4fa3-9cc1-d1baea101b1a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfd" + } + ] + } + ] + } + }, + { + "service-instance-id": "f53eeb76-3011-4745-8bd4-fb725ee54e8b", + "service-instance-name": "bcvbcvc", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1500312834903", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9b47dc09-c938-4058-8f4e-b1b97575f01c", + "service-instance-name": "fg", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1500314405338", + "orchestration-status": "Active" + }, + { + "service-instance-id": "da3e0037-145d-4003-ba9c-bf7e160d0c76", + "service-instance-name": "hi", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500308632846", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a5a0c1c5-87e6-4b41-8a1d-fc217ea7afb5", + "service-instance-name": "dfh", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500313821530", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e10cf33f-9733-400e-b641-df6e025b7015", + "service-instance-name": "dsf", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1500314537419", + "orchestration-status": "Active" + }, + { + "service-instance-id": "fdf609c7-c6b9-4d61-9dd1-ecf260b1df24", + "service-instance-name": "DS-vUSP_0804_Svc_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "e4f8b794-8057-4b1c-acf8-39cdcbc07dae", + "model-version-id": "79572855-8d8c-47db-a5fa-29cb28058f88", + "resource-version": "1501867289436", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ef204722-f283-40f2-aae3-2039a93b0677", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-08_14-01-39-901", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502190103332", + "orchestration-status": "Active" + }, + { + "service-instance-id": "3dd30ee9-afd9-4c67-aecc-38025205ae1d", + "service-instance-name": "ppp", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1502087647947", + "orchestration-status": "Active" + }, + { + "service-instance-id": "064983e9-89b8-4e21-a5a6-ca446422de16", + "service-instance-name": "litaltest", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1502087037035", + "orchestration-status": "Active" + }, + { + "service-instance-id": "db1ef13e-e434-4614-a5e4-ccdbf9ff4f37", + "service-instance-name": "vid-test-4442222331", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502088709341", + "orchestration-status": "Active" + }, + { + "service-instance-id": "757ea8da-ca9d-48a0-8782-8eff90d90532", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-08_14-40-54-152", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502192457669", + "orchestration-status": "Active" + }, + { + "service-instance-id": "83cca0d1-0090-4e08-9221-d0db78e8ba20", + "service-instance-name": "TEST-TEST", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502006816430", + "orchestration-status": "Active" + }, + { + "service-instance-id": "912b54ba-53b7-49ea-851b-a5af84787b61", + "service-instance-name": "vid-test-aaaa222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502004264219", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2ac3e9ef-30f1-449c-ac41-4b3a4649bad9", + "service-instance-name": "test834884", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1502109623756", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1f9c366c-c3c2-4c7b-8f31-fa1ed8f440ad", + "service-instance-name": "", + "service-type": "null", + "service-role": "null", + "model-invariant-id": "5c3bb706-95fc-4589-b40f-ed024673246a", + "model-version-id": "873e3f27-6561-47a6-80b0-0cd048d5cdfb", + "resource-version": "1502170650437", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f778648a-1db5-4fd2-9d6d-1c3e9dc810c9", + "service-instance-name": "test_0er50405", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502180550390", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/680873ba-2ac2-4139-a40d-5085b978b737", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "680873ba-2ac2-4139-a40d-5085b978b737" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_0450405" + } + ] + } + ] + } + }, + { + "service-instance-id": "eec0b93e-fc84-4f87-badf-6e15becf7604", + "service-instance-name": "test_0e0r045", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502201260530", + "orchestration-status": "Active" + }, + { + "service-instance-id": "aaf93978-0d81-4089-ac91-4d800b0924b1", + "service-instance-name": "vid-e2e-test_service_2017-08-08_14-48-37-562", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502192927130", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b063c325-2c5f-4383-ac35-4f4a5fd75a64", + "service-instance-name": "shayservice4", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1501774259023", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4bdc43ad-ebe5-4a4f-ad33-cf4bb9439a3a", + "service-instance-name": "vid-test-service-456", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500463859730", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ef7ee58d-9ef3-478d-b80e-79c6f31038e2", + "service-instance-name": "test_9045845", + "service-type": "", + "service-role": "", + "model-invariant-id": "6269c77a-a285-473a-be32-9e34a735ae68", + "model-version-id": "de762949-453c-43bd-8610-93eca50b0681", + "resource-version": "1502802546204", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/38b85642-5eae-4e85-9f47-7f9e8772e3d8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "38b85642-5eae-4e85-9f47-7f9e8772e3d8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_34342345" + } + ] + } + ] + } + }, + { + "service-instance-id": "771ccd96-61e5-413b-9442-494e1fc12689", + "service-instance-name": "inputest_555", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1509004425083", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/464482f0-fec7-4171-af0e-96363f93f908", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "464482f0-fec7-4171-af0e-96363f93f908" + } + ] + } + ] + } + }, + { + "service-instance-id": "c92f4753-7997-492d-8bdb-a456d2a966eb", + "service-instance-name": "inpu_04504050", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "Production", + "model-invariant-id": "e3ee9d25-2c6b-4734-8a8c-b6e0dee11ca9", + "model-version-id": "97128a5f-e7e4-4ddd-b1eb-83a611ae1acb", + "resource-version": "1508945168572", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "e3cc78f6-2fa8-43e4-8b9a-84b0bb705199", + "service-instance-name": "vl_inputs001", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1509006292295", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/DFW", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "DFW" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/f160c875-ddd1-4ef5-84d8-d098784daa3a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "f160c875-ddd1-4ef5-84d8-d098784daa3a" + } + ] + } + ] + } + }, + { + "service-instance-id": "98948904-a2bb-459a-8442-3d6ac72cf3bb", + "service-instance-name": "test_ppo_999", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1509007469372", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/DFW", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "DFW" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/464482f0-fec7-4171-af0e-96363f93f908", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "464482f0-fec7-4171-af0e-96363f93f908" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f5a633ef-c7ac-4e28-8b62-85495888607e", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f5a633ef-c7ac-4e28-8b62-85495888607e" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfgdfg" + } + ] + } + ] + } + }, + { + "service-instance-id": "0ba9557d-b952-4621-844a-077af0e55147", + "service-instance-name": "testvl_555", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "144aec31-9232-4d9c-ba3a-ee052b4ea0a5", + "model-version-id": "1dbe2b4e-07df-4d41-b49e-881a07fab831", + "resource-version": "1509002554353", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2811e2fb-005e-40de-990b-c0794f362399", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2811e2fb-005e-40de-990b-c0794f362399" + } + ] + } + ] + } + }, + { + "service-instance-id": "0673b4d2-c7cb-453e-bd0b-0a6a9c093f0f", + "service-instance-name": "vid-e2e-test_2017-07-18_17-31-16-723", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500388282464", + "orchestration-status": "Active" + }, + { + "service-instance-id": "25abbd6c-a394-44a0-9378-a49374e5fc1b", + "service-instance-name": "vid-e2e-test_2017-07-18_17-54-01-298", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500389647052", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ce7eca35-ea2c-44dd-adb3-941298e0d194", + "service-instance-name": "asdv", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500380792111", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5e5d85a4-106b-4f25-81dc-2756d69b8160", + "service-instance-name": "vid-e2e-test_2017-07-18_17-38-15-572", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500388700897", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4141f288-4070-44fd-bc0b-1289fabc81b7", + "service-instance-name": "vid-e2e-test_2017-07-18_15-43-17-176", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500381802606", + "orchestration-status": "Active" + }, + { + "service-instance-id": "da3ac66a-fdcb-44b8-bef5-16bc0603acfc", + "service-instance-name": "dfhmg", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1500379560690", + "orchestration-status": "Active" + }, + { + "service-instance-id": "16e582ed-e183-413b-ba57-8d1a037eadbc", + "service-instance-name": "vid-e2e-test_2017-07-18_15-25-35-906", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500380741572", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8584c715-181a-40b8-bb77-8f521be498aa", + "service-instance-name": "dsadsdfdsfsdfsd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500377785124", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ed2349b1-fde2-4740-9b6a-92923c0f3564", + "service-instance-name": "vid-e2e-test_2017-07-18_18-08-55-715", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390542619", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b6482709-2833-4805-9779-d0bb0d422f62", + "service-instance-name": "vid-e2e-test_2017-07-18_18-04-26-432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390272714", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a8e88919-9650-44d7-8f9f-e8b73555cf82", + "service-instance-name": "pickpikcpickkc", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500354472092", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2c3e0fc8-215e-461f-8e83-84bbfe4c9aa4", + "service-instance-name": "dsdasdas", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500354946673", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9e98302a-8803-4e4c-bf3b-e46ebc911c7e", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9e98302a-8803-4e4c-bf3b-e46ebc911c7e" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fds" + } + ] + } + ] + } + }, + { + "service-instance-id": "5909c1e6-bd22-4c98-8ed5-ef214751a563", + "service-instance-name": "vid-e2e-test_2017-07-18_08-24-24-224", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500355470123", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f4a5c51d-3ddd-457e-a293-840713d23a19", + "service-instance-name": "fs", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500354782019", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9281d7e0-720e-42a9-b5f9-f135af176099", + "service-instance-name": "jfghh", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1500367011291", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/365525ee-4a1f-4947-91be-c067a9f81a61", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "365525ee-4a1f-4947-91be-c067a9f81a61" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "mkmlk" + } + ] + } + ] + } + }, + { + "service-instance-id": "dd86dd0e-99c1-4567-87e9-d3fa20799b75", + "service-instance-name": "vod-test-666", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500566282895", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8cccc36b-977a-4e58-9e93-ae313d7380d9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8cccc36b-977a-4e58-9e93-ae313d7380d9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-test-vnf-222" + } + ] + } + ] + } + }, + { + "service-instance-id": "a092e48d-44af-40e4-b088-d36b6a637033", + "service-instance-name": "vid-e2e-test_service_2017-07-20_16-40-40-845", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500558051198", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c589d78f-5178-4f9a-ba9d-cec36e19708e", + "service-instance-name": "vid-test-543", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500551310098", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a20b223f-7533-44dc-9deb-c2e627bd3701", + "service-instance-name": "vid-test-432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500550662376", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/5dc6598f-6da4-468e-92ed-1b45b595f1d8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "5dc6598f-6da4-468e-92ed-1b45b595f1d8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-test-vnf-432" + } + ] + } + ] + } + }, + { + "service-instance-id": "43be2af0-014f-470f-9bf3-bcaba534e89e", + "service-instance-name": "test_945994fz", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1509272926060", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9b38641c-55ec-48c1-9bf6-3dfedb2d6109", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9b38641c-55ec-48c1-9bf6-3dfedb2d6109" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "hgfdsaafgh" + } + ] + } + ] + } + }, + { + "service-instance-id": "901c9394-e3f7-48fc-bf9d-0e48b26cb7f5", + "service-instance-name": "vid-test-t", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500896893668", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e7158335-42ef-42cc-9bad-9c6b794dcb2b", + "service-instance-name": "vl_usp001", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1506351703022", + "orchestration-status": "Active" + }, + { + "service-instance-id": "54705472-6522-4d55-a6b8-091a3173f5dd", + "service-instance-name": "test_9934585345", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1506349848890", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b430262c-7a04-48e1-a656-4ff19c60fbae", + "service-instance-name": "test_09459934", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1506350033897", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e6e9488d-0621-4585-b955-1a768d38f156", + "service-instance-name": "vid-test-556", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500892871481", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f9a4be8b-09c0-4860-bd26-8384a2752e13", + "service-instance-name": "vid-test-887", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500892738430", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d86088ce-5bd0-4c05-94c9-96557f70d2e6", + "service-instance-name": "vid-test-789", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500892617605", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9ac85e73-9444-4fd7-b771-0bc2706cadb1", + "service-instance-name": "vid-test-888", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500892257855", + "orchestration-status": "Active" + }, + { + "service-instance-id": "51cddedb-68a1-47fb-97b9-63f1b7aff086", + "service-instance-name": "vid-test-112", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500896366569", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e2cd68c8-c807-4176-a39c-c44d99418f78", + "service-instance-name": "vid-test-443", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500895145213", + "orchestration-status": "Active" + }, + { + "service-instance-id": "3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "service-instance-name": "vid-test-444", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500789244673", + "orchestration-status": "<ORCH_STATUS>", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c015cc0f-0f37-4488-aabf-53795fd93cd3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c015cc0f-0f37-4488-aabf-53795fd93cd3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fsd" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/0846287b-65bf-45a6-88f6-6a1af4149fac", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "0846287b-65bf-45a6-88f6-6a1af4149fac" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "kjkjk" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9908b762-136f-4b1f-8eb4-ef670ef58bb4", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9908b762-136f-4b1f-8eb4-ef670ef58bb4" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "uiui" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/543931f5-e50e-45a2-a69f-ab727e4c7f2f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "543931f5-e50e-45a2-a69f-ab727e4c7f2f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfsdfdsf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/25e84884-22d5-44c9-8212-cb459f63e0ba", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "25e84884-22d5-44c9-8212-cb459f63e0ba" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdada" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/013fb0ba-977b-496c-9faa-7f8e5f083eec", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "013fb0ba-977b-496c-9faa-7f8e5f083eec" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gvb" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/06914296-cb46-4b62-9453-329a706a6cbb", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "06914296-cb46-4b62-9453-329a706a6cbb" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "lkllll" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c55da606-cf38-42c7-bc3c-be8e23b19299", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c55da606-cf38-42c7-bc3c-be8e23b19299" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ss" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/27cc0914-70be-453e-b552-3df6b1d6cda9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "27cc0914-70be-453e-b552-3df6b1d6cda9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "yh" + } + ] + } + ] + } + }, + { + "service-instance-id": "0f2624ba-94cf-4ac5-b903-652d49002c97", + "service-instance-name": "vmee1", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d5937aa1-37fb-4ed0-8c30-5144b89a64ae", + "model-version-id": "06ac9663-54cf-4c77-b926-6e8757cf6380", + "resource-version": "1509362054136", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/80bb7c9e-4e3d-4b10-8291-7e85a1347370", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "80bb7c9e-4e3d-4b10-8291-7e85a1347370" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ce792805-a5f3-4bfe-8209-86553e097d91", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ce792805-a5f3-4bfe-8209-86553e097d91" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ssssssssssssssss" + } + ] + } + ] + } + }, + { + "service-instance-id": "43d8a0e6-34b6-42b9-b393-13a870b2a313", + "service-instance-name": "Serviceaimpnf_3", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "306caa85-74c7-48a9-aa22-7e3a564b957a", + "model-version-id": "ecd470eb-05ce-44c9-990f-4b80ac0d922d", + "resource-version": "1509367097941", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/43d8a0e6-34b6-42b9-b393-13a870b2a313/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "3c3f53a2-1cbc-48f4-bb1c-a3b071ab567c", + "service-instance-name": "service_instance_test_123456", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d51048df-47a8-4038-b981-c1cd23dada55", + "model-version-id": "ae93d743-5dca-4f8c-bc8f-16edb87c8fa2", + "resource-version": "1509550565847", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4f35c7db-e3e0-4140-a3a2-f8fa7fcc22c7", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4f35c7db-e3e0-4140-a3a2-f8fa7fcc22c7" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vnf_instance_test_1234567" + } + ] + } + ] + } + }, + { + "service-instance-id": "48b064cd-aeb7-48c0-ae50-3ead0bd7f7a8", + "service-instance-name": "vid-test-4422", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500897698349", + "orchestration-status": "Active" + }, + { + "service-instance-id": "cb062e05-25d0-43f6-89a4-784abb39256e", + "service-instance-name": "ServicePnf_24", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1509377126770", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/cb062e05-25d0-43f6-89a4-784abb39256e/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f363b54e-ed50-4c7b-b404-b54291da2f25", + "service-instance-name": "test0450450", + "service-type": "", + "service-role": "", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1502293720068", + "orchestration-status": "Active" + }, + { + "service-instance-id": "45ae5259-949e-4163-ae40-61e564eb04ba", + "service-instance-name": "dfgbdfbgdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502276519000", + "orchestration-status": "Active" + }, + { + "service-instance-id": "643e277d-7dfe-4ff2-8894-a1ad18860d95", + "service-instance-name": "test_045004", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502279862680", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/68abca17-1fd7-4fe3-8d36-df853ce884e9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "68abca17-1fd7-4fe3-8d36-df853ce884e9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_405045" + } + ] + } + ] + } + }, + { + "service-instance-id": "1d439d6d-5867-4522-a730-528256378011", + "service-instance-name": "test_84584", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502293183245", + "orchestration-status": "Active" + }, + { + "service-instance-id": "de850f30-2bb0-43e9-bbb5-07250a435165", + "service-instance-name": "testmacr4050405", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508677320783", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/96208579-2839-442d-bcd7-46902fb5b108", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "96208579-2839-442d-bcd7-46902fb5b108" + } + ] + } + ] + } + }, + { + "service-instance-id": "6f442a1d-3163-4448-ad47-cd0311c8b84c", + "service-instance-name": "macr_03455949594", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508853484814", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2811e2fb-005e-40de-990b-c0794f362399", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2811e2fb-005e-40de-990b-c0794f362399" + } + ] + } + ] + } + }, + { + "service-instance-id": "8b1034a6-966d-4534-9622-665d0be9cb5b", + "service-instance-name": "ghjgjhg", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a1ac367e-3f20-43cb-801e-5cb381aef876", + "model-version-id": "29ab2dd6-e7e0-4e56-9922-5aaa81a32342", + "resource-version": "1508688088252", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p10", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p10" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + } + ] + } + }, + { + "service-instance-id": "42240602-42d9-4914-a87a-45ab88864a01", + "service-instance-name": "testint5464", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1508754951438", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p8", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p8" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d566b9bf-f383-4ee2-8856-271605fe3267", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d566b9bf-f383-4ee2-8856-271605fe3267" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfdsf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/429b4e95-6fb3-4f04-9ffb-795b4a3289c3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "429b4e95-6fb3-4f04-9ffb-795b4a3289c3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "oliuyt" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/e53c3b6c-9013-4749-9648-f7fb43a60375", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "e53c3b6c-9013-4749-9648-f7fb43a60375" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfgdfd" + } + ] + } + ] + } + }, + { + "service-instance-id": "88e657dc-e4be-4be8-be34-1396836e9798", + "service-instance-name": "fghfghfghf", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508854622716", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/ab18aa18-9644-441d-be6e-af6cadbc21ab", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "ab18aa18-9644-441d-be6e-af6cadbc21ab" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/def4032e-72ae-4002-a08f-b9457a4be106", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "def4032e-72ae-4002-a08f-b9457a4be106" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "hjhjkhjk" + } + ] + } + ] + } + }, + { + "service-instance-id": "1030f826-3fa5-4057-abb1-18e72ce7e2a1", + "service-instance-name": "vid-test-999", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500892169774", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d578122d-278c-42b2-bee0-2ec441ceeaac", + "service-instance-name": "vid-testt", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500893055281", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4d9c564d-9e83-4fa4-a4c0-41ca93fc9f64", + "service-instance-name": "vid-test-332", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500896543492", + "orchestration-status": "Active" + }, + { + "service-instance-id": "42774ab2-d3e1-46ec-84ff-3db53a18e135", + "service-instance-name": "vid-test-1122", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500897486657", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2fac24c8-13fa-42db-bb2f-529683531fa8", + "service-instance-name": "vid-test-11112", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500897969508", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c0de2bc1-f32a-4cea-a9b0-88571d6b33bf", + "service-instance-name": "vid-testtt", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500893827977", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c13177ec-38b3-4e12-8482-97b0f016247a", + "service-instance-name": "vid-test-221", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500895647987", + "orchestration-status": "Active" + }, + { + "service-instance-id": "412e3b4c-071b-4c58-b314-7fbd176222ff", + "service-instance-name": "vid-e2e-test_service_2017-07-19_16-05-40-066", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500469550619", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/45fe4c3d-c30e-4800-8b68-54b4dea1c248", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "45fe4c3d-c30e-4800-8b68-54b4dea1c248" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test_vnf_2017-07-19_16-06-13-603" + } + ] + } + ] + } + }, + { + "service-instance-id": "635903e5-74ee-4470-be25-53cc730b34bd", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-39-54-357", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500468002639", + "orchestration-status": "Active" + }, + { + "service-instance-id": "0474ac6f-7eb2-4aaf-8cb1-5abd12df2253", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-44-24-952", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500468273196", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b4ff72ff-00e5-42d8-914e-1cbe67a7eb58", + "service-instance-name": "test_werfdzkdkskd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500813475847", + "orchestration-status": "Active" + }, + { + "service-instance-id": "43a08d84-d5d5-4b5e-be2b-2300b474dc70", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-42-55-550", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500468183570", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5390755c-1606-47d9-8b83-da14738067da", + "service-instance-name": "vid-e2e-test_aai_service_2017-07-19_16-13-57-138", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500470041251", + "orchestration-status": "Active" + }, + { + "service-instance-id": "3707ec3b-af13-49ea-b9ff-018b758da115", + "service-instance-name": "vid-e2e-test_2017-07-18_17-17-30-920", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500387456666", + "orchestration-status": "Active" + }, + { + "service-instance-id": "28378666-89cd-47df-8ed9-fc1839a4b265", + "service-instance-name": "test_rt945klol4", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1500377140106", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1d7edacb-8e79-4f6d-936b-93114a974935", + "service-instance-name": "vid-e2e-test_2017-07-18_15-28-31-981", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500380917229", + "orchestration-status": "Active" + }, + { + "service-instance-id": "da51b100-5b39-4c15-b3ea-f23df4473a83", + "service-instance-name": "vfdv", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1500371981705", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ef0a68da-cc95-4e3c-a1d3-3f7f9cb6ee82", + "service-instance-name": "vid-e2e-test_2017-07-18_18-12-22-369", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390748046", + "orchestration-status": "Active" + }, + { + "service-instance-id": "eff96af1-70ea-4aab-98c5-32306da946ad", + "service-instance-name": "vid-e2e-test_2017-07-18_17-48-39-643", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500389325953", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8718ad9e-a3c4-49d1-a708-a90ba42b9d03", + "service-instance-name": "vid-e2e-test_2017-07-18_18-14-04-926", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390850156", + "orchestration-status": "Active" + }, + { + "service-instance-id": "16a09e81-4450-4cb2-8391-5890b6f64721", + "service-instance-name": "vid-e2e-test_2017-07-18_17-50-33-811", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500389439126", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5f3fb647-edfb-473c-99a9-3f04603478c1", + "service-instance-name": "vid-e2e-test_2017-07-18_17-52-15-859", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500389541445", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c6af9564-9043-4f65-8bf2-1c7bc56fd43e", + "service-instance-name": "fsdfsdsd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500412901425", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c9213809-2c50-41f7-b73a-22c1ff189bf0", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c9213809-2c50-41f7-b73a-22c1ff189bf0" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fdsd" + } + ] + } + ] + } + }, + { + "service-instance-id": "8ab3917e-581f-4de3-b0e3-4e06660e8793", + "service-instance-name": "dfghn", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500449579549", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9b6079c3-9442-4480-9c6d-dd03eeee9c82", + "service-instance-name": "hjoi", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500308091305", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5fd59464-ddcf-4589-8f91-3d8b07c115f9", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-16-56-647", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500466624414", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2081af5c-8229-441c-8a0c-701699f5cf49", + "service-instance-name": "sfd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500312534078", + "orchestration-status": "Active" + }, + { + "service-instance-id": "86d60652-b114-4775-8bec-331dd78f4741", + "service-instance-name": "x", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500312034997", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ae6e8ace-a065-432e-930e-c6111bd27932", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-20-00-628", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500466809739", + "orchestration-status": "Active" + }, + { + "service-instance-id": "19faafcb-47a4-45e5-8ee4-d3375c695d7e", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-27-14-135", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500467243388", + "orchestration-status": "Active" + }, + { + "service-instance-id": "aa4fc03e-1ba3-48d1-b5cc-ec8dfec15a4c", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-06-51-198", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500466021989", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4089b9d7-8c02-4a71-b15a-e29082e38c45", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-12-07-616", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500466335699", + "orchestration-status": "Active" + }, + { + "service-instance-id": "45b11aa5-5747-45a6-a58e-bada5d052465", + "service-instance-name": "fgd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1500309212526", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9f90bb18-d879-4d6e-97fd-ba5964bdfeb7", + "service-instance-name": "hjk", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500311877345", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9f0b62d4-0305-43aa-b2b3-0c22edc7e01c", + "service-instance-name": "q", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500313981483", + "orchestration-status": "Active" + }, + { + "service-instance-id": "19bddbc0-3014-4541-9f9e-c1400daff5c0", + "service-instance-name": "gdf", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500312620055", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b352c6e4-087b-4408-b794-142f1d9e2309", + "service-instance-name": "dcs", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500325142163", + "orchestration-status": "Active" + }, + { + "service-instance-id": "57cdd7bd-ab17-47bb-8b53-9e424d6cf2b2", + "service-instance-name": "fsd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500323619398", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e305fc65-2120-4cc8-8bf1-bbc8aa302f34", + "service-instance-name": "a", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500314310430", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/82667331-a973-49e5-b3f2-9bd9e07be7eb", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "82667331-a973-49e5-b3f2-9bd9e07be7eb" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vnf3" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aa879f1f-a88c-41c6-9f54-4a4cfd92d261", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aa879f1f-a88c-41c6-9f54-4a4cfd92d261" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test0123456" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/7c15cc9b-f09e-4d7b-911a-fce928dbec0f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "7c15cc9b-f09e-4d7b-911a-fce928dbec0f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "addingVNF" + } + ] + } + ] + } + }, + { + "service-instance-id": "a43d04ad-7cc5-48d1-bd44-316979763294", + "service-instance-name": "test_123432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500372271553", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/feb4e66e-a178-418c-bc2a-b4b09dd82d98", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "feb4e66e-a178-418c-bc2a-b4b09dd82d98" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vf" + } + ] + } + ] + } + }, + { + "service-instance-id": "7a17082d-ea92-4b55-b49d-083f9599b18d", + "service-instance-name": "iosksfnsdkfnsdkjfnskdj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500369295852", + "orchestration-status": "Active" + }, + { + "service-instance-id": "88fb29c3-8836-4f86-a27a-53a688cae680", + "service-instance-name": "test-sddasfds", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500373378767", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aa2f42a3-ff1b-4508-9a0c-b256df6208aa", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aa2f42a3-ff1b-4508-9a0c-b256df6208aa" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "erttert" + } + ] + } + ] + } + }, + { + "service-instance-id": "7dd2ad7d-3056-4d91-bc3c-97c488ae23fb", + "service-instance-name": "kml", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500362405883", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d953154d-584a-4a4a-9bd7-83df8e46c354", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d953154d-584a-4a4a-9bd7-83df8e46c354" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "nkknkjnkn" + } + ] + } + ] + } + }, + { + "service-instance-id": "5448357b-b1c4-475d-ac0c-a42528e1d51b", + "service-instance-name": "test2", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500323768299", + "orchestration-status": "Active" + }, + { + "service-instance-id": "84bd20e2-91cc-4a59-be62-e3cf4a762322", + "service-instance-name": "test-321312", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500370664268", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c4c1592b-afc1-4555-9902-5089caa95a64", + "service-instance-name": "fds", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500324250120", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6759becb-9878-4c70-abe7-f2886dd6c990", + "service-instance-name": "vid-e2e-test_2017-07-18_17-25-58-170", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500387968056", + "orchestration-status": "Active" + }, + { + "service-instance-id": "39f096ce-eab4-49ec-94f1-701f7df5a483", + "service-instance-name": "adrg", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500388978731", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/07126b2b-ac8c-4821-a85b-d86e302b408e", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "07126b2b-ac8c-4821-a85b-d86e302b408e" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ghfergf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/6415f997-8fe7-45da-8ec2-e1b12b790354", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "6415f997-8fe7-45da-8ec2-e1b12b790354" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ukyjthrgef55" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2d34f74b-e7e7-4f92-87e7-8e4a4321b48b", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2d34f74b-e7e7-4f92-87e7-8e4a4321b48b" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfdfd" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d754a995-7473-4b94-bf84-0f2734d2924f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d754a995-7473-4b94-bf84-0f2734d2924f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dsfefg" + } + ] + } + ] + } + }, + { + "service-instance-id": "9f8cdcb0-6ffd-4adc-b245-f7f4fc9752e3", + "service-instance-name": "vid-e2e-test_2017-07-18_17-36-23-097", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500388589551", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7644e248-d2d9-4c61-a087-148beff228ac", + "service-instance-name": "vid-e2e-test_2017-07-18_16-44-33-073", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500385478551", + "orchestration-status": "Active" + }, + { + "service-instance-id": "509a2624-3dae-41ad-9a5a-e62078161e21", + "service-instance-name": "vid-e2e-test_2017-07-18_17-14-27-661", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500387274357", + "orchestration-status": "Active" + }, + { + "service-instance-id": "83e740ef-a293-4840-b04e-efff59c72463", + "service-instance-name": "eqrv", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500385603218", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6fde03e3-46dc-4fff-8daf-078530d560f2", + "service-instance-name": "sdfvsdfvsdf", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500387907127", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c8e49850-6722-49ea-950c-9ad62a7f889d", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c8e49850-6722-49ea-950c-9ad62a7f889d" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "adsv" + } + ] + } + ] + } + }, + { + "service-instance-id": "269bf5ae-6698-4303-b074-be51ad7d28c1", + "service-instance-name": "vid-e2e-test_2017-07-18_18-07-11-310", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390438483", + "orchestration-status": "Active" + }, + { + "service-instance-id": "587fbd75-3379-412b-b54a-e995e4ffcae4", + "service-instance-name": "forlynn", + "service-type": "", + "service-role": "", + "model-invariant-id": "f627ac4b-6a4f-4406-b409-a986fb0d1d1c", + "model-version-id": "2e057e90-068f-478a-a9d2-9fb7f36ff3c2", + "resource-version": "1504188707424", + "orchestration-status": "Active" + }, + { + "service-instance-id": "62eb3798-b90d-4bc0-9635-c70473a49ae3", + "resource-version": "1506724389470", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/rarf0002v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "rarf0002v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "rarf0002v" + } + ] + } + ] + } + }, + { + "service-instance-id": "27d4ab06-faed-41f4-80f2-2158e62e5861", + "service-instance-name": "vid-test-33333332", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501675131575", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1a127f0b-dc72-471b-bb9d-c15397520b8f", + "service-instance-name": "vid-test-55522", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1501661285161", + "orchestration-status": "Active" + }, + { + "service-instance-id": "fe1786d1-be3f-4c1b-8d71-540df4f4c916", + "service-instance-name": "vid-test-333322255533", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1501665788566", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ea53aeec-470c-4e85-9396-0ea6f7316cef", + "service-instance-name": "hmgnfbdsa55", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1509025602402", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p10", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p10" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "267d6f47-387d-4e7e-86aa-8d08a86488b1", + "service-instance-name": "trgfeerg", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508944715647", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + } + ] + } + }, + { + "service-instance-id": "7e06da45-07a8-4b85-857f-7a798b558c54", + "service-instance-name": "test_045900034f", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508942442342", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/96208579-2839-442d-bcd7-46902fb5b108", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "96208579-2839-442d-bcd7-46902fb5b108" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/36c2848d-6b5f-42a9-8d68-0314048614a3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "36c2848d-6b5f-42a9-8d68-0314048614a3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ngfdsa434" + } + ] + } + ] + } + }, + { + "service-instance-id": "e84137bb-a982-4aaa-bdfe-e83997c6b93d", + "service-instance-name": "test_4050345034", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1509021634347", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/464482f0-fec7-4171-af0e-96363f93f908", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "464482f0-fec7-4171-af0e-96363f93f908" + } + ] + } + ] + } + }, + { + "service-instance-id": "aebe3df8-a734-4dc9-b210-1b47444c19f6", + "service-instance-name": "thfgdf443", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508942117530", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "89d03dd6-fe60-4106-b9e1-3a9c66a7561d", + "service-instance-name": "jhgrfedse44", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1509026377891", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p3", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p3" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/c934f26c-30f8-419b-9e54-31b10d08b29a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "c934f26c-30f8-419b-9e54-31b10d08b29a" + } + ] + } + ] + } + }, + { + "service-instance-id": "761cd4c2-8f65-42a0-8d6e-155c99181c80", + "service-instance-name": "dgfgddfg", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1509032006604", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/73185f03-5531-444d-bc03-fa13f924d66a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "73185f03-5531-444d-bc03-fa13f924d66a" + } + ] + } + ] + } + }, + { + "service-instance-id": "b1707910-718c-488c-841e-fe6166b288d7", + "service-instance-name": "ins_vl_inputs1", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a4ae0698-161d-4e3d-aabb-f94183c733e4", + "model-version-id": "eaa0de99-6407-4bf6-8579-31499dcf21eb", + "resource-version": "1509013009292", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/464482f0-fec7-4171-af0e-96363f93f908", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "464482f0-fec7-4171-af0e-96363f93f908" + } + ] + } + ] + } + }, + { + "service-instance-id": "31ebd5ed-d522-42bd-8b1b-ca8807541b33", + "service-instance-name": "vnftest0987", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1509017207771", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/6e9179b0-864a-40ba-80ba-c51a69384653", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "6e9179b0-864a-40ba-80ba-c51a69384653" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2804acda-dbd1-413f-a731-47f0978ab9dd", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2804acda-dbd1-413f-a731-47f0978ab9dd" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "hgcfdfff22" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d0b3c921-3bd6-43ec-bf71-3edbb7af5bc7", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d0b3c921-3bd6-43ec-bf71-3edbb7af5bc7" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bvfvdsfsdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "915c7d5a-c359-475f-bda7-67761c92b029", + "service-instance-name": "aritest000999", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1509026720877", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + } + ] + } + }, + { + "service-instance-id": "4790f1a6-eb5b-4176-95bc-fdb0909e4d87", + "service-instance-name": "ngfdvfg", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1509032932831", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p3", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p3" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + } + ] + } + }, + { + "service-instance-id": "3af158f2-202f-40a8-a749-f508bdb8a4ce", + "service-instance-name": "kdsfhud556", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1509033824516", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p3", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p3" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/c934f26c-30f8-419b-9e54-31b10d08b29a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "c934f26c-30f8-419b-9e54-31b10d08b29a" + } + ] + } + ] + } + }, + { + "service-instance-id": "13dec3b0-ab57-4359-b4ec-4db0811256fc", + "service-instance-name": "newadio", + "service-type": "", + "service-role": "", + "model-invariant-id": "135cf95b-2863-477a-8879-d980474d67f0", + "model-version-id": "32d08699-790f-4460-ba1b-0b7bb4576296", + "resource-version": "1504290530566", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d171c71b-695e-4f9f-84a7-9febf20a7a5e", + "service-instance-name": "AIMinstance", + "service-type": "", + "service-role": "", + "model-invariant-id": "9e060f0b-1b8e-4b91-86f7-f3d5208fb852", + "model-version-id": "6fa842b2-8eca-416b-8b99-d8691f1ad11e", + "resource-version": "1504289007353", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c9407d5f-0227-4335-b1b2-9148a5a27c0e", + "service-instance-name": "ready", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1504200919802", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/693ac78b-a1c2-4267-bb35-cb05b8c1fc2c", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "693ac78b-a1c2-4267-bb35-cb05b8c1fc2c" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fre" + } + ] + } + ] + } + }, + { + "service-instance-id": "d712579c-75fd-4a8f-9378-bfb9bf3aaf58", + "service-instance-name": "demolynn", + "service-type": "", + "service-role": "", + "model-invariant-id": "a7c72b5d-d498-4164-a3a5-2e0fdf5ff1b5", + "model-version-id": "5a5b1d22-f37a-4f85-9ec8-e84a6e196648", + "resource-version": "1504200602108", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ccc21ec4-dd82-4db8-ad42-88f88f3ee980", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ccc21ec4-dd82-4db8-ad42-88f88f3ee980" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "demo8" + } + ] + } + ] + } + }, + { + "service-instance-id": "3ea4acb0-a62f-4e6e-8750-2920b16ab8f0", + "service-instance-name": "mog1", + "service-type": "", + "service-role": "", + "model-invariant-id": "a8b53380-76bd-4d52-b102-165947fbc46a", + "model-version-id": "b1b0c302-fd06-4612-ad50-f9931bd8dde1", + "resource-version": "1504202136745", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6c426e93-8df1-40fd-89c2-ba7e934ab7db", + "service-instance-name": "RGAlina831", + "service-type": "", + "service-role": "", + "model-invariant-id": "ceab97cd-ca68-41a6-9b34-d571b2dd05ed", + "model-version-id": "1a6ae314-7a89-408b-93e5-6d8b8ee4c28a", + "resource-version": "1504211427501", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ed132599-77d3-4a7d-9e14-8e5068b95a6b", + "service-instance-name": "newone", + "service-type": "", + "service-role": "", + "model-invariant-id": "f627ac4b-6a4f-4406-b409-a986fb0d1d1c", + "model-version-id": "2e057e90-068f-478a-a9d2-9fb7f36ff3c2", + "resource-version": "1504200211471", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/3aac4d15-567c-4022-8161-2a73d2c465ba", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "3aac4d15-567c-4022-8161-2a73d2c465ba" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "demo3" + } + ] + } + ] + } + }, + { + "service-instance-id": "3e505763-319c-4ef9-a17c-5ac561abcd44", + "service-instance-name": "lynn", + "service-type": "", + "service-role": "", + "model-invariant-id": "f627ac4b-6a4f-4406-b409-a986fb0d1d1c", + "model-version-id": "2e057e90-068f-478a-a9d2-9fb7f36ff3c2", + "resource-version": "1504198364611", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fee940c1-4f94-4550-be75-193473be1df5", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fee940c1-4f94-4550-be75-193473be1df5" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "demo" + } + ] + } + ] + } + }, + { + "service-instance-id": "5164a1ed-d7ba-4e33-b82d-3a5f90543c47", + "service-instance-name": "Lital39887395", + "service-type": "", + "service-role": "", + "model-invariant-id": "452538c0-ef1e-4d65-9939-697f6ed58934", + "model-version-id": "f430728a-4530-42be-a577-1206b9484cef", + "resource-version": "1504111659807", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f05c9247-58c0-4558-872d-f9edc6b0e27b", + "service-instance-name": "TestCM", + "service-type": "", + "service-role": "", + "model-invariant-id": "cf3fa46a-e026-4171-9496-56f5e5184b38", + "model-version-id": "e03239af-b20e-4966-aeb8-b558ef4203b6", + "resource-version": "1506257529884", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/95fffe54-d351-42aa-8612-6fed2690b702", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "95fffe54-d351-42aa-8612-6fed2690b702" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "TestCM" + } + ] + } + ] + } + }, + { + "service-instance-id": "0f4f9378-14c6-4fc0-bf8c-53e8b94fc24b", + "service-instance-name": "TestCM1", + "service-type": "", + "service-role": "", + "model-invariant-id": "cf3fa46a-e026-4171-9496-56f5e5184b38", + "model-version-id": "e03239af-b20e-4966-aeb8-b558ef4203b6", + "resource-version": "1506257972911", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ba916d69-3558-4f8d-aded-fc1f4658697f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ba916d69-3558-4f8d-aded-fc1f4658697f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "TestCM1" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f94e2cdb-a731-4703-984f-6db7958673a6", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f94e2cdb-a731-4703-984f-6db7958673a6" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "lital" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/3349b4ae-e9af-447a-9ef6-751233243669", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "3349b4ae-e9af-447a-9ef6-751233243669" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "lyttj" + } + ] + } + ] + } + }, + { + "service-instance-id": "6532a860-334d-4277-aab0-dfc3c0275722", + "service-instance-name": "almog-test-009", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1503328232583", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6f1658ae-09f8-4146-8e99-c618a513b96e", + "service-instance-name": "TestBeforTenantIsolation", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502873224732", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5febf311-cfe5-488d-9480-4e300f44e83b", + "service-instance-name": "test-s-s-s-s-s", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503313229112", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a41ea412-135c-44bd-a999-8771f950e4c0", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-21_15-11-13-501", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503317477669", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4e4cb086-9d47-4c35-a787-7663eef5cd1f", + "service-instance-name": "test-484784jf", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503386331370", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/e90d3fbf-c3f4-4439-9984-b2fa9a48f085", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "e90d3fbf-c3f4-4439-9984-b2fa9a48f085" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fff" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f62913a4-ee21-45ed-9b6a-9bd81ef6d4a3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f62913a4-ee21-45ed-9b6a-9bd81ef6d4a3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dujhdu-444f" + } + ] + } + ] + } + }, + { + "service-instance-id": "864c3974-fc7b-4438-bd1a-9b05bf7b0415", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-21_14-36-39-376", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503315402724", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4da12453-b237-4b4b-abef-52e519db1061", + "service-instance-name": "gfdsfgh45656", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503393201982", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c9b5ce8a-a50c-4bb3-950a-ee0c8e8cd8a8", + "service-instance-name": "vid-test-444333222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502821470362", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c9275c14-e391-4205-bf23-1667df357535", + "service-instance-name": "PnfTest", + "service-type": "", + "service-role": "", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1502865576535", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9e7f2be3-916d-4bc9-92df-3fce042c1458", + "service-instance-name": "test111", + "service-type": "", + "service-role": "", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1502867371993", + "orchestration-status": "Active" + }, + { + "service-instance-id": "913c5278-ede0-4d85-a24e-a208ce84aef2", + "service-instance-name": "almog-test-007", + "service-type": "", + "service-role": "", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1503328159784", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7b66fff7-15e3-4421-8e80-695ce78e9a40", + "service-instance-name": "test865555665", + "service-type": "", + "service-role": "", + "model-invariant-id": "b1ed0d58-0700-4631-be18-d2f1e527d637", + "model-version-id": "849a6347-cca7-4ae6-b5c2-7d41e9f6d9b2", + "resource-version": "1504532289220", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b9769e8f-70aa-4b05-8988-64044aa63498", + "service-instance-name": "TestCharlie", + "model-invariant-id": "4af418a9-c2f5-4fae-a577-b69d6341eee8", + "model-version-id": "745d1bf1-9ed1-413f-8111-f1e984ad63fb", + "resource-version": "1494002070115", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/91124690-bc03-4387-bd6d-96c492a26e47", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "91124690-bc03-4387-bd6d-96c492a26e47" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "TestCharlie" + } + ] + } + ] + } + }, + { + "service-instance-id": "69779f8f-e3d1-4957-b092-4c1e0fa2d962", + "service-instance-name": "test_934584858784", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508313166228", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/43b8a85a-0421-4265-9069-117dd6526b8a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "43b8a85a-0421-4265-9069-117dd6526b8a" + } + ] + } + ] + } + }, + { + "service-instance-id": "687ca9ab-0cbc-49f3-8693-953d4d6b61fe", + "service-instance-name": "te554433", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1508331792032", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/96208579-2839-442d-bcd7-46902fb5b108", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "96208579-2839-442d-bcd7-46902fb5b108" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4d1c9027-05a6-4144-bf9e-9a190b3ec4cd", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4d1c9027-05a6-4144-bf9e-9a190b3ec4cd" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "mhghg66" + } + ] + } + ] + } + }, + { + "service-instance-id": "8eebe164-928e-4a02-b09a-1d3e85baa553", + "service-instance-name": "tertop009", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508331429003", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p10", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p10" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/73185f03-5531-444d-bc03-fa13f924d66a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "73185f03-5531-444d-bc03-fa13f924d66a" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/353fac93-f9f7-46d6-becb-68f10aae2815", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "353fac93-f9f7-46d6-becb-68f10aae2815" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfhddft" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fbc588a0-70aa-4fdf-bff4-a0fb7037b65a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fbc588a0-70aa-4fdf-bff4-a0fb7037b65a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfddfd5655" + } + ] + } + ] + } + }, + { + "service-instance-id": "3ed5a776-9aab-4fe3-9231-853db3657f5e", + "service-instance-name": "vid-e2e-test_service_2017-07-26_17-06-11-407", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501077979892", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/493e1f9e-03fd-461d-9c43-371e22fc9edd", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "493e1f9e-03fd-461d-9c43-371e22fc9edd" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test_vnf_2017-07-26_17-06-40-404" + } + ] + } + ] + } + }, + { + "service-instance-id": "0471bff5-ceb1-474c-a9da-c877bf21ae9b", + "service-instance-name": "vid-e2e-test_service_2017-07-26_22-41-09-352", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501098077533", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d2c3b450-f8c4-4d7b-8099-f031be9a1bde", + "service-instance-name": "Ser_VID_Lital--1707097", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1501147094625", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f4c7ecc7-9847-4047-8776-1a5bf5e3ea45", + "service-instance-name": "vid-e2e-test_service_2017-07-26_22-50-59-847", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501098666381", + "orchestration-status": "Active" + }, + { + "service-instance-id": "99d31873-a6e5-4f16-861c-6e3b8d3fe8c7", + "service-instance-name": "vid-e2e-test_service_2017-07-26_23-04-22-351", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501099468895", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aa3d70b1-743a-4492-93b4-3472395bb887", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aa3d70b1-743a-4492-93b4-3472395bb887" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test-vnf_2017-07-26_23-04-55-822" + } + ] + } + ] + } + }, + { + "service-instance-id": "5a78742a-60ec-4377-88df-746442c7c680", + "service-instance-name": "teat90494848", + "model-invariant-id": "6fe9ad6f-6fa9-4b96-a91e-866a7f3c55a9", + "model-version-id": "be753bed-13e8-4e50-b431-b90dfd0f31b7", + "resource-version": "1499849060540", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7230d7d5-68e6-4772-95c6-59b6edb58f9f", + "service-instance-name": "vid-e2e-test_service_2017-10-15_17-53-59-886", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508079214580", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/z1", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "z1" + } + ] + } + ] + } + }, + { + "service-instance-id": "bb58b58a-2b64-41d5-8d56-3ac95b32b99e", + "service-instance-name": "vid-test-12321", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508143950703", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/z1", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "z1" + } + ] + } + ] + } + }, + { + "service-instance-id": "4ba3e63d-71dc-4912-891d-e0eed048a0a5", + "service-instance-name": "SI_vid894_01", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "d9522f74-c0a9-444e-8b8f-3623da145007", + "resource-version": "1495823285290", + "orchestration-status": "Active" + }, + { + "service-instance-id": "92e1553e-24f7-49ba-94b4-f1538487da52", + "service-instance-name": "lll052617D", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "d9522f74-c0a9-444e-8b8f-3623da145007", + "resource-version": "1495836523699", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7c569714-4174-4d91-9fd0-14051794c3d2", + "service-instance-name": "sdfsdfdsf", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503842487837", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e25c1753-d5f7-4b5e-880e-cdad5c2f74f7", + "service-instance-name": "lll052617B", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1495815608024", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d8f23bb5-5822-4374-8ece-964c0af90d60", + "service-instance-name": "lll052617A", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1495814776103", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c870081f-b09a-411e-8e2e-fb0e4ba60992", + "service-instance-name": "test-ksdjsd7", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503843463767", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f4770c11-039e-44d2-83a1-ee38c74ffea8", + "service-instance-name": "dsfdsfds", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503906371181", + "orchestration-status": "Active" + }, + { + "service-instance-id": "22e5c795-5747-428f-b997-23e355a3c3b6", + "service-instance-name": "asdasdasd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503906872840", + "orchestration-status": "Active" + }, + { + "service-instance-id": "66eb9285-edb6-4149-a4fd-4ace1725486e", + "service-instance-name": "asdasdvdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503906293988", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e089b589-5227-4a7c-aa19-92c99507f147", + "service-instance-name": "Mobility_VSP_Service_DS_0906_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "f60ed211-2780-40ea-9d05-94c214e0be5c", + "model-version-id": "0497a6ff-455b-4713-b5de-3e1d4d172b8c", + "resource-version": "1504709046592", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c436daa1-63b5-40e6-892a-1ca67c390ea1", + "service-instance-name": "test_04594959", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503820500390", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/50d111b5-134f-4415-b097-5c061a5072ab", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "50d111b5-134f-4415-b097-5c061a5072ab" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_045845w" + } + ] + } + ] + } + }, + { + "service-instance-id": "6eeb541a-2976-4ae2-986f-1e34c7927983", + "service-instance-name": "test_lfgfjdf7", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503819918168", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8ed80bb9-7548-4305-baef-660453777afa", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8ed80bb9-7548-4305-baef-660453777afa" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_0459495d" + } + ] + } + ] + } + }, + { + "service-instance-id": "45a68dc7-6d41-47b1-b123-5c958abe49e3", + "service-instance-name": "test_jhjhjjh", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503844473215", + "orchestration-status": "Active" + }, + { + "service-instance-id": "0ae4ff8e-7848-448e-9b4b-bcc43859dda8", + "service-instance-name": "test045453", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502111666406", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5bfa3a21-65b3-4047-8455-69af6e8451f2", + "service-instance-name": "HHHKJKJKJKJKJ", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502006983390", + "orchestration-status": "Active" + }, + { + "service-instance-id": "54515abc-20c2-4852-9f79-f54530b1c17b", + "service-instance-name": "XSXSXXSX", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502007073155", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/75e79664-98f1-4a77-bdce-4666d1151896", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "75e79664-98f1-4a77-bdce-4666d1151896" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "DFVDXVXBG" + } + ] + } + ] + } + }, + { + "service-instance-id": "12a73cfd-bf36-48fc-8a05-db90ea8d2218", + "service-instance-name": "vid-test-usp-1111", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502006502927", + "orchestration-status": "Active" + }, + { + "service-instance-id": "cca9ce39-80f7-432f-929b-497cc31448e8", + "service-instance-name": "test_0459495", + "service-type": "", + "service-role": "", + "model-invariant-id": "caed4dbb-922a-4942-be87-1f99d56d426a", + "model-version-id": "b77dae3c-ac5b-459c-8df5-1f1de6c59737", + "resource-version": "1502180467964", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7fa929ef-fe96-4515-bb77-f67b99492cc8", + "service-instance-name": "vid-test-111555333222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502093359964", + "orchestration-status": "Active" + }, + { + "service-instance-id": "145dc127-918e-46dc-beca-fe07cc00c62b", + "service-instance-name": "", + "service-type": "null", + "service-role": "null", + "model-invariant-id": "5c3bb706-95fc-4589-b40f-ed024673246a", + "model-version-id": "873e3f27-6561-47a6-80b0-0cd048d5cdfb", + "resource-version": "1502170966884", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ad57a79b-6078-4831-bdb0-fe59d49d83f6", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-08_14-32-57-249", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502191981359", + "orchestration-status": "Active" + }, + { + "service-instance-id": "288bc6d7-03e6-45ee-b795-a419207fab73", + "service-instance-name": "shaytestvid2", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1502009457141", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7eaf20e0-b629-4d2c-bc12-b50128537550", + "service-instance-name": "vid-test-4422119955", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502093302607", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8c27adcf-343f-42c0-ace5-d4cab15517a8", + "service-instance-name": "DS-vUSP_08042017_Svc_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "e4f8b794-8057-4b1c-acf8-39cdcbc07dae", + "model-version-id": "79572855-8d8c-47db-a5fa-29cb28058f88", + "resource-version": "1501867425306", + "orchestration-status": "Active" + }, + { + "service-instance-id": "56c010cf-13e9-4436-9b95-25c90349bf3b", + "service-instance-name": "vid-test-22-5", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502093787135", + "orchestration-status": "Active" + }, + { + "service-instance-id": "17a94393-ec25-4080-b0f2-e79690c68edb", + "service-instance-name": "test_034034", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502112253718", + "orchestration-status": "Active" + }, + { + "service-instance-id": "0141fb08-f2e3-4a99-9541-e507060d88c0", + "service-instance-name": "test0450405", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502111949341", + "orchestration-status": "Active" + }, + { + "service-instance-id": "cb059250-e6b2-4080-8c3f-dd1a03038d89", + "service-instance-name": "test_0450450", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502783136139", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/829834f1-9d55-4da5-9cf2-c39a54569cc9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "829834f1-9d55-4da5-9cf2-c39a54569cc9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vnf_ar_112345" + } + ] + } + ] + } + }, + { + "service-instance-id": "fc73584c-b77a-4ba8-9ddf-c75fd7f2d4ae", + "service-instance-name": "test_9459945", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502805435726", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6f4b830c-e2b7-453c-b900-045fdd66db4e", + "service-instance-name": "vid-test-44444", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501436355937", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2f59588b-5423-4505-bb2c-b8505551f95a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2f59588b-5423-4505-bb2c-b8505551f95a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-test-vnf-44444" + } + ] + } + ] + } + }, + { + "service-instance-id": "362433ab-c1d2-4c99-af62-9421361870bc", + "service-instance-name": "lital3532", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505140621032", + "orchestration-status": "Active" + }, + { + "service-instance-id": "57aba319-3f37-4d9b-9101-ccfac8eed6ca", + "service-instance-name": "eylon1", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505139462227", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a6715839-446e-46f0-9ab3-e90580f21a13", + "service-instance-name": "eylon2", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505140170371", + "orchestration-status": "Active" + }, + { + "service-instance-id": "427229ed-b60f-4d77-8f14-62c4278d30ff", + "service-instance-name": "test_098765432", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505137712759", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bde46fed-f9f2-4e75-83ba-3b3c8830d5da", + "service-instance-name": "dfghgfgfgh", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507031926132", + "orchestration-status": "Active" + }, + { + "service-instance-id": "951c09ef-3369-49b3-a23b-14d70e86330b", + "service-instance-name": "shanitets27", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1507546827502", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e8d9e0e3-7acc-4dba-8f16-e14437c416a6", + "service-instance-name": "CreateINstance_Service_VOIP_297772_nb5443_0610", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "5cfb7e85-6855-4227-ba36-6a52494e57e3", + "model-version-id": "aaeb9f9d-3e29-4ad9-9fb0-0478d53ad7fd", + "resource-version": "1507238826056", + "orchestration-status": "Active" + }, + { + "service-instance-id": "09e219ad-f71d-4dfa-bec3-f139a85c183b", + "service-instance-name": "ServicePnf_16", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1507470982716", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/09e219ad-f71d-4dfa-bec3-f139a85c183b/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "fc110d0d-72e0-4286-b2be-982b34dc6b29", + "service-instance-name": "jhhh88", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1507462936971", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ae3e6c21-8463-456e-a746-d9932c467e79", + "service-instance-name": "mdnsinstance", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "3987a2eb-5f35-45c1-b09a-74149b16bc50", + "model-version-id": "2ec43e3c-e287-47bb-9201-ad0c725f390a", + "resource-version": "1506527808858", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/6960a4f9-878b-4566-a24a-cbae1f2a1943", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "6960a4f9-878b-4566-a24a-cbae1f2a1943" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "instance" + } + ] + } + ] + } + }, + { + "service-instance-id": "4495bf72-1126-4e9f-8bc9-4f91debe632c", + "service-instance-name": "test_0999239459", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1506429664785", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f526e0c5-7dd0-4ff6-8e0d-e34513108c72", + "service-instance-name": "test_09990234446", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1506429789282", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2be69fe5-9e97-4382-8f40-f2a0feb9aa18", + "service-instance-name": "testoron8765", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1506430488921", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8446f630-0aa4-45b1-9192-9d22968fcc1c", + "service-instance-name": "inputmap_instance001", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "Production", + "model-invariant-id": "e3ee9d25-2c6b-4734-8a8c-b6e0dee11ca9", + "model-version-id": "97128a5f-e7e4-4ddd-b1eb-83a611ae1acb", + "resource-version": "1506518606738", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6d644284-8e45-43aa-8b7a-3a657eda552a", + "service-instance-name": "ServicePnf_7", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1506588010642", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/6d644284-8e45-43aa-8b7a-3a657eda552a/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "29f814ec-a2b8-41aa-b57c-e50d67bbcb45", + "service-instance-name": "test_02349394", + "service-type": "", + "service-role": "", + "model-invariant-id": "6fe9ad6f-6fa9-4b96-a91e-866a7f3c55a9", + "model-version-id": "be753bed-13e8-4e50-b431-b90dfd0f31b7", + "resource-version": "1505386639581", + "orchestration-status": "Active" + }, + { + "service-instance-id": "dcd856f5-69ea-42df-a8aa-d460a9aefe3e", + "service-instance-name": "hfhdgdgf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505386037801", + "orchestration-status": "Active" + }, + { + "service-instance-id": "69235f15-bef1-4a6a-9689-bf41a332068c", + "service-instance-name": "ffwfdwedewd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505385896496", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e720e20f-9997-4e42-a959-a5e4f20135fd", + "service-instance-name": "hjgfdsfrg", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1505387270709", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2ee1ce2c-1284-426c-817f-2c94a366f298", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2ee1ce2c-1284-426c-817f-2c94a366f298" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gsdsdfdff" + } + ] + } + ] + } + }, + { + "service-instance-id": "78c57f7f-9568-48e8-9308-4c1badc0a493", + "service-instance-name": "test_0458478576", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1505387592406", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9f521dd1-9dda-4340-8f34-5295154904eb", + "service-instance-name": "nf-role-ariel", + "service-type": "", + "service-role": "", + "model-invariant-id": "7325761d-fa5a-4a52-9a07-8bcf64d693ed", + "model-version-id": "8786e50b-84f9-4942-83ed-fd3624baacae", + "resource-version": "1505388118278", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4d3d8367-955e-4907-8e39-d4fee5150622", + "service-instance-name": "jfdsghgtrg", + "service-type": "", + "service-role": "", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1505387180101", + "orchestration-status": "Active" + }, + { + "service-instance-id": "11d946a3-8fea-4ea1-9776-cc7be5be2f67", + "service-instance-name": "int_nfrole_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "cf3fa46a-e026-4171-9496-56f5e5184b38", + "model-version-id": "38ee5ebe-b9b8-4cc1-bd98-36db01bfc589", + "resource-version": "1505389411007", + "orchestration-status": "Active" + }, + { + "service-instance-id": "09e1de12-2b12-431c-abbe-cb786fba1d3e", + "service-instance-name": "test03490348", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1505389785708", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f415422d-5930-4f67-b51e-aafd3ccd92cd", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f415422d-5930-4f67-b51e-aafd3ccd92cd" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfdfgdfg" + } + ] + } + ] + } + }, + { + "service-instance-id": "52eb8cee-e55b-4af7-b5cc-42dd5ef93ea1", + "service-instance-name": "nf_instanse1", + "service-type": "", + "service-role": "", + "model-invariant-id": "7325761d-fa5a-4a52-9a07-8bcf64d693ed", + "model-version-id": "8786e50b-84f9-4942-83ed-fd3624baacae", + "resource-version": "1505388525396", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2c9939cd-1f42-4915-b8f8-a453ad0aa266", + "service-instance-name": "test_832438475", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505397144463", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5449cf97-53f8-44cc-b2c7-7c7d82491457", + "service-instance-name": "Eylon10", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505390455607", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ed820473-cc95-4f58-8d1f-50ee2892d88c", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ed820473-cc95-4f58-8d1f-50ee2892d88c" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "asf" + } + ] + } + ] + } + }, + { + "service-instance-id": "48488113-37bb-4f6f-9a34-cf181c4d24f5", + "service-instance-name": "qweqwewq", + "service-type": "", + "service-role": "", + "model-invariant-id": "6269c77a-a285-473a-be32-9e34a735ae68", + "model-version-id": "de762949-453c-43bd-8610-93eca50b0681", + "resource-version": "1505397289921", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ab418d45-067c-48d6-b5a5-d2be160bda8e", + "service-instance-name": "LitalZil", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505372137288", + "orchestration-status": "Active" + }, + { + "service-instance-id": "600c34b5-3e24-4672-bc6f-a5629cac5881", + "service-instance-name": "fsdfsdfsd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505333533674", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d0451b90-7539-41ce-bc02-9726e07663e1", + "service-instance-name": "gfdgfdgdfgdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505386116614", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9f6d1a31-8968-4409-a19e-5a4c5eb46a6e", + "service-instance-name": "testyw3445456", + "service-type": "", + "service-role": "", + "model-invariant-id": "fb3ab6f5-f776-46cd-93af-9f9ad71fc00e", + "model-version-id": "86e9e15f-9fe9-4817-b31f-5db74d131a2a", + "resource-version": "1505401600662", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e49cb1f8-c016-4502-8e59-87cb8bd5df35", + "service-instance-name": "gfdgdfgfd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505386202387", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ce7c3c47-e047-47a0-a19f-7811d36860e9", + "service-instance-name": "almog-test-008", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1503328194596", + "orchestration-status": "Active" + }, + { + "service-instance-id": "33d6f055-e2fb-4d14-9d66-64e99145e4ec", + "service-instance-name": "almog-test-006", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503328121547", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a71c5896-ae3b-4684-9fe0-0841e81eed3e", + "service-instance-name": "vid-test-666555444", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502823842315", + "orchestration-status": "Active" + }, + { + "service-instance-id": "dcd45af2-6336-469e-8636-9349bffbc350", + "service-instance-name": "test009877654336", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1503227771684", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/1fb26a31-60ea-4d3b-9c0a-f0d24ebf2604", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "1fb26a31-60ea-4d3b-9c0a-f0d24ebf2604" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test7765584" + } + ] + } + ] + } + }, + { + "service-instance-id": "a2a9e86a-2639-4d3d-8aae-24736c0aa5ac", + "service-instance-name": "test_94589485", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502954795174", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8330708c-8d75-466a-9a95-4dd4c4b56863", + "service-instance-name": "almog-test-003", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503327995951", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/33d676dc-285f-4e0c-b8b7-4b3f51c63fce", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "33d676dc-285f-4e0c-b8b7-4b3f51c63fce" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "niin" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9b589699-f43a-4777-97ed-1e374965c3d6", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9b589699-f43a-4777-97ed-1e374965c3d6" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fsdfcsdfsdsd" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/20783cde-b631-47b3-bb90-e47022bf1f34", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "20783cde-b631-47b3-bb90-e47022bf1f34" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dsfsdfsdfsdfsdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "ed710dba-0d3d-4278-a30a-b73da2a64ff9", + "service-instance-name": "vid-e2e-test_service_2017-08-21_19-35-51-585", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503333361349", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b1112b0b-c915-46c3-b060-c3c511081e4c", + "service-instance-name": "test-almog-2", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503325628895", + "orchestration-status": "Active" + }, + { + "service-instance-id": "535af37d-da02-48f4-abc5-00a6cd830d4e", + "service-instance-name": "LitalS", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1503326460122", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/68db93ea-d1be-4de4-98a8-0188d162feba", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "68db93ea-d1be-4de4-98a8-0188d162feba" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "LitalVNF" + } + ] + } + ] + } + }, + { + "service-instance-id": "dad637e9-d7b3-4889-a5c6-b55b3ee60640", + "service-instance-name": "tet-8765367", + "service-type": "", + "service-role": "", + "model-invariant-id": "1cc41b64-5c12-4d51-bac9-448e963bd81d", + "model-version-id": "91f79100-6450-4078-80d7-531427b4fe74", + "resource-version": "1503224652570", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bc2300a4-bc3d-4bca-95ac-e34c1885bc44", + "service-instance-name": "rrrrrrrrr", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1503229518489", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/1c9fe7ac-e24e-4f81-ac9a-cf77e16f6222", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "1c9fe7ac-e24e-4f81-ac9a-cf77e16f6222" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "eeeee" + } + ] + } + ] + } + }, + { + "service-instance-id": "9d164ebb-60ee-4d1e-b46a-7769309e5922", + "service-instance-name": "testvnf098655", + "service-type": "", + "service-role": "", + "model-invariant-id": "1cc41b64-5c12-4d51-bac9-448e963bd81d", + "model-version-id": "91f79100-6450-4078-80d7-531427b4fe74", + "resource-version": "1503225090431", + "orchestration-status": "Active" + }, + { + "service-instance-id": "eb4b08b2-6893-4c45-a0a4-5310e2b840e6", + "service-instance-name": "test-almog", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1503241565609", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/68681da7-0847-4a07-b4e6-e7db863513d8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "68681da7-0847-4a07-b4e6-e7db863513d8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "almog" + } + ] + } + ] + } + }, + { + "service-instance-id": "f5406f25-02d5-4857-b781-25a17f3889b3", + "service-instance-name": "Service_VOIP_297772_DS_0822_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "5cfb7e85-6855-4227-ba36-6a52494e57e3", + "model-version-id": "aaeb9f9d-3e29-4ad9-9fb0-0478d53ad7fd", + "resource-version": "1503424302015", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c1996c46-4853-45a1-b14d-9d92fb3907c7", + "service-instance-name": "test9459459", + "service-type": "", + "service-role": "", + "model-invariant-id": "75eddbdd-9c15-4778-a058-e4e6129ef2f6", + "model-version-id": "42221f38-7795-4692-8876-082c2fe32ca9", + "resource-version": "1502291939948", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/269cc52e-aafa-4d29-917d-9a7ea03ad311", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "269cc52e-aafa-4d29-917d-9a7ea03ad311" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_03403402" + } + ] + } + ] + } + }, + { + "service-instance-id": "5d523308-d5e1-4cfc-baba-ea7df1f37e25", + "service-instance-name": "uhik", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502291344737", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6f9f86b0-ef30-45a6-b92b-df246a5c6168", + "service-instance-name": "mnbkjhgfddsa", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502275995518", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/7c57a376-ac2e-4411-9015-58efd27621e7", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "7c57a376-ac2e-4411-9015-58efd27621e7" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "poiouuycgf" + } + ] + } + ] + } + }, + { + "service-instance-id": "627f59fe-9e7a-4794-a227-2c2ce8f4cf27", + "service-instance-name": "vid-test-4321", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502291742644", + "orchestration-status": "Active" + }, + { + "service-instance-id": "361bb8aa-e5c7-4c6c-938f-4ea61cd07ed3", + "service-instance-name": "ghfghfgh", + "service-type": "", + "service-role": "", + "model-invariant-id": "caed4dbb-922a-4942-be87-1f99d56d426a", + "model-version-id": "b77dae3c-ac5b-459c-8df5-1f1de6c59737", + "resource-version": "1502293787925", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a5ae7dcf-ca04-4f47-8084-94e7a1b126fd", + "service-instance-name": "dfgndfgnsdfgbns", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502276464647", + "orchestration-status": "Active" + }, + { + "service-instance-id": "634bc44e-f64f-4c0f-ade3-8990be885183", + "service-instance-name": "test_03403", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502290081344", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b8453503-d826-47d1-8a23-332dbb058ee0", + "service-instance-name": "ertherht", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502357187720", + "orchestration-status": "Active" + }, + { + "service-instance-id": "12094723-866e-450f-9825-8d0e114d1cc4", + "service-instance-name": "test_958886", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1502356939859", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bd510a5f-bbd0-4d06-b427-4d0230b4def7", + "service-instance-name": "test_Vl_instance1", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1502288021617", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e62bf002-1de0-4efb-9b5a-7f48ec5400f3", + "service-instance-name": "test_056056", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502280371418", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f0b5d0a8-0fd4-4965-9c59-9eee67024945", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f0b5d0a8-0fd4-4965-9c59-9eee67024945" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_0404505" + } + ] + } + ] + } + }, + { + "service-instance-id": "16626bff-21ad-4a2b-820e-1894d06be31c", + "service-instance-name": "test0560560", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502293923490", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6d11dba9-8817-425a-b379-ce55e28ff63a", + "service-instance-name": "newserviceshay2", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8072abd2-2ef6-475f-91a1-000121d37f7b", + "resource-version": "1502294644240", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f001f409-8cd7-4e5a-b104-a193d0e596ab", + "service-instance-name": "test_0450450777", + "service-type": "", + "service-role": "", + "model-invariant-id": "b1ed0d58-0700-4631-be18-d2f1e527d637", + "model-version-id": "849a6347-cca7-4ae6-b5c2-7d41e9f6d9b2", + "resource-version": "1502294904445", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5979493f-1712-445b-953b-7f9b9a99a314", + "service-instance-name": "mnb", + "service-type": "", + "service-role": "", + "model-invariant-id": "caed4dbb-922a-4942-be87-1f99d56d426a", + "model-version-id": "b77dae3c-ac5b-459c-8df5-1f1de6c59737", + "resource-version": "1502278737864", + "orchestration-status": "Active" + }, + { + "service-instance-id": "47f70a06-7846-44ff-9488-2d60536baf72", + "service-instance-name": "dfghdfghsdfg", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502278659676", + "orchestration-status": "Active" + }, + { + "service-instance-id": "59eb28d6-ad0e-43d3-976d-e3b36c95c073", + "service-instance-name": "jhgfegt", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508758028801", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/73185f03-5531-444d-bc03-fa13f924d66a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "73185f03-5531-444d-bc03-fa13f924d66a" + } + ] + } + ] + } + }, + { + "service-instance-id": "828696d8-1cc6-4d81-b744-d18d6fa7430a", + "service-instance-name": "test04350495", + "service-type": "test", + "service-role": "test", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1508676546378", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "8b19fe19-65a6-4f0a-9362-54caf7b130c8", + "service-instance-name": "trewtr", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "Production", + "model-invariant-id": "2fa617d0-50b3-4d74-861d-4b39301acd2c", + "model-version-id": "ae5d24f4-f602-46d0-9a62-ed3f28928b50", + "resource-version": "1508656964072", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/5dbe5092-65fb-453d-87f6-e8715668692f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "5dbe5092-65fb-453d-87f6-e8715668692f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bgtrfv" + } + ] + } + ] + } + }, + { + "service-instance-id": "96a61cec-fec3-4e23-b370-707f74aa7025", + "service-instance-name": "testyyyo", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508676983145", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/b8a07f26-7a5e-428e-9132-eaaef4377e7a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "b8a07f26-7a5e-428e-9132-eaaef4377e7a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfgdfytr" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/edefbdbc-5d41-44ca-a518-10ade7d0d7a8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "edefbdbc-5d41-44ca-a518-10ade7d0d7a8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfdsf55" + } + ] + } + ] + } + }, + { + "service-instance-id": "ab4148e7-ad48-424f-b3ba-c60620f572e2", + "service-instance-name": "liz", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "db09cb43-cc92-4070-8187-f2812bdf6676", + "model-version-id": "827e118a-e9e0-4d8e-85ed-72cf22bd0ca8", + "resource-version": "1508674141999", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p10", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p10" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + } + ] + } + }, + { + "service-instance-id": "b6fbe7c9-0acb-46f0-9cef-157c30d55e07", + "service-instance-name": "dfasf", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "Production", + "model-invariant-id": "2fa617d0-50b3-4d74-861d-4b39301acd2c", + "model-version-id": "ae5d24f4-f602-46d0-9a62-ed3f28928b50", + "resource-version": "1508656225209", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fce90274-4d29-41ad-a559-e88e12b2c177", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fce90274-4d29-41ad-a559-e88e12b2c177" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "kjhgfd87" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8a5fee10-994c-4dfa-a416-79a58c62bd80", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8a5fee10-994c-4dfa-a416-79a58c62bd80" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "testou00096" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aef9b371-3efa-48c2-918b-05c9e3ac4aec", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aef9b371-3efa-48c2-918b-05c9e3ac4aec" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_04594959ccv" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4a2db0c5-db7e-4f25-9623-9d52d5e457d1", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4a2db0c5-db7e-4f25-9623-9d52d5e457d1" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ghfd_test_045" + } + ] + } + ] + } + }, + { + "service-instance-id": "bd3321bb-3ad6-4222-8520-4eb9c2112c70", + "service-instance-name": "ytititi", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1508673680395", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f0aac2f3-2840-48ad-9d35-905416c6eea3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f0aac2f3-2840-48ad-9d35-905416c6eea3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "xdgsdg" + } + ] + } + ] + } + }, + { + "service-instance-id": "8854e480-565c-4533-8b49-9844c55974ef", + "service-instance-name": "test_0234354", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508838123102", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/80bb7c9e-4e3d-4b10-8291-7e85a1347370", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "80bb7c9e-4e3d-4b10-8291-7e85a1347370" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f59bce13-0ba9-4996-a5f2-0ab5001f7915", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f59bce13-0ba9-4996-a5f2-0ab5001f7915" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_03403030dk" + } + ] + } + ] + } + }, + { + "service-instance-id": "f3891ad3-dfc2-48d9-ad79-d3afcb14e499", + "service-instance-name": "testservinputs098", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1508835067923", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/DFW", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "DFW" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/d61e6f2d-12fa-4cc2-91df-7c244011d6fc", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc" + } + ] + } + ] + } + }, + { + "service-instance-id": "82d046fb-036c-412a-8926-07c16622288f", + "service-instance-name": "vid-e2e-test_service_2017-07-26_11-00-33-208", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501056046040", + "orchestration-status": "Active" + }, + { + "service-instance-id": "28adfa51-6d7f-4463-a975-f69e9bc9c3fa", + "service-instance-name": "vid-e2e-test_service_2017-07-26_16-56-30-658", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501077401209", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b368869f-9e69-418a-be61-9c53b33d09e8", + "service-instance-name": "vid-e2e-test_service_2017-07-26_21-55-13-231", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501095318054", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/22c1b09c-4828-4029-9da3-75c0b815a681", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "22c1b09c-4828-4029-9da3-75c0b815a681" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test-vnf_2017-07-26_21-55-43-391" + } + ] + } + ] + } + }, + { + "service-instance-id": "f11e491f-31a4-4fce-9a98-37cc93253249", + "service-instance-name": "vid-e2e-test_service_2017-07-26_22-00-54-093", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501095660896", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d8b18065-f378-4801-85f0-a263c66e9148", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d8b18065-f378-4801-85f0-a263c66e9148" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test-vnf_2017-07-26_22-01-26-312" + } + ] + } + ] + } + }, + { + "service-instance-id": "30603d2b-570a-4ed3-8146-c5ff5608b430", + "service-instance-name": "vid-e2e-test_service_2017-07-26_16-58-52-390", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501077541635", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/a1a76b1d-1c3a-4239-8341-257958944dce", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "a1a76b1d-1c3a-4239-8341-257958944dce" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test_vnf_2017-07-26_16-59-23-041" + } + ] + } + ] + } + }, + { + "service-instance-id": "37d6cde5-f7b7-446e-b161-b835a7acc9a5", + "service-instance-name": "vid-e2e-test_service_2017-07-26_22-12-38-071", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501096370654", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ac25d056-e0ee-4d8e-b3d3-f26640562384", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ac25d056-e0ee-4d8e-b3d3-f26640562384" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test-vnf_2017-07-26_22-13-18-804" + } + ] + } + ] + } + }, + { + "service-instance-id": "65fa3122-5000-4aa1-9707-696825cf6bee", + "service-instance-name": "vid-e2e-test_service_2017-07-26_23-01-31-327", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501099298353", + "orchestration-status": "Active" + }, + { + "service-instance-id": "599b2af1-92bc-4c99-be63-0f027897b643", + "service-instance-name": "vid-e2e-test_service_2017-07-26_21-03-28-542", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501092216356", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/a4401c1c-505d-4287-a0cb-d2f079bcca4a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "a4401c1c-505d-4287-a0cb-d2f079bcca4a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test_vnf_2017-07-26_21-04-00-755" + } + ] + } + ] + } + }, + { + "service-instance-id": "649b92a1-d599-4abb-ae22-9d79ab15d39d", + "service-instance-name": "testrttert", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499866339532", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c64642d2-d014-47bc-83f1-4e4854a20fb5", + "service-instance-name": "test675refg", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499868496430", + "orchestration-status": "Active" + }, + { + "service-instance-id": "935400cb-3055-41e6-bea9-6fa25c470fe8", + "service-instance-name": "vid-e2e-test_service_2017-09-10_10-39-59-713", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505029212112", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1d61b1be-a7a5-4f01-b980-d83702cb1c81", + "service-instance-name": "vid-e2e-test_aai_service_2017-09-10_11-33-40-608", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505032423917", + "orchestration-status": "Active" + }, + { + "service-instance-id": "cfd3bc73-45b6-486e-89ed-ecd77d6c28d4", + "service-instance-name": "rtyrtyu", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1504686208504", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b5c0cf11-5cd5-4ac0-9cf3-f794b7d2e9e7", + "service-instance-name": "eylonTest2", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a6a00927-7b10-48ed-bed4-0c9f5cf3fe1b", + "model-version-id": "775fdee6-22a9-4243-9a35-573a67df5fa4", + "resource-version": "1509264230953", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p3", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p3" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/f8494620-44a3-464b-b577-7a2a1113390d", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "f8494620-44a3-464b-b577-7a2a1113390d" + } + ] + } + ] + } + }, + { + "service-instance-id": "e96c6246-59b8-44f1-992a-00dcc9715403", + "service-instance-name": "eylonTest1", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a6a00927-7b10-48ed-bed4-0c9f5cf3fe1b", + "model-version-id": "775fdee6-22a9-4243-9a35-573a67df5fa4", + "resource-version": "1509264071228", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p6", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p6" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/f8494620-44a3-464b-b577-7a2a1113390d", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "f8494620-44a3-464b-b577-7a2a1113390d" + } + ] + } + ] + } + }, + { + "service-instance-id": "3b271daa-7dae-4e7e-8b7c-d4938752d53c", + "service-instance-name": "vik_flexware", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "951fd067-b3c1-41e4-8d1d-54223e37caa6", + "model-version-id": "5b20f93d-042f-4b44-ba8a-8428877975d0", + "resource-version": "1510067918641", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/Nimbus", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "Nimbus" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2356a43d-ed56-43b6-aefc-8391b82588c9", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2356a43d-ed56-43b6-aefc-8391b82588c9" + } + ] + } + ] + } + }, + { + "service-instance-id": "037157ae-4edb-4885-af7a-57ae1087e4f0", + "service-instance-name": "ServicePnf_25", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1509378462768", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/037157ae-4edb-4885-af7a-57ae1087e4f0/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c363d78f-2cfd-4095-a90e-c5412133e46f", + "service-instance-name": "test_034599599sdv", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508411127918", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + } + ] + } + }, + { + "service-instance-id": "f04f45fe-0563-4b41-affe-4f71591f330a", + "service-instance-name": "testmac_0345095", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508413319691", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "e6f32432-c7a7-4d84-8596-13b931bebed9", + "service-instance-name": "Bracha1234", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508418034736", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/edfccd7f-a8d6-4b2d-b87a-4344d868e53c", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "edfccd7f-a8d6-4b2d-b87a-4344d868e53c" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "portal" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4d73cfb9-3122-47c2-b3dc-9f944bea9134", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4d73cfb9-3122-47c2-b3dc-9f944bea9134" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bracha12345" + } + ] + } + ] + } + }, + { + "service-instance-id": "f5e4918e-a0d7-4c50-9474-240edf63bd1d", + "service-instance-name": "triusyt7584", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a6a00927-7b10-48ed-bed4-0c9f5cf3fe1b", + "model-version-id": "775fdee6-22a9-4243-9a35-573a67df5fa4", + "resource-version": "1508412580537", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + } + ] + } + }, + { + "service-instance-id": "0a222d51-2d02-4d19-8926-0cc04b023212", + "service-instance-name": "ServicePnf_17", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1508076064866", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/0a222d51-2d02-4d19-8926-0cc04b023212/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "867f48cb-f5fa-499c-b84d-f33533b2978d", + "service-instance-name": "fffssssaaaeeeewww", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508078868301", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/x1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "x1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/z1", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "z1" + } + ] + } + ] + } + }, + { + "service-instance-id": "257feb6b-ad89-4001-bb9d-54cfe8add8f6", + "service-instance-name": "vid-e2e-test_service_2017-10-15_17-42-19-283", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508078514218", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/x1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "x1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/z1", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "z1" + } + ] + } + ] + } + }, + { + "service-instance-id": "153635ac-4bbb-4c12-8f54-b23c29f1af01", + "service-instance-name": "vid-test-2224443", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1501674964224", + "orchestration-status": "Active" + }, + { + "service-instance-id": "145d3863-b44c-40cf-addd-45f42a9522ad", + "service-instance-name": "vid-test-444333322", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501665641034", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6798f1fa-fb5c-4638-b1ff-b7b66052e71d", + "service-instance-name": "vid-test-creation-3333", + "service-type": "", + "service-role": "", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1501672969683", + "orchestration-status": "Active" + }, + { + "service-instance-id": "67b2bb65-fbee-44dc-a144-88a8b5084d35", + "service-instance-name": "vid-test-333222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1501663697504", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7a9fc646-39a4-4f18-afc8-1be9560d4535", + "service-instance-name": "vid-test-3333222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501675189009", + "orchestration-status": "Active" + }, + { + "service-instance-id": "101e3ef2-8650-11e6-ae22-56b6b6499611", + "resource-version": "1494001848458", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ctpx0001v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ctpx0001v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ctpx0001v" + } + ] + } + ] + } + }, + { + "service-instance-id": "c505ba4c-6333-4911-ac60-5736f36ff036", + "service-instance-name": "SlowAAI", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1509613326963", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/73185f03-5531-444d-bc03-fa13f924d66a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "73185f03-5531-444d-bc03-fa13f924d66a" + } + ] + } + ] + } + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/092eb9e8e4b7412e8787dd091bc58e86", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "AAIAIC25" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "092eb9e8e4b7412e8787dd091bc58e86" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "USP-SIP-IC-24335-T-01" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/bae71557c5bb4d5aac6743a4e5f1d054", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "bae71557c5bb4d5aac6743a4e5f1d054" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-testgamma" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/229bcdc6eaeb4ca59d55221141d01f8e", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "229bcdc6eaeb4ca59d55221141d01f8e" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-STTest2" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/1178612d2b394be4834ad77f567c0af2", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "1178612d2b394be4834ad77f567c0af2" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-SSPtestcustome" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/19c5ade915eb461e8af52fb2fd8cd1f2", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "19c5ade915eb461e8af52fb2fd8cd1f2" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-UncheckedEcopm" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/de007636e25249238447264a988a927b", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "de007636e25249238447264a988a927b" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-dfsdf" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/62f29b3613634ca6a3065cbe0e020c44", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "62f29b3613634ca6a3065cbe0e020c44" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-D-Multiservices1" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/649289e30d3244e0b48098114d63c2aa", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "649289e30d3244e0b48098114d63c2aa" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-SSPST66" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/3f21eeea6c2c486bba31dab816c05a32", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "3f21eeea6c2c486bba31dab816c05a32" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-ASSPST47" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/f60ce21d3ee6427586cff0d22b03b773", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "f60ce21d3ee6427586cff0d22b03b773" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg67246" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/8774659e425f479895ae091bb5d46560", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "8774659e425f479895ae091bb5d46560" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg68359" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/624eb554b0d147c19ff8885341760481", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "624eb554b0d147c19ff8885341760481" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-D-iftach" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/214f55f5fc414c678059c383b03e4962", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "214f55f5fc414c678059c383b03e4962" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg612401" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/c90666c291664841bb98e4d981ff1db5", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "c90666c291664841bb98e4d981ff1db5" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg621340" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ce5b6bc5c7b348e1bf4b91ac9a174278", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ce5b6bc5c7b348e1bf4b91ac9a174278" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "sspjg621351cloned" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/b386b768a3f24c8e953abbe0b3488c02", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "b386b768a3f24c8e953abbe0b3488c02" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-D-eteancomp" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/dc6c4dbfd225474e9deaadd34968646c", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "dc6c4dbfd225474e9deaadd34968646c" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-T-SPFET" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/02cb5030e9914aa4be120bd9ed1e19eb", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "02cb5030e9914aa4be120bd9ed1e19eb" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-eeweww" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/f2f3830e4c984d45bcd00e1a04158a79", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "f2f3830e4c984d45bcd00e1a04158a79" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-spjg61909" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/05b91bd5137f4929878edd965755c06d", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "05b91bd5137f4929878edd965755c06d" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg621512cloned" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/7002fbe8482d4a989ddf445b1ce336e0", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "7002fbe8482d4a989ddf445b1ce336e0" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-vdr" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/4008522be43741dcb1f5422022a2aa0b", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "4008522be43741dcb1f5422022a2aa0b" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-D-ssasa" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/f44e2e96a1b6476abfda2fa407b00169", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "f44e2e96a1b6476abfda2fa407b00169" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-D-PFNPT" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/b69a52bec8a84669a37a1e8b72708be7", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "b69a52bec8a84669a37a1e8b72708be7" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-vdre" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/fac7d9fd56154caeb9332202dcf2969f", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "fac7d9fd56154caeb9332202dcf2969f" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-NONPODECOMP" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/cb42a77ff45b48a8b8deb83bb64acc74", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "cb42a77ff45b48a8b8deb83bb64acc74" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "ro-T11" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/fa45ca53c80b492fa8be5477cd84fc2b", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "fa45ca53c80b492fa8be5477cd84fc2b" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "ro-T112" + } + ] + } + ] + } + }, + { + "service-type": "TSBC", + "resource-version": "1494001891362", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "c0edefb0-2505-4a34-85cc-96c4cd5a121d", + "service-instance-name": "test-343432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500370094198", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7cb54908-f3fb-46b9-b547-d1e670ea95b2", + "service-instance-name": "test765445g", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499868690949", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fbb52a16-2c57-4212-802f-32dbba2204f2", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fbb52a16-2c57-4212-802f-32dbba2204f2" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fdfdfdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "8e953267-4cd8-45ec-ae7f-bdeb018656c0", + "service-instance-name": "a1", + "service-type": "service_type_shani", + "service-role": "service_role_shani", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "340f3957-ff0a-4503-866d-a34fd1b97450", + "model-version-id": "ee2d8783-8495-4fb1-9553-6cdbd2dd3a50", + "resource-version": "1509355912484", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2356a43d-ed56-43b6-aefc-8391b82588c9", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2356a43d-ed56-43b6-aefc-8391b82588c9" + } + ] + } + ] + } + }, + { + "service-instance-id": "e2ecfd33-b5d3-4a7b-85ba-1a709b26b66c", + "service-instance-name": "a3", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d5937aa1-37fb-4ed0-8c30-5144b89a64ae", + "model-version-id": "06ac9663-54cf-4c77-b926-6e8757cf6380", + "resource-version": "1509356358573", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/589fe0db-26c4-45e5-9f4e-a246c74fce76", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "589fe0db-26c4-45e5-9f4e-a246c74fce76" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9c925d7e-1a94-4784-a45b-408c8cc96fa8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9c925d7e-1a94-4784-a45b-408c8cc96fa8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfdsfds" + } + ] + } + ] + } + }, + { + "service-instance-id": "7dfef88f-fec0-421f-90d4-91eea35a5813", + "service-instance-name": "shanitest", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "d7b48529-6ae2-49f0-8633-b29e7cd4d4ce", + "model-version-id": "44671b15-83dd-4db7-a36e-dfada3eaa2f9", + "resource-version": "1508144995828", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a46ca55c-e9bd-4e68-9c49-c98933240218", + "service-instance-name": "si_failtest", + "model-invariant-id": "732263bd-0655-428d-a347-d65676d1a949", + "resource-version": "1494001997513" + }, + { + "service-instance-id": "e165f1af-a3cf-4323-8cd2-607acb55baa9", + "service-instance-name": "first_macro_shani", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1508071197869", + "orchestration-status": "Active" + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ece35e4a79d547d193451ac38d700046", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ece35e4a79d547d193451ac38d700046" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-sspstMAIL" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/23cbbd1872864ea08aa53ade25d34172", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "23cbbd1872864ea08aa53ade25d34172" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-rtertet" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ded2432abb5a4100801331d07787afc2", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ded2432abb5a4100801331d07787afc2" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-D-SSPecompFlvr2" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ad5aab08f5f7435e9983311af543f311", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ad5aab08f5f7435e9983311af543f311" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-PODECOMP" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/8071dc66981c4294b05483a1cddac801", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "8071dc66981c4294b05483a1cddac801" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-X-ecompPODprivate" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/036f769581904ca08ead1415c22b9ec0", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "036f769581904ca08ead1415c22b9ec0" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-PODECOMPCLONE" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/c2475a36c5e04f12a21593849ae83420", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "c2475a36c5e04f12a21593849ae83420" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-X-hope" + } + ] + } + ] + } + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_subscribers_for_customer_2.json b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_subscribers_for_customer_2.json new file mode 100644 index 000000000..f9b391484 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_get_subscribers_for_customer_2.json @@ -0,0 +1,734 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/business/customers/customer/31739f3e-526b-11e6-beb8-9e71128cae77", + "queryParams": { + "depth": 2 + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "global-customer-id": "31739f3e-526b-11e6-beb8-9e71128cae77", + "subscriber-name": "FIREWALL/MISC", + "subscriber-type": "INFRA", + "resource-version": "1494001772223", + "service-subscriptions": { + "service-subscription": [ + { + "service-type": "VDNS", + "resource-version": "1494001850040", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "d69c6add-c114-4dd8-9bfc-bb51c7989e93", + "service-instance-name": "test123", + "model-invariant-id": "c73dd832-d1eb-4c3a-bd04-00353c032209", + "model-version-id": "f9253bf0-3b74-4f6b-a966-697bc599691c", + "resource-version": "1494002069377" + }, + { + "service-instance-id": "9caf5581-40ab-47be-b1f1-909a87724add", + "service-instance-name": "vidfirewallvdnstest", + "model-invariant-id": "732263bd-0655-428d-a347-d65676d1a949", + "resource-version": "1494002023060" + }, + { + "service-instance-id": "916538e5-91d2-45f2-a0b4-2b1804361262", + "service-instance-name": "test5645543454", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499866361973", + "orchestration-status": "Active" + } + ] + } + }, + { + "service-type": "VNTPS", + "resource-version": "1494001936936", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "99deef90-f034-438d-949c-069c22558657", + "service-instance-name": "Lital-S-1707094-VID", + "model-invariant-id": "331a194d-9248-4533-88bc-62c812ccb5c1", + "model-version-id": "171b3887-e73e-479d-8ef8-2690bf74f2aa", + "resource-version": "1500880984100", + "orchestration-status": "Active" + }, + { + "service-instance-id": "14cbb92e-1ba6-46a6-893c-05f817ea81ec", + "service-instance-name": "MobilityServer_Instance10-26", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "1e34a014-6fd9-4b1c-9038-b2b885b93143", + "model-version-id": "8a380513-8a3e-4603-8558-67c1c7231e66", + "resource-version": "1509049693156", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3215397d-435d-4892-8e4f-7321a4269a16", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3215397d-435d-4892-8e4f-7321a4269a16" + } + ] + } + ] + } + }, + { + "service-instance-id": "47e0d120-0b7f-412c-9e5b-e26cfdc3b656", + "service-instance-name": "Lital-Test-VID-Service", + "model-invariant-id": "41543dd0-43c5-4346-bc52-d9883566d9aa", + "model-version-id": "420731a2-72f2-4786-9ba1-fd94f19a81cf", + "resource-version": "1500795793085", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5d521981-33be-4bb5-bb20-5616a9c52a5a", + "service-instance-name": "dfgh", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "331a194d-9248-4533-88bc-62c812ccb5c1", + "model-version-id": "171b3887-e73e-479d-8ef8-2690bf74f2aa", + "resource-version": "1508832105498", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/Nimbus", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "Nimbus" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/4d4ecf59-41f1-40d4-818d-885234680a42", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "4d4ecf59-41f1-40d4-818d-885234680a42" + } + ] + } + ] + } + } + ] + } + }, + { + "service-type": "VCDN", + "resource-version": "1494001943182" + }, + { + "service-type": "MISVPN Transport", + "resource-version": "1505859178418", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "4ea864f2-b946-473a-b51c-51a7c10b8391", + "service-instance-name": "shaniiiiiiiiiiiiiiiiiiiiiiiiiiiiiii", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508226188903", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/f160c875-ddd1-4ef5-84d8-d098784daa3a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "f160c875-ddd1-4ef5-84d8-d098784daa3a" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/a0032f81-53e1-41f6-bc1a-de91ce1009f3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "a0032f81-53e1-41f6-bc1a-de91ce1009f3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "adding_VNF" + } + ] + } + ] + } + }, + { + "service-instance-id": "8b1b8793-467d-4e5b-9ff4-06abb40ec841", + "service-instance-name": "fgghgyy_shani", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1510817054514", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2356a43d-ed56-43b6-aefc-8391b82588c9", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2356a43d-ed56-43b6-aefc-8391b82588c9" + } + ] + } + ] + } + }, + { + "service-instance-id": "928d5560-4526-4721-8703-bcfc65177067", + "service-instance-name": "ServicePnf_30", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1510827189590", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/928d5560-4526-4721-8703-bcfc65177067/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "08a1a701-608f-4ac0-bc53-ba89dc2b06b2", + "service-instance-name": "ServicePnf_28", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1510673823477", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/08a1a701-608f-4ac0-bc53-ba89dc2b06b2/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "15477731-6cd4-417f-bcc3-f4ed63c2e452", + "service-instance-name": "s4anity", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1509889804126", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/e8016bed-4740-4bd3-a591-96f8788766ae", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "e8016bed-4740-4bd3-a591-96f8788766ae" + } + ] + } + ] + } + }, + { + "service-instance-id": "fafbf383-a04c-4a70-93ea-901582ca199b", + "service-instance-name": "verten", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "87439333-fe61-4b09-8475-f2ced53d425b", + "resource-version": "1508995251487", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/4b65b294-1eb8-47ba-bd80-356004d4f0ed", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "4b65b294-1eb8-47ba-bd80-356004d4f0ed" + } + ] + } + ] + } + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/0c48431cea8c460c998f57ed91515293", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "rdm3" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "0c48431cea8c460c998f57ed91515293" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "sanity_test_tenant-746626838" + } + ] + } + ] + } + }, + { + "service-type": "AIM Transport", + "resource-version": "1505859153563", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "c4743f14-1738-4d16-8773-1cfbe0c76c9b", + "service-instance-name": "ShaniService2", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "713783d5-9e21-49c5-86f1-77dc331586a2", + "model-version-id": "a50a43bb-4ac8-410c-acf3-c30aa39dd109", + "resource-version": "1506438228686", + "orchestration-status": "Active" + }, + { + "service-instance-id": "000ef706-dc5b-4d3c-afc6-160b0474f2ef", + "service-instance-name": "version1", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "713783d5-9e21-49c5-86f1-77dc331586a2", + "model-version-id": "a50a43bb-4ac8-410c-acf3-c30aa39dd109", + "resource-version": "1506436202840", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f36f5734-e9df-4fbf-9f35-61be13f028a2", + "service-instance-name": "AIM_TRANSPORT_00014", + "service-type": "TRANSPORT", + "service-role": "AIM", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "300adb1e-9b0c-4d52-bfb5-fa5393c4eabb", + "model-version-id": "b6614ae6-e52d-44ed-9932-aae697624543", + "resource-version": "1509397929011", + "orchestration-status": "Created", + "relationship-list": { + "relationship": [ + { + "related-to": "zone", + "related-link": "/aai/v11/network/zones/zone/ABC15", + "relationship-data": [ + { + "relationship-key": "zone.zone-id", + "relationship-value": "ABC15" + } + ], + "related-to-property": [ + { + "property-key": "zone.zone-name", + "property-value": "AAITESAN-ABC15" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY7656cce9%3ALAG2295%7CSANITY7686cce9%3ALAG2264", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY7656cce9:LAG2295|SANITY7686cce9:LAG2264" + } + ] + } + ] + } + }, + { + "service-instance-id": "facfdfb3-174d-46a5-8a9f-8251f21ee5ea", + "service-instance-name": "AIM_TRANSPORT_00003", + "service-type": "TRANSPORT", + "service-role": "AIM", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "300adb1e-9b0c-4d52-bfb5-fa5393c4eabb", + "model-version-id": "b6614ae6-e52d-44ed-9932-aae697624543", + "resource-version": "1509395666918", + "orchestration-status": "Created" + }, + { + "service-instance-id": "f36f5734-e9df-4fbf-9f35-61be13f028a1", + "service-instance-name": "AIM_TRANSPORT_00004", + "service-type": "TRANSPORT", + "service-role": "AIM", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "300adb1e-9b0c-4d52-bfb5-fa5393c4eabb", + "model-version-id": "5c9e863f-2716-467b-8799-4a67f378dcaa", + "resource-version": "1508330555658", + "orchestration-status": "<ORCH_STATUS>", + "relationship-list": { + "relationship": [ + { + "related-to": "zone", + "related-link": "/aai/v11/network/zones/zone/ABC11", + "relationship-data": [ + { + "relationship-key": "zone.zone-id", + "relationship-value": "ABC11" + } + ], + "related-to-property": [ + { + "property-key": "zone.zone-name", + "property-value": "ATLSANAI-ABC11" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY6758cce9%3ALAG1992%7CSANITY6785cce9%3ALAG1961", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY6758cce9:LAG1992|SANITY6785cce9:LAG1961" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY6757cce9%3ALAG1989%7CSANITY6785cce9%3ALAG1958", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY6757cce9:LAG1989|SANITY6785cce9:LAG1958" + } + ] + } + ] + } + }, + { + "service-instance-id": "377f3202-e183-44a0-85e5-29a7e71603be", + "service-instance-name": "AIM_TRANSPORT_00002", + "service-type": "TRANSPORT", + "service-role": "AIM", + "model-invariant-id": "100cbe0e-ceb2-41e9-8918-eab9f7aa05bd", + "model-version-id": "32228134-a561-49ba-93af-735bc2d78e5e", + "resource-version": "1508448142346", + "orchestration-status": "PendingDelete" + }, + { + "service-instance-id": "f36f5734-e9df-4fbf-9f35-61be13f028a4", + "service-instance-name": "AIM_TRANSPORT_00015", + "service-type": "TRANSPORT", + "service-role": "AIM", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "300adb1e-9b0c-4d52-bfb5-fa5393c4eabb", + "model-version-id": "b6614ae6-e52d-44ed-9932-aae697624543", + "resource-version": "1509470124946", + "orchestration-status": "Created" + }, + { + "service-instance-id": "f36f5734-e9df-4fbf-9f35-61be13f028a5", + "service-instance-name": "AIM_TRANSPORT_00017", + "service-type": "TRANSPORT", + "service-role": "AIM", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "300adb1e-9b0c-4d52-bfb5-fa5393c4eabb", + "model-version-id": "b6614ae6-e52d-44ed-9932-aae697624543", + "resource-version": "1509470281154", + "orchestration-status": "Created", + "relationship-list": { + "relationship": [ + { + "related-to": "zone", + "related-link": "/aai/v11/network/zones/zone/ABC15", + "relationship-data": [ + { + "relationship-key": "zone.zone-id", + "relationship-value": "ABC15" + } + ], + "related-to-property": [ + { + "property-key": "zone.zone-name", + "property-value": "AAITESAN-ABC15" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY7658cce9%3ALAG2293%7CSANITY7685cce9%3ALAG2262", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY7658cce9:LAG2293|SANITY7685cce9:LAG2262" + } + ] + } + ] + } + }, + { + "service-instance-id": "f36f5734-e9df-4fbf-9f35-61be13f028a7", + "service-instance-name": "AIM_TRANSPORT_00019", + "service-type": "TRANSPORT", + "service-role": "AIM", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "300adb1e-9b0c-4d52-bfb5-fa5393c4eabb", + "model-version-id": "b6614ae6-e52d-44ed-9932-aae697624543", + "resource-version": "1509470436456", + "orchestration-status": "Created", + "relationship-list": { + "relationship": [ + { + "related-to": "zone", + "related-link": "/aai/v11/network/zones/zone/ABC15", + "relationship-data": [ + { + "relationship-key": "zone.zone-id", + "relationship-value": "ABC15" + } + ], + "related-to-property": [ + { + "property-key": "zone.zone-name", + "property-value": "AAITESAN-ABC15" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY7657cce9%3ALAG2289%7CSANITY7685cce9%3ALAG2258", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY7657cce9:LAG2289|SANITY7685cce9:LAG2258" + } + ] + } + ] + } + }, + { + "service-instance-id": "f36f5734-e9df-4fbf-9f35-61be13f028a3", + "service-instance-name": "AIM_TRANSPORT_00015", + "service-type": "TRANSPORT", + "service-role": "AIM", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "300adb1e-9b0c-4d52-bfb5-fa5393c4eabb", + "model-version-id": "b6614ae6-e52d-44ed-9932-aae697624543", + "resource-version": "1509399074465", + "orchestration-status": "Created", + "relationship-list": { + "relationship": [ + { + "related-to": "zone", + "related-link": "/aai/v11/network/zones/zone/ABC15", + "relationship-data": [ + { + "relationship-key": "zone.zone-id", + "relationship-value": "ABC15" + } + ], + "related-to-property": [ + { + "property-key": "zone.zone-name", + "property-value": "AAITESAN-ABC15" + } + ] + }, + { + "related-to": "logical-link", + "related-link": "/aai/v11/network/logical-links/logical-link/SANITY7656cce9%3ALAG2294%7CSANITY7686cce9%3ALAG2263", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "SANITY7656cce9:LAG2294|SANITY7686cce9:LAG2263" + } + ] + } + ] + } + }, + { + "service-instance-id": "181edf1e-725d-47af-ab3f-6b4e297032ab", + "service-instance-name": "ServicePnf_26", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1510673032572", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/181edf1e-725d-47af-ab3f-6b4e297032ab/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "facfdfb3-174d-46a5-8a9f-8251f21zz5yz", + "service-instance-name": "AIM_TRANSPORT_00013", + "service-type": "TRANSPORT", + "service-role": "AIM", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "300adb1e-9b0c-4d52-bfb5-fa5393c4eabb", + "model-version-id": "b6614ae6-e52d-44ed-9932-aae697624543", + "resource-version": "1509396039342", + "orchestration-status": "Created" + }, + { + "service-instance-id": "4759b4f0-3350-40b0-9e06-2bebdacb21d8", + "service-instance-name": "ServicePnf_27", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1510673651875", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/4759b4f0-3350-40b0-9e06-2bebdacb21d8/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1cc01b8b-7604-4fd3-8cb2-f01466407f76", + "service-instance-name": "ServicePnf_29", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1510826917947", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/1cc01b8b-7604-4fd3-8cb2-f01466407f76/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e67d0806-95c9-41a5-86a7-3920c1bdf69f", + "service-instance-name": "dfgfgg", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1510817944682", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/Nimbus", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "Nimbus" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/ab18aa18-9644-441d-be6e-af6cadbc21ab", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "ab18aa18-9644-441d-be6e-af6cadbc21ab" + } + ] + } + ] + } + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/0c48431cea8c460c998f57ed91515293", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "rdm3" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "0c48431cea8c460c998f57ed91515293" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "sanity_test_tenant-746626838" + } + ] + } + ] + } + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_named_query_for_view_edit.json b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_named_query_for_view_edit.json new file mode 100644 index 000000000..aa728d174 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_named_query_for_view_edit.json @@ -0,0 +1,383 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/aai/v11/search/named-query", + "body": { + "instance-filters":{ + "instance-filter":[ + { + "customer":{ + "global-customer-id":"e433710f-9217-458d-a79d-1c7aff376d89" + }, + "service-instance":{ + "service-instance-id":"3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + }, + "service-subscription":{ + "service-type":"VIRTUAL USP" + } + } + ] + }, + "query-parameters":{ + "named-query":{ + "named-query-uuid":"0367193e-c785-4d5f-9cb8-7bc89dc9ddb7" + } + } + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "inventory-response-item":[ + { + "model-name":"1707vidnf", + "service-instance":{ + "service-instance-id":"3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "service-instance-name":"vid-test-444" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"c015cc0f-0f37-4488-aabf-53795fd93cd3", + "vnf-name":"fsd", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1502299355826", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"null", + "nf-function":"null", + "nf-role":"null", + "nf-naming-code":"null" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "volume-group":{ + "volume-group-id":"d9db0900-31f6-4880-8658-8c996c6123b4", + "volume-group-name":"f", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508048984071" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_base_template_v3_0..module-0", + "vf-module":{ + "vf-module-id":"f2805715-e24f-4c8a-9eb3-6c618da7691d", + "vf-module-name":"aa", + "orchestration-status":"PendingCreate", + "is-base-vf-module":true, + "resource-version":"1504770843380", + "model-invariant-id":"df35ebf5-880b-4052-b4dc-5fbf38a423ca", + "model-version-id":"bbf63386-42ec-4cae-a6a1-a8dade4e09e1", + "model-customization-id":"56f23f2a-de4b-4f72-a51c-439970350885", + "module-index":0 + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"f91515e5-cf8d-4abf-aacc-5bc5c5a47f09", + "vf-module-name":"gg", + "orchestration-status":"PendingCreate", + "is-base-vf-module":false, + "resource-version":"1504694876599", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":1 + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"a231a99c-7e75-4d6d-a0fb-5c7d26f30f77", + "vf-module-name":"my_vfModule", + "orchestration-status":"pending-delete", + "is-base-vf-module":false, + "resource-version":"1505044772033", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":0 + }, + "extra-properties":{ + + } + } + ] + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"0846287b-65bf-45a6-88f6-6a1af4149fac", + "vnf-name":"kjkjk", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504008534044", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "volume-group":{ + "volume-group-id":"973cb0a6-f0b5-4a45-b995-db265bda182c", + "volume-group-name":"fdgfg", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508413877324" + }, + "extra-properties":{ + + } + }, + { + "volume-group":{ + "volume-group-id":"09203a8b-29e7-4e76-8dd0-565f6a081f82", + "volume-group-name":"fdgfd", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508413828948" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"a9b70ac0-5917-4203-a308-0e6920e6d09b", + "vf-module-name":"vf_module2", + "orchestration-status":"PendingCreate", + "is-base-vf-module":false, + "resource-version":"1504694397912", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":0 + }, + "extra-properties":{ + + } + } + ] + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"9908b762-136f-4b1f-8eb4-ef670ef58bb4", + "vnf-name":"uiui", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"vHNGWaas", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504516218649", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"543931f5-e50e-45a2-a69f-ab727e4c7f2f", + "vnf-name":"sdfsdfdsf", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"LRSI-OSPF", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1506509961062", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"25e84884-22d5-44c9-8212-cb459f63e0ba", + "vnf-name":"sdada", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"VIPRaaS", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1506509479125", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"013fb0ba-977b-496c-9faa-7f8e5f083eec", + "vnf-name":"gvb", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1508048678134", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"06914296-cb46-4b62-9453-329a706a6cbb", + "vnf-name":"lkllll", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504507099829", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"c55da606-cf38-42c7-bc3c-be8e23b19299", + "vnf-name":"ss", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1508048827342", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"27cc0914-70be-453e-b552-3df6b1d6cda9", + "vnf-name":"yh", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"db171b8f-115c-4992-a2e3-ee04cae357e0", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504507324472", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + } + ] + } + } + ] + } + } +} diff --git a/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_named_query_for_view_edit_2.json b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_named_query_for_view_edit_2.json new file mode 100644 index 000000000..746bfacf5 --- /dev/null +++ b/vid-automation/src/main/resources/registration_to_simulator/search_for_service_instance/aai_named_query_for_view_edit_2.json @@ -0,0 +1,43 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/aai/v11/search/named-query", + "body": { + "instance-filters":{ + "instance-filter":[ + { + "customer":{ + "global-customer-id":"31739f3e-526b-11e6-beb8-9e71128cae77" + }, + "service-instance":{ + "service-instance-id":"f36f5734-e9df-4fbf-9f35-61be13f028a" + }, + "service-subscription":{ + "service-type":"AIM Transport" + } + } + ] + }, + "query-parameters":{ + "named-query":{ + "named-query-uuid":"0367193e-c785-4d5f-9cb8-7bc89dc9ddb7" + } + } + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "inventory-response-item": [ + { + "model-name": "Servicetest1", + "service-instance": { + "service-instance-id": "f36f5734-e9df-4fbf-9f35-61be13f028a1", + "service-instance-name": "AIM_TRANSPORT_00004" + }, + "extra-properties": {} + } + ] + } + } +} diff --git a/vid-ext-services-simulator/README.txt b/vid-ext-services-simulator/README.txt new file mode 100644 index 000000000..71a4e351d --- /dev/null +++ b/vid-ext-services-simulator/README.txt @@ -0,0 +1,436 @@ +VID Simulator +************************************************************************************ + + +************************************************************************************ +Motivation: +************************************************************************************ +Allow intuitive and extensible framework for mocking REST calls towards VID external peers, +both for dev and testing purposes. + + + +************************************************************************************ +Technologies: +************************************************************************************ +Spring MVC +MockServer (Apache License 2.0) +http://www.mock-server.com + + + +************************************************************************************ +High-level description: +************************************************************************************ + +The Simulator uses MockServer instance running "under the hood" listening to its own HTTP port. +the Simulator allows to register the expected request and response to the MockServer instance +with an exposed REST call (see details below), and all other requests are automatically redirected to MockServer. +If a request was properly registered, the MockServer will reply with an expected response, which will be in turn +returned by the Simulator to the caller. + +The Simulator supports both dynamic and preset (static) registration, looking for JSON files in correct registration format and +registrating them on startup - see details below under "Preset registration" + +Note that the behaviour is generic, and no additional code is expected to be added when there are new +MSO/AAI/any other component APIs to be mocked. They will just need to be properly registered using the existing API. + + +Simulator can be used in both test and dev modes. You can change the server root of any of VID external REST peers +to the one of the simulator (see details in "Usage"), and either register the expected request/response dynamically or preset it +to be loaded during startup. That's it - you're ready to use the simulator either in dev mode, or in test mode by running integration tests vs VID. + + +*********************************************************************************** +Simulator configuration: +************************************************************************************ + +Under src/main/resources/: + +1) simulator.properties - currently allows to configure the connection details of MockServer, preset registration mode, and other simulator-related props. + +2) mockserver.properties - TBD (MockServer logging, SSL etc.) + + +************************************************************************************ +Preset registration: +************************************************************************************ + +If enabled in the properties, the Simulator will also run preset registration, looking for JSON files in correct registration format and +registrating them on startup. + +The files must be placed under src/main/resources/preset_registration. + +If preset registration is enabled, the simulator will run the scheduler "schedulerDetails" API registration, and any other JSON file which it will find under the folder. + + +get_scheduler_details_short.json: + +{ + "simulatorRequest": { + "method": "GET", + "path": "/scheduler/v1/ChangeManagement/schedules/scheduleDetails" + } , + "simulatorResponse": { + "responseCode": 200, + "body": "[{\"vnfName\":\"ZRDM1MMSC04c53a\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":1,\"createDateTime\":\"2017-09-06T13:29:43Z\",\"optimizerDateTime\":\"2017-09-06T13:29:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-c098bd33-a51e-461b-8fd2-6c4d2666c706\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ecc00d6d8>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"08fb4c32-ecb4-4d72-b618-a6156d3fc53a\",\"scheduleId\":\"08fb4c32-ecb4-4d72-b618-a6156d3fc53a\",\"scheduleName\":\"08fb4c32-ecb4-4d72-b618-a6156d3fc53a\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":2,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":3,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0}]" + } +} + + +************************************************************************************ +Dynamic registration: +************************************************************************************* +If you need dynamic registration, register API for dynamic registration: + +POST {protocol}://{Tomcat host}:{Tomcat port}/vidSimulator/registerToVidSimulator + +To unregister and clear *all* expectations, use DELETE action: + +DELETE {protocol}://{Tomcat host}:{Tomcat port}/vidSimulator/registerToVidSimulator + + +*********************************************************************************** +Registration body JSON specification (see and copy/paste examples below): +*************************************************************************************** + + + "simulatorRequest" - request wrapper. + + Note that from the below fields, it's mandatory to populate at least one. + No field is mandatory by itself. + + "id" - String, will be expected as a value in an X-header with a key "x-simulator-id" + "method" - String, HTTP method of the request. + "path" - String, relative path of the request, MUST be WITH leading slash and WITHOUT trailing slash. + "queryParams" - Map<String, List<String>>, query params of key-->list of values. + "body" - String, body of the request in case of POST/PUT. + Note that JSON String should be properly escaped. + + "simulatorResponse" - response wrapper. + + Note that from the below fields, it's mandatory to populate at least "responseCode". + + "responseCode" - integer, HTTP response code. + "responseHeaders" - Dictionary Object with HTTP headers and values. + "body" - String, body of the response. + Note that JSON String should be properly escaped. + "file" - String, a filename of the file sitting in "vid-ext-services-simulator\src\main\resources\download_files" + Used for simulating file download requests. + + "misc" - optional configurations. + "numberOfTimes" - Integer. Limit this expectation to fire only a + given amount of times. Values like -1 or less are + treated as "unlimited". Default is unlimited. + "replace" - Boolean. If there is already a registered expectation with + same simulatorRequest, remove the old registered expectation. + If set to 'False' -- the result will be appended to fire + after the old registered expectation(s) will fulfill their + numberOfTimes. Default is 'True'. + +************************************************************************************ +Usage: +************************************************************************************ + +1) In system.properties, change the API you want to mock - set server root to be +{protocol}://{Tomcat host}:{Tomcat port}/vidSimulator (for example http://localhost:7080/vidSimulator) + +Example of mocking the scheduler: + +#scheduler.server.url=http://mtanjv9sdlg10.aic.cip.att.com:8989/scheduler +scheduler.server.url=http://localhost:7080/vidSimulator/scheduler + + +2) Check the simulator.properties file under /resources to verify the desired properties of the inner MockServer instance. + * Default MockServer URI is http://localhost:1080 + +3) Build VID and VID Simulator WARs + +4) Deploy the Simulator WAR under Tomcat, either same as VID or another instance. + * Application context path of the Simulator is /vidSimulator + + + +******************************************************************************** +Some more examples of usage with demo requests/responses: +******************************************************************************** + + +******************************************************************************** +1) Getting a response by "id" (method and path are insignificant in this case) + +******************************************************************************** +Registration: +----------------- + + Request: + + POST /vidSimulator/registerToVidSimulator HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + Cache-Control: no-cache + { + "simulatorRequest": { + "id": "pavelId" + } , + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": "{\"value1\": \"kuku\",\"value2\": \"shmuku\"}" + } + } + + + Response: + + 200 OK + Registration successful! + + +Running: +-------- + + + Request: + + GET /vidSimulator/scheduler/testApi HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + X-Simulator-Id: pavelId + Cache-Control: no-cache + + Response: + + 200 OK + { + "value1": "kuku", + "value2": "shmuku" + } + + +******************************************************************************** +2) Getting a response by "id", "method" and "path" - sunny and rainy flows +******************************************************************************** +Registration: +------------- + + Request: + + POST /vidSimulator/registerToVidSimulator HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + Cache-Control: no-cache + + { + "simulatorRequest": { + "id": "pavelIdGet", + "method": "GET", + "path": "/scheduler/testApiGet" + } , + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": "{\"value1\": \"kukuResponse\",\"value2\": \"shmukuResponse\"}" + } + } + + + Response: + + 200 OK + Registration successful! + + +Running - sunny flow: +--------------------- + + + Request: + + GET /vidSimulator/scheduler/testApiGet HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + X-Simulator-Id: pavelId + Cache-Control: no-cache + + Response: + + 200 OK + { + "value1": "kukuResponse", + "value2": "shmukuResponse" + } + + +Running POST - will return 404 since GET method was explicitly registered: +-------------------------------------------------------------------------- + + Request: + + POST /vidSimulator/scheduler/testApiGet HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + X-Simulator-Id: pavelIdGet + Cache-Control: no-cache + { + "id": "pavelId", + "responseCode": 200, + "body": { + "value1": "kuku", + "value2": "shmuku" + } + } + + Response: + + 404 Not Found + + +******************************************************************************** +3) Getting an error HTTP response (based on "id" in this example) +******************************************************************************** + +Registration: +------------- + + Request: + + POST /vidSimulator/registerToVidSimulator HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + Cache-Control: no-cache + + { + "simulatorRequest": { + "id": "pavelIdError" + } , + "simulatorResponse": { + "responseCode": 417 + } + } + + Response: + + 200 OK + Registration successful! + +Running: +----------- + + Request: + + GET /vidSimulator/scheduler/anyApi HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + X-Simulator-Id: pavelIdError + Cache-Control: no-cache + + + Response: + + 417 Expectation Failed. + + +******************************************************************************** +4) Query params +******************************************************************************** + +Registration: +------------- + + Request: + + POST /vidSimulator/registerToVidSimulator HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + Cache-Control: no-cache + Postman-Token: 0bbfeb0f-b8b6-368e-6fbd-38a90fc544b4 + + { + "simulatorRequest": { + "method": "GET", + "path": "/cloudResourcesRequests/v1", + "queryParams": { + "requestId" : ["3212b08c-0dcd-4d20-8c84-51e4f325c14a", "3212b08c-0dcd-4d20-8c84-51e4f325c14b"] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": "{\"requestId1\": \"3212b08c-0dcd-4d20-8c84-51e4f325c14a\",\"requestId2\": \"3212b08c-0dcd-4d20-8c84-51e4f325c14b\"}" + } + } + + Response: + + 200 OK + Registration successful! + +Running: +----------- + + Request: + + GET /vidSimulator/cloudResourcesRequests/v1?requestId=3212b08c-0dcd-4d20-8c84-51e4f325c14b&requestId=3212b08c-0dcd-4d20-8c84-51e4f325c14a HTTP/1.1 + Host: 127.0.0.1:7080 + Accept: application/json + Cache-Control: no-cache + Postman-Token: 9ef5d9d2-77f4-7631-7e9f-4404df10acb6 + + + Response: + + 200 OK + {"requestId1": "3212b08c-0dcd-4d20-8c84-51e4f325c14a","requestId2": "3212b08c-0dcd-4d20-8c84-51e4f325c14b"} + + + +******************************************************************************** +5) File Download +******************************************************************************** + +Registration: +------------- + + Request: + + POST /vidSimulator/registerToVidSimulator HTTP/1.1 + Host: localhost:7080 + Content-Type: application/json + Cache-Control: no-cache + Postman-Token: 0bbfeb0f-b8b6-368e-6fbd-38a90fc544b4 + + { + "simulatorRequest": { + "method": "GET", + "path": "/vidSimulator/getSomeFile" + } , + "simulatorResponse": { + "responseCode": 200, + "file": "csar3933948645405128424.zip" + } + } + + Response: + + 200 OK + Registration successful! + +Running: +----------- + + Request: + + GET /vidSimulator/getSomeFile HTTP/1.1 + Host: 127.0.0.1:7080 + Cache-Control: no-cache + Postman-Token: 9ef5d9d2-77f4-7631-7e9f-4404df10acb6 + + + Response: + + 200 OK + File for download. diff --git a/vid-ext-services-simulator/pom.xml b/vid-ext-services-simulator/pom.xml new file mode 100644 index 000000000..a470bcf5e --- /dev/null +++ b/vid-ext-services-simulator/pom.xml @@ -0,0 +1,412 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.openecomp.vid</groupId> + <artifactId>vid-ext-services-simulator</artifactId> + <version>1.0.0</version> + <name>VID Simulator</name> + <packaging>war</packaging> + <description>VID Simulator for mocking external peers</description> + + <properties> + <encoding>UTF-8</encoding> + <epsdk.version>1.3.0</epsdk.version> + <springframework.version>4.2.0.RELEASE</springframework.version> + <hibernate.version>4.3.11.Final</hibernate.version> + <!-- Skip assembling the zip by default --> + <skipassembly>true</skipassembly> + <!-- Tests usually require some setup that maven cannot do, so skip. --> + <skiptests>true</skiptests> + <!-- this should be commented for local debugging --> + <!-- <deployenv>local</deployenv> --> + <nexusproxy>https://nexus.onap.org</nexusproxy> + <stagingNexusPath>content/repositories/staging/</stagingNexusPath> + <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath> + <releaseNexusPath>content/repositories/releases/</releaseNexusPath> + </properties> + + + <repositories> + <repository> + <!-- Snapshots repository has ECOMP snapshot artifacts --> + <id>att-mavencentral-ecomp-snapshots-repo</id> + <name>ATT Maven Central - Snapshots</name> + <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-snapshots/</url> + </repository> + <repository> + <id>onap-staging</id> + <name>ONAP - Staging Repository</name> + <url>${nexusproxy}/${stagingNexusPath}</url> + </repository> + <repository> + <!-- Releases repository has ECOMP release artifacts --> + <id>att-mavencentral-ecomp-releases-repo</id> + <name>ATT Maven Central - Releases</name> + <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-releases/</url> + </repository> + <repository> + <!-- Third party repository has Oracle and other jars --> + <id>att-mavencentral-3rd-repo</id> + <name>ATT Maven Central - Third Party</name> + <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-3rd-party/</url> + </repository> + <repository> + <!-- Service Assurance group has UEB/Cambria jars --> + <id>att-mavencentral-sa-group</id> + <name>ATT Maven Central - Service Assurance Group</name> + <url>http://mavencentral.it.att.com:8084/nexus/content/groups/2020SAPC/</url> + </repository> + <repository> + <!-- SWM repository has EELF jars --> + <id>att-swm-repo</id> + <name>ATT SWM Repository</name> + <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/swm-releases</url> + </repository> + + <repository> + <!-- Public repository has ECOMP jars --> + <id>att-mavencentral-public</id> + <name>ATT Maven Central - Public Group</name> + <url>http://mavencentral.it.att.com:8084/nexus/content/groups/att-public-group</url> + </repository> + <repository> + <id>ecomp-releases</id> + <name>OpenECOMP - Release Repository</name> + <url>${nexusproxy}/${releaseNexusPath}</url> + </repository> + <repository> + <id>ecomp-snapshots</id> + <name>OpenECOMP - Snapshot Repository</name> + <url>${nexusproxy}/${snapshotNexusPath}</url> + </repository> + <!--repository> + <id>ecomp-public</id> + <name>ecomp onap public Repository</name> + <url>https://nexus.onap.org/content/groups/public</url> + </repository--> + </repositories> + + <!--distributionManagement> + <repository> + <id>vid-releases</id> + <name>VID Release Repository</name> + <url>https://162.242.254.138:8443/repository/maven-releases</url> + </repository> + + <snapshotRepository> + <id>vid-snapshots</id> + <name>VID Snapshot Repository</name> + <url>https://162.242.254.138:8443/repository/maven-snapshots</url> + </snapshotRepository> + </distributionManagement--> + + + <profiles> + + <profile> + <id>onap</id> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <epsdk.version>1.1.0-SNAPSHOT</epsdk.version> + <nexusproxy>https://nexus.onap.org</nexusproxy> + <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath> + <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> + <stagingNexusPath>/content/repositories/staging/</stagingNexusPath> + <sitePath>/content/sites/site/org/openecomp/vid/${project.version}</sitePath> + </properties> + + <repositories> + <repository> + <id>ecomp-releases</id> + <name>VID Release Repository</name> + <url>${nexusproxy}${releaseNexusPath}</url> + </repository> + <repository> + <id>ecomp-snapshots</id> + <name>VID Snapshot Repository</name> + <url>${nexusproxy}${snapshotNexusPath}</url> + </repository> + <repository> + <id>ecomp-staging</id> + <name>VID Staging Repository</name> + <url>${nexusproxy}${stagingNexusPath}</url> + </repository> + <repository> + <!-- Snapshots repository has ECOMP snapshot artifacts --> + <id>oss-snapshots</id> + <name>oss Central - Snapshots</name> + <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url> + </repository> + </repositories> + </profile> + + <profile> + <id>att-internal</id> + + + </profile> + + <!-- disable doclint, a new feature in Java 8, when generating javadoc --> + <profile> + <id>doclint-java8-disable</id> + <activation> + <jdk>[1.8,)</jdk> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.4</version> + <configuration> + <additionalparam>-Xdoclint:none</additionalparam> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>att-internal-jenkins</id> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.7</version> + <configuration> + <formats> + <format>xml</format> + </formats> + <check>false</check> + + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>cobertura</goal> + </goals> + </execution> + </executions> + </plugin> + + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>2.7</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <version>3.0.0</version> + <configuration> + <!-- Build a jar with all the Java classes --> + <attachClasses>true</attachClasses> + <!-- Do not put any jars in the war --> + <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes> + </configuration> + </plugin> + + </plugins> + </build> + </profile> + + <profile> + <id>att-internal-jenkins-noSwm</id> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.7</version> + <configuration> + <formats> + <format>xml</format> + </formats> + <check>false</check> + + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>cobertura</goal> + </goals> + </execution> + </executions> + </plugin> + + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>2.7</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>att-internal-general-build</id> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.7</version> + <configuration> + <formats> + <format>xml</format> + </formats> + <check>false</check> + + </configuration> + + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>cobertura</goal> + </goals> + </execution> + </executions> + </plugin> + + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>2.7</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>att-internal-install-only</id> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.7</version> + <configuration> + <formats> + <format>xml</format> + </formats> + <check>false</check> + + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>cobertura</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>2.7</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>att-internal-no-swm</id> + + <build> + <plugins> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>2.7</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + + <dependencies> + <!-- mockserver --> + <dependency> + <groupId>org.mock-server</groupId> + <artifactId>mockserver-netty</artifactId> + <version>3.11</version> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-web</artifactId> + <version>4.3.4.RELEASE</version> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-webmvc</artifactId> + <version>4.3.4.RELEASE</version> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-annotations</artifactId> + <version>2.8.7</version> + </dependency> + </dependencies> + + <build> + <finalName>vidSimulator</finalName> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.1</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + </plugins> + </build> + + <!-- <build> + <finalName>vidSimulator</finalName> + <plugins> + <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + <version>1.5.6.RELEASE</version> + </plugin> + </plugins> + </build> +--> + +</project>
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/controller/SimulatorController.java b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/controller/SimulatorController.java new file mode 100644 index 000000000..ccd5b6e55 --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/controller/SimulatorController.java @@ -0,0 +1,322 @@ +package org.openecomp.simulator.controller; + +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.mockserver.integration.ClientAndServer; +import org.mockserver.matchers.Times; +import org.mockserver.model.HttpRequest; +import org.mockserver.model.HttpResponse; +import static org.mockserver.model.HttpRequest.request; +import static org.mockserver.model.HttpResponse.response; + +import org.openecomp.simulator.errorHandling.VidSimulatorException; +import org.openecomp.simulator.model.SimulatorRequestResponseExpectation; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.core.io.ClassPathResource; +import org.springframework.core.io.Resource; +import org.springframework.core.io.support.PathMatchingResourcePatternResolver; +import org.springframework.core.io.support.PropertiesLoaderUtils; +import org.springframework.core.io.support.ResourcePatternResolver; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.stereotype.Component; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.servlet.HandlerMapping; +import org.springframework.web.servlet.View; + +import javax.annotation.PostConstruct; +import javax.annotation.PreDestroy; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.*; +import java.util.List; +import java.util.Map; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Properties; +import java.util.Scanner; + +import static org.mockserver.integration.ClientAndServer.startClientAndServer; +import static org.mockserver.matchers.Times.exactly; + +@RestController +@Component +public class SimulatorController { + + private static final Times DEFAULT_NUMBER_OF_TIMES = Times.unlimited(); + private ClientAndServer mockServer; + private String mockServerProtocol; + private String mockServerHost; + private Integer mockServerPort; + private Boolean enablePresetRegistration; + + + Logger logger = LoggerFactory.getLogger(SimulatorController.class); + + @PostConstruct + public void init(){ + logger.info("Starting VID Simulator...."); + setProperties(); + mockServer = startClientAndServer(mockServerPort); + presetRegister(); + } + + @PreDestroy + public void tearDown(){ + logger.info("Stopping VID Simulator...."); + mockServer.stop(); + } + + + private void presetRegister() { + //Checking if set + if (enablePresetRegistration == null || !enablePresetRegistration){ + logger.info("Preset registration property is false or not set - skipping preset registration..."); + return; + } + ClassLoader cl = this.getClass().getClassLoader(); + ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(cl); + Resource[] resources; + try { + resources = resolver.getResources("/preset_registration/*.json"); + } catch (IOException e) { + logger.error("Error performing preset registration, error: ", e); + return; + } + logger.info("Starting preset registrations, number of requests: {}", resources.length); + for (Resource resource: resources){ + File file; + String content; + try { + file = resource.getFile(); + content = new Scanner(file).useDelimiter("\\Z").next(); + } catch (IOException e){ + logger.error("Error reading preset registration file {},skipping to next one. Error: ", resource.getFilename(), e); + continue; + } + //registrating the preset request + try { + register(content); + } catch (VidSimulatorException e) { + logger.error("Error proceeding preset registration file {},skipping to next one. Check if the JSON is in correct format. Error: ", resource.getFilename(), e); + continue; + } + } + } + + + + private void setProperties() { + Resource resource = new ClassPathResource("simulator.properties"); + Properties props = new Properties(); + try { + props = PropertiesLoaderUtils.loadProperties(resource); + } catch (IOException e) { + logger.error("Error loading simulator properties, error: ", e); + return; + } + logger.info("Simulator properties are {}", props); + mockServerProtocol = (String)props.get("simulator.mockserver.protocol"); + mockServerHost = (String)props.get("simulator.mockserver.host"); + mockServerPort = Integer.parseInt((String)props.get("simulator.mockserver.port")); + enablePresetRegistration = Boolean.parseBoolean((String)props.get("simulator.enablePresetRegistration")); + } + + @RequestMapping(value = {"/registerToVidSimulator"}, method = RequestMethod.POST) + public @ResponseBody + ResponseEntity registerRequest(HttpServletRequest request, @RequestBody String expectation) { + try { + register(expectation); + } catch (VidSimulatorException e) { + return new ResponseEntity<>("Registration failure! Error: "+e.getMessage(),HttpStatus.BAD_REQUEST); + } + return new ResponseEntity<>("Registration successful!",HttpStatus.OK); + } + +// @RequestMapping(value = {"/registerToVidSimulator"}, method = RequestMethod.GET) +// public ResponseEntity<String> getAllRegisteredRequests() throws JsonProcessingException { +// final Expectation[] expectations = mockServer.retrieveExistingExpectations(null); +// return new ResponseEntity<>(new ObjectMapper() +// .configure(SerializationFeature.INDENT_OUTPUT, true) +// .writeValueAsString(expectations), HttpStatus.OK); +// } + + @RequestMapping(value = {"/registerToVidSimulator"}, method = RequestMethod.DELETE) + @ResponseStatus(value = HttpStatus.OK) + public void wipeOutAllExpectations() { + mockServer.reset(); + } + + private void register(String expectation) throws VidSimulatorException{ + ObjectMapper mapper = new ObjectMapper() + .configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true); + + SimulatorRequestResponseExpectation[] expectationModels; + try { + expectationModels = mapper.readValue(expectation, SimulatorRequestResponseExpectation[].class); + } catch (IOException e) { + logger.error("Couldn't deserialize register expectation {}, error:", expectation, e); + throw new VidSimulatorException(e.getMessage()); + } + + for (SimulatorRequestResponseExpectation expectationModel : expectationModels) { + logger.info("Proceeding registration request: {}", expectationModel); + register(expectationModel); + } + } + + + @RequestMapping(value = {"/**"}) + public String redirectToMockServer(HttpServletRequest request, HttpServletResponse response) { + //Currently, the easiest logic is redirecting + + //This is needed to allow POST redirect - see http://www.baeldung.com/spring-redirect-and-forward + request.setAttribute(View.RESPONSE_STATUS_ATTRIBUTE, HttpStatus.TEMPORARY_REDIRECT); + + //Building the redirect URL + String restOfTheUrl = (String) request.getAttribute( + HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE); + + //TODO encode only characters like spaces, not slashes + try { + restOfTheUrl = URLEncoder.encode(restOfTheUrl, "UTF-8"); + restOfTheUrl = restOfTheUrl.replaceAll("%2F", "/"); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + + StringBuilder sb = new StringBuilder(); + sb.append(mockServerProtocol+"://"+mockServerHost+":"+mockServerPort+"/"+restOfTheUrl); + String queryString = request.getQueryString(); + if (queryString != null){ + sb.append("?").append(queryString); + } + String redirectUrl = sb.toString(); + logger.info("Redirecting the request to : {}", redirectUrl); + return ("redirect:"+redirectUrl); + + //This was a try to setup a proxy instead of redirect + //Abandoned this direction when trying to return the original HTTP error code which was registered to mock server, instead of wrapped up HTTP 500. + + /* String restOfTheUrl = "/"+(String) request.getAttribute( + HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE); + URI uri = null; + try { + uri = new URI("http", null, "localhost", 1080, restOfTheUrl, request.getQueryString(), null); + } catch (URISyntaxException e) { + logger.error("Error during proxying request {}, error: ", request.getRequestURI(), e.getMessage()); + return new ResponseEntity(e.getMessage(),HttpStatus.INTERNAL_SERVER_ERROR); + } + RestTemplate restTemplate = new RestTemplate(); + //Preparing the headers + HttpHeaders headers = new HttpHeaders(); + Enumeration<String> headerNames = request.getHeaderNames(); + while (headerNames.hasMoreElements()){ + String headerToSet = headerNames.nextElement(); + headers.set(headerToSet, request.getHeader(headerToSet)); + } + + ResponseEntity<String> responseEntity = + restTemplate.exchange(uri, HttpMethod.resolve(request.getMethod()), new HttpEntity<String>(body, headers), String.class); + + return responseEntity;*/ + } + + private void register(SimulatorRequestResponseExpectation expectationModel) throws VidSimulatorException{ + //Setting request according to what is passed + HttpRequest request = HttpRequest.request(); + String id = expectationModel.getSimulatorRequest().getId(); + if (id != null) { + request.withHeader("x-simulator-id", id); + } + String method = expectationModel.getSimulatorRequest().getMethod(); + if (method != null) { + request.withMethod(method); + } + String path = expectationModel.getSimulatorRequest().getPath(); + if (path != null) { + request.withPath(path); + } + String body = expectationModel.getSimulatorRequest().getBody(); + if (body != null) { + request.withBody(body); + } + + //Queryparams + final Map<String, List<String>> queryParams = expectationModel.getSimulatorRequest().getQueryParams(); + if (queryParams != null){ + String[] arr = new String[0]; + queryParams.entrySet().stream().forEach(x -> { + request.withQueryStringParameter(x.getKey(), x.getValue().toArray(arr)); + }); + } + + //Setting response according to what is passed + HttpResponse response = HttpResponse.response(); + Integer responseCode = expectationModel.getSimulatorResponse().getResponseCode(); + if (responseCode != null) { + response.withStatusCode(responseCode); + } else { + logger.error("Invalid registration - response code cannot be empty"); + throw new VidSimulatorException("Invalid registration - response code cannot be empty"); + } + + String respBody = expectationModel.getSimulatorResponse().getBody(); + if (respBody != null) { + response.withBody(respBody); + } + + String file = expectationModel.getSimulatorResponse().getFile(); + if (file != null) { + response.withBody(loadFileString(file)); + } + + Map<String, String> responseHeaders = expectationModel.getSimulatorResponse().getResponseHeaders(); + if (responseHeaders != null) { + responseHeaders.forEach(response::withHeader); + } + + Times numberOfTimes = getExpectationNumberOfTimes(expectationModel); + + if (expectationModel.getMisc().getReplace()) { + logger.info("Unregistering request expectation, if previously set, request: {}", expectationModel.getSimulatorRequest()); + mockServer.clear(request); + } + + mockServer + .when(request, numberOfTimes).respond(response); + } + + + private byte[] loadFileString(String filePath) { + byte[] bytes = null; + try { + File file = new ClassPathResource("download_files/" + filePath).getFile(); + bytes = new byte[(int)file.length()]; + DataInputStream dataInputStream = null; + + dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(file.getPath()))); + dataInputStream.readFully(bytes); + dataInputStream.close(); + } catch (FileNotFoundException e) { + logger.error("File not found for file:" + filePath); + e.printStackTrace(); + } catch (IOException e) { + logger.error("Error reading file:" + filePath); + e.printStackTrace(); + } + + return bytes; + } + private Times getExpectationNumberOfTimes(SimulatorRequestResponseExpectation expectationModel) { + Integer expectationModelNumberOfTimes = expectationModel.getMisc().getNumberOfTimes(); + Times effectiveNumberOfTimes; + if (expectationModelNumberOfTimes == null || expectationModelNumberOfTimes < 0) { + effectiveNumberOfTimes = DEFAULT_NUMBER_OF_TIMES; + } else { + effectiveNumberOfTimes = exactly(expectationModelNumberOfTimes); + } + return effectiveNumberOfTimes; + } +} diff --git a/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/errorHandling/VidSimulatorException.java b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/errorHandling/VidSimulatorException.java new file mode 100644 index 000000000..3a67f26c2 --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/errorHandling/VidSimulatorException.java @@ -0,0 +1,8 @@ +package org.openecomp.simulator.errorHandling; + +public class VidSimulatorException extends Exception { + + public VidSimulatorException(String message) { + super(message); + } +} diff --git a/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/Misc.java b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/Misc.java new file mode 100644 index 000000000..03cb498a7 --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/Misc.java @@ -0,0 +1,30 @@ +package org.openecomp.simulator.model; + +public class Misc { + private Integer numberOfTimes; + private boolean replace = true; + + public Integer getNumberOfTimes() { + return numberOfTimes; + } + + public void setNumberOfTimes(Integer numberOfTimes) { + this.numberOfTimes = numberOfTimes; + } + + public boolean getReplace() { + return replace; + } + + public void setReplace(Boolean replace) { + this.replace = replace; + } + + @Override + public String toString() { + return "Misc{" + + "numberOfTimes='" + numberOfTimes + '\'' + + ", replace='" + replace + '\'' + + '}'; + } +} diff --git a/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java new file mode 100644 index 000000000..6c619b399 --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java @@ -0,0 +1,67 @@ +package org.openecomp.simulator.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.JsonNode; + +import java.util.List; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public class SimulatorRequest { + private String id; + private String method; + private String path; + private String body; + private Map<String, List<String>> queryParams; + + public Map<String, List<String>> getQueryParams() { + return queryParams; + } + + public void setQueryParams(Map<String, List<String>> queryParams) { + this.queryParams = queryParams; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public String getBody() { + return body; + } + + public void setBody(JsonNode body) { + this.body = body.isTextual() ? body.textValue() : body.toString(); + } + + @Override + public String toString() { + return "SimulatorRequest{" + + "id='" + id + '\'' + + ", method='" + method + '\'' + + ", path='" + path + '\'' + + ", body='" + body + '\'' + + ", queryParams=" + queryParams + + '}'; + } +} diff --git a/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequestResponseExpectation.java b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequestResponseExpectation.java new file mode 100644 index 000000000..566de5c6a --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequestResponseExpectation.java @@ -0,0 +1,48 @@ +package org.openecomp.simulator.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public class SimulatorRequestResponseExpectation { + + Logger logger = LoggerFactory.getLogger(SimulatorRequestResponseExpectation.class); + + private SimulatorRequest simulatorRequest; + private SimulatorResponse simulatorResponse; + private Misc misc; + + public SimulatorRequest getSimulatorRequest() { + return simulatorRequest; + } + + public void setSimulatorRequest(SimulatorRequest simulatorRequest) { + this.simulatorRequest = simulatorRequest; + } + + public SimulatorResponse getSimulatorResponse() { + return simulatorResponse; + } + + public void setSimulatorResponse(SimulatorResponse simulatorResponse) { + this.simulatorResponse = simulatorResponse; + } + + public Misc getMisc() { + return misc == null ? new Misc() : misc; + } + + public void setMisc(Misc misc) { + this.misc = misc; + } + + @Override + public String toString() { + return "ExpectationModel{" + + "simulatorRequest=" + simulatorRequest + + ", simulatorResponse=" + simulatorResponse + + ", misc=" + misc + + '}'; + } +} diff --git a/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorResponse.java b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorResponse.java new file mode 100644 index 000000000..e17c285fe --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorResponse.java @@ -0,0 +1,56 @@ +package org.openecomp.simulator.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.JsonNode; + +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public class SimulatorResponse { + private int responseCode; + private Map<String, String> responseHeaders; + private String body; + private String file; + + public int getResponseCode() { + return responseCode; + } + + public void setResponseCode(int responseCode) { + this.responseCode = responseCode; + } + + public String getBody() { + return body; + } + + public void setBody(JsonNode body) { + this.body = body.isTextual() ? body.textValue() : body.toString(); + } + + public Map<String, String> getResponseHeaders() { + return responseHeaders; + } + + public void setResponseHeaders(Map<String, String> responseHeaders) { + this.responseHeaders = responseHeaders; + } + + public String getFile() { + return file; + } + + public void setFile(String file) { + this.file = file; + } + + @Override + public String toString() { + return "SimulatorResponse{" + + "responseCode=" + responseCode + + ", body='" + body + '\'' + + ", file='" + file + '\'' + + ", responseHeaders='" + responseHeaders + '\'' + + '}'; + } +} diff --git a/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/service/TranslatorService.java b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/service/TranslatorService.java new file mode 100644 index 000000000..f675d39fe --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/service/TranslatorService.java @@ -0,0 +1,19 @@ +//package org.openecomp.simulator.service; +// +//import org.mockserver.model.HttpRequest; +//import org.mockserver.model.HttpResponse; +//import org.openecomp.simulator.model.ExpectationModel; +//import org.springframework.stereotype.Component; +// +//import static org.mockserver.model.HttpRequest.request; +//@Component +//public class TranslatorService { +// public HttpRequest buildRequestByJson(ExpectationModel expectation){ +// return expectation.getExpectationRequest(); +// } +// public HttpResponse buildResponseByJson(ExpectationModel expectation){ +// return expectation.getExpectationResponse(); +// } +// +// +//} diff --git a/vid-ext-services-simulator/src/main/resources/download_files/2f80c596.zip b/vid-ext-services-simulator/src/main/resources/download_files/2f80c596.zip Binary files differnew file mode 100644 index 000000000..6213c6443 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/download_files/2f80c596.zip diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/aai_filter_service_instance_by_id.json b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_filter_service_instance_by_id.json new file mode 100644 index 000000000..0d15e8ab4 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_filter_service_instance_by_id.json @@ -0,0 +1,21 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/search/nodes-query", + "queryParams": { + "search-node-type": "service-instance", + "filter": "service-instance-id:EQUALS:3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89/service-subscriptions/service-subscription/VIRTUAL%20USP/service-instances/service-instance/3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_full_subscribers.json b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_full_subscribers.json new file mode 100644 index 000000000..ae8305a40 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_full_subscribers.json @@ -0,0 +1,108 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/business/customers", + "queryParams": { + "subscriber-type": "INFRA", + "depth": 0 + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "customer":[ + { + "global-customer-id":"MSO_1610_ST", + "subscriber-name":"MSO_1610_ST", + "subscriber-type":"INFRA", + "resource-version":"1494001902987" + }, + { + "global-customer-id":"21014aa2-526b-11e6-beb8-9e71128cae77", + "subscriber-name":"PACKET CORE", + "subscriber-type":"INFRA", + "resource-version":"1494001776295" + }, + { + "global-customer-id":"DHV1707-TestSubscriber-2", + "subscriber-name":"ICORE CORE", + "subscriber-type":"INFRA", + "resource-version":"1498751754450" + }, + { + "global-customer-id":"DHV1707-TestSubscriber-1", + "subscriber-name":"PACKET1 CORE", + "subscriber-type":"INFRA", + "resource-version":"1498595633607" + }, + { + "global-customer-id":"jimmy-example", + "subscriber-name":"JimmyExampleCust-20161102", + "subscriber-type":"INFRA", + "resource-version":"1494001970063" + }, + { + "global-customer-id":"jimmy-example2", + "subscriber-name":"JimmyExampleCust-20161103", + "subscriber-type":"INFRA", + "resource-version":"1494001970225" + }, + { + "global-customer-id":"DHV1802-TestSub-PWT-102", + "subscriber-name":"DHV1802-TestSub-PWT-102", + "subscriber-type":"INFRA", + "resource-version":"1508852495058" + }, + { + "global-customer-id":"DHV1802-TestSub-PWT-101", + "subscriber-name":"DHV1802-TestSub-PWT-101", + "subscriber-type":"INFRA", + "resource-version":"1508179953733" + }, + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"Mobility", + "subscriber-type":"INFRA", + "resource-version":"1494001894192" + }, + { + "global-customer-id":"DHV1802-Subscriber-4", + "subscriber-name":"DHV1802-Subscriber-5", + "subscriber-type":"INFRA", + "resource-version":"1509134064531" + }, + { + "global-customer-id":"DHV1802-TestSub-PWT-103", + "subscriber-name":"DHV1802-TestSub-PWT-103", + "subscriber-type":"INFRA", + "resource-version":"1509045503736" + }, + { + "global-customer-id":"DHV1802-Subscriber-2", + "subscriber-name":"DHV1802-Subscriber-2", + "subscriber-type":"INFRA", + "resource-version":"1509122065439" + }, + { + "global-customer-id":"e433710f-9217-458d-a79d-1c7aff376d89", + "subscriber-name":"USP VOICE", + "subscriber-type":"INFRA", + "resource-version":"1494001938080" + }, + { + "global-customer-id":"DHV1802-Subscriber-3", + "subscriber-name":"DHV1802-Subscriber-3", + "subscriber-type":"INFRA", + "resource-version":"1509122759407" + }, + { + "global-customer-id":"31739f3e-526b-11e6-beb8-9e71128cae77", + "subscriber-name":"FIREWALL/MISC", + "subscriber-type":"INFRA", + "resource-version":"1494001772223" + } + ] + } + + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_services.json b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_services.json new file mode 100644 index 000000000..28421d2a3 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_services.json @@ -0,0 +1,124 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/service-design-and-creation/services" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "service":[ + { + "service-id":"ebc3bc3d-62fd-4a3f-a037-f619df4ff034", + "service-description":"DHV", + "resource-version":"1494001985150" + }, + { + "service-id":"17cc1042-527b-11e6-beb8-9e71128cae77", + "service-description":"FLEXREACH", + "resource-version":"1494001922171" + }, + { + "service-id":"36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e", + "service-description":"Netbond", + "resource-version":"1494001855144" + }, + { + "service-id":"a4f6f2ae-9bf5-4ed7-b904-06b2099c4bd7", + "service-description":"Enhanced Services", + "resource-version":"1494001980153" + }, + { + "service-id":"vRRaaS", + "service-description":"vRRaaS", + "resource-version":"1484865266" + }, + { + "service-id":"323d69d9-2efe-4r45-ay0a-89ea7ard4e6f", + "service-description":"vSCP", + "resource-version":"1494001903012" + }, + { + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "service-description":"Mobility", + "resource-version":"1503954056794" + }, + { + "service-id":"d8a6ed93-251c-47ca-adc9-86671fd19f4c", + "service-description":"BVOIP", + "resource-version":"1490910089351" + }, + { + "service-id":"db171b8f-115c-4992-a2e3-ee04cae357e0", + "service-description":"FIRSTNET", + "resource-version":"1490910095155" + }, + { + "service-id":"LRSI-OSPF", + "service-description":"LRSI-OSPF", + "resource-version":"1494001863930" + }, + { + "service-id":"vHNGWaas", + "service-description":"HNGATEWAY", + "resource-version":"1501192849249" + }, + { + "service-id":"vHNPaas", + "service-description":"HNPORTAL", + "resource-version":"1501192982895" + }, + { + "service-id":"e433710f-9217-458d-a79d-1c7aff376d89", + "service-description":"VIRTUAL USP", + "resource-version":"1494001802638" + }, + { + "service-id":"b6a3f28c-eebf-494c-a900-055cc7c874ce", + "service-description":"VROUTER", + "resource-version":"1492533254036" + }, + { + "service-id":"VIPRaaS", + "service-description":"vIPRaaS", + "resource-version":"1490910058887" + }, + { + "service-id":"0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1", + "service-description":"WAN Bonding", + "resource-version":"1498053422512" + }, + { + "service-id":"c7611ebe-c324-48f1-8085-94aef0c6ef3d", + "service-description":"HOSTED COMMUNICATIONS", + "resource-version":"1494001913639" + }, + { + "service-id":"e30755dc-5673-4b6b-9dcf-9abdd96b93d1", + "service-description":"Transport", + "resource-version":"1506361785997" + }, + { + "service-id":"vVIGaaS", + "service-description":"vVIGaaS", + "resource-version":"1494001900545" + }, + { + "service-id":"d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4", + "service-description":"uCPE-VMS", + "resource-version":"1494001941772" + }, + { + "service-id":"vPEaaS", + "service-description":"vPEaaS", + "resource-version":"1494001988229" + }, + { + "service-id":"12a96a9d-4b4c-4349-a950-fe1159602621", + "service-description":"HOSTED COMMUNICATIONS", + "resource-version":"1494001817126" + } + ] + } + + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_specific_pnf.json b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_specific_pnf.json new file mode 100644 index 000000000..9db355823 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_specific_pnf.json @@ -0,0 +1,30 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/network/pnfs/pnf/DEAAI78" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "pnf-name": "DEAAI78", + "equip-type": "Switch", + "equip-vendor": "Cisco", + "equip-model": "ASR1002-X", + "resource-version": "1494001797554", + "relationship-list": { + "relationship": [ + { + "related-to": "complex", + "related-link": "/aai/v11/cloud-infrastructure/complexes/complex/NAMEAAI2", + "relationship-data": [ + { + "relationship-key": "complex.physical-location-id", + "relationship-value": "NAMEAAI2" + } + ] + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_subscribers_for_customer.json b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_subscribers_for_customer.json new file mode 100644 index 000000000..aa2c4bf02 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_get_subscribers_for_customer.json @@ -0,0 +1,8289 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/business/customers/customer/e433710f-9217-458d-a79d-1c7aff376d89", + "queryParams": { + "depth": 2 + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "global-customer-id": "e433710f-9217-458d-a79d-1c7aff376d89", + "subscriber-name": "USP VOICE", + "subscriber-type": "INFRA", + "resource-version": "1494001938080", + "service-subscriptions": { + "service-subscription": [ + { + "service-type": "HOSTED COMMUNICATIONS", + "resource-version": "1494001920845", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "67aba9ab-f745-442e-a37b-2040a17ec9c7", + "service-instance-name": "test_948473", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1501137356564", + "orchestration-status": "Active" + }, + { + "service-instance-id": "328e117c-8f27-4a59-beea-3b3c36e4652f", + "service-instance-name": "test_inputs_002", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1501142919029", + "orchestration-status": "Active" + }, + { + "service-instance-id": "66608fd9-a786-4f60-ae7b-c18d030c499b", + "service-instance-name": "testtt", + "service-type": "", + "service-role": "", + "model-invariant-id": "1cc41b64-5c12-4d51-bac9-448e963bd81d", + "model-version-id": "91f79100-6450-4078-80d7-531427b4fe74", + "resource-version": "1503224667654", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9d29dcf2-7742-4384-bca0-a38f6c296a79", + "service-instance-name": "test_9sdfkdfj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1500813552431", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e10414d0-692b-4e8e-b56e-9fdc5ef24059", + "service-instance-name": "test_04598485", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1501144603052", + "orchestration-status": "Active" + }, + { + "service-instance-id": "25a5cc93-73df-4c9c-9cc5-e2df9a72f3b7", + "service-instance-name": "test_inputs_values1", + "model-invariant-id": "b594a6ec-94e0-4c95-826f-4c3d3af56339", + "model-version-id": "59f3ea84-313a-4670-b7c2-8997e5749864", + "resource-version": "1501412516301", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9cfcd777-7f14-425c-80bf-a562fba03cfa", + "service-instance-name": "test_vl_inputs01", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "f263c8f6-b52f-4b6c-9ed9-0c83ad098697", + "resource-version": "1501421232100", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4173d5da-df33-474e-a4ef-c93be61a1355", + "service-instance-name": "test_instance_vl_01", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1500966394803", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1753f7eb-85db-498c-aa6a-c68a06fc77db", + "service-instance-name": "sdfjdfj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500991399818", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5d5520c7-dcbc-4287-bed2-50ff57c41a6f", + "service-instance-name": "tesy_jsdjjdj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501400257544", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/65a76ad1-2d53-4709-88e7-858655f55039", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "65a76ad1-2d53-4709-88e7-858655f55039" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_jddjf" + } + ] + } + ] + } + }, + { + "service-instance-id": "1ab8ad18-1445-412a-81f2-671b936ab650", + "service-instance-name": "Test_098765", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1500562034054", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2ae575e4-5103-4f5e-afd9-cc5f4bbae217", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2ae575e4-5103-4f5e-afd9-cc5f4bbae217" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test-0234574785" + } + ] + } + ] + } + }, + { + "service-instance-id": "a1427609-254d-4637-906f-8f0f6f6d4711", + "service-instance-name": "test343445", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502111792531", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f87c0dbe-2658-4971-8014-ad5da1f9df51", + "service-instance-name": "test_03494595", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1502006858511", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7a8dea9f-5f67-4755-9344-ec3736240b9e", + "service-instance-name": "test_045045", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502111390681", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8d0f4c13-a564-43ec-b756-c0017161dee2", + "service-instance-name": "testkjhjjj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1500553831697", + "orchestration-status": "Active" + }, + { + "service-instance-id": "27535e2a-785e-47e8-a482-16f4d019033a", + "service-instance-name": "test765766", + "service-type": "", + "service-role": "", + "model-invariant-id": "452538c0-ef1e-4d65-9939-697f6ed58934", + "model-version-id": "f430728a-4530-42be-a577-1206b9484cef", + "resource-version": "1502109495302", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9601d34e-d3f9-4108-932c-fc52312c260a", + "service-instance-name": "test_9459495", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502028721334", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e65ae593-afdd-4f31-8192-ba7606a026e4", + "service-instance-name": "test_84574854", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502026481024", + "orchestration-status": "Active" + }, + { + "service-instance-id": "29e210af-9fa5-44ae-940c-acca84b1b287", + "service-instance-name": "testjkdfkdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502114664500", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c1a81ab3-2bc6-4b6f-b04f-d358e67c1d01", + "service-instance-name": "test499494", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500552497782", + "orchestration-status": "Active" + }, + { + "service-instance-id": "01834681-686a-4258-aff0-6eea448deddd", + "service-instance-name": "tesr_iii_999", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502019889568", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/e4c23f76-53a0-46e2-b005-59503e55c832", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "e4c23f76-53a0-46e2-b005-59503e55c832" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "tesu_ooo_000" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4a7b7099-4d38-4ba4-aff8-1598bba0e704", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4a7b7099-4d38-4ba4-aff8-1598bba0e704" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_000988_ooo" + } + ] + } + ] + } + }, + { + "service-instance-id": "266008e8-04f9-440a-90e9-d9299821ec08", + "model-invariant-id": "", + "resource-version": "1494001993349", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bnfm0011v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bnfm0011v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bnfm0011v" + } + ] + } + ] + } + }, + { + "service-instance-id": "6c3a22e9-6b04-49d2-b1fa-1e49103971ca", + "model-invariant-id": "", + "resource-version": "1494001986409", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0006v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0006v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0006v" + } + ] + } + ] + } + }, + { + "service-instance-id": "918085fc-29cf-41c2-acc8-15878c0d58b3", + "model-invariant-id": "", + "resource-version": "1494001986411", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bnfm0010v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bnfm0010v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bnfm0010v" + } + ] + } + ] + } + }, + { + "service-instance-id": "1c464a9d-eff7-4d29-8e97-ed1e9e3c8458", + "model-invariant-id": "", + "resource-version": "1494001953169", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bnfm0012v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bnfm0012v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bnfm0012v" + } + ] + } + ] + } + }, + { + "service-instance-id": "bb2f563f-6db7-46ec-b521-fc6ee07e4f3e", + "model-invariant-id": "", + "resource-version": "1494002002228", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0004v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0004v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0004v" + } + ] + } + ] + } + }, + { + "service-instance-id": "4cf94a42-85b8-414f-8fb4-a43b1dac1d2f", + "model-invariant-id": "", + "resource-version": "1494001834026", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0005v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0005v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0005v" + } + ] + } + ] + } + }, + { + "service-instance-id": "ed7c0d8e-de81-408f-b695-47b9dd6b2ca0", + "model-invariant-id": "", + "resource-version": "1494001986403", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0003v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0003v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0003v" + } + ] + } + ] + } + }, + { + "service-instance-id": "8bf34b89-1648-4a41-a21f-9b752833bd4b", + "service-instance-name": "test-gkmf546g", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500377885652", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/e0994c94-fa19-472f-a5b7-ae7388105db2", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "e0994c94-fa19-472f-a5b7-ae7388105db2" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test-elftoerkk56" + } + ] + } + ] + } + }, + { + "service-instance-id": "082c606c-60d7-4d9a-87c7-1370de6e56ba", + "service-instance-name": "test123456", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1500375305701", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fac2ab99-7c5a-4f1e-aad8-d396f26ba7c4", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fac2ab99-7c5a-4f1e-aad8-d396f26ba7c4" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test12345" + } + ] + } + ] + } + }, + { + "service-instance-id": "c4707aae-9b16-49b4-8b52-cbeb8c4129ab", + "service-instance-name": "test_sdfdlfldl", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "cad9f2eb-39f7-4692-90c2-8726bb594610", + "resource-version": "1500376318829", + "orchestration-status": "Active" + }, + { + "service-instance-id": "86ab6048-9037-4367-ac01-f2e5881e8034", + "service-instance-name": "test1234456", + "model-invariant-id": "b1ed0d58-0700-4631-be18-d2f1e527d637", + "model-version-id": "849a6347-cca7-4ae6-b5c2-7d41e9f6d9b2", + "resource-version": "1500369079277", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/329f3b0e-4e03-4dc0-8e56-e786ef392984", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "329f3b0e-4e03-4dc0-8e56-e786ef392984" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test567" + } + ] + } + ] + } + }, + { + "service-instance-id": "a5e3b6ae-7b4c-4247-b975-1cd46c3b3e9a", + "service-instance-name": "pavel_usp_voice", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1506931067790", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/7aeacd8e-5d7c-496d-9ec7-1163cb809810", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "7aeacd8e-5d7c-496d-9ec7-1163cb809810" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "pavel_ucp_voice_vnf" + } + ] + } + ] + } + }, + { + "service-instance-id": "c9fb03a4-8c21-444a-84ee-a6f969698d9c", + "service-instance-name": "test_0e459495945kg", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502021459612", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/983823ce-2482-4943-9081-11d33be3c5f4", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "983823ce-2482-4943-9081-11d33be3c5f4" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_045495945" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/39acee2f-590e-4e42-8317-f4c624f5bd96", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "39acee2f-590e-4e42-8317-f4c624f5bd96" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_0e934834" + } + ] + } + ] + } + }, + { + "service-instance-id": "4fd55324-bc4d-4acf-8f76-2e1eb01ae6a5", + "service-instance-name": "test_0w459495", + "service-type": "", + "service-role": "", + "model-invariant-id": "e3ee9d25-2c6b-4734-8a8c-b6e0dee11ca9", + "model-version-id": "159cc54d-a6be-4c3b-bea3-3214181ebb5d", + "resource-version": "1502019352627", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bbccd5cf-f641-4082-8411-7ae123530d92", + "service-instance-name": "kkk", + "service-type": "", + "service-role": "", + "model-invariant-id": "331a194d-9248-4533-88bc-62c812ccb5c1", + "model-version-id": "171b3887-e73e-479d-8ef8-2690bf74f2aa", + "resource-version": "1502087710872", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/36110437-6ae0-466d-a3fb-992e90cd1f49", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "36110437-6ae0-466d-a3fb-992e90cd1f49" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ooo" + } + ] + } + ] + } + }, + { + "service-instance-id": "4c263e04-260e-434a-8ac2-b0335a02f30b", + "model-invariant-id": "", + "resource-version": "1494001791264", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/bdbl0002v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "bdbl0002v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bdbl0002v" + } + ] + } + ] + } + }, + { + "service-instance-id": "e4feb759-e4a9-4614-b2d2-985848ba3b9f", + "service-instance-name": "test345345342334f", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499869396079", + "orchestration-status": "Active" + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/5a8dba3e75e7433185b8004e2f2c546e", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "5a8dba3e75e7433185b8004e2f2c546e" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-D-CheckEcomp" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/0ee101c4b53542f49cfc5e1e49d28f88", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "0ee101c4b53542f49cfc5e1e49d28f88" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-US608multising" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/d0b6d63ca975464b9fc2c759a8b21270", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "d0b6d63ca975464b9fc2c759a8b21270" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-X-noPOD41581Cloned" + } + ] + } + ] + } + }, + { + "service-type": "VIRTUAL USP", + "resource-version": "1494001841964", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "c187e9fe-40c3-4862-b73e-84ff056205f6", + "service-instance-name": "test_sssdad", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503919915499", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8715ea55-6fcf-45b5-b42b-2ca37ec3cb39", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8715ea55-6fcf-45b5-b42b-2ca37ec3cb39" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sedawsdsda" + } + ] + } + ] + } + }, + { + "service-instance-id": "9929cdf2-1b2d-4530-b5a4-ae9a716c12cc", + "service-instance-name": "xcvxcvxcv", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503842185188", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4572aed2-f09d-4a34-9b20-34d8625ed4c6", + "service-instance-name": "dsdsfdfd334", + "service-type": "", + "service-role": "", + "model-invariant-id": "2f801573-11c6-4040-aa8c-d5548ef07b53", + "model-version-id": "80d68407-7b2c-48a4-96fc-4fe89c424cbe", + "resource-version": "1503920297893", + "orchestration-status": "Active" + }, + { + "service-instance-id": "037629ea-fd18-4b2f-9f19-27cb45799a41", + "service-instance-name": "iokooik", + "service-type": "", + "service-role": "", + "model-invariant-id": "caed4dbb-922a-4942-be87-1f99d56d426a", + "model-version-id": "b77dae3c-ac5b-459c-8df5-1f1de6c59737", + "resource-version": "1503920445391", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c9bbcc94-e27a-46ff-a292-29805358348c", + "service-instance-name": "iuiuiuoi", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1503919829011", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8ad6dc32-5ea9-46be-9a70-924a620dca58", + "service-instance-name": "dfgdfgdfg", + "service-type": "", + "service-role": "", + "model-invariant-id": "4c35d46f-de47-4bbc-bcda-0d46caeddf09", + "model-version-id": "9014b6b1-33c1-4092-87ab-62c230c74d74", + "resource-version": "1503920088993", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/acba27e0-18b5-4a9b-a8b5-c0e6a3d36769", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "acba27e0-18b5-4a9b-a8b5-c0e6a3d36769" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfdsfdf334" + } + ] + } + ] + } + }, + { + "service-instance-id": "7bdaca06-8242-48bc-a20e-b882426a1cd2", + "service-instance-name": "test_jhgjhghh5", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503843741682", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ff42af8d-9815-4bcd-bda1-8fdde723a1c9", + "service-instance-name": "awereware", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503919051810", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/1df3da26-b22a-4d01-b024-8e2250599b55", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "1df3da26-b22a-4d01-b024-8e2250599b55" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fgdssafg" + } + ] + } + ] + } + }, + { + "service-instance-id": "0fc0441b-92a8-4964-b80d-7df5c3f6bbcd", + "service-instance-name": "asdsdsdsd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503919005027", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b8db1779-52d6-41ff-823c-671e7ccb1dea", + "service-instance-name": "sdfsdfdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1503919113722", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/385a533f-c355-4891-ac26-056b76be21e1", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "385a533f-c355-4891-ac26-056b76be21e1" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ewrdsdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "13bee70f-40c8-4b4f-a691-9d36a661e22f", + "service-instance-name": "rtrtreert", + "service-type": "", + "service-role": "", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1503919611730", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b1891b75-b45a-4862-8f4d-bc41b68b9760", + "service-instance-name": "svc", + "service-type": "", + "service-role": "", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1503909634453", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c290be7e-4cae-4cfb-859e-7694849699ed", + "service-instance-name": "iioopi", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503918640292", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ba1855f1-6e1a-4f32-a8d4-36163e650a64", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ba1855f1-6e1a-4f32-a8d4-36163e650a64" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ertrtrtrt" + } + ] + } + ] + } + }, + { + "service-instance-id": "debaf16c-b0e0-4d1d-a1e6-a13434dd83e9", + "service-instance-name": "aaaqqq", + "service-type": "", + "service-role": "", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1503909401143", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/641b6bf5-b3fa-437d-af35-03a6f4127716", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "641b6bf5-b3fa-437d-af35-03a6f4127716" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_865654787" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/0efd35bc-0ea3-4b87-9a26-2fb20a3028e3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "0efd35bc-0ea3-4b87-9a26-2fb20a3028e3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sfdgdfgdfr55" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/075559bf-49b5-4b21-8ea6-1f96d7d2d7ce", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "075559bf-49b5-4b21-8ea6-1f96d7d2d7ce" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfgyhfghfg" + } + ] + } + ] + } + }, + { + "service-instance-id": "b1af7026-5c58-4f81-beef-7fbe28a40d8b", + "service-instance-name": "sddsfsdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1503844024814", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a77c74e9-7571-4f99-af53-4f7016a28418", + "service-instance-name": "dsdfdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503842375992", + "orchestration-status": "Active" + }, + { + "service-instance-id": "18479d32-e495-4610-b484-238a0c8af022", + "service-instance-name": "ddffeee", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503919781252", + "orchestration-status": "Active" + }, + { + "service-instance-id": "27b005b5-d631-43a6-8913-0a014277b1c7", + "service-instance-name": "test76546454565", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "b594a6ec-94e0-4c95-826f-4c3d3af56339", + "model-version-id": "a5b89224-c03d-4142-b4ce-8b8e8b8de54a", + "resource-version": "1506843154174", + "orchestration-status": "Active" + }, + { + "service-instance-id": "61bd4009-86ce-4603-842a-a3c872e327c2", + "service-instance-name": "litalamichai", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "ceab97cd-ca68-41a6-9b34-d571b2dd05ed", + "model-version-id": "1a6ae314-7a89-408b-93e5-6d8b8ee4c28a", + "resource-version": "1506856240745", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/70d82ea3-28b1-44c9-8cdd-7c0431b1a76e", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "70d82ea3-28b1-44c9-8cdd-7c0431b1a76e" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "litalamichai1" + } + ] + } + ] + } + }, + { + "service-instance-id": "afeb67ac-0777-4f49-855e-cc84700382ed", + "service-instance-name": "test_0409e4569", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1507013953885", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c42940b2-ce05-4305-a92c-6ab6139f34db", + "service-instance-name": "test4346565532", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507015242425", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5bf5afb9-68fd-4df6-b7cd-d7a72c2ebb6e", + "service-instance-name": "test_9876545566", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507015455080", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aceec6c9-3b3d-4c88-8b24-8fcf7aa5183f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aceec6c9-3b3d-4c88-8b24-8fcf7aa5183f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "testvnf4436554656" + } + ] + } + ] + } + }, + { + "service-instance-id": "3b89aadb-354c-4557-8f38-9267efe73340", + "service-instance-name": "testvgroupavila111", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507467637750", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9c073cff-5e87-49b8-be54-552717eb85a7", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9c073cff-5e87-49b8-be54-552717eb85a7" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fggert44w" + } + ] + } + ] + } + }, + { + "service-instance-id": "ea4434fe-b52f-4a4b-8cac-570fda09915e", + "service-instance-name": "tester34445", + "service-type": "test", + "service-role": "test", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1507547071064", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8a00c370-9aa6-4a66-a219-a63cac864f87", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8a00c370-9aa6-4a66-a219-a63cac864f87" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "testvnfff888" + } + ] + } + ] + } + }, + { + "service-instance-id": "8041258e-db6c-4aa4-8ea1-daa049bb4bcd", + "service-instance-name": "macroinstancenamingfalse", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1507466261065", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8b90a65c-cf97-4425-b0f9-cedeb66be73b", + "service-instance-name": "ServicePnf_15", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1507463828320", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/8b90a65c-cf97-4425-b0f9-cedeb66be73b/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "0bba7c99-b04d-4f7d-be83-64d677d938a7", + "service-instance-name": "test_094894934", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507468724856", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c2586a1a-7ffb-470d-b280-580cd3832855", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c2586a1a-7ffb-470d-b280-580cd3832855" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfsdfsdf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/88e8a1a2-26ee-4b64-8cfd-516567c6e085", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "88e8a1a2-26ee-4b64-8cfd-516567c6e085" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfsdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "f50fe353-f93f-42bf-881e-11afa56bc197", + "service-instance-name": "test_input01", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "b594a6ec-94e0-4c95-826f-4c3d3af56339", + "model-version-id": "a5b89224-c03d-4142-b4ce-8b8e8b8de54a", + "resource-version": "1506438016276", + "orchestration-status": "Active" + }, + { + "service-instance-id": "aefde1b5-f4fe-4294-8d24-7981fa0ebfc5", + "service-instance-name": "test_vf_vgroup001", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "ceab97cd-ca68-41a6-9b34-d571b2dd05ed", + "model-version-id": "1a6ae314-7a89-408b-93e5-6d8b8ee4c28a", + "resource-version": "1506428004236", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f42766e6-c15a-415d-8da9-44546787aa60", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f42766e6-c15a-415d-8da9-44546787aa60" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_9883458" + } + ] + } + ] + } + }, + { + "service-instance-id": "dc010843-43d2-442f-87ea-5a33129e820c", + "service-instance-name": "test034598459509345", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1506431351311", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e77db2e8-6e92-451c-bd9b-52f7edd12e34", + "service-instance-name": "ServicePnf_3", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1506431257301", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/e77db2e8-6e92-451c-bd9b-52f7edd12e34/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "27508166-a325-435f-9be5-e0f9c6525e0d", + "service-instance-name": "test_04587465", + "service-type": "", + "service-role": "", + "model-invariant-id": "0ab97204-7036-494b-bffc-d0dcf51221a6", + "model-version-id": "236624dc-0682-4f58-a20a-105b035b87cd", + "resource-version": "1505401406581", + "orchestration-status": "Active" + }, + { + "service-instance-id": "795b711c-41ce-4e31-a572-a898dc5a047e", + "service-instance-name": "vid-test-555", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505382167563", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7a18c22a-6ffc-409e-a904-731919a4d8bc", + "service-instance-name": "fghjSHANI", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1509624542659", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/96208579-2839-442d-bcd7-46902fb5b108", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "96208579-2839-442d-bcd7-46902fb5b108" + } + ] + } + ] + } + }, + { + "service-instance-id": "4f18b4a3-681d-4db2-be2f-f5721625db50", + "service-instance-name": "kmkl", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500324503096", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bcfc991c-f757-4aac-afd6-6a6ce2ee3a10", + "service-instance-name": "ijo", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500325226519", + "orchestration-status": "Active" + }, + { + "service-instance-id": "71c228f8-8737-4759-8ff5-756c61b6c6cc", + "service-instance-name": "sdasd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500328608207", + "orchestration-status": "Active" + }, + { + "service-instance-id": "fd10def6-838c-4caa-89f8-023d8c352d64", + "service-instance-name": "b", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500323167586", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8352d30d-7f79-4a92-bb07-d41482602f91", + "service-instance-name": "drg", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500310144871", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ff0ed1a9-c498-4fa3-9cc1-d1baea101b1a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ff0ed1a9-c498-4fa3-9cc1-d1baea101b1a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfd" + } + ] + } + ] + } + }, + { + "service-instance-id": "f53eeb76-3011-4745-8bd4-fb725ee54e8b", + "service-instance-name": "bcvbcvc", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1500312834903", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9b47dc09-c938-4058-8f4e-b1b97575f01c", + "service-instance-name": "fg", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1500314405338", + "orchestration-status": "Active" + }, + { + "service-instance-id": "da3e0037-145d-4003-ba9c-bf7e160d0c76", + "service-instance-name": "hi", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500308632846", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a5a0c1c5-87e6-4b41-8a1d-fc217ea7afb5", + "service-instance-name": "dfh", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500313821530", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e10cf33f-9733-400e-b641-df6e025b7015", + "service-instance-name": "dsf", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1500314537419", + "orchestration-status": "Active" + }, + { + "service-instance-id": "fdf609c7-c6b9-4d61-9dd1-ecf260b1df24", + "service-instance-name": "DS-vUSP_0804_Svc_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "e4f8b794-8057-4b1c-acf8-39cdcbc07dae", + "model-version-id": "79572855-8d8c-47db-a5fa-29cb28058f88", + "resource-version": "1501867289436", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ef204722-f283-40f2-aae3-2039a93b0677", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-08_14-01-39-901", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502190103332", + "orchestration-status": "Active" + }, + { + "service-instance-id": "3dd30ee9-afd9-4c67-aecc-38025205ae1d", + "service-instance-name": "ppp", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1502087647947", + "orchestration-status": "Active" + }, + { + "service-instance-id": "064983e9-89b8-4e21-a5a6-ca446422de16", + "service-instance-name": "litaltest", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1502087037035", + "orchestration-status": "Active" + }, + { + "service-instance-id": "db1ef13e-e434-4614-a5e4-ccdbf9ff4f37", + "service-instance-name": "vid-test-4442222331", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502088709341", + "orchestration-status": "Active" + }, + { + "service-instance-id": "757ea8da-ca9d-48a0-8782-8eff90d90532", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-08_14-40-54-152", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502192457669", + "orchestration-status": "Active" + }, + { + "service-instance-id": "83cca0d1-0090-4e08-9221-d0db78e8ba20", + "service-instance-name": "TEST-TEST", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502006816430", + "orchestration-status": "Active" + }, + { + "service-instance-id": "912b54ba-53b7-49ea-851b-a5af84787b61", + "service-instance-name": "vid-test-aaaa222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502004264219", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2ac3e9ef-30f1-449c-ac41-4b3a4649bad9", + "service-instance-name": "test834884", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1502109623756", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1f9c366c-c3c2-4c7b-8f31-fa1ed8f440ad", + "service-instance-name": "", + "service-type": "null", + "service-role": "null", + "model-invariant-id": "5c3bb706-95fc-4589-b40f-ed024673246a", + "model-version-id": "873e3f27-6561-47a6-80b0-0cd048d5cdfb", + "resource-version": "1502170650437", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f778648a-1db5-4fd2-9d6d-1c3e9dc810c9", + "service-instance-name": "test_0er50405", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502180550390", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/680873ba-2ac2-4139-a40d-5085b978b737", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "680873ba-2ac2-4139-a40d-5085b978b737" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_0450405" + } + ] + } + ] + } + }, + { + "service-instance-id": "eec0b93e-fc84-4f87-badf-6e15becf7604", + "service-instance-name": "test_0e0r045", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502201260530", + "orchestration-status": "Active" + }, + { + "service-instance-id": "aaf93978-0d81-4089-ac91-4d800b0924b1", + "service-instance-name": "vid-e2e-test_service_2017-08-08_14-48-37-562", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502192927130", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b063c325-2c5f-4383-ac35-4f4a5fd75a64", + "service-instance-name": "shayservice4", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1501774259023", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4bdc43ad-ebe5-4a4f-ad33-cf4bb9439a3a", + "service-instance-name": "vid-test-service-456", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500463859730", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ef7ee58d-9ef3-478d-b80e-79c6f31038e2", + "service-instance-name": "test_9045845", + "service-type": "", + "service-role": "", + "model-invariant-id": "6269c77a-a285-473a-be32-9e34a735ae68", + "model-version-id": "de762949-453c-43bd-8610-93eca50b0681", + "resource-version": "1502802546204", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/38b85642-5eae-4e85-9f47-7f9e8772e3d8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "38b85642-5eae-4e85-9f47-7f9e8772e3d8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_34342345" + } + ] + } + ] + } + }, + { + "service-instance-id": "771ccd96-61e5-413b-9442-494e1fc12689", + "service-instance-name": "inputest_555", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1509004425083", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/464482f0-fec7-4171-af0e-96363f93f908", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "464482f0-fec7-4171-af0e-96363f93f908" + } + ] + } + ] + } + }, + { + "service-instance-id": "c92f4753-7997-492d-8bdb-a456d2a966eb", + "service-instance-name": "inpu_04504050", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "Production", + "model-invariant-id": "e3ee9d25-2c6b-4734-8a8c-b6e0dee11ca9", + "model-version-id": "97128a5f-e7e4-4ddd-b1eb-83a611ae1acb", + "resource-version": "1508945168572", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "e3cc78f6-2fa8-43e4-8b9a-84b0bb705199", + "service-instance-name": "vl_inputs001", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1509006292295", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/DFW", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "DFW" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/f160c875-ddd1-4ef5-84d8-d098784daa3a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "f160c875-ddd1-4ef5-84d8-d098784daa3a" + } + ] + } + ] + } + }, + { + "service-instance-id": "98948904-a2bb-459a-8442-3d6ac72cf3bb", + "service-instance-name": "test_ppo_999", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1509007469372", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/DFW", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "DFW" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/464482f0-fec7-4171-af0e-96363f93f908", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "464482f0-fec7-4171-af0e-96363f93f908" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f5a633ef-c7ac-4e28-8b62-85495888607e", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f5a633ef-c7ac-4e28-8b62-85495888607e" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfgdfg" + } + ] + } + ] + } + }, + { + "service-instance-id": "0ba9557d-b952-4621-844a-077af0e55147", + "service-instance-name": "testvl_555", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "144aec31-9232-4d9c-ba3a-ee052b4ea0a5", + "model-version-id": "1dbe2b4e-07df-4d41-b49e-881a07fab831", + "resource-version": "1509002554353", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2811e2fb-005e-40de-990b-c0794f362399", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2811e2fb-005e-40de-990b-c0794f362399" + } + ] + } + ] + } + }, + { + "service-instance-id": "0673b4d2-c7cb-453e-bd0b-0a6a9c093f0f", + "service-instance-name": "vid-e2e-test_2017-07-18_17-31-16-723", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500388282464", + "orchestration-status": "Active" + }, + { + "service-instance-id": "25abbd6c-a394-44a0-9378-a49374e5fc1b", + "service-instance-name": "vid-e2e-test_2017-07-18_17-54-01-298", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500389647052", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ce7eca35-ea2c-44dd-adb3-941298e0d194", + "service-instance-name": "asdv", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500380792111", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5e5d85a4-106b-4f25-81dc-2756d69b8160", + "service-instance-name": "vid-e2e-test_2017-07-18_17-38-15-572", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500388700897", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4141f288-4070-44fd-bc0b-1289fabc81b7", + "service-instance-name": "vid-e2e-test_2017-07-18_15-43-17-176", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500381802606", + "orchestration-status": "Active" + }, + { + "service-instance-id": "da3ac66a-fdcb-44b8-bef5-16bc0603acfc", + "service-instance-name": "dfhmg", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1500379560690", + "orchestration-status": "Active" + }, + { + "service-instance-id": "16e582ed-e183-413b-ba57-8d1a037eadbc", + "service-instance-name": "vid-e2e-test_2017-07-18_15-25-35-906", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500380741572", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8584c715-181a-40b8-bb77-8f521be498aa", + "service-instance-name": "dsadsdfdsfsdfsd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500377785124", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ed2349b1-fde2-4740-9b6a-92923c0f3564", + "service-instance-name": "vid-e2e-test_2017-07-18_18-08-55-715", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390542619", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b6482709-2833-4805-9779-d0bb0d422f62", + "service-instance-name": "vid-e2e-test_2017-07-18_18-04-26-432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390272714", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a8e88919-9650-44d7-8f9f-e8b73555cf82", + "service-instance-name": "pickpikcpickkc", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500354472092", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2c3e0fc8-215e-461f-8e83-84bbfe4c9aa4", + "service-instance-name": "dsdasdas", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500354946673", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9e98302a-8803-4e4c-bf3b-e46ebc911c7e", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9e98302a-8803-4e4c-bf3b-e46ebc911c7e" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fds" + } + ] + } + ] + } + }, + { + "service-instance-id": "5909c1e6-bd22-4c98-8ed5-ef214751a563", + "service-instance-name": "vid-e2e-test_2017-07-18_08-24-24-224", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500355470123", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f4a5c51d-3ddd-457e-a293-840713d23a19", + "service-instance-name": "fs", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500354782019", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9281d7e0-720e-42a9-b5f9-f135af176099", + "service-instance-name": "jfghh", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1500367011291", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/365525ee-4a1f-4947-91be-c067a9f81a61", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "365525ee-4a1f-4947-91be-c067a9f81a61" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "mkmlk" + } + ] + } + ] + } + }, + { + "service-instance-id": "dd86dd0e-99c1-4567-87e9-d3fa20799b75", + "service-instance-name": "vod-test-666", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500566282895", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8cccc36b-977a-4e58-9e93-ae313d7380d9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8cccc36b-977a-4e58-9e93-ae313d7380d9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-test-vnf-222" + } + ] + } + ] + } + }, + { + "service-instance-id": "a092e48d-44af-40e4-b088-d36b6a637033", + "service-instance-name": "vid-e2e-test_service_2017-07-20_16-40-40-845", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500558051198", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c589d78f-5178-4f9a-ba9d-cec36e19708e", + "service-instance-name": "vid-test-543", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500551310098", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a20b223f-7533-44dc-9deb-c2e627bd3701", + "service-instance-name": "vid-test-432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500550662376", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/5dc6598f-6da4-468e-92ed-1b45b595f1d8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "5dc6598f-6da4-468e-92ed-1b45b595f1d8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-test-vnf-432" + } + ] + } + ] + } + }, + { + "service-instance-id": "43be2af0-014f-470f-9bf3-bcaba534e89e", + "service-instance-name": "test_945994fz", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1509272926060", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9b38641c-55ec-48c1-9bf6-3dfedb2d6109", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9b38641c-55ec-48c1-9bf6-3dfedb2d6109" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "hgfdsaafgh" + } + ] + } + ] + } + }, + { + "service-instance-id": "901c9394-e3f7-48fc-bf9d-0e48b26cb7f5", + "service-instance-name": "vid-test-t", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500896893668", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e7158335-42ef-42cc-9bad-9c6b794dcb2b", + "service-instance-name": "vl_usp001", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1506351703022", + "orchestration-status": "Active" + }, + { + "service-instance-id": "54705472-6522-4d55-a6b8-091a3173f5dd", + "service-instance-name": "test_9934585345", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1506349848890", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b430262c-7a04-48e1-a656-4ff19c60fbae", + "service-instance-name": "test_09459934", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1506350033897", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e6e9488d-0621-4585-b955-1a768d38f156", + "service-instance-name": "vid-test-556", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500892871481", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f9a4be8b-09c0-4860-bd26-8384a2752e13", + "service-instance-name": "vid-test-887", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500892738430", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d86088ce-5bd0-4c05-94c9-96557f70d2e6", + "service-instance-name": "vid-test-789", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500892617605", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9ac85e73-9444-4fd7-b771-0bc2706cadb1", + "service-instance-name": "vid-test-888", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500892257855", + "orchestration-status": "Active" + }, + { + "service-instance-id": "51cddedb-68a1-47fb-97b9-63f1b7aff086", + "service-instance-name": "vid-test-112", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500896366569", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e2cd68c8-c807-4176-a39c-c44d99418f78", + "service-instance-name": "vid-test-443", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500895145213", + "orchestration-status": "Active" + }, + { + "service-instance-id": "3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "service-instance-name": "vid-test-444", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500789244673", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c015cc0f-0f37-4488-aabf-53795fd93cd3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c015cc0f-0f37-4488-aabf-53795fd93cd3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fsd" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/0846287b-65bf-45a6-88f6-6a1af4149fac", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "0846287b-65bf-45a6-88f6-6a1af4149fac" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "kjkjk" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9908b762-136f-4b1f-8eb4-ef670ef58bb4", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9908b762-136f-4b1f-8eb4-ef670ef58bb4" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "uiui" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/543931f5-e50e-45a2-a69f-ab727e4c7f2f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "543931f5-e50e-45a2-a69f-ab727e4c7f2f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfsdfdsf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/25e84884-22d5-44c9-8212-cb459f63e0ba", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "25e84884-22d5-44c9-8212-cb459f63e0ba" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdada" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/013fb0ba-977b-496c-9faa-7f8e5f083eec", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "013fb0ba-977b-496c-9faa-7f8e5f083eec" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gvb" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/06914296-cb46-4b62-9453-329a706a6cbb", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "06914296-cb46-4b62-9453-329a706a6cbb" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "lkllll" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c55da606-cf38-42c7-bc3c-be8e23b19299", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c55da606-cf38-42c7-bc3c-be8e23b19299" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ss" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/27cc0914-70be-453e-b552-3df6b1d6cda9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "27cc0914-70be-453e-b552-3df6b1d6cda9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "yh" + } + ] + } + ] + } + }, + { + "service-instance-id": "0f2624ba-94cf-4ac5-b903-652d49002c97", + "service-instance-name": "vmee1", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d5937aa1-37fb-4ed0-8c30-5144b89a64ae", + "model-version-id": "06ac9663-54cf-4c77-b926-6e8757cf6380", + "resource-version": "1509362054136", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/80bb7c9e-4e3d-4b10-8291-7e85a1347370", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "80bb7c9e-4e3d-4b10-8291-7e85a1347370" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ce792805-a5f3-4bfe-8209-86553e097d91", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ce792805-a5f3-4bfe-8209-86553e097d91" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ssssssssssssssss" + } + ] + } + ] + } + }, + { + "service-instance-id": "43d8a0e6-34b6-42b9-b393-13a870b2a313", + "service-instance-name": "Serviceaimpnf_3", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "306caa85-74c7-48a9-aa22-7e3a564b957a", + "model-version-id": "ecd470eb-05ce-44c9-990f-4b80ac0d922d", + "resource-version": "1509367097941", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/43d8a0e6-34b6-42b9-b393-13a870b2a313/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "3c3f53a2-1cbc-48f4-bb1c-a3b071ab567c", + "service-instance-name": "service_instance_test_123456", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d51048df-47a8-4038-b981-c1cd23dada55", + "model-version-id": "ae93d743-5dca-4f8c-bc8f-16edb87c8fa2", + "resource-version": "1509550565847", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4f35c7db-e3e0-4140-a3a2-f8fa7fcc22c7", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4f35c7db-e3e0-4140-a3a2-f8fa7fcc22c7" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vnf_instance_test_1234567" + } + ] + } + ] + } + }, + { + "service-instance-id": "48b064cd-aeb7-48c0-ae50-3ead0bd7f7a8", + "service-instance-name": "vid-test-4422", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500897698349", + "orchestration-status": "Active" + }, + { + "service-instance-id": "cb062e05-25d0-43f6-89a4-784abb39256e", + "service-instance-name": "ServicePnf_24", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1509377126770", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/cb062e05-25d0-43f6-89a4-784abb39256e/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f363b54e-ed50-4c7b-b404-b54291da2f25", + "service-instance-name": "test0450450", + "service-type": "", + "service-role": "", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1502293720068", + "orchestration-status": "Active" + }, + { + "service-instance-id": "45ae5259-949e-4163-ae40-61e564eb04ba", + "service-instance-name": "dfgbdfbgdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502276519000", + "orchestration-status": "Active" + }, + { + "service-instance-id": "643e277d-7dfe-4ff2-8894-a1ad18860d95", + "service-instance-name": "test_045004", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502279862680", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/68abca17-1fd7-4fe3-8d36-df853ce884e9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "68abca17-1fd7-4fe3-8d36-df853ce884e9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_405045" + } + ] + } + ] + } + }, + { + "service-instance-id": "1d439d6d-5867-4522-a730-528256378011", + "service-instance-name": "test_84584", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502293183245", + "orchestration-status": "Active" + }, + { + "service-instance-id": "de850f30-2bb0-43e9-bbb5-07250a435165", + "service-instance-name": "testmacr4050405", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508677320783", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/96208579-2839-442d-bcd7-46902fb5b108", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "96208579-2839-442d-bcd7-46902fb5b108" + } + ] + } + ] + } + }, + { + "service-instance-id": "6f442a1d-3163-4448-ad47-cd0311c8b84c", + "service-instance-name": "macr_03455949594", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508853484814", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2811e2fb-005e-40de-990b-c0794f362399", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2811e2fb-005e-40de-990b-c0794f362399" + } + ] + } + ] + } + }, + { + "service-instance-id": "8b1034a6-966d-4534-9622-665d0be9cb5b", + "service-instance-name": "ghjgjhg", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a1ac367e-3f20-43cb-801e-5cb381aef876", + "model-version-id": "29ab2dd6-e7e0-4e56-9922-5aaa81a32342", + "resource-version": "1508688088252", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p10", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p10" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + } + ] + } + }, + { + "service-instance-id": "42240602-42d9-4914-a87a-45ab88864a01", + "service-instance-name": "testint5464", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1508754951438", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p8", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p8" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d566b9bf-f383-4ee2-8856-271605fe3267", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d566b9bf-f383-4ee2-8856-271605fe3267" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfdsf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/429b4e95-6fb3-4f04-9ffb-795b4a3289c3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "429b4e95-6fb3-4f04-9ffb-795b4a3289c3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "oliuyt" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/e53c3b6c-9013-4749-9648-f7fb43a60375", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "e53c3b6c-9013-4749-9648-f7fb43a60375" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfgdfd" + } + ] + } + ] + } + }, + { + "service-instance-id": "88e657dc-e4be-4be8-be34-1396836e9798", + "service-instance-name": "fghfghfghf", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508854622716", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/ab18aa18-9644-441d-be6e-af6cadbc21ab", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "ab18aa18-9644-441d-be6e-af6cadbc21ab" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/def4032e-72ae-4002-a08f-b9457a4be106", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "def4032e-72ae-4002-a08f-b9457a4be106" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "hjhjkhjk" + } + ] + } + ] + } + }, + { + "service-instance-id": "1030f826-3fa5-4057-abb1-18e72ce7e2a1", + "service-instance-name": "vid-test-999", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500892169774", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d578122d-278c-42b2-bee0-2ec441ceeaac", + "service-instance-name": "vid-testt", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500893055281", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4d9c564d-9e83-4fa4-a4c0-41ca93fc9f64", + "service-instance-name": "vid-test-332", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500896543492", + "orchestration-status": "Active" + }, + { + "service-instance-id": "42774ab2-d3e1-46ec-84ff-3db53a18e135", + "service-instance-name": "vid-test-1122", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500897486657", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2fac24c8-13fa-42db-bb2f-529683531fa8", + "service-instance-name": "vid-test-11112", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500897969508", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c0de2bc1-f32a-4cea-a9b0-88571d6b33bf", + "service-instance-name": "vid-testtt", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500893827977", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c13177ec-38b3-4e12-8482-97b0f016247a", + "service-instance-name": "vid-test-221", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500895647987", + "orchestration-status": "Active" + }, + { + "service-instance-id": "412e3b4c-071b-4c58-b314-7fbd176222ff", + "service-instance-name": "vid-e2e-test_service_2017-07-19_16-05-40-066", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500469550619", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/45fe4c3d-c30e-4800-8b68-54b4dea1c248", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "45fe4c3d-c30e-4800-8b68-54b4dea1c248" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test_vnf_2017-07-19_16-06-13-603" + } + ] + } + ] + } + }, + { + "service-instance-id": "635903e5-74ee-4470-be25-53cc730b34bd", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-39-54-357", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500468002639", + "orchestration-status": "Active" + }, + { + "service-instance-id": "0474ac6f-7eb2-4aaf-8cb1-5abd12df2253", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-44-24-952", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500468273196", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b4ff72ff-00e5-42d8-914e-1cbe67a7eb58", + "service-instance-name": "test_werfdzkdkskd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500813475847", + "orchestration-status": "Active" + }, + { + "service-instance-id": "43a08d84-d5d5-4b5e-be2b-2300b474dc70", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-42-55-550", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500468183570", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5390755c-1606-47d9-8b83-da14738067da", + "service-instance-name": "vid-e2e-test_aai_service_2017-07-19_16-13-57-138", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500470041251", + "orchestration-status": "Active" + }, + { + "service-instance-id": "3707ec3b-af13-49ea-b9ff-018b758da115", + "service-instance-name": "vid-e2e-test_2017-07-18_17-17-30-920", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500387456666", + "orchestration-status": "Active" + }, + { + "service-instance-id": "28378666-89cd-47df-8ed9-fc1839a4b265", + "service-instance-name": "test_rt945klol4", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1500377140106", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1d7edacb-8e79-4f6d-936b-93114a974935", + "service-instance-name": "vid-e2e-test_2017-07-18_15-28-31-981", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500380917229", + "orchestration-status": "Active" + }, + { + "service-instance-id": "da51b100-5b39-4c15-b3ea-f23df4473a83", + "service-instance-name": "vfdv", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1500371981705", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ef0a68da-cc95-4e3c-a1d3-3f7f9cb6ee82", + "service-instance-name": "vid-e2e-test_2017-07-18_18-12-22-369", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390748046", + "orchestration-status": "Active" + }, + { + "service-instance-id": "eff96af1-70ea-4aab-98c5-32306da946ad", + "service-instance-name": "vid-e2e-test_2017-07-18_17-48-39-643", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500389325953", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8718ad9e-a3c4-49d1-a708-a90ba42b9d03", + "service-instance-name": "vid-e2e-test_2017-07-18_18-14-04-926", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390850156", + "orchestration-status": "Active" + }, + { + "service-instance-id": "16a09e81-4450-4cb2-8391-5890b6f64721", + "service-instance-name": "vid-e2e-test_2017-07-18_17-50-33-811", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500389439126", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5f3fb647-edfb-473c-99a9-3f04603478c1", + "service-instance-name": "vid-e2e-test_2017-07-18_17-52-15-859", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500389541445", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c6af9564-9043-4f65-8bf2-1c7bc56fd43e", + "service-instance-name": "fsdfsdsd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500412901425", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c9213809-2c50-41f7-b73a-22c1ff189bf0", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c9213809-2c50-41f7-b73a-22c1ff189bf0" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fdsd" + } + ] + } + ] + } + }, + { + "service-instance-id": "8ab3917e-581f-4de3-b0e3-4e06660e8793", + "service-instance-name": "dfghn", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500449579549", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9b6079c3-9442-4480-9c6d-dd03eeee9c82", + "service-instance-name": "hjoi", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500308091305", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5fd59464-ddcf-4589-8f91-3d8b07c115f9", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-16-56-647", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500466624414", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2081af5c-8229-441c-8a0c-701699f5cf49", + "service-instance-name": "sfd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500312534078", + "orchestration-status": "Active" + }, + { + "service-instance-id": "86d60652-b114-4775-8bec-331dd78f4741", + "service-instance-name": "x", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500312034997", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ae6e8ace-a065-432e-930e-c6111bd27932", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-20-00-628", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500466809739", + "orchestration-status": "Active" + }, + { + "service-instance-id": "19faafcb-47a4-45e5-8ee4-d3375c695d7e", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-27-14-135", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500467243388", + "orchestration-status": "Active" + }, + { + "service-instance-id": "aa4fc03e-1ba3-48d1-b5cc-ec8dfec15a4c", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-06-51-198", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500466021989", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4089b9d7-8c02-4a71-b15a-e29082e38c45", + "service-instance-name": "vid-e2e-test_service_2017-07-19_15-12-07-616", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500466335699", + "orchestration-status": "Active" + }, + { + "service-instance-id": "45b11aa5-5747-45a6-a58e-bada5d052465", + "service-instance-name": "fgd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1500309212526", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9f90bb18-d879-4d6e-97fd-ba5964bdfeb7", + "service-instance-name": "hjk", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500311877345", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9f0b62d4-0305-43aa-b2b3-0c22edc7e01c", + "service-instance-name": "q", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500313981483", + "orchestration-status": "Active" + }, + { + "service-instance-id": "19bddbc0-3014-4541-9f9e-c1400daff5c0", + "service-instance-name": "gdf", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500312620055", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b352c6e4-087b-4408-b794-142f1d9e2309", + "service-instance-name": "dcs", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500325142163", + "orchestration-status": "Active" + }, + { + "service-instance-id": "57cdd7bd-ab17-47bb-8b53-9e424d6cf2b2", + "service-instance-name": "fsd", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500323619398", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e305fc65-2120-4cc8-8bf1-bbc8aa302f34", + "service-instance-name": "a", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500314310430", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/82667331-a973-49e5-b3f2-9bd9e07be7eb", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "82667331-a973-49e5-b3f2-9bd9e07be7eb" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vnf3" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aa879f1f-a88c-41c6-9f54-4a4cfd92d261", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aa879f1f-a88c-41c6-9f54-4a4cfd92d261" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test0123456" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/7c15cc9b-f09e-4d7b-911a-fce928dbec0f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "7c15cc9b-f09e-4d7b-911a-fce928dbec0f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "addingVNF" + } + ] + } + ] + } + }, + { + "service-instance-id": "a43d04ad-7cc5-48d1-bd44-316979763294", + "service-instance-name": "test_123432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500372271553", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/feb4e66e-a178-418c-bc2a-b4b09dd82d98", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "feb4e66e-a178-418c-bc2a-b4b09dd82d98" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vf" + } + ] + } + ] + } + }, + { + "service-instance-id": "7a17082d-ea92-4b55-b49d-083f9599b18d", + "service-instance-name": "iosksfnsdkfnsdkjfnskdj", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500369295852", + "orchestration-status": "Active" + }, + { + "service-instance-id": "88fb29c3-8836-4f86-a27a-53a688cae680", + "service-instance-name": "test-sddasfds", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500373378767", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aa2f42a3-ff1b-4508-9a0c-b256df6208aa", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aa2f42a3-ff1b-4508-9a0c-b256df6208aa" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "erttert" + } + ] + } + ] + } + }, + { + "service-instance-id": "7dd2ad7d-3056-4d91-bc3c-97c488ae23fb", + "service-instance-name": "kml", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500362405883", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d953154d-584a-4a4a-9bd7-83df8e46c354", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d953154d-584a-4a4a-9bd7-83df8e46c354" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "nkknkjnkn" + } + ] + } + ] + } + }, + { + "service-instance-id": "5448357b-b1c4-475d-ac0c-a42528e1d51b", + "service-instance-name": "test2", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500323768299", + "orchestration-status": "Active" + }, + { + "service-instance-id": "84bd20e2-91cc-4a59-be62-e3cf4a762322", + "service-instance-name": "test-321312", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500370664268", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c4c1592b-afc1-4555-9902-5089caa95a64", + "service-instance-name": "fds", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "ef4b81a1-bcff-4f97-b449-6b619b673ecb", + "resource-version": "1500324250120", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6759becb-9878-4c70-abe7-f2886dd6c990", + "service-instance-name": "vid-e2e-test_2017-07-18_17-25-58-170", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500387968056", + "orchestration-status": "Active" + }, + { + "service-instance-id": "39f096ce-eab4-49ec-94f1-701f7df5a483", + "service-instance-name": "adrg", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500388978731", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/07126b2b-ac8c-4821-a85b-d86e302b408e", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "07126b2b-ac8c-4821-a85b-d86e302b408e" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ghfergf" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/6415f997-8fe7-45da-8ec2-e1b12b790354", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "6415f997-8fe7-45da-8ec2-e1b12b790354" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ukyjthrgef55" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2d34f74b-e7e7-4f92-87e7-8e4a4321b48b", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2d34f74b-e7e7-4f92-87e7-8e4a4321b48b" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfdfd" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d754a995-7473-4b94-bf84-0f2734d2924f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d754a995-7473-4b94-bf84-0f2734d2924f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dsfefg" + } + ] + } + ] + } + }, + { + "service-instance-id": "9f8cdcb0-6ffd-4adc-b245-f7f4fc9752e3", + "service-instance-name": "vid-e2e-test_2017-07-18_17-36-23-097", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500388589551", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7644e248-d2d9-4c61-a087-148beff228ac", + "service-instance-name": "vid-e2e-test_2017-07-18_16-44-33-073", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500385478551", + "orchestration-status": "Active" + }, + { + "service-instance-id": "509a2624-3dae-41ad-9a5a-e62078161e21", + "service-instance-name": "vid-e2e-test_2017-07-18_17-14-27-661", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500387274357", + "orchestration-status": "Active" + }, + { + "service-instance-id": "83e740ef-a293-4840-b04e-efff59c72463", + "service-instance-name": "eqrv", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500385603218", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6fde03e3-46dc-4fff-8daf-078530d560f2", + "service-instance-name": "sdfvsdfvsdf", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500387907127", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/c8e49850-6722-49ea-950c-9ad62a7f889d", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "c8e49850-6722-49ea-950c-9ad62a7f889d" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "adsv" + } + ] + } + ] + } + }, + { + "service-instance-id": "269bf5ae-6698-4303-b074-be51ad7d28c1", + "service-instance-name": "vid-e2e-test_2017-07-18_18-07-11-310", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1500390438483", + "orchestration-status": "Active" + }, + { + "service-instance-id": "587fbd75-3379-412b-b54a-e995e4ffcae4", + "service-instance-name": "forlynn", + "service-type": "", + "service-role": "", + "model-invariant-id": "f627ac4b-6a4f-4406-b409-a986fb0d1d1c", + "model-version-id": "2e057e90-068f-478a-a9d2-9fb7f36ff3c2", + "resource-version": "1504188707424", + "orchestration-status": "Active" + }, + { + "service-instance-id": "62eb3798-b90d-4bc0-9635-c70473a49ae3", + "resource-version": "1506724389470", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/rarf0002v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "rarf0002v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "rarf0002v" + } + ] + } + ] + } + }, + { + "service-instance-id": "27d4ab06-faed-41f4-80f2-2158e62e5861", + "service-instance-name": "vid-test-33333332", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501675131575", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1a127f0b-dc72-471b-bb9d-c15397520b8f", + "service-instance-name": "vid-test-55522", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1501661285161", + "orchestration-status": "Active" + }, + { + "service-instance-id": "fe1786d1-be3f-4c1b-8d71-540df4f4c916", + "service-instance-name": "vid-test-333322255533", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "1de57bcf-365a-4ba7-8a51-7377b7144586", + "resource-version": "1501665788566", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ea53aeec-470c-4e85-9396-0ea6f7316cef", + "service-instance-name": "hmgnfbdsa55", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1509025602402", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p10", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p10" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "267d6f47-387d-4e7e-86aa-8d08a86488b1", + "service-instance-name": "trgfeerg", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508944715647", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + } + ] + } + }, + { + "service-instance-id": "7e06da45-07a8-4b85-857f-7a798b558c54", + "service-instance-name": "test_045900034f", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508942442342", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/96208579-2839-442d-bcd7-46902fb5b108", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "96208579-2839-442d-bcd7-46902fb5b108" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/36c2848d-6b5f-42a9-8d68-0314048614a3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "36c2848d-6b5f-42a9-8d68-0314048614a3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ngfdsa434" + } + ] + } + ] + } + }, + { + "service-instance-id": "e84137bb-a982-4aaa-bdfe-e83997c6b93d", + "service-instance-name": "test_4050345034", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1509021634347", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/464482f0-fec7-4171-af0e-96363f93f908", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "464482f0-fec7-4171-af0e-96363f93f908" + } + ] + } + ] + } + }, + { + "service-instance-id": "aebe3df8-a734-4dc9-b210-1b47444c19f6", + "service-instance-name": "thfgdf443", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508942117530", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "89d03dd6-fe60-4106-b9e1-3a9c66a7561d", + "service-instance-name": "jhgrfedse44", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1509026377891", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p3", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p3" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/c934f26c-30f8-419b-9e54-31b10d08b29a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "c934f26c-30f8-419b-9e54-31b10d08b29a" + } + ] + } + ] + } + }, + { + "service-instance-id": "761cd4c2-8f65-42a0-8d6e-155c99181c80", + "service-instance-name": "dgfgddfg", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1509032006604", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/73185f03-5531-444d-bc03-fa13f924d66a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "73185f03-5531-444d-bc03-fa13f924d66a" + } + ] + } + ] + } + }, + { + "service-instance-id": "b1707910-718c-488c-841e-fe6166b288d7", + "service-instance-name": "ins_vl_inputs1", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a4ae0698-161d-4e3d-aabb-f94183c733e4", + "model-version-id": "eaa0de99-6407-4bf6-8579-31499dcf21eb", + "resource-version": "1509013009292", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/464482f0-fec7-4171-af0e-96363f93f908", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "464482f0-fec7-4171-af0e-96363f93f908" + } + ] + } + ] + } + }, + { + "service-instance-id": "31ebd5ed-d522-42bd-8b1b-ca8807541b33", + "service-instance-name": "vnftest0987", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1509017207771", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/6e9179b0-864a-40ba-80ba-c51a69384653", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "6e9179b0-864a-40ba-80ba-c51a69384653" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2804acda-dbd1-413f-a731-47f0978ab9dd", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2804acda-dbd1-413f-a731-47f0978ab9dd" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "hgcfdfff22" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d0b3c921-3bd6-43ec-bf71-3edbb7af5bc7", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d0b3c921-3bd6-43ec-bf71-3edbb7af5bc7" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bvfvdsfsdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "915c7d5a-c359-475f-bda7-67761c92b029", + "service-instance-name": "aritest000999", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1509026720877", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + } + ] + } + }, + { + "service-instance-id": "4790f1a6-eb5b-4176-95bc-fdb0909e4d87", + "service-instance-name": "ngfdvfg", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1509032932831", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p3", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p3" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + } + ] + } + }, + { + "service-instance-id": "3af158f2-202f-40a8-a749-f508bdb8a4ce", + "service-instance-name": "kdsfhud556", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1509033824516", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p3", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p3" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/c934f26c-30f8-419b-9e54-31b10d08b29a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "c934f26c-30f8-419b-9e54-31b10d08b29a" + } + ] + } + ] + } + }, + { + "service-instance-id": "13dec3b0-ab57-4359-b4ec-4db0811256fc", + "service-instance-name": "newadio", + "service-type": "", + "service-role": "", + "model-invariant-id": "135cf95b-2863-477a-8879-d980474d67f0", + "model-version-id": "32d08699-790f-4460-ba1b-0b7bb4576296", + "resource-version": "1504290530566", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d171c71b-695e-4f9f-84a7-9febf20a7a5e", + "service-instance-name": "AIMinstance", + "service-type": "", + "service-role": "", + "model-invariant-id": "9e060f0b-1b8e-4b91-86f7-f3d5208fb852", + "model-version-id": "6fa842b2-8eca-416b-8b99-d8691f1ad11e", + "resource-version": "1504289007353", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c9407d5f-0227-4335-b1b2-9148a5a27c0e", + "service-instance-name": "ready", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1504200919802", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/693ac78b-a1c2-4267-bb35-cb05b8c1fc2c", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "693ac78b-a1c2-4267-bb35-cb05b8c1fc2c" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fre" + } + ] + } + ] + } + }, + { + "service-instance-id": "d712579c-75fd-4a8f-9378-bfb9bf3aaf58", + "service-instance-name": "demolynn", + "service-type": "", + "service-role": "", + "model-invariant-id": "a7c72b5d-d498-4164-a3a5-2e0fdf5ff1b5", + "model-version-id": "5a5b1d22-f37a-4f85-9ec8-e84a6e196648", + "resource-version": "1504200602108", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ccc21ec4-dd82-4db8-ad42-88f88f3ee980", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ccc21ec4-dd82-4db8-ad42-88f88f3ee980" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "demo8" + } + ] + } + ] + } + }, + { + "service-instance-id": "3ea4acb0-a62f-4e6e-8750-2920b16ab8f0", + "service-instance-name": "mog1", + "service-type": "", + "service-role": "", + "model-invariant-id": "a8b53380-76bd-4d52-b102-165947fbc46a", + "model-version-id": "b1b0c302-fd06-4612-ad50-f9931bd8dde1", + "resource-version": "1504202136745", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6c426e93-8df1-40fd-89c2-ba7e934ab7db", + "service-instance-name": "RGAlina831", + "service-type": "", + "service-role": "", + "model-invariant-id": "ceab97cd-ca68-41a6-9b34-d571b2dd05ed", + "model-version-id": "1a6ae314-7a89-408b-93e5-6d8b8ee4c28a", + "resource-version": "1504211427501", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ed132599-77d3-4a7d-9e14-8e5068b95a6b", + "service-instance-name": "newone", + "service-type": "", + "service-role": "", + "model-invariant-id": "f627ac4b-6a4f-4406-b409-a986fb0d1d1c", + "model-version-id": "2e057e90-068f-478a-a9d2-9fb7f36ff3c2", + "resource-version": "1504200211471", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/3aac4d15-567c-4022-8161-2a73d2c465ba", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "3aac4d15-567c-4022-8161-2a73d2c465ba" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "demo3" + } + ] + } + ] + } + }, + { + "service-instance-id": "3e505763-319c-4ef9-a17c-5ac561abcd44", + "service-instance-name": "lynn", + "service-type": "", + "service-role": "", + "model-invariant-id": "f627ac4b-6a4f-4406-b409-a986fb0d1d1c", + "model-version-id": "2e057e90-068f-478a-a9d2-9fb7f36ff3c2", + "resource-version": "1504198364611", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fee940c1-4f94-4550-be75-193473be1df5", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fee940c1-4f94-4550-be75-193473be1df5" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "demo" + } + ] + } + ] + } + }, + { + "service-instance-id": "5164a1ed-d7ba-4e33-b82d-3a5f90543c47", + "service-instance-name": "Lital39887395", + "service-type": "", + "service-role": "", + "model-invariant-id": "452538c0-ef1e-4d65-9939-697f6ed58934", + "model-version-id": "f430728a-4530-42be-a577-1206b9484cef", + "resource-version": "1504111659807", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f05c9247-58c0-4558-872d-f9edc6b0e27b", + "service-instance-name": "TestCM", + "service-type": "", + "service-role": "", + "model-invariant-id": "cf3fa46a-e026-4171-9496-56f5e5184b38", + "model-version-id": "e03239af-b20e-4966-aeb8-b558ef4203b6", + "resource-version": "1506257529884", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/95fffe54-d351-42aa-8612-6fed2690b702", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "95fffe54-d351-42aa-8612-6fed2690b702" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "TestCM" + } + ] + } + ] + } + }, + { + "service-instance-id": "0f4f9378-14c6-4fc0-bf8c-53e8b94fc24b", + "service-instance-name": "TestCM1", + "service-type": "", + "service-role": "", + "model-invariant-id": "cf3fa46a-e026-4171-9496-56f5e5184b38", + "model-version-id": "e03239af-b20e-4966-aeb8-b558ef4203b6", + "resource-version": "1506257972911", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ba916d69-3558-4f8d-aded-fc1f4658697f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ba916d69-3558-4f8d-aded-fc1f4658697f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "TestCM1" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f94e2cdb-a731-4703-984f-6db7958673a6", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f94e2cdb-a731-4703-984f-6db7958673a6" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "lital" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/3349b4ae-e9af-447a-9ef6-751233243669", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "3349b4ae-e9af-447a-9ef6-751233243669" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "lyttj" + } + ] + } + ] + } + }, + { + "service-instance-id": "6532a860-334d-4277-aab0-dfc3c0275722", + "service-instance-name": "almog-test-009", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1503328232583", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6f1658ae-09f8-4146-8e99-c618a513b96e", + "service-instance-name": "TestBeforTenantIsolation", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502873224732", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5febf311-cfe5-488d-9480-4e300f44e83b", + "service-instance-name": "test-s-s-s-s-s", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503313229112", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a41ea412-135c-44bd-a999-8771f950e4c0", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-21_15-11-13-501", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503317477669", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4e4cb086-9d47-4c35-a787-7663eef5cd1f", + "service-instance-name": "test-484784jf", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503386331370", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/e90d3fbf-c3f4-4439-9984-b2fa9a48f085", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "e90d3fbf-c3f4-4439-9984-b2fa9a48f085" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fff" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f62913a4-ee21-45ed-9b6a-9bd81ef6d4a3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f62913a4-ee21-45ed-9b6a-9bd81ef6d4a3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dujhdu-444f" + } + ] + } + ] + } + }, + { + "service-instance-id": "864c3974-fc7b-4438-bd1a-9b05bf7b0415", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-21_14-36-39-376", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503315402724", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4da12453-b237-4b4b-abef-52e519db1061", + "service-instance-name": "gfdsfgh45656", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503393201982", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c9b5ce8a-a50c-4bb3-950a-ee0c8e8cd8a8", + "service-instance-name": "vid-test-444333222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502821470362", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c9275c14-e391-4205-bf23-1667df357535", + "service-instance-name": "PnfTest", + "service-type": "", + "service-role": "", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1502865576535", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9e7f2be3-916d-4bc9-92df-3fce042c1458", + "service-instance-name": "test111", + "service-type": "", + "service-role": "", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1502867371993", + "orchestration-status": "Active" + }, + { + "service-instance-id": "913c5278-ede0-4d85-a24e-a208ce84aef2", + "service-instance-name": "almog-test-007", + "service-type": "", + "service-role": "", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1503328159784", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7b66fff7-15e3-4421-8e80-695ce78e9a40", + "service-instance-name": "test865555665", + "service-type": "", + "service-role": "", + "model-invariant-id": "b1ed0d58-0700-4631-be18-d2f1e527d637", + "model-version-id": "849a6347-cca7-4ae6-b5c2-7d41e9f6d9b2", + "resource-version": "1504532289220", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b9769e8f-70aa-4b05-8988-64044aa63498", + "service-instance-name": "TestCharlie", + "model-invariant-id": "4af418a9-c2f5-4fae-a577-b69d6341eee8", + "model-version-id": "745d1bf1-9ed1-413f-8111-f1e984ad63fb", + "resource-version": "1494002070115", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/91124690-bc03-4387-bd6d-96c492a26e47", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "91124690-bc03-4387-bd6d-96c492a26e47" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "TestCharlie" + } + ] + } + ] + } + }, + { + "service-instance-id": "69779f8f-e3d1-4957-b092-4c1e0fa2d962", + "service-instance-name": "test_934584858784", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508313166228", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/43b8a85a-0421-4265-9069-117dd6526b8a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "43b8a85a-0421-4265-9069-117dd6526b8a" + } + ] + } + ] + } + }, + { + "service-instance-id": "687ca9ab-0cbc-49f3-8693-953d4d6b61fe", + "service-instance-name": "te554433", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1508331792032", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/96208579-2839-442d-bcd7-46902fb5b108", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "96208579-2839-442d-bcd7-46902fb5b108" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4d1c9027-05a6-4144-bf9e-9a190b3ec4cd", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4d1c9027-05a6-4144-bf9e-9a190b3ec4cd" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "mhghg66" + } + ] + } + ] + } + }, + { + "service-instance-id": "8eebe164-928e-4a02-b09a-1d3e85baa553", + "service-instance-name": "tertop009", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508331429003", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p10", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p10" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/73185f03-5531-444d-bc03-fa13f924d66a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "73185f03-5531-444d-bc03-fa13f924d66a" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/353fac93-f9f7-46d6-becb-68f10aae2815", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "353fac93-f9f7-46d6-becb-68f10aae2815" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfhddft" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fbc588a0-70aa-4fdf-bff4-a0fb7037b65a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fbc588a0-70aa-4fdf-bff4-a0fb7037b65a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfddfd5655" + } + ] + } + ] + } + }, + { + "service-instance-id": "3ed5a776-9aab-4fe3-9231-853db3657f5e", + "service-instance-name": "vid-e2e-test_service_2017-07-26_17-06-11-407", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501077979892", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/493e1f9e-03fd-461d-9c43-371e22fc9edd", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "493e1f9e-03fd-461d-9c43-371e22fc9edd" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test_vnf_2017-07-26_17-06-40-404" + } + ] + } + ] + } + }, + { + "service-instance-id": "0471bff5-ceb1-474c-a9da-c877bf21ae9b", + "service-instance-name": "vid-e2e-test_service_2017-07-26_22-41-09-352", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501098077533", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d2c3b450-f8c4-4d7b-8099-f031be9a1bde", + "service-instance-name": "Ser_VID_Lital--1707097", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1501147094625", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f4c7ecc7-9847-4047-8776-1a5bf5e3ea45", + "service-instance-name": "vid-e2e-test_service_2017-07-26_22-50-59-847", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501098666381", + "orchestration-status": "Active" + }, + { + "service-instance-id": "99d31873-a6e5-4f16-861c-6e3b8d3fe8c7", + "service-instance-name": "vid-e2e-test_service_2017-07-26_23-04-22-351", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501099468895", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aa3d70b1-743a-4492-93b4-3472395bb887", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aa3d70b1-743a-4492-93b4-3472395bb887" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test-vnf_2017-07-26_23-04-55-822" + } + ] + } + ] + } + }, + { + "service-instance-id": "5a78742a-60ec-4377-88df-746442c7c680", + "service-instance-name": "teat90494848", + "model-invariant-id": "6fe9ad6f-6fa9-4b96-a91e-866a7f3c55a9", + "model-version-id": "be753bed-13e8-4e50-b431-b90dfd0f31b7", + "resource-version": "1499849060540", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7230d7d5-68e6-4772-95c6-59b6edb58f9f", + "service-instance-name": "vid-e2e-test_service_2017-10-15_17-53-59-886", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508079214580", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/z1", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "z1" + } + ] + } + ] + } + }, + { + "service-instance-id": "bb58b58a-2b64-41d5-8d56-3ac95b32b99e", + "service-instance-name": "vid-test-12321", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508143950703", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/z1", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "z1" + } + ] + } + ] + } + }, + { + "service-instance-id": "4ba3e63d-71dc-4912-891d-e0eed048a0a5", + "service-instance-name": "SI_vid894_01", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "d9522f74-c0a9-444e-8b8f-3623da145007", + "resource-version": "1495823285290", + "orchestration-status": "Active" + }, + { + "service-instance-id": "92e1553e-24f7-49ba-94b4-f1538487da52", + "service-instance-name": "lll052617D", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "d9522f74-c0a9-444e-8b8f-3623da145007", + "resource-version": "1495836523699", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7c569714-4174-4d91-9fd0-14051794c3d2", + "service-instance-name": "sdfsdfdsf", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503842487837", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e25c1753-d5f7-4b5e-880e-cdad5c2f74f7", + "service-instance-name": "lll052617B", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1495815608024", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d8f23bb5-5822-4374-8ece-964c0af90d60", + "service-instance-name": "lll052617A", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1495814776103", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c870081f-b09a-411e-8e2e-fb0e4ba60992", + "service-instance-name": "test-ksdjsd7", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503843463767", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f4770c11-039e-44d2-83a1-ee38c74ffea8", + "service-instance-name": "dsfdsfds", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503906371181", + "orchestration-status": "Active" + }, + { + "service-instance-id": "22e5c795-5747-428f-b997-23e355a3c3b6", + "service-instance-name": "asdasdasd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503906872840", + "orchestration-status": "Active" + }, + { + "service-instance-id": "66eb9285-edb6-4149-a4fd-4ace1725486e", + "service-instance-name": "asdasdvdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503906293988", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e089b589-5227-4a7c-aa19-92c99507f147", + "service-instance-name": "Mobility_VSP_Service_DS_0906_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "f60ed211-2780-40ea-9d05-94c214e0be5c", + "model-version-id": "0497a6ff-455b-4713-b5de-3e1d4d172b8c", + "resource-version": "1504709046592", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c436daa1-63b5-40e6-892a-1ca67c390ea1", + "service-instance-name": "test_04594959", + "service-type": "", + "service-role": "", + "model-invariant-id": "b7d923c9-6175-41f1-91ba-4565c4953408", + "model-version-id": "ee6d61be-4841-4f98-8f23-5de9da846ca7", + "resource-version": "1503820500390", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/50d111b5-134f-4415-b097-5c061a5072ab", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "50d111b5-134f-4415-b097-5c061a5072ab" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_045845w" + } + ] + } + ] + } + }, + { + "service-instance-id": "6eeb541a-2976-4ae2-986f-1e34c7927983", + "service-instance-name": "test_lfgfjdf7", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503819918168", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8ed80bb9-7548-4305-baef-660453777afa", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8ed80bb9-7548-4305-baef-660453777afa" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_0459495d" + } + ] + } + ] + } + }, + { + "service-instance-id": "45a68dc7-6d41-47b1-b123-5c958abe49e3", + "service-instance-name": "test_jhjhjjh", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503844473215", + "orchestration-status": "Active" + }, + { + "service-instance-id": "0ae4ff8e-7848-448e-9b4b-bcc43859dda8", + "service-instance-name": "test045453", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502111666406", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5bfa3a21-65b3-4047-8455-69af6e8451f2", + "service-instance-name": "HHHKJKJKJKJKJ", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502006983390", + "orchestration-status": "Active" + }, + { + "service-instance-id": "54515abc-20c2-4852-9f79-f54530b1c17b", + "service-instance-name": "XSXSXXSX", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502007073155", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/75e79664-98f1-4a77-bdce-4666d1151896", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "75e79664-98f1-4a77-bdce-4666d1151896" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "DFVDXVXBG" + } + ] + } + ] + } + }, + { + "service-instance-id": "12a73cfd-bf36-48fc-8a05-db90ea8d2218", + "service-instance-name": "vid-test-usp-1111", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502006502927", + "orchestration-status": "Active" + }, + { + "service-instance-id": "cca9ce39-80f7-432f-929b-497cc31448e8", + "service-instance-name": "test_0459495", + "service-type": "", + "service-role": "", + "model-invariant-id": "caed4dbb-922a-4942-be87-1f99d56d426a", + "model-version-id": "b77dae3c-ac5b-459c-8df5-1f1de6c59737", + "resource-version": "1502180467964", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7fa929ef-fe96-4515-bb77-f67b99492cc8", + "service-instance-name": "vid-test-111555333222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502093359964", + "orchestration-status": "Active" + }, + { + "service-instance-id": "145dc127-918e-46dc-beca-fe07cc00c62b", + "service-instance-name": "", + "service-type": "null", + "service-role": "null", + "model-invariant-id": "5c3bb706-95fc-4589-b40f-ed024673246a", + "model-version-id": "873e3f27-6561-47a6-80b0-0cd048d5cdfb", + "resource-version": "1502170966884", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ad57a79b-6078-4831-bdb0-fe59d49d83f6", + "service-instance-name": "vid-e2e-test_aai_service_2017-08-08_14-32-57-249", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502191981359", + "orchestration-status": "Active" + }, + { + "service-instance-id": "288bc6d7-03e6-45ee-b795-a419207fab73", + "service-instance-name": "shaytestvid2", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1502009457141", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7eaf20e0-b629-4d2c-bc12-b50128537550", + "service-instance-name": "vid-test-4422119955", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502093302607", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8c27adcf-343f-42c0-ace5-d4cab15517a8", + "service-instance-name": "DS-vUSP_08042017_Svc_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "e4f8b794-8057-4b1c-acf8-39cdcbc07dae", + "model-version-id": "79572855-8d8c-47db-a5fa-29cb28058f88", + "resource-version": "1501867425306", + "orchestration-status": "Active" + }, + { + "service-instance-id": "56c010cf-13e9-4436-9b95-25c90349bf3b", + "service-instance-name": "vid-test-22-5", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502093787135", + "orchestration-status": "Active" + }, + { + "service-instance-id": "17a94393-ec25-4080-b0f2-e79690c68edb", + "service-instance-name": "test_034034", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502112253718", + "orchestration-status": "Active" + }, + { + "service-instance-id": "0141fb08-f2e3-4a99-9541-e507060d88c0", + "service-instance-name": "test0450405", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502111949341", + "orchestration-status": "Active" + }, + { + "service-instance-id": "cb059250-e6b2-4080-8c3f-dd1a03038d89", + "service-instance-name": "test_0450450", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502783136139", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/829834f1-9d55-4da5-9cf2-c39a54569cc9", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "829834f1-9d55-4da5-9cf2-c39a54569cc9" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vnf_ar_112345" + } + ] + } + ] + } + }, + { + "service-instance-id": "fc73584c-b77a-4ba8-9ddf-c75fd7f2d4ae", + "service-instance-name": "test_9459945", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502805435726", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6f4b830c-e2b7-453c-b900-045fdd66db4e", + "service-instance-name": "vid-test-44444", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501436355937", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2f59588b-5423-4505-bb2c-b8505551f95a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2f59588b-5423-4505-bb2c-b8505551f95a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-test-vnf-44444" + } + ] + } + ] + } + }, + { + "service-instance-id": "362433ab-c1d2-4c99-af62-9421361870bc", + "service-instance-name": "lital3532", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505140621032", + "orchestration-status": "Active" + }, + { + "service-instance-id": "57aba319-3f37-4d9b-9101-ccfac8eed6ca", + "service-instance-name": "eylon1", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505139462227", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a6715839-446e-46f0-9ab3-e90580f21a13", + "service-instance-name": "eylon2", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505140170371", + "orchestration-status": "Active" + }, + { + "service-instance-id": "427229ed-b60f-4d77-8f14-62c4278d30ff", + "service-instance-name": "test_098765432", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505137712759", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bde46fed-f9f2-4e75-83ba-3b3c8830d5da", + "service-instance-name": "dfghgfgfgh", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1507031926132", + "orchestration-status": "Active" + }, + { + "service-instance-id": "951c09ef-3369-49b3-a23b-14d70e86330b", + "service-instance-name": "shanitets27", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1507546827502", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e8d9e0e3-7acc-4dba-8f16-e14437c416a6", + "service-instance-name": "CreateINstance_Service_VOIP_297772_nb5443_0610", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "5cfb7e85-6855-4227-ba36-6a52494e57e3", + "model-version-id": "aaeb9f9d-3e29-4ad9-9fb0-0478d53ad7fd", + "resource-version": "1507238826056", + "orchestration-status": "Active" + }, + { + "service-instance-id": "09e219ad-f71d-4dfa-bec3-f139a85c183b", + "service-instance-name": "ServicePnf_16", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1507470982716", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/09e219ad-f71d-4dfa-bec3-f139a85c183b/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "fc110d0d-72e0-4286-b2be-982b34dc6b29", + "service-instance-name": "jhhh88", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1507462936971", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ae3e6c21-8463-456e-a746-d9932c467e79", + "service-instance-name": "mdnsinstance", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "3987a2eb-5f35-45c1-b09a-74149b16bc50", + "model-version-id": "2ec43e3c-e287-47bb-9201-ad0c725f390a", + "resource-version": "1506527808858", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/6960a4f9-878b-4566-a24a-cbae1f2a1943", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "6960a4f9-878b-4566-a24a-cbae1f2a1943" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "instance" + } + ] + } + ] + } + }, + { + "service-instance-id": "4495bf72-1126-4e9f-8bc9-4f91debe632c", + "service-instance-name": "test_0999239459", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1506429664785", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f526e0c5-7dd0-4ff6-8e0d-e34513108c72", + "service-instance-name": "test_09990234446", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1506429789282", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2be69fe5-9e97-4382-8f40-f2a0feb9aa18", + "service-instance-name": "testoron8765", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1506430488921", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8446f630-0aa4-45b1-9192-9d22968fcc1c", + "service-instance-name": "inputmap_instance001", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "Production", + "model-invariant-id": "e3ee9d25-2c6b-4734-8a8c-b6e0dee11ca9", + "model-version-id": "97128a5f-e7e4-4ddd-b1eb-83a611ae1acb", + "resource-version": "1506518606738", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6d644284-8e45-43aa-8b7a-3a657eda552a", + "service-instance-name": "ServicePnf_7", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1506588010642", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/6d644284-8e45-43aa-8b7a-3a657eda552a/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "29f814ec-a2b8-41aa-b57c-e50d67bbcb45", + "service-instance-name": "test_02349394", + "service-type": "", + "service-role": "", + "model-invariant-id": "6fe9ad6f-6fa9-4b96-a91e-866a7f3c55a9", + "model-version-id": "be753bed-13e8-4e50-b431-b90dfd0f31b7", + "resource-version": "1505386639581", + "orchestration-status": "Active" + }, + { + "service-instance-id": "dcd856f5-69ea-42df-a8aa-d460a9aefe3e", + "service-instance-name": "hfhdgdgf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505386037801", + "orchestration-status": "Active" + }, + { + "service-instance-id": "69235f15-bef1-4a6a-9689-bf41a332068c", + "service-instance-name": "ffwfdwedewd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505385896496", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e720e20f-9997-4e42-a959-a5e4f20135fd", + "service-instance-name": "hjgfdsfrg", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1505387270709", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/2ee1ce2c-1284-426c-817f-2c94a366f298", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "2ee1ce2c-1284-426c-817f-2c94a366f298" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gsdsdfdff" + } + ] + } + ] + } + }, + { + "service-instance-id": "78c57f7f-9568-48e8-9308-4c1badc0a493", + "service-instance-name": "test_0458478576", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1505387592406", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9f521dd1-9dda-4340-8f34-5295154904eb", + "service-instance-name": "nf-role-ariel", + "service-type": "", + "service-role": "", + "model-invariant-id": "7325761d-fa5a-4a52-9a07-8bcf64d693ed", + "model-version-id": "8786e50b-84f9-4942-83ed-fd3624baacae", + "resource-version": "1505388118278", + "orchestration-status": "Active" + }, + { + "service-instance-id": "4d3d8367-955e-4907-8e39-d4fee5150622", + "service-instance-name": "jfdsghgtrg", + "service-type": "", + "service-role": "", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1505387180101", + "orchestration-status": "Active" + }, + { + "service-instance-id": "11d946a3-8fea-4ea1-9776-cc7be5be2f67", + "service-instance-name": "int_nfrole_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "cf3fa46a-e026-4171-9496-56f5e5184b38", + "model-version-id": "38ee5ebe-b9b8-4cc1-bd98-36db01bfc589", + "resource-version": "1505389411007", + "orchestration-status": "Active" + }, + { + "service-instance-id": "09e1de12-2b12-431c-abbe-cb786fba1d3e", + "service-instance-name": "test03490348", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1505389785708", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f415422d-5930-4f67-b51e-aafd3ccd92cd", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f415422d-5930-4f67-b51e-aafd3ccd92cd" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "sdfdfgdfg" + } + ] + } + ] + } + }, + { + "service-instance-id": "52eb8cee-e55b-4af7-b5cc-42dd5ef93ea1", + "service-instance-name": "nf_instanse1", + "service-type": "", + "service-role": "", + "model-invariant-id": "7325761d-fa5a-4a52-9a07-8bcf64d693ed", + "model-version-id": "8786e50b-84f9-4942-83ed-fd3624baacae", + "resource-version": "1505388525396", + "orchestration-status": "Active" + }, + { + "service-instance-id": "2c9939cd-1f42-4915-b8f8-a453ad0aa266", + "service-instance-name": "test_832438475", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505397144463", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5449cf97-53f8-44cc-b2c7-7c7d82491457", + "service-instance-name": "Eylon10", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505390455607", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ed820473-cc95-4f58-8d1f-50ee2892d88c", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ed820473-cc95-4f58-8d1f-50ee2892d88c" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "asf" + } + ] + } + ] + } + }, + { + "service-instance-id": "48488113-37bb-4f6f-9a34-cf181c4d24f5", + "service-instance-name": "qweqwewq", + "service-type": "", + "service-role": "", + "model-invariant-id": "6269c77a-a285-473a-be32-9e34a735ae68", + "model-version-id": "de762949-453c-43bd-8610-93eca50b0681", + "resource-version": "1505397289921", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ab418d45-067c-48d6-b5a5-d2be160bda8e", + "service-instance-name": "LitalZil", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505372137288", + "orchestration-status": "Active" + }, + { + "service-instance-id": "600c34b5-3e24-4672-bc6f-a5629cac5881", + "service-instance-name": "fsdfsdfsd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505333533674", + "orchestration-status": "Active" + }, + { + "service-instance-id": "d0451b90-7539-41ce-bc02-9726e07663e1", + "service-instance-name": "gfdgfdgdfgdf", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505386116614", + "orchestration-status": "Active" + }, + { + "service-instance-id": "9f6d1a31-8968-4409-a19e-5a4c5eb46a6e", + "service-instance-name": "testyw3445456", + "service-type": "", + "service-role": "", + "model-invariant-id": "fb3ab6f5-f776-46cd-93af-9f9ad71fc00e", + "model-version-id": "86e9e15f-9fe9-4817-b31f-5db74d131a2a", + "resource-version": "1505401600662", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e49cb1f8-c016-4502-8e59-87cb8bd5df35", + "service-instance-name": "gfdgdfgfd", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505386202387", + "orchestration-status": "Active" + }, + { + "service-instance-id": "ce7c3c47-e047-47a0-a19f-7811d36860e9", + "service-instance-name": "almog-test-008", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1503328194596", + "orchestration-status": "Active" + }, + { + "service-instance-id": "33d6f055-e2fb-4d14-9d66-64e99145e4ec", + "service-instance-name": "almog-test-006", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503328121547", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a71c5896-ae3b-4684-9fe0-0841e81eed3e", + "service-instance-name": "vid-test-666555444", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502823842315", + "orchestration-status": "Active" + }, + { + "service-instance-id": "dcd45af2-6336-469e-8636-9349bffbc350", + "service-instance-name": "test009877654336", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1503227771684", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/1fb26a31-60ea-4d3b-9c0a-f0d24ebf2604", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "1fb26a31-60ea-4d3b-9c0a-f0d24ebf2604" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test7765584" + } + ] + } + ] + } + }, + { + "service-instance-id": "a2a9e86a-2639-4d3d-8aae-24736c0aa5ac", + "service-instance-name": "test_94589485", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502954795174", + "orchestration-status": "Active" + }, + { + "service-instance-id": "8330708c-8d75-466a-9a95-4dd4c4b56863", + "service-instance-name": "almog-test-003", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1503327995951", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/33d676dc-285f-4e0c-b8b7-4b3f51c63fce", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "33d676dc-285f-4e0c-b8b7-4b3f51c63fce" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "niin" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9b589699-f43a-4777-97ed-1e374965c3d6", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9b589699-f43a-4777-97ed-1e374965c3d6" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fsdfcsdfsdsd" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/20783cde-b631-47b3-bb90-e47022bf1f34", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "20783cde-b631-47b3-bb90-e47022bf1f34" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dsfsdfsdfsdfsdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "ed710dba-0d3d-4278-a30a-b73da2a64ff9", + "service-instance-name": "vid-e2e-test_service_2017-08-21_19-35-51-585", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503333361349", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b1112b0b-c915-46c3-b060-c3c511081e4c", + "service-instance-name": "test-almog-2", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1503325628895", + "orchestration-status": "Active" + }, + { + "service-instance-id": "535af37d-da02-48f4-abc5-00a6cd830d4e", + "service-instance-name": "LitalS", + "service-type": "", + "service-role": "", + "model-invariant-id": "35340388-0b82-4d3a-823d-cbddf842be52", + "model-version-id": "4e799efd-fd78-444d-bc25-4a3cde2f8cb0", + "resource-version": "1503326460122", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/68db93ea-d1be-4de4-98a8-0188d162feba", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "68db93ea-d1be-4de4-98a8-0188d162feba" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "LitalVNF" + } + ] + } + ] + } + }, + { + "service-instance-id": "dad637e9-d7b3-4889-a5c6-b55b3ee60640", + "service-instance-name": "tet-8765367", + "service-type": "", + "service-role": "", + "model-invariant-id": "1cc41b64-5c12-4d51-bac9-448e963bd81d", + "model-version-id": "91f79100-6450-4078-80d7-531427b4fe74", + "resource-version": "1503224652570", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bc2300a4-bc3d-4bca-95ac-e34c1885bc44", + "service-instance-name": "rrrrrrrrr", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1503229518489", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/1c9fe7ac-e24e-4f81-ac9a-cf77e16f6222", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "1c9fe7ac-e24e-4f81-ac9a-cf77e16f6222" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "eeeee" + } + ] + } + ] + } + }, + { + "service-instance-id": "9d164ebb-60ee-4d1e-b46a-7769309e5922", + "service-instance-name": "testvnf098655", + "service-type": "", + "service-role": "", + "model-invariant-id": "1cc41b64-5c12-4d51-bac9-448e963bd81d", + "model-version-id": "91f79100-6450-4078-80d7-531427b4fe74", + "resource-version": "1503225090431", + "orchestration-status": "Active" + }, + { + "service-instance-id": "eb4b08b2-6893-4c45-a0a4-5310e2b840e6", + "service-instance-name": "test-almog", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1503241565609", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/68681da7-0847-4a07-b4e6-e7db863513d8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "68681da7-0847-4a07-b4e6-e7db863513d8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "almog" + } + ] + } + ] + } + }, + { + "service-instance-id": "f5406f25-02d5-4857-b781-25a17f3889b3", + "service-instance-name": "Service_VOIP_297772_DS_0822_01", + "service-type": "", + "service-role": "", + "model-invariant-id": "5cfb7e85-6855-4227-ba36-6a52494e57e3", + "model-version-id": "aaeb9f9d-3e29-4ad9-9fb0-0478d53ad7fd", + "resource-version": "1503424302015", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c1996c46-4853-45a1-b14d-9d92fb3907c7", + "service-instance-name": "test9459459", + "service-type": "", + "service-role": "", + "model-invariant-id": "75eddbdd-9c15-4778-a058-e4e6129ef2f6", + "model-version-id": "42221f38-7795-4692-8876-082c2fe32ca9", + "resource-version": "1502291939948", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/269cc52e-aafa-4d29-917d-9a7ea03ad311", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "269cc52e-aafa-4d29-917d-9a7ea03ad311" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_03403402" + } + ] + } + ] + } + }, + { + "service-instance-id": "5d523308-d5e1-4cfc-baba-ea7df1f37e25", + "service-instance-name": "uhik", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502291344737", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6f9f86b0-ef30-45a6-b92b-df246a5c6168", + "service-instance-name": "mnbkjhgfddsa", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502275995518", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/7c57a376-ac2e-4411-9015-58efd27621e7", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "7c57a376-ac2e-4411-9015-58efd27621e7" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "poiouuycgf" + } + ] + } + ] + } + }, + { + "service-instance-id": "627f59fe-9e7a-4794-a227-2c2ce8f4cf27", + "service-instance-name": "vid-test-4321", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502291742644", + "orchestration-status": "Active" + }, + { + "service-instance-id": "361bb8aa-e5c7-4c6c-938f-4ea61cd07ed3", + "service-instance-name": "ghfghfgh", + "service-type": "", + "service-role": "", + "model-invariant-id": "caed4dbb-922a-4942-be87-1f99d56d426a", + "model-version-id": "b77dae3c-ac5b-459c-8df5-1f1de6c59737", + "resource-version": "1502293787925", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a5ae7dcf-ca04-4f47-8084-94e7a1b126fd", + "service-instance-name": "dfgndfgnsdfgbns", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502276464647", + "orchestration-status": "Active" + }, + { + "service-instance-id": "634bc44e-f64f-4c0f-ade3-8990be885183", + "service-instance-name": "test_03403", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502290081344", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b8453503-d826-47d1-8a23-332dbb058ee0", + "service-instance-name": "ertherht", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1502357187720", + "orchestration-status": "Active" + }, + { + "service-instance-id": "12094723-866e-450f-9825-8d0e114d1cc4", + "service-instance-name": "test_958886", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "5b174112-cea4-4a36-b540-853b9d0548fc", + "resource-version": "1502356939859", + "orchestration-status": "Active" + }, + { + "service-instance-id": "bd510a5f-bbd0-4d06-b427-4d0230b4def7", + "service-instance-name": "test_Vl_instance1", + "service-type": "", + "service-role": "", + "model-invariant-id": "9f5ed6d5-c960-4903-9625-4ccb6ba9c63a", + "model-version-id": "25447dd8-4154-4146-b57b-bc3d82e1a670", + "resource-version": "1502288021617", + "orchestration-status": "Active" + }, + { + "service-instance-id": "e62bf002-1de0-4efb-9b5a-7f48ec5400f3", + "service-instance-name": "test_056056", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502280371418", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f0b5d0a8-0fd4-4965-9c59-9eee67024945", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f0b5d0a8-0fd4-4965-9c59-9eee67024945" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_0404505" + } + ] + } + ] + } + }, + { + "service-instance-id": "16626bff-21ad-4a2b-820e-1894d06be31c", + "service-instance-name": "test0560560", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502293923490", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6d11dba9-8817-425a-b379-ce55e28ff63a", + "service-instance-name": "newserviceshay2", + "service-type": "", + "service-role": "", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8072abd2-2ef6-475f-91a1-000121d37f7b", + "resource-version": "1502294644240", + "orchestration-status": "Active" + }, + { + "service-instance-id": "f001f409-8cd7-4e5a-b104-a193d0e596ab", + "service-instance-name": "test_0450450777", + "service-type": "", + "service-role": "", + "model-invariant-id": "b1ed0d58-0700-4631-be18-d2f1e527d637", + "model-version-id": "849a6347-cca7-4ae6-b5c2-7d41e9f6d9b2", + "resource-version": "1502294904445", + "orchestration-status": "Active" + }, + { + "service-instance-id": "5979493f-1712-445b-953b-7f9b9a99a314", + "service-instance-name": "mnb", + "service-type": "", + "service-role": "", + "model-invariant-id": "caed4dbb-922a-4942-be87-1f99d56d426a", + "model-version-id": "b77dae3c-ac5b-459c-8df5-1f1de6c59737", + "resource-version": "1502278737864", + "orchestration-status": "Active" + }, + { + "service-instance-id": "47f70a06-7846-44ff-9488-2d60536baf72", + "service-instance-name": "dfghdfghsdfg", + "service-type": "", + "service-role": "", + "model-invariant-id": "d2103eaa-8cc7-4422-ad67-1ce582af0097", + "model-version-id": "5801fed3-b6db-4969-abb4-d1171c4c3202", + "resource-version": "1502278659676", + "orchestration-status": "Active" + }, + { + "service-instance-id": "59eb28d6-ad0e-43d3-976d-e3b36c95c073", + "service-instance-name": "jhgfegt", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508758028801", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/73185f03-5531-444d-bc03-fa13f924d66a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "73185f03-5531-444d-bc03-fa13f924d66a" + } + ] + } + ] + } + }, + { + "service-instance-id": "828696d8-1cc6-4d81-b744-d18d6fa7430a", + "service-instance-name": "test04350495", + "service-type": "test", + "service-role": "test", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "0ebfb706-a846-4715-b0d0-fe0be09458d7", + "model-version-id": "fa06db34-f8e3-42d9-8e51-a76816eb0f0d", + "resource-version": "1508676546378", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "8b19fe19-65a6-4f0a-9362-54caf7b130c8", + "service-instance-name": "trewtr", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "Production", + "model-invariant-id": "2fa617d0-50b3-4d74-861d-4b39301acd2c", + "model-version-id": "ae5d24f4-f602-46d0-9a62-ed3f28928b50", + "resource-version": "1508656964072", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/5dbe5092-65fb-453d-87f6-e8715668692f", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "5dbe5092-65fb-453d-87f6-e8715668692f" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bgtrfv" + } + ] + } + ] + } + }, + { + "service-instance-id": "96a61cec-fec3-4e23-b370-707f74aa7025", + "service-instance-name": "testyyyo", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508676983145", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/b8a07f26-7a5e-428e-9132-eaaef4377e7a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "b8a07f26-7a5e-428e-9132-eaaef4377e7a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfgdfytr" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/edefbdbc-5d41-44ca-a518-10ade7d0d7a8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "edefbdbc-5d41-44ca-a518-10ade7d0d7a8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "gfdsf55" + } + ] + } + ] + } + }, + { + "service-instance-id": "ab4148e7-ad48-424f-b3ba-c60620f572e2", + "service-instance-name": "liz", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "db09cb43-cc92-4070-8187-f2812bdf6676", + "model-version-id": "827e118a-e9e0-4d8e-85ed-72cf22bd0ca8", + "resource-version": "1508674141999", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p10", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p10" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + } + ] + } + }, + { + "service-instance-id": "b6fbe7c9-0acb-46f0-9cef-157c30d55e07", + "service-instance-name": "dfasf", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "Production", + "model-invariant-id": "2fa617d0-50b3-4d74-861d-4b39301acd2c", + "model-version-id": "ae5d24f4-f602-46d0-9a62-ed3f28928b50", + "resource-version": "1508656225209", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/253b1c2a-5922-4629-aec6-61d22e238a5c", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "253b1c2a-5922-4629-aec6-61d22e238a5c" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fce90274-4d29-41ad-a559-e88e12b2c177", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fce90274-4d29-41ad-a559-e88e12b2c177" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "kjhgfd87" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8a5fee10-994c-4dfa-a416-79a58c62bd80", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "8a5fee10-994c-4dfa-a416-79a58c62bd80" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "testou00096" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/aef9b371-3efa-48c2-918b-05c9e3ac4aec", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "aef9b371-3efa-48c2-918b-05c9e3ac4aec" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_04594959ccv" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4a2db0c5-db7e-4f25-9623-9d52d5e457d1", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4a2db0c5-db7e-4f25-9623-9d52d5e457d1" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ghfd_test_045" + } + ] + } + ] + } + }, + { + "service-instance-id": "bd3321bb-3ad6-4222-8520-4eb9c2112c70", + "service-instance-name": "ytititi", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "87447b67-29e3-4244-8038-990a8c70259a", + "model-version-id": "c947a4f0-1a84-4380-8939-9adf54005eb4", + "resource-version": "1508673680395", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f0aac2f3-2840-48ad-9d35-905416c6eea3", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f0aac2f3-2840-48ad-9d35-905416c6eea3" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "xdgsdg" + } + ] + } + ] + } + }, + { + "service-instance-id": "8854e480-565c-4533-8b49-9844c55974ef", + "service-instance-name": "test_0234354", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508838123102", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/80bb7c9e-4e3d-4b10-8291-7e85a1347370", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "80bb7c9e-4e3d-4b10-8291-7e85a1347370" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/f59bce13-0ba9-4996-a5f2-0ab5001f7915", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "f59bce13-0ba9-4996-a5f2-0ab5001f7915" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "test_03403030dk" + } + ] + } + ] + } + }, + { + "service-instance-id": "f3891ad3-dfc2-48d9-ad79-d3afcb14e499", + "service-instance-name": "testservinputs098", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "74b2fa72-e3b9-4942-8448-983a4b50891a", + "model-version-id": "8c16d416-f183-4f2e-8a05-48a7ee0738f7", + "resource-version": "1508835067923", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/DFW", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "DFW" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/d61e6f2d-12fa-4cc2-91df-7c244011d6fc", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc" + } + ] + } + ] + } + }, + { + "service-instance-id": "82d046fb-036c-412a-8926-07c16622288f", + "service-instance-name": "vid-e2e-test_service_2017-07-26_11-00-33-208", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501056046040", + "orchestration-status": "Active" + }, + { + "service-instance-id": "28adfa51-6d7f-4463-a975-f69e9bc9c3fa", + "service-instance-name": "vid-e2e-test_service_2017-07-26_16-56-30-658", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501077401209", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b368869f-9e69-418a-be61-9c53b33d09e8", + "service-instance-name": "vid-e2e-test_service_2017-07-26_21-55-13-231", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501095318054", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/22c1b09c-4828-4029-9da3-75c0b815a681", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "22c1b09c-4828-4029-9da3-75c0b815a681" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test-vnf_2017-07-26_21-55-43-391" + } + ] + } + ] + } + }, + { + "service-instance-id": "f11e491f-31a4-4fce-9a98-37cc93253249", + "service-instance-name": "vid-e2e-test_service_2017-07-26_22-00-54-093", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501095660896", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/d8b18065-f378-4801-85f0-a263c66e9148", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "d8b18065-f378-4801-85f0-a263c66e9148" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test-vnf_2017-07-26_22-01-26-312" + } + ] + } + ] + } + }, + { + "service-instance-id": "30603d2b-570a-4ed3-8146-c5ff5608b430", + "service-instance-name": "vid-e2e-test_service_2017-07-26_16-58-52-390", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501077541635", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/a1a76b1d-1c3a-4239-8341-257958944dce", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "a1a76b1d-1c3a-4239-8341-257958944dce" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test_vnf_2017-07-26_16-59-23-041" + } + ] + } + ] + } + }, + { + "service-instance-id": "37d6cde5-f7b7-446e-b161-b835a7acc9a5", + "service-instance-name": "vid-e2e-test_service_2017-07-26_22-12-38-071", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501096370654", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ac25d056-e0ee-4d8e-b3d3-f26640562384", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ac25d056-e0ee-4d8e-b3d3-f26640562384" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test-vnf_2017-07-26_22-13-18-804" + } + ] + } + ] + } + }, + { + "service-instance-id": "65fa3122-5000-4aa1-9707-696825cf6bee", + "service-instance-name": "vid-e2e-test_service_2017-07-26_23-01-31-327", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501099298353", + "orchestration-status": "Active" + }, + { + "service-instance-id": "599b2af1-92bc-4c99-be63-0f027897b643", + "service-instance-name": "vid-e2e-test_service_2017-07-26_21-03-28-542", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501092216356", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/a4401c1c-505d-4287-a0cb-d2f079bcca4a", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "a4401c1c-505d-4287-a0cb-d2f079bcca4a" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "vid-e2e-test_vnf_2017-07-26_21-04-00-755" + } + ] + } + ] + } + }, + { + "service-instance-id": "649b92a1-d599-4abb-ae22-9d79ab15d39d", + "service-instance-name": "testrttert", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499866339532", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c64642d2-d014-47bc-83f1-4e4854a20fb5", + "service-instance-name": "test675refg", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499868496430", + "orchestration-status": "Active" + }, + { + "service-instance-id": "935400cb-3055-41e6-bea9-6fa25c470fe8", + "service-instance-name": "vid-e2e-test_service_2017-09-10_10-39-59-713", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505029212112", + "orchestration-status": "Active" + }, + { + "service-instance-id": "1d61b1be-a7a5-4f01-b980-d83702cb1c81", + "service-instance-name": "vid-e2e-test_aai_service_2017-09-10_11-33-40-608", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1505032423917", + "orchestration-status": "Active" + }, + { + "service-instance-id": "cfd3bc73-45b6-486e-89ed-ecd77d6c28d4", + "service-instance-name": "rtyrtyu", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1504686208504", + "orchestration-status": "Active" + }, + { + "service-instance-id": "b5c0cf11-5cd5-4ac0-9cf3-f794b7d2e9e7", + "service-instance-name": "eylonTest2", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a6a00927-7b10-48ed-bed4-0c9f5cf3fe1b", + "model-version-id": "775fdee6-22a9-4243-9a35-573a67df5fa4", + "resource-version": "1509264230953", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p3", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p3" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/f8494620-44a3-464b-b577-7a2a1113390d", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "f8494620-44a3-464b-b577-7a2a1113390d" + } + ] + } + ] + } + }, + { + "service-instance-id": "e96c6246-59b8-44f1-992a-00dcc9715403", + "service-instance-name": "eylonTest1", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a6a00927-7b10-48ed-bed4-0c9f5cf3fe1b", + "model-version-id": "775fdee6-22a9-4243-9a35-573a67df5fa4", + "resource-version": "1509264071228", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p6", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p6" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/f8494620-44a3-464b-b577-7a2a1113390d", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "f8494620-44a3-464b-b577-7a2a1113390d" + } + ] + } + ] + } + }, + { + "service-instance-id": "3b271daa-7dae-4e7e-8b7c-d4938752d53c", + "service-instance-name": "vik_flexware", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "951fd067-b3c1-41e4-8d1d-54223e37caa6", + "model-version-id": "5b20f93d-042f-4b44-ba8a-8428877975d0", + "resource-version": "1510067918641", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/Nimbus", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "Nimbus" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2356a43d-ed56-43b6-aefc-8391b82588c9", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2356a43d-ed56-43b6-aefc-8391b82588c9" + } + ] + } + ] + } + }, + { + "service-instance-id": "037157ae-4edb-4885-af7a-57ae1087e4f0", + "service-instance-name": "ServicePnf_25", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1509378462768", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/037157ae-4edb-4885-af7a-57ae1087e4f0/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "c363d78f-2cfd-4095-a90e-c5412133e46f", + "service-instance-name": "test_034599599sdv", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508411127918", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + } + ] + } + }, + { + "service-instance-id": "f04f45fe-0563-4b41-affe-4f71591f330a", + "service-instance-name": "testmac_0345095", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d27e42cf-087e-4d31-88ac-6c4b7585f800", + "model-version-id": "4d71990b-d8ad-4510-ac61-496288d9078e", + "resource-version": "1508413319691", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3e1d8406-881c-40f1-ba47-185f8776aa82", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3e1d8406-881c-40f1-ba47-185f8776aa82" + } + ] + } + ] + } + }, + { + "service-instance-id": "e6f32432-c7a7-4d84-8596-13b931bebed9", + "service-instance-name": "Bracha1234", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508418034736", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p2", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p2" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/edfccd7f-a8d6-4b2d-b87a-4344d868e53c", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "edfccd7f-a8d6-4b2d-b87a-4344d868e53c" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "portal" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/4d73cfb9-3122-47c2-b3dc-9f944bea9134", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "4d73cfb9-3122-47c2-b3dc-9f944bea9134" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "bracha12345" + } + ] + } + ] + } + }, + { + "service-instance-id": "f5e4918e-a0d7-4c50-9474-240edf63bd1d", + "service-instance-name": "triusyt7584", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "a6a00927-7b10-48ed-bed4-0c9f5cf3fe1b", + "model-version-id": "775fdee6-22a9-4243-9a35-573a67df5fa4", + "resource-version": "1508412580537", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/3f592a6f-459b-435e-b0d4-59959ab1d385", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "3f592a6f-459b-435e-b0d4-59959ab1d385" + } + ] + } + ] + } + }, + { + "service-instance-id": "0a222d51-2d02-4d19-8926-0cc04b023212", + "service-instance-name": "ServicePnf_17", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "43596836-ae36-4608-a987-6608ede10dac", + "model-version-id": "7fe0b7d7-8f20-4981-a4df-1fc3318defcc", + "resource-version": "1508076064866", + "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/0a222d51-2d02-4d19-8926-0cc04b023212/service-data/service-topology/", + "orchestration-status": "Active" + }, + { + "service-instance-id": "867f48cb-f5fa-499c-b84d-f33533b2978d", + "service-instance-name": "fffssssaaaeeeewww", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508078868301", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/x1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "x1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/z1", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "z1" + } + ] + } + ] + } + }, + { + "service-instance-id": "257feb6b-ad89-4001-bb9d-54cfe8add8f6", + "service-instance-name": "vid-e2e-test_service_2017-10-15_17-42-19-283", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "418f32e5-484a-4073-8fa9-fab7d497459f", + "resource-version": "1508078514218", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/x1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "x1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/z1", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "z1" + } + ] + } + ] + } + }, + { + "service-instance-id": "153635ac-4bbb-4c12-8f54-b23c29f1af01", + "service-instance-name": "vid-test-2224443", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1501674964224", + "orchestration-status": "Active" + }, + { + "service-instance-id": "145d3863-b44c-40cf-addd-45f42a9522ad", + "service-instance-name": "vid-test-444333322", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501665641034", + "orchestration-status": "Active" + }, + { + "service-instance-id": "6798f1fa-fb5c-4638-b1ff-b7b66052e71d", + "service-instance-name": "vid-test-creation-3333", + "service-type": "", + "service-role": "", + "model-invariant-id": "f27484eb-7ee8-40d7-b2ff-7fd5a9133a10", + "model-version-id": "101262c3-74b1-4632-8b60-977770b651d3", + "resource-version": "1501672969683", + "orchestration-status": "Active" + }, + { + "service-instance-id": "67b2bb65-fbee-44dc-a144-88a8b5084d35", + "service-instance-name": "vid-test-333222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "c079d859-4d81-4add-a9c3-94551f96e2b0", + "resource-version": "1501663697504", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7a9fc646-39a4-4f18-afc8-1be9560d4535", + "service-instance-name": "vid-test-3333222", + "service-type": "", + "service-role": "", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1501675189009", + "orchestration-status": "Active" + }, + { + "service-instance-id": "101e3ef2-8650-11e6-ae22-56b6b6499611", + "resource-version": "1494001848458", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/ctpx0001v", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "ctpx0001v" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "ctpx0001v" + } + ] + } + ] + } + }, + { + "service-instance-id": "c505ba4c-6333-4911-ac60-5736f36ff036", + "service-instance-name": "SlowAAI", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1509613326963", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/p80", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "p80" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/73185f03-5531-444d-bc03-fa13f924d66a", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "73185f03-5531-444d-bc03-fa13f924d66a" + } + ] + } + ] + } + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/092eb9e8e4b7412e8787dd091bc58e86", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "AAIAIC25" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "092eb9e8e4b7412e8787dd091bc58e86" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "USP-SIP-IC-24335-T-01" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/bae71557c5bb4d5aac6743a4e5f1d054", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "bae71557c5bb4d5aac6743a4e5f1d054" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-testgamma" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/229bcdc6eaeb4ca59d55221141d01f8e", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "229bcdc6eaeb4ca59d55221141d01f8e" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-STTest2" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/1178612d2b394be4834ad77f567c0af2", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "1178612d2b394be4834ad77f567c0af2" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-SSPtestcustome" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/19c5ade915eb461e8af52fb2fd8cd1f2", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "19c5ade915eb461e8af52fb2fd8cd1f2" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-UncheckedEcopm" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/de007636e25249238447264a988a927b", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "de007636e25249238447264a988a927b" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-dfsdf" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/62f29b3613634ca6a3065cbe0e020c44", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "62f29b3613634ca6a3065cbe0e020c44" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-D-Multiservices1" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/649289e30d3244e0b48098114d63c2aa", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "649289e30d3244e0b48098114d63c2aa" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-SSPST66" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/3f21eeea6c2c486bba31dab816c05a32", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "3f21eeea6c2c486bba31dab816c05a32" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-ASSPST47" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/f60ce21d3ee6427586cff0d22b03b773", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "f60ce21d3ee6427586cff0d22b03b773" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg67246" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/8774659e425f479895ae091bb5d46560", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "8774659e425f479895ae091bb5d46560" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg68359" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/624eb554b0d147c19ff8885341760481", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "624eb554b0d147c19ff8885341760481" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-D-iftach" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/214f55f5fc414c678059c383b03e4962", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "214f55f5fc414c678059c383b03e4962" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg612401" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/c90666c291664841bb98e4d981ff1db5", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "c90666c291664841bb98e4d981ff1db5" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg621340" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ce5b6bc5c7b348e1bf4b91ac9a174278", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ce5b6bc5c7b348e1bf4b91ac9a174278" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "sspjg621351cloned" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/b386b768a3f24c8e953abbe0b3488c02", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "b386b768a3f24c8e953abbe0b3488c02" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-D-eteancomp" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/dc6c4dbfd225474e9deaadd34968646c", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "dc6c4dbfd225474e9deaadd34968646c" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-T-SPFET" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/02cb5030e9914aa4be120bd9ed1e19eb", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "02cb5030e9914aa4be120bd9ed1e19eb" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-eeweww" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/f2f3830e4c984d45bcd00e1a04158a79", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "f2f3830e4c984d45bcd00e1a04158a79" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-spjg61909" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/05b91bd5137f4929878edd965755c06d", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "05b91bd5137f4929878edd965755c06d" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-D-sspjg621512cloned" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/7002fbe8482d4a989ddf445b1ce336e0", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "7002fbe8482d4a989ddf445b1ce336e0" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-vdr" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/4008522be43741dcb1f5422022a2aa0b", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "4008522be43741dcb1f5422022a2aa0b" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-D-ssasa" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/f44e2e96a1b6476abfda2fa407b00169", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "f44e2e96a1b6476abfda2fa407b00169" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-D-PFNPT" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/b69a52bec8a84669a37a1e8b72708be7", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "b69a52bec8a84669a37a1e8b72708be7" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-vdre" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/fac7d9fd56154caeb9332202dcf2969f", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "fac7d9fd56154caeb9332202dcf2969f" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-NONPODECOMP" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/cb42a77ff45b48a8b8deb83bb64acc74", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "cb42a77ff45b48a8b8deb83bb64acc74" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "ro-T11" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/fa45ca53c80b492fa8be5477cd84fc2b", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "fa45ca53c80b492fa8be5477cd84fc2b" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "ro-T112" + } + ] + } + ] + } + }, + { + "service-type": "TSBC", + "resource-version": "1494001891362", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "c0edefb0-2505-4a34-85cc-96c4cd5a121d", + "service-instance-name": "test-343432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500370094198", + "orchestration-status": "Active" + }, + { + "service-instance-id": "7cb54908-f3fb-46b9-b547-d1e670ea95b2", + "service-instance-name": "test765445g", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499868690949", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fbb52a16-2c57-4212-802f-32dbba2204f2", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fbb52a16-2c57-4212-802f-32dbba2204f2" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fdfdfdf" + } + ] + } + ] + } + }, + { + "service-instance-id": "8e953267-4cd8-45ec-ae7f-bdeb018656c0", + "service-instance-name": "a1", + "service-type": "service_type_shani", + "service-role": "service_role_shani", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "340f3957-ff0a-4503-866d-a34fd1b97450", + "model-version-id": "ee2d8783-8495-4fb1-9553-6cdbd2dd3a50", + "resource-version": "1509355912484", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2356a43d-ed56-43b6-aefc-8391b82588c9", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2356a43d-ed56-43b6-aefc-8391b82588c9" + } + ] + } + ] + } + }, + { + "service-instance-id": "e2ecfd33-b5d3-4a7b-85ba-1a709b26b66c", + "service-instance-name": "a3", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d5937aa1-37fb-4ed0-8c30-5144b89a64ae", + "model-version-id": "06ac9663-54cf-4c77-b926-6e8757cf6380", + "resource-version": "1509356358573", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/589fe0db-26c4-45e5-9f4e-a246c74fce76", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "589fe0db-26c4-45e5-9f4e-a246c74fce76" + } + ] + }, + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9c925d7e-1a94-4784-a45b-408c8cc96fa8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9c925d7e-1a94-4784-a45b-408c8cc96fa8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfdsfds" + } + ] + } + ] + } + }, + { + "service-instance-id": "7dfef88f-fec0-421f-90d4-91eea35a5813", + "service-instance-name": "shanitest", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "d7b48529-6ae2-49f0-8633-b29e7cd4d4ce", + "model-version-id": "44671b15-83dd-4db7-a36e-dfada3eaa2f9", + "resource-version": "1508144995828", + "orchestration-status": "Active" + }, + { + "service-instance-id": "a46ca55c-e9bd-4e68-9c49-c98933240218", + "service-instance-name": "si_failtest", + "model-invariant-id": "732263bd-0655-428d-a347-d65676d1a949", + "resource-version": "1494001997513" + }, + { + "service-instance-id": "e165f1af-a3cf-4323-8cd2-607acb55baa9", + "service-instance-name": "first_macro_shani", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1508071197869", + "orchestration-status": "Active" + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ece35e4a79d547d193451ac38d700046", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ece35e4a79d547d193451ac38d700046" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-sspstMAIL" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/23cbbd1872864ea08aa53ade25d34172", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "23cbbd1872864ea08aa53ade25d34172" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-rtertet" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ded2432abb5a4100801331d07787afc2", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ded2432abb5a4100801331d07787afc2" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-D-SSPecompFlvr2" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ad5aab08f5f7435e9983311af543f311", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ad5aab08f5f7435e9983311af543f311" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-PODECOMP" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/8071dc66981c4294b05483a1cddac801", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "8071dc66981c4294b05483a1cddac801" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-X-ecompPODprivate" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/036f769581904ca08ead1415c22b9ec0", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "036f769581904ca08ead1415c22b9ec0" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-PODECOMPCLONE" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/c2475a36c5e04f12a21593849ae83420", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "c2475a36c5e04f12a21593849ae83420" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-X-hope" + } + ] + } + ] + } + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/aai_named_query_for_view_edit.json b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_named_query_for_view_edit.json new file mode 100644 index 000000000..aa728d174 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/aai_named_query_for_view_edit.json @@ -0,0 +1,383 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/aai/v11/search/named-query", + "body": { + "instance-filters":{ + "instance-filter":[ + { + "customer":{ + "global-customer-id":"e433710f-9217-458d-a79d-1c7aff376d89" + }, + "service-instance":{ + "service-instance-id":"3f93c7cb-2fd0-4557-9514-e189b7b04f9d" + }, + "service-subscription":{ + "service-type":"VIRTUAL USP" + } + } + ] + }, + "query-parameters":{ + "named-query":{ + "named-query-uuid":"0367193e-c785-4d5f-9cb8-7bc89dc9ddb7" + } + } + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "inventory-response-item":[ + { + "model-name":"1707vidnf", + "service-instance":{ + "service-instance-id":"3f93c7cb-2fd0-4557-9514-e189b7b04f9d", + "service-instance-name":"vid-test-444" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"c015cc0f-0f37-4488-aabf-53795fd93cd3", + "vnf-name":"fsd", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1502299355826", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"null", + "nf-function":"null", + "nf-role":"null", + "nf-naming-code":"null" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "volume-group":{ + "volume-group-id":"d9db0900-31f6-4880-8658-8c996c6123b4", + "volume-group-name":"f", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508048984071" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_base_template_v3_0..module-0", + "vf-module":{ + "vf-module-id":"f2805715-e24f-4c8a-9eb3-6c618da7691d", + "vf-module-name":"aa", + "orchestration-status":"PendingCreate", + "is-base-vf-module":true, + "resource-version":"1504770843380", + "model-invariant-id":"df35ebf5-880b-4052-b4dc-5fbf38a423ca", + "model-version-id":"bbf63386-42ec-4cae-a6a1-a8dade4e09e1", + "model-customization-id":"56f23f2a-de4b-4f72-a51c-439970350885", + "module-index":0 + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"f91515e5-cf8d-4abf-aacc-5bc5c5a47f09", + "vf-module-name":"gg", + "orchestration-status":"PendingCreate", + "is-base-vf-module":false, + "resource-version":"1504694876599", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":1 + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"a231a99c-7e75-4d6d-a0fb-5c7d26f30f77", + "vf-module-name":"my_vfModule", + "orchestration-status":"pending-delete", + "is-base-vf-module":false, + "resource-version":"1505044772033", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":0 + }, + "extra-properties":{ + + } + } + ] + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"0846287b-65bf-45a6-88f6-6a1af4149fac", + "vnf-name":"kjkjk", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504008534044", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + }, + "inventory-response-items":{ + "inventory-response-item":[ + { + "volume-group":{ + "volume-group-id":"973cb0a6-f0b5-4a45-b995-db265bda182c", + "volume-group-name":"fdgfg", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508413877324" + }, + "extra-properties":{ + + } + }, + { + "volume-group":{ + "volume-group-id":"09203a8b-29e7-4e76-8dd0-565f6a081f82", + "volume-group-name":"fdgfd", + "heat-stack-id":"", + "vnf-type":"1707vidnf/null", + "orchestration-status":"Pending", + "vf-module-model-customization-id":"a06b0a2b-0cb5-401c-bf29-b64bb6a114b9", + "resource-version":"1508413828948" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4", + "vf-module":{ + "vf-module-id":"a9b70ac0-5917-4203-a308-0e6920e6d09b", + "vf-module-name":"vf_module2", + "orchestration-status":"PendingCreate", + "is-base-vf-module":false, + "resource-version":"1504694397912", + "model-invariant-id":"eb5a1e09-7f46-4f1c-ab7a-b017bad95261", + "model-version-id":"fa1c8558-006c-4fb6-82f2-4fc0646d6b06", + "model-customization-id":"222bd8f2-341d-4419-aa0e-98398fa34050", + "module-index":0 + }, + "extra-properties":{ + + } + } + ] + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"9908b762-136f-4b1f-8eb4-ef670ef58bb4", + "vnf-name":"uiui", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"vHNGWaas", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504516218649", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"543931f5-e50e-45a2-a69f-ab727e4c7f2f", + "vnf-name":"sdfsdfdsf", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"LRSI-OSPF", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1506509961062", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"25e84884-22d5-44c9-8212-cb459f63e0ba", + "vnf-name":"sdada", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"VIPRaaS", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1506509479125", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"013fb0ba-977b-496c-9faa-7f8e5f083eec", + "vnf-name":"gvb", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1508048678134", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"06914296-cb46-4b62-9453-329a706a6cbb", + "vnf-name":"lkllll", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504507099829", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"c55da606-cf38-42c7-bc3c-be8e23b19299", + "vnf-name":"ss", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1508048827342", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + }, + { + "model-name":"VID-PCRF-05-15-17", + "generic-vnf":{ + "vnf-id":"27cc0914-70be-453e-b552-3df6b1d6cda9", + "vnf-name":"yh", + "vnf-type":"1707vidnf/VID-PCRF-05-15-17 0", + "service-id":"db171b8f-115c-4992-a2e3-ee04cae357e0", + "prov-status":"PREPROV", + "orchestration-status":"Created", + "in-maint":false, + "is-closed-loop-disabled":false, + "resource-version":"1504507324472", + "model-invariant-id":"af94e0b5-454c-4fd8-b62b-ef27632afd22", + "model-version-id":"3d2657a7-6816-4662-93f0-26e315611336", + "model-customization-id":"d279139c-4b85-48ff-8ac4-9b83a6fc6da7", + "nf-type":"", + "nf-function":"", + "nf-role":"", + "nf-naming-code":"" + }, + "extra-properties":{ + + } + } + ] + } + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/deactivate_service_instance.json b/vid-ext-services-simulator/src/main/resources/preset_registration/deactivate_service_instance.json new file mode 100644 index 000000000..45303fdd7 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/deactivate_service_instance.json @@ -0,0 +1,10 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/ecomp/mso/infra/serviceInstances/v6/f36f5734-e9df-4fbf-9f35-61be13f028a1/deactivate" + } , + "simulatorResponse": { + "responseCode": 202, + "body": "{\"requestReferences\": {\"instanceId\": \"f36f5734-e9df-4fbf-9f35-61be13f028a1\", \"requestId\": \"b6dc9806-b094-42f7-9386-a48de8218ce8\"}}" + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/dissociate_pnf_from_service_instance.json b/vid-ext-services-simulator/src/main/resources/preset_registration/dissociate_pnf_from_service_instance.json new file mode 100644 index 000000000..eea7401f4 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/dissociate_pnf_from_service_instance.json @@ -0,0 +1,10 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/ecomp/mso/infra/serviceInstances/v6/f36f5734-e9df-4fbf-9f35-61be13f028a1/removeRelationships" + } , + "simulatorResponse": { + "responseCode": 202, + "body": "{\"requestReferences\": {\"instanceId\": \"f36f5734-e9df-4fbf-9f35-61be13f028a1\", \"requestId\": \"b6dc9806-b094-42f7-9386-a48de8218ce8\"}}" + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/ecompportal_getSessionSlotCheckInterval.json b/vid-ext-services-simulator/src/main/resources/preset_registration/ecompportal_getSessionSlotCheckInterval.json new file mode 100644 index 000000000..a43092ef9 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/ecompportal_getSessionSlotCheckInterval.json @@ -0,0 +1,33 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/ecompportal_att/auxapi//getSessionSlotCheckInterval" + }, + "simulatorResponse": { + "responseCode": 200, + "body": "300000" + } + }, + { + "simulatorRequest": { + "method": "POST", + "path": "/ecompportal_att/auxapi//extendSessionTimeOuts" + }, + "simulatorResponse": { + "responseCode": 200, + "body": "300000" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/ecompportal_att/auxapi/context/get_user" + }, + "simulatorResponse": { + "responseCode": 200, + "body": [ + ] + } + } +]
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_aai_get_subscribers.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_aai_get_subscribers.json new file mode 100644 index 000000000..a5661c1a2 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_aai_get_subscribers.json @@ -0,0 +1,47 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../business/customers", + "queryParams" : { + "subscriber-type": [ "INFRA" ], + "depth": [ "0" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "customer":[ + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"FIREWALL/MISC", + "subscriber-type":"INFRA", + "resource-version":"1494254802147" + }, + { + "global-customer-id":"VidE2ETest", + "subscriber-name":"VidTest20161020", + "subscriber-type":"INFRA", + "resource-version":"1494254856862" + }, + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"Mobility", + "subscriber-type":"INFRA", + "resource-version":"1494255056308" + }, + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"PACKET CORE", + "subscriber-type":"INFRA", + "resource-version":"1506548476111" + }, + { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"USP VOICE", + "subscriber-type":"INFRA", + "resource-version":"1494254832007" + } + ] + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_aai_sub_details.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_aai_sub_details.json new file mode 100644 index 000000000..567a0f5c0 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_aai_sub_details.json @@ -0,0 +1,3914 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "queryParams" : { + "depth": [ "2" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "global-customer-id":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "subscriber-name":"Mobility", + "subscriber-type":"INFRA", + "resource-version":"1494255056308", + "service-subscriptions":{ + "service-subscription":[ + { + "service-type":"vFlowLogic", + "resource-version":"1501700976809", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"414db2d4-18d0-415e-aac2-f255b586cfb5", + "service-instance-name":"vFlowLogic-vflf_080117", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502391806301", + "orchestration-status":"Active", + "model-invariant-id":"64dbe153-48c6-4d6f-95e7-12ff4cce9871", + "model-version-id":"4e8b6372-dea3-4028-81d0-16eba59c94fb" + }, + { + "service-instance-id":"769be44e-981a-4da8-af3b-ca5fa76b7fb1", + "service-instance-name":"vFlowLogic-vflp_080117", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501712783617", + "orchestration-status":"Active", + "model-invariant-id":"14a99b56-dfb6-4300-97e1-ef10198ec936", + "model-version-id":"9c6eee3b-8bd6-4a01-8afc-39441b63ecc9" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"Mobility", + "resource-version":"1505402148533", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"3fe4de27-728c-45f1-80a5-9fe49ec02d27", + "service-instance-name":"forin", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507919421031", + "orchestration-status":"Active", + "model-invariant-id":"d9da05fb-7a91-4c81-bbb4-923448f7fa34", + "model-version-id":"f2e0d059-deb0-4ce8-aa8b-3e8fe02b3eb5" + }, + { + "service-instance-id":"63d396ed-d457-40a0-9cf4-a3cf9828835c", + "service-instance-name":"CreateSvc_1710_298109_vPROBE-II_kk364s_0310", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506977865222", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"4431827a-2cb1-49f4-8056-6d8e51470781" + }, + { + "service-instance-id":"1a71b058-8607-4690-bebb-4d9011cb0594", + "service-instance-name":"mDNSpreload1710service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508865364605", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"be3f0f35-0cd6-4b64-a9a1-ef66ebf2df38", + "service-instance-name":"mdns_2017_1011_sb063v_1024", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508858365648", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"9fb6d4cd-6d8e-41d6-afcf-37d151df1976", + "service-instance-name":"zrdm_Mobility_Service_297772_kk364s_1010_1400", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507658384805", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"bbbcbe28-850f-42a5-8f46-8bd2a30c3014", + "service-instance-name":"mdns_2017_1011_kk364s", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508962475505", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"fd533b88-9e23-4636-8a32-3d2bf24db80b", + "service-instance-name":"Mobility_Service_297772", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505500142924", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"14cfc148-ff07-49a3-a4e2-0aa5ce237624", + "service-instance-name":"rdm5b_mdns_2017_1011_IST_Service_kk364s", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509122521715", + "orchestration-status":"Active", + "model-invariant-id":"899b5f00-2603-44ec-a49f-144bccc7d8fb", + "model-version-id":"abe58ee2-0710-4825-87ae-c6cc9f27f46b" + }, + { + "service-instance-id":"c3fb6917-7281-418c-a0de-4bd94352ea1c", + "service-instance-name":"test-amichai", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509919155873", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"be6e1f9e-dc44-4ae0-a368-731a44b66e7e", + "service-instance-name":"Service_vPROBE_298109_SG_2009_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505939678484", + "orchestration-status":"Active", + "model-invariant-id":"429b7c51-6a5d-4bd7-98de-78b2cc58357f", + "model-version-id":"954a9b29-68bd-42aa-8ace-0d8890844ac8" + }, + { + "service-instance-id":"c18085d4-107a-4b8d-be19-e8ebade634ac", + "service-instance-name":"Service_vPROBE_298109_2_sb_0920", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505914792267", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"3afa7504-be8c-4fb1-b6c2-071f78faee18", + "service-instance-name":"mDNS_preload_1710_0914_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506538704860", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"005306d7-5430-4c10-ae02-d4eb42397717", + "service-instance-name":"Service_vPROBE_298109_SG_2009", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505936743593", + "orchestration-status":"Active", + "model-invariant-id":"429b7c51-6a5d-4bd7-98de-78b2cc58357f", + "model-version-id":"954a9b29-68bd-42aa-8ace-0d8890844ac8" + }, + { + "service-instance-id":"9518ac27-f88f-40bc-8c62-d94fcd8f370b", + "service-instance-name":"ewgh", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1510045546493", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"8afac90c-5b5f-495d-bbf6-6259ff11387b" + }, + { + "service-instance-id":"18094982-779d-48b7-ab75-93da74944583", + "service-instance-name":"rdm5_mdns_2017_1011", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509045878842", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"5dc95f62-6080-495b-8c6f-6e5920131ab2", + "service-instance-name":"x_291364a_ASTRA_vVIG_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506346505944", + "orchestration-status":"Active", + "model-invariant-id":"81136370-2afb-4738-bc93-de2bc64f573b", + "model-version-id":"056345ca-6105-4bb5-8406-e4e151380bc0" + }, + { + "service-instance-id":"8ccda9f2-2a5f-4445-ba64-fc3dad56cdb6", + "service-instance-name":"CVNF_1710_298109_vPROBE-II_0410", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507064736392", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"4431827a-2cb1-49f4-8056-6d8e51470781" + }, + { + "service-instance-id":"cc8fa0a9-7576-4c39-af31-7ad61d057ac9", + "service-instance-name":"ServiceInstance_1710_298109_vPROBE-II", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507151571441", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"4431827a-2cb1-49f4-8056-6d8e51470781" + }, + { + "service-instance-id":"f150ea88-9157-4aa6-ae85-b0e9d0de3fed", + "service-instance-name":"UVNF_1710_298109_vPROBE-II_2809", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506542110910", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"f032606a-5add-4a12-87f7-4df1f0734594", + "service-instance-name":"Zmtn6_Mobility_Service_297772_kk364s_1010_1130", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507649564599", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"c1025cab-9fe7-4e2e-962e-a946f0fa013b", + "service-instance-name":"Lital234", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506327356099", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"25e3176d-655d-46a3-83f8-143b66150a2f", + "service-instance-name":"RVNF_1710_298109_vPROBE-II", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506631522048", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"f96484a5-ba01-4bf5-a440-9efaf51a3796", + "service-instance-name":"CR1710_298109_vPROBE-II_SG_2009", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505914990778", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"0d9d1292-f2bb-4a43-95fc-c9e1e4e9c510", + "service-instance-name":"CR_SVC_Mobility_Service_297772_ss616y_09_28", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506539863926", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"3dce6e29-0f2a-4890-90cd-b77323e62230", + "service-instance-name":"ForInput_service_instance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507828289329", + "orchestration-status":"Active", + "model-invariant-id":"d9da05fb-7a91-4c81-bbb4-923448f7fa34", + "model-version-id":"dc20bb16-d464-4245-95fb-78223dc2d918" + }, + { + "service-instance-id":"076bf40a-7eca-4412-ab6e-5de4cf598256", + "service-instance-name":"CService_mDNS_preload_1710_0914_1110", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507752734878", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"6b5afca0-73dc-4ced-9b31-a04b509d38c8", + "service-instance-name":"crSvc_2016-191_vIRC_CC_SVC_ss", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506359727251", + "orchestration-status":"Active", + "model-invariant-id":"c471663a-e66b-4f6f-aac3-c588b8e9a578", + "model-version-id":"1496150d-9b5a-46f6-a8ce-9efdcf47f1b1" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vBNG", + "resource-version":"1498068165053", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"b8da83c3-0572-4f05-a74d-54642d6c8d6e", + "service-instance-name":"MSODEV-1702-10-vBNG", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149574", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"ba4d9222-f052-4359-93fb-537eb4407142", + "service-instance-name":"VbngServiceSriovProviderNetworkService_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498052045639", + "orchestration-status":"Active", + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + }, + { + "service-instance-id":"c6ee9475-c10f-4da7-bf96-c6fdb1461267", + "service-instance-name":"MSO_Dev_1702_SJK_VBNG_SI", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136028", + "orchestration-status":null, + "model-invariant-id":"ff3514e3-5a33-55df-13ab-12abad84e7ff", + "model-version-id":null + }, + { + "service-instance-id":"d2dd16c6-ded7-4042-927d-adf3e1447851", + "service-instance-name":"vBNG_Service_for_E2E_Test_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149821", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"3852ca70-2e64-47b5-ba96-41f304056493", + "service-instance-name":"VbngServiceTenantOamNetworkService_9", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149868", + "orchestration-status":null, + "model-invariant-id":"731cb2c4-989f-46e4-89cc-701f664fdf64", + "model-version-id":"eea48998-03e8-4905-aefc-86209a36043d" + }, + { + "service-instance-id":"5a7a4ace-2331-492e-ae82-7e54e09bb7e5", + "service-instance-name":"VbngServiceTenantOamNetworkService_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151679", + "orchestration-status":null, + "model-invariant-id":"731cb2c4-989f-46e4-89cc-701f664fdf64", + "model-version-id":"eea48998-03e8-4905-aefc-86209a36043d" + }, + { + "service-instance-id":"3dec9868-1af0-4417-93b0-bda1d80a567a", + "service-instance-name":"VbngServiceSriovProviderNetworkService_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498060092248", + "orchestration-status":"Active", + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + }, + { + "service-instance-id":"fde6ab76-3d70-4743-8afd-2b370ca11af2", + "service-instance-name":"VbngServiceSriovProviderNetworkService_3", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498761160118", + "orchestration-status":"Active", + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + }, + { + "service-instance-id":"7492cc2b-facb-4b81-abbe-a35cd4188fd7", + "service-instance-name":"crSVC_Mobility_Service_297772_ss616y_09_26", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506440095410", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"f1b2bd7a-67bc-44de-b51d-c4b91b98c603", + "service-instance-name":"vBNG_Service_for_E2E_Test_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150703", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"a92aa05d-cced-4c10-b4c2-edac7603b570", + "service-instance-name":"SI_Test_vBNG_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148567", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"b8781e26-850a-439b-8e61-cb66244fcb44", + "service-instance-name":"VbngServiceSriovProviderNetworkService_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149265", + "orchestration-status":null, + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vVoiceMail", + "resource-version":"1494254889686", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"cfedc428-5b2a-4fdf-b55e-4975ff40a912", + "service-instance-name":"MVM_SBC_1710_092017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508331851301", + "orchestration-status":"Active", + "model-invariant-id":"6a71ca0e-81c3-4041-bca0-25a0c5ba59e9", + "model-version-id":"fa22e848-b243-4cf2-aeab-40afb601774c" + }, + { + "service-instance-id":"f568a4a1-0605-4062-8b03-31981f0ef3e0", + "service-instance-name":"MVM_1710_091417_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506546098478", + "orchestration-status":"Active", + "model-invariant-id":"2797ac29-022f-49fd-a9f7-f83da286fd9e", + "model-version-id":"6ae98a26-a40b-4bbc-afd5-2c4c98f27323" + }, + { + "service-instance-id":"e98d2d5d-ffec-4eee-b32a-229e94ec8b24", + "service-instance-name":"mDNS_1710_preload_test_Svc_01_PB", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505233873380", + "orchestration-status":"Active", + "model-invariant-id":"be1ba2ed-8942-4f6b-b4fc-39f7ac16fd4b", + "model-version-id":"71cef858-dfcb-452e-a336-a53747cd30ee" + }, + { + "service-instance-id":"258a043f-d8bd-46e8-a5f1-1118da623347", + "service-instance-name":"HnportalSriovProviderNet3_4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506021716378", + "orchestration-status":"PendingDelete", + "model-invariant-id":"d32fefb2-e9b6-42fa-8c1b-c09517199e9c", + "model-version-id":"66e59070-4f8f-4d07-a9e0-521fafb1777f" + }, + { + "service-instance-id":"90b42f50-9d55-4729-b5b0-74806c0f4770", + "service-instance-name":"MVM_F5_2017-414_042117_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506710238260", + "orchestration-status":"Active", + "model-invariant-id":"c7c71089-517e-4c90-8aab-4aa41091df09", + "model-version-id":"9951bac3-227b-4395-b70d-8c35e4a5e760" + }, + { + "service-instance-id":"a8ab2c37-db0c-4dca-99f5-8d7a99dc6bf5", + "service-instance-name":"mDNS_1710_preload_test_Svc_PB_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506367121901", + "orchestration-status":"Active", + "model-invariant-id":"be1ba2ed-8942-4f6b-b4fc-39f7ac16fd4b", + "model-version-id":"6862005a-0d9e-40da-854a-407059138df0" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"Nimbus", + "resource-version":"1509369877126", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"b9da929b-eb5f-4d14-b671-2fb49e245f0c", + "service-instance-name":"ssdrSvc-1.0-v1.0-rev4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149792", + "orchestration-status":null, + "model-invariant-id":"920e2b1d-91b5-4f88-bb37-d8a5db39dae3", + "model-version-id":"72f879f1-8c25-460f-974b-66eec443225f" + }, + { + "service-instance-id":"d93fa084-80f4-4900-ba57-8b736db3271b", + "service-instance-name":"mDNS_preload_1710_0914_1024", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508876558729", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"123466fa-e678-439e-a89f-29bdb2747d13", + "service-instance-name":"MDNS_NETWORK_OAM_ISTinE2E", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509557184342", + "orchestration-status":"Active", + "model-invariant-id":"868d39cc-0e79-43f2-85b3-df89f3296a75", + "model-version-id":"9c14df78-5b81-47e4-818b-0db85e4bb461" + }, + { + "service-instance-id":"8a4674e2-fbca-4857-af78-e611b1574f5a", + "service-instance-name":"mdns_pa2396_1027", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509045174529", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"75442b9d-e3de-4311-bfd8-b8bed4541742", + "service-instance-name":"rdm5b_mdns_2017_1011_kk364s_2910", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509215537269", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"f022b8c0-9796-4389-90ae-5c46df9e8574", + "service-instance-name":"PCRF_1610_2.4_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148885", + "orchestration-status":null, + "model-invariant-id":"6da262c4-7cf9-4122-9769-ff9e4a01d885", + "model-version-id":"b41ff679-0d3e-460c-9597-9c31f3238fdb" + }, + { + "service-instance-id":"28d984e4-0c50-46da-9369-6b4ddb9e0346", + "service-instance-name":"CGWY20_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509468547152", + "orchestration-status":"Active", + "model-invariant-id":"b830bf07-cb9a-4d75-95cb-fc515f78516f", + "model-version-id":"b43c811c-dcf5-42b7-adcb-5baf21be0216" + }, + { + "service-instance-id":"25158088-c7b1-4898-b511-de0c78e093c9", + "service-instance-name":"MOBT-Nimbus-3-Sprint-1-Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506094357348", + "orchestration-status":"Active", + "model-invariant-id":"a030d7ca-8566-4036-abfd-91c8e98ad755", + "model-version-id":"4c6df106-3c94-4d9d-9c1b-af37c0ff80d4" + }, + { + "service-instance-id":"b84af18a-c01a-4408-8e3c-74517a94af6f", + "service-instance-name":"Nimbus-IXLA-0705-Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506715142169", + "orchestration-status":"Active", + "model-invariant-id":"c4f9d180-e9b6-44cc-8497-83cb10621373", + "model-version-id":"6891a270-b49e-4659-b877-aa085dee23d4" + }, + { + "service-instance-id":"af094e85-8d60-4721-ae23-5a0efe1258d5", + "service-instance-name":"IXLT_2017-348_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147843", + "orchestration-status":null, + "model-invariant-id":"a09fecc5-748b-4ae3-9e87-9e19a6269673", + "model-version-id":"f4d4a83d-3082-4ee7-a479-281c834818cd" + }, + { + "service-instance-id":"fff0b350-ffaa-46ed-b927-8e82b3497af8", + "service-instance-name":"mDNS-1710-AF-SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506435654274", + "orchestration-status":"Active", + "model-invariant-id":"be75772a-1361-4385-88f3-60b4d29eeac8", + "model-version-id":"9297fadd-1f12-4f0f-aa74-97b6c3f0d9f3" + }, + { + "service-instance-id":"77d79cda-f8f4-4a9e-80d2-3199fefe6eb4", + "service-instance-name":"Nimbus_LDSA_0705_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499869842847", + "orchestration-status":"Active", + "model-invariant-id":"15dced86-174b-4129-bf72-2279b0a71377", + "model-version-id":"e80f59a4-969c-48f3-b14b-5530decf300b" + }, + { + "service-instance-id":"cedac8e7-43ef-47a9-ace6-90aadafdc01a", + "service-instance-name":"Mobility-Ntwking-Svc-Model", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505507866717", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"b287a10e-6dcb-402e-87bf-fe78fdcc54cf", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_1410_1205", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507997085749", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "service-instance-id":"2ef18b98-b026-4a77-b0e9-71d4e9a1a0ac", + "service-instance-name":"mdns_createServiceInstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508165923307", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"ab8bcc6c-3bc8-4f0e-8100-5d3bbdf5d8de", + "service-instance-name":"mdns_2017_1011_Create_SerInstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508082674808", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"b41a499d-a2e1-4e9e-8717-ee1167bd43e9", + "service-instance-name":"Service_Nimbus_Demo_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135772", + "orchestration-status":null, + "model-invariant-id":"148381a9-5e08-48fe-bfa5-756fd721945e", + "model-version-id":null + }, + { + "service-instance-id":"af913107-ddea-425d-ab84-886b1a754bd1", + "service-instance-name":"Nimbus_IXLT_0705_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500051698402", + "orchestration-status":"Active", + "model-invariant-id":"0ef3bd6d-9081-41c7-84c3-e5a7aefef66c", + "model-version-id":"0c13ef9b-c40c-4293-9c21-54a90d2f90bd" + }, + { + "service-instance-id":"ec1eb896-f519-4e71-bec9-ead21fd5d633", + "service-instance-name":"mobility_Service_1011", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507736303848", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"8867266e-1ba1-4ae8-9e52-ccfd5647acbf", + "service-instance-name":"MOBT_1610_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147802", + "orchestration-status":null, + "model-invariant-id":"e9c5074a-69bf-46c8-a400-feea5f82a248", + "model-version-id":"eda80797-115d-4328-b198-330cb1042564" + }, + { + "service-instance-id":"66b13cb4-b575-449f-aa45-ffbfe005c7b1", + "service-instance-name":"mDNS_preload_1710_0914", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505856078810", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"1525f534-99a2-408f-b847-ff636997d352" + }, + { + "service-instance-id":"870f55a9-692d-45af-970b-7630317b46ea", + "service-instance-name":"Mobisupport_PCRF_Network_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152926", + "orchestration-status":null, + "model-invariant-id":"33431ee0-3bc5-4daf-a13e-7c10ae6733cc", + "model-version-id":"9cb1d42a-b07c-47a9-9976-7280fbda2042" + }, + { + "service-instance-id":"abc17093-fad2-41fc-ad30-65985b34bdfc", + "service-instance-name":"rdm5b_mdns_2017_1011_kk364s_2010_1006", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508517379024", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"b3372b34-2085-40b3-b293-df1e546dddee", + "service-instance-name":"zrdm5bpxmc02_092017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505937237447", + "orchestration-status":"Active", + "model-invariant-id":"273bc227-a379-4b40-880e-7d9bb2bae2cb", + "model-version-id":"21823359-ca5b-4d14-9229-09c789e1434c" + }, + { + "service-instance-id":"e5bb3b98-56b4-4a79-95da-34f56dccb8f3", + "service-instance-name":"FCGI_Svc_456_2017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507580363163", + "orchestration-status":"Active", + "model-invariant-id":"6a4c0f43-9b3b-45a4-b8f3-c39df18f07df", + "model-version-id":"aa11d0a4-af5a-4a7b-856f-beee64a7111a" + }, + { + "service-instance-id":"9b24c4e2-6e63-4de5-8a20-741ec8289ae1", + "service-instance-name":"Mobility_Service_297772_pb_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507665028261", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"ea5650f4-9d80-431e-a177-b6c43fd4ade0", + "service-instance-name":"zrdm_Mobility_Service_297772_kk364s_1110_1045", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507733035901", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"cd9aa07d-e670-498a-adef-82250a1428a0", + "service-instance-name":"mdns_2017_pa2396_1013", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507833492086", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"7cce8c53-d391-42aa-984d-c6166dee9abe" + }, + { + "service-instance-id":"c0e1d353-b3cc-4472-94a6-ce974faf6c1c", + "service-instance-name":"asdfASDF", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507708265856", + "orchestration-status":"Active", + "model-invariant-id":"ad80a27a-ea63-4ab8-95fa-5dfa80e7d38d", + "model-version-id":"99bafe37-dcaf-4955-840d-f728f5151937" + }, + { + "service-instance-id":"a15b35f0-81eb-43a7-ad51-a05331e629ca", + "service-instance-name":"Nimbus_FN_Int_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148152", + "orchestration-status":null, + "model-invariant-id":"4c025c78-3f79-436b-a284-880842716c35", + "model-version-id":"7d04da63-89c1-496f-ae3c-22e59111b9c2" + }, + { + "service-instance-id":"9ad4ac55-a5e0-4b49-95c0-b2d846abf700", + "service-instance-name":"mDNS_preload_1710_0914_100417", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507144734087", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"446ab0be-b944-4e28-a1fc-520a56530064", + "service-instance-name":"larry_test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148893", + "orchestration-status":null, + "model-invariant-id":"39ef2db5-dcf0-4ab9-94a3-0eb75a42038b", + "model-version-id":"b411cc01-20d9-465a-a5ed-f6382045f829" + }, + { + "service-instance-id":"4183a1b5-6bf0-4446-9c50-01851e8b4f50", + "service-instance-name":"PXMC_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148483", + "orchestration-status":null, + "model-invariant-id":"6e75e64e-8e0e-4ee9-97be-6412af4080cf", + "model-version-id":"62e404df-933e-49db-bee9-ad0658e7f8f4" + }, + { + "service-instance-id":"5ff07408-0eff-4c41-9708-cf53261dc8b5", + "service-instance-name":"LMSP-01_11_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136025", + "orchestration-status":null, + "model-invariant-id":"2ce458b8-4b52-4f94-b641-58a9595da86c", + "model-version-id":null + }, + { + "service-instance-id":"e4a7a120-9a19-4757-9d91-41f1dc89a708", + "service-instance-name":"Nimbus_FN_SGI_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148283", + "orchestration-status":null, + "model-invariant-id":"bf62dc03-fe33-4798-9e7c-5591bb1c2379", + "model-version-id":"8c6eb850-9dd9-4cad-ad4f-4a7fc81a0dc6" + }, + { + "service-instance-id":"4a22fd74-0af6-4527-b4f5-a03fa7f3223b", + "service-instance-name":"FCGI_01_10_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147938", + "orchestration-status":null, + "model-invariant-id":"a88591c3-4de7-4cf8-85ac-50f1f7be15d8", + "model-version-id":"41a82132-9c2c-4eb0-bad4-22daf0d3bf81" + }, + { + "service-instance-id":"9af46bd0-6c9b-4498-826c-c88bbefd3108", + "service-instance-name":"CGWY19min_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152066", + "orchestration-status":null, + "model-invariant-id":"9bba548f-cab7-4e15-b162-9e055edaebe0", + "model-version-id":"bbefc853-e4aa-4ea3-b745-19da81dca95b" + }, + { + "service-instance-id":"85bfb318-d203-42bd-a13f-e8c7508105df", + "service-instance-name":"mDNS_02-06-2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147914", + "orchestration-status":null, + "model-invariant-id":"e8790ee9-f79b-4c26-8a70-d80480d4b563", + "model-version-id":"a73e5a6d-a13a-4ad1-84a8-28fd48b462fe" + }, + { + "service-instance-id":"b7131866-5f70-4c29-9875-98878ad7ac72", + "service-instance-name":"ssdrSVc_2.0_v1.0_rev1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504734308340", + "orchestration-status":"Active", + "model-invariant-id":"4d2bc5a2-9405-45f0-96f0-268b75f3d339", + "model-version-id":"d06a62d3-978f-4239-857e-71981d91622d" + }, + { + "service-instance-id":"17901377-cd73-4d92-abc8-b4905e720ae8", + "service-instance-name":"Nimbus_3.0spr1_PCRF_v2.7_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504819759422", + "orchestration-status":"Active", + "model-invariant-id":"2b85a18a-2f54-4e93-b072-08a065b4d2d7", + "model-version-id":"84775948-1cf2-4640-b918-4bbd1e6177ff" + }, + { + "service-instance-id":"4a55321e-6707-497d-8b06-c4fb1ff065d5", + "service-instance-name":"PXTC_v7_svc_082817", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504292485665", + "orchestration-status":"Active", + "model-invariant-id":"85966804-e850-48bb-a8f1-786810930042", + "model-version-id":"8501d6d5-3618-4d68-b6d9-6196218f9ca9" + }, + { + "service-instance-id":"176f6ba6-633e-471c-8864-e34468207552", + "service-instance-name":"LDSA_2017-345_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147835", + "orchestration-status":null, + "model-invariant-id":"615a07d6-baac-408b-a893-3ce5541e39a8", + "model-version-id":"01f99c19-46f7-4194-8254-2fbf60971181" + }, + { + "service-instance-id":"33b57047-687f-47a3-99b5-b568a4e7f9ff", + "service-instance-name":"vmdns_2017_1030", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509738824795", + "orchestration-status":"Active", + "model-invariant-id":"728b8d44-a194-4afd-aa40-041d90e8f2f7", + "model-version-id":"81a34cab-d31b-4beb-907c-c3a72d19d478" + }, + { + "service-instance-id":"614e9b44-5388-4a60-a566-35c83ace67b3", + "service-instance-name":"mdns_2017_1011_PB", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509739169686", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"c329b72c-84d5-4625-b261-faed89057e7c", + "service-instance-name":"SVC_zrdm5bpxtc02_092017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506356801452", + "orchestration-status":"Active", + "model-invariant-id":"8abf167e-55ea-4357-8a8c-f745640eca81", + "model-version-id":"f8d2b69c-79f6-4f98-9aeb-95e8f2f5d9f3" + }, + { + "service-instance-id":"08cdfd4b-9d25-40c8-a8c3-a15a3025d021", + "service-instance-name":"Nimbus_3.1_PCRF_0717_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504061752729", + "orchestration-status":"Active", + "model-invariant-id":"f8987f18-2a44-4650-b5ce-b58dd4e94ded", + "model-version-id":"b1c7e5ca-93b6-40c5-b152-d28c150a5ba4" + }, + { + "service-instance-id":"0c916c04-d2ca-43f3-90f8-e0266b3e97c8", + "service-instance-name":"mdns_pa23961111", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508338875497", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"ead68f27-e78f-417a-9d74-d7af3871c406", + "service-instance-name":"mdns_2017_1011_oh22u_1103", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509728889955", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"54ba3628-9ee5-4b32-8a2a-3abf001bed4e", + "service-instance-name":"mdns_2017_1011_oh22u_20171103", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509730482946", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"9ecab3e4-c4f4-4c46-a46e-9be98f89a664", + "service-instance-name":"mdns_createservice_pa23961026", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509032288508", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"11d25472-cbfb-4e10-a1f2-bea25d7c0823", + "service-instance-name":"mdns_2017_1011_v4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508054069141", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"8c88375a-fe46-4f03-9729-cb2850d8e122", + "service-instance-name":"mdns_2017_1011_ServiceInstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508097853649", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"f054ce69-a3d0-4061-b6a6-cdb4ea8b4968", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_1014_1700", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507929319130", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "service-instance-id":"facff1e4-e1d1-4b9c-bdb4-2b5088c19904", + "service-instance-name":"Forinput", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507937743069", + "orchestration-status":"Active", + "model-invariant-id":"d9da05fb-7a91-4c81-bbb4-923448f7fa34", + "model-version-id":"f2e0d059-deb0-4ce8-aa8b-3e8fe02b3eb5" + }, + { + "service-instance-id":"1abdbf2b-d08d-4f64-b123-7ecca7b8c9aa", + "service-instance-name":"mdns_2017_1011_pa2396", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507749134293", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"4a7882f6-128f-4303-8a47-9ee44a885965", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_1210", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507752287291", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"7cdd3596-a11f-4508-87ff-f0a9be0796c9", + "service-instance-name":"Cservice_mdns_2017_1011_sg", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507755029185", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"a43da41c-1510-4f2c-aef5-435534accf9f", + "service-instance-name":"mdns_2017_1011", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507748135880", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"5a477ab8-fcd7-42eb-8142-0e3139c7c9ff", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254900024", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"7eef7c51-70fe-4723-b762-bf8de2d4ea52", + "service-instance-name":"Nimbus_LU2_CGWY_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135961", + "orchestration-status":null, + "model-invariant-id":"bcb2c2c0-c0e1-4e17-a56d-2a8c32572068", + "model-version-id":null + }, + { + "service-instance-id":"745fd172-4a08-4f14-a2d0-a9a0e2a3f725", + "service-instance-name":"rdm5b_mdns_2017_1011_kk364s_1028", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509129321340", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"8fca8138-d6fa-4779-9205-c3071bde68d8", + "service-instance-name":"RDN5B_AMP_Shared_oam_protected_net", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509486357784", + "orchestration-status":"Active", + "model-invariant-id":"868d39cc-0e79-43f2-85b3-df89f3296a75", + "model-version-id":"9c14df78-5b81-47e4-818b-0db85e4bb461" + }, + { + "service-instance-id":"c3175084-5d15-44f0-b9c8-ea1fa63815c8", + "service-instance-name":"ssdrSvc_2.0_v1.0_rev2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504886219231", + "orchestration-status":"Active", + "model-invariant-id":"8923d812-fb34-4042-b401-082aedc9dee2", + "model-version-id":"28e36fec-f4ea-4ea7-9ab8-05c0fd2f7418" + }, + { + "service-instance-id":"77b4ba1c-c4df-4e3c-a73a-6c89967086a8", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507812622773", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "service-instance-id":"f7f8b3d0-bff3-4e10-b973-18ab33a40cb7", + "service-instance-name":"PXMC_v7_Service_062317", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1503434415225", + "orchestration-status":"Active", + "model-invariant-id":"dc7b5fb3-0bd1-46a8-8726-feac0d1a646c", + "model-version-id":"72c95ee1-08c7-4505-b9c5-2ccfc30944b3" + }, + { + "service-instance-id":"ea11b06a-369b-4028-b67a-ffe8b7d87272", + "service-instance-name":"lll_svc_022017A", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150038", + "orchestration-status":null, + "model-invariant-id":"a88591c3-4de7-4cf8-85ac-50f1f7be15d8", + "model-version-id":"41a82132-9c2c-4eb0-bad4-22daf0d3bf81" + }, + { + "service-instance-id":"a8372edb-c2ff-4008-a5d1-1e790873d92f", + "service-instance-name":"mDNS_Service_New_HEAT", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501704876346", + "orchestration-status":"Active", + "model-invariant-id":"3751418e-a3a4-4135-b282-b5a55a35973f", + "model-version-id":"3b27b79c-edb6-4817-9997-790620804267" + }, + { + "service-instance-id":"7a9e9d7a-820a-46df-8cc9-79ba677fbf70", + "service-instance-name":"mDNS_1710_preload_test_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505319453315", + "orchestration-status":"Active", + "model-invariant-id":"be1ba2ed-8942-4f6b-b4fc-39f7ac16fd4b", + "model-version-id":"a309577b-f193-49e8-9bdd-0a7d0ac7db15" + }, + { + "service-instance-id":"f195837b-ef28-42c3-8dea-47ad37eaed95", + "service-instance-name":"mDNS_preload_1710_0914_0920", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505964829466", + "orchestration-status":"Active", + "model-invariant-id":"e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id":"3915de55-a904-4cc6-8fc3-86f8bc316616" + }, + { + "service-instance-id":"74409bb2-17f8-427e-846c-0ef4d95059bf", + "service-instance-name":"FNAT_2017_432_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499977566343", + "orchestration-status":"Active", + "model-invariant-id":"b5ad06fc-b862-42af-86e8-e0e9f7e3e14e", + "model-version-id":"e7f7731c-59dc-4f4c-9e5d-73cf2c4873bc" + }, + { + "service-instance-id":"6f57e83f-9807-437c-8087-98fa79709648", + "service-instance-name":"vSAEGW_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499983137373", + "orchestration-status":"Active", + "model-invariant-id":"eb710f16-73b4-40b8-9e78-e920fde3d45c", + "model-version-id":"9972f060-be31-4021-975d-331a274e0b26" + }, + { + "service-instance-id":"f2f54623-94b0-4dcb-a381-c58b82229d12", + "service-instance-name":"mdns_2017_1011_CreateSerInstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508186235886", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"84eaf29a-c532-45f0-a6ba-da1dc302da7c", + "service-instance-name":"FDNT_01_10_2017-Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136032", + "orchestration-status":null, + "model-invariant-id":"6c4e8e19-d4a6-4f5c-a4f6-1552c5717f79", + "model-version-id":null + }, + { + "service-instance-id":"da2718cc-7f27-4716-9a0d-0aee0d029425", + "service-instance-name":"MOBT_RDM5B_0623_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499463885812", + "orchestration-status":"Active", + "model-invariant-id":"5435dd76-8001-477e-872a-133a7ce5d86a", + "model-version-id":"efeac9e7-52a4-4f23-a423-c333af26b818" + }, + { + "service-instance-id":"41de54a4-c2d7-41e6-b7e4-0125231e1a75", + "service-instance-name":"mdns_20171014_298940", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507921979277", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "service-instance-id":"9b3f5b80-7aaf-4c71-9066-79ba0beea6ae", + "service-instance-name":"mdns_298109_serviceinstance_pa2396", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507921462300", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "service-instance-id":"55dabffc-0f6c-424b-afd1-d3a3c515a8b3", + "service-instance-name":"mDNS_20170705_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499710772965", + "orchestration-status":"Active", + "model-invariant-id":"39d3974d-bb37-4b8d-a17b-e7c18a243325", + "model-version-id":"54be5f71-4271-4cc7-8472-a899915936c3" + }, + { + "service-instance-id":"b49aadf0-1435-468c-b338-1be1f86a1291", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_1310", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507906471665", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"7cce8c53-d391-42aa-984d-c6166dee9abe" + }, + { + "service-instance-id":"f9b00b35-3cb7-4b6f-9e21-922b4c291e70", + "service-instance-name":"mdns_298109", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507907071149", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"7cce8c53-d391-42aa-984d-c6166dee9abe" + }, + { + "service-instance-id":"203d5521-85e9-46f1-9aa2-df593be5f464", + "service-instance-name":"Nimbus_FN_Cor_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149671", + "orchestration-status":null, + "model-invariant-id":"97cbc9ae-eb1c-4d5f-a7e5-750d5a870b7a", + "model-version-id":"93873031-710e-4753-bd5b-42b70a16b608" + }, + { + "service-instance-id":"5164424e-5cc0-4050-9cd2-3598d0ed23a3", + "service-instance-name":"Nimbus_FN_HSL_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149745", + "orchestration-status":null, + "model-invariant-id":"1d64d07b-7afe-4094-b0ab-cbd209d8498c", + "model-version-id":"518938f2-4c86-42d3-9615-d1d4b4b4e947" + }, + { + "service-instance-id":"d750f7d0-8543-4c71-8949-12b1cbbb623f", + "service-instance-name":"Nimbus_FN_Internet_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150967", + "orchestration-status":null, + "model-invariant-id":"d4080c19-daaf-4e82-8e6a-ce7b555c1f74", + "model-version-id":"bbb4970b-739b-4172-a928-676a6633083a" + }, + { + "service-instance-id":"38b3186b-53ce-4e43-ab80-4e64546f2b2d", + "service-instance-name":"FCMD_01_10_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136026", + "orchestration-status":null, + "model-invariant-id":"48d59ac2-8117-4846-a3dc-1cd815af92e9", + "model-version-id":null + }, + { + "service-instance-id":"0d867a3c-66c2-49bb-89b3-a934209f04c9", + "service-instance-name":"RDM5b_mdns_2017_1011_oh222u_10312017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509393490120", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"29f8d538-a1d0-44f4-9bb9-5f7ac1691aa6" + }, + { + "service-instance-id":"49f9bca2-1442-4974-8b55-c7d7b3fb968e", + "service-instance-name":"Mobiltynimbus_1031", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509471800562", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"0d94c422-73bf-4973-b561-2c9083b7c14c", + "service-instance-name":"mdns_2017_1011_IST_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509374793651", + "orchestration-status":"Active", + "model-invariant-id":"899b5f00-2603-44ec-a49f-144bccc7d8fb", + "model-version-id":"abe58ee2-0710-4825-87ae-c6cc9f27f46b" + }, + { + "service-instance-id":"97d698da-4e7b-44b8-8596-f0fed1cb992e", + "service-instance-name":"MDNS_NETWORK_OAM", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509478420584", + "orchestration-status":"Active", + "model-invariant-id":"868d39cc-0e79-43f2-85b3-df89f3296a75", + "model-version-id":"e802d72e-97ab-4f9b-8b9b-46cfa3c58a5b" + }, + { + "service-instance-id":"8bafeb61-f9cd-4afb-b7a5-cd786df0c751", + "service-instance-name":"mdns_2017_1011_ServiceCreation_pa23061030", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509379856680", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"4620225f-8347-4baa-b079-5e49ef7bc6bf", + "service-instance-name":"INT_FW_DNS_Network_298109a", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509571358783", + "orchestration-status":"Active", + "model-invariant-id":"dbf9fa52-27f5-42d3-a1d4-b583dcb3869a", + "model-version-id":"9cbdceff-bac0-4bd3-ba2c-1a51393a37db" + }, + { + "service-instance-id":"16cd6439-ebd6-46f2-aa14-fcaa9b8c5ce7", + "service-instance-name":"PXTC_02_23_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150076", + "orchestration-status":null, + "model-invariant-id":"82e3c4a3-3727-4588-8a40-a15291be3d28", + "model-version-id":"450fea92-fc50-4949-be5e-4a749fbfb294" + }, + { + "service-instance-id":"4767ab93-da7b-492c-833f-d063c7452caa", + "service-instance-name":"Nimbus_LDST_0705_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501261983060", + "orchestration-status":"Active", + "model-invariant-id":"1f485a79-6ae9-4617-b33d-fb97e6ce7392", + "model-version-id":"3dba30e4-e212-4953-ba61-56292bad2f27" + }, + { + "service-instance-id":"c6fc80c1-de71-4484-86e5-b15ccc7e3432", + "service-instance-name":"mDNS_02-06-2017_Svc_DS_0814", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502734680482", + "orchestration-status":"Active", + "model-invariant-id":"e8790ee9-f79b-4c26-8a70-d80480d4b563", + "model-version-id":"67ff6798-1cd2-4b74-ba73-4521bc4dc6e3" + }, + { + "service-instance-id":"8af2a480-8db5-40d2-bcbc-ae3faa7804a1", + "service-instance-name":"FNAT_01_17_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152963", + "orchestration-status":null, + "model-invariant-id":"93297bb9-2a1b-4b8f-a268-23ea4cde7d7d", + "model-version-id":"cc232d92-a182-4253-b468-36430c412df3" + }, + { + "service-instance-id":"6fbb6d14-8c78-4460-9b15-68081ae7c7df", + "service-instance-name":"LDST_2017-346_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152979", + "orchestration-status":null, + "model-invariant-id":"c46f991d-94c5-4bb2-99f3-89882909798e", + "model-version-id":"7f8b2c34-3d43-4c56-afc4-66fe81ab6d95" + }, + { + "service-instance-id":"5c355bce-3469-4792-a70b-f886f73000c0", + "service-instance-name":"IXLA_2017-347_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152986", + "orchestration-status":null, + "model-invariant-id":"4199c14b-51a5-4139-941c-f49080525fb8", + "model-version-id":"a156b14f-f46d-4580-8eb2-ab79ee8686b7" + }, + { + "service-instance-id":"4aea7e38-ddfd-45dc-b019-f2fcd9b5d473", + "service-instance-name":"LMSP_Service_062317", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499796536502", + "orchestration-status":"Active", + "model-invariant-id":"ebfc4102-d174-4e8f-b30c-24552c895f9d", + "model-version-id":"8a5c4e8a-642d-480a-8341-81efe83d5594" + }, + { + "service-instance-id":"c5597127-8e60-45bc-bbe9-5053c1141340", + "service-instance-name":"FCGI_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499799955696", + "orchestration-status":"Active", + "model-invariant-id":"6a4c0f43-9b3b-45a4-b8f3-c39df18f07df", + "model-version-id":"aa11d0a4-af5a-4a7b-856f-beee64a7111a" + }, + { + "service-instance-id":"a1e29ae4-259c-4efe-8bc9-4988dd5a7bcc", + "service-instance-name":"FCMD_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499804481264", + "orchestration-status":"Active", + "model-invariant-id":"509c270c-7feb-4170-bb17-bd2b0f0e85ad", + "model-version-id":"bd60033d-a830-4dad-a769-284553c0b220" + }, + { + "service-instance-id":"1541b46f-ff19-4779-a30e-0c299080df97", + "service-instance-name":"FDNT_Service_062317", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499956663328", + "orchestration-status":"Active", + "model-invariant-id":"61f5e3da-5806-4002-9a06-ef4ca196ca84", + "model-version-id":"14015c8a-d304-4ffd-8071-81e10008a215" + }, + { + "service-instance-id":"8de54913-279f-406d-8585-e2152222373f", + "service-instance-name":"Nimbus_IXLA_0705_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499963829384", + "orchestration-status":"Active", + "model-invariant-id":"c4f9d180-e9b6-44cc-8497-83cb10621373", + "model-version-id":"6891a270-b49e-4659-b877-aa085dee23d4" + }, + { + "service-instance-id":"f9dcb4e4-a47a-4f6a-b224-5fd3b30a83a0", + "service-instance-name":"Nimbus_SGI_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148003", + "orchestration-status":null, + "model-invariant-id":"2b8d03af-1809-4d4b-ae8e-d74e46eee92b", + "model-version-id":"6a0999e5-4c0e-4c28-92ef-044a0abac425" + }, + { + "service-instance-id":"d5c83af3-4b48-4778-b2c3-07fba2362c79", + "service-instance-name":"Nimbus_FN_OAM_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148499", + "orchestration-status":null, + "model-invariant-id":"b7a39648-5c7f-447f-9308-666023c0711f", + "model-version-id":"3b47cd74-a02e-4744-b9a3-35b4618ed055" + }, + { + "service-instance-id":"dce199f8-bb6a-4e99-a861-19b544c5438f", + "service-instance-name":"Mobility_Service_297772_pb", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507663693747", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"554acac8-1482-47d3-8faf-a3127a1bd09b", + "service-instance-name":"MOBTSvc0628_svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498771282977", + "orchestration-status":"Active", + "model-invariant-id":"081804b9-dd84-409b-a724-d837939845c4", + "model-version-id":"7ed9e317-49fc-4a32-808e-2adca524b65b" + }, + { + "service-instance-id":"38811ee9-901a-46e9-8dbd-4a7faceaebd4", + "service-instance-name":"mdns_createinstance", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508269726756", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"6fcd3f57-51d0-41b2-8825-ad2820253e5c", + "service-instance-name":"Nimbus_Int_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147871", + "orchestration-status":null, + "model-invariant-id":"389564be-7cbb-4043-9533-710fff8081ea", + "model-version-id":"1f233dc1-4bd8-431e-82a8-4c4f072acae0" + }, + { + "service-instance-id":"5aaebe92-b062-473b-9a0c-017568386d8b", + "service-instance-name":"mdns_createService", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508265751686", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "service-instance-id":"a146b14c-6b06-435e-9c9a-f78cbcad626e", + "service-instance-name":"zrdm5b_mdns_2017_1011_kk364s_", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508266016689", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"48d9a641-7f74-437b-8ec0-145ee54595d0" + } + ] + }, + "is-permitted":true + }, + { + "service-type":"vSEGW", + "resource-version":"1494254851983", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"5dfa2fc6-5dfe-4db6-ad73-a66e0cb878f4", + "service-instance-name":"SeGW_012417_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147946", + "orchestration-status":null, + "model-invariant-id":"4800cbc9-fd8d-44d7-8d49-4722d3d55f6d", + "model-version-id":"84200623-96b0-4ba4-8e6b-a40c49db75fc" + }, + { + "service-instance-id":"8e296fb3-0308-4634-9d8e-d715c8365ae7", + "service-instance-name":"vSeGW_07_05_2017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499698647185", + "orchestration-status":"Active", + "model-invariant-id":"9cb8e888-a4c5-4fcb-9c8c-4366b0bfdeaa", + "model-version-id":"f97950d4-4b47-4e42-bd0d-713590f84f4f" + }, + { + "service-instance-id":"33aa1c9f-5634-447a-8fce-31727ad2b22b", + "service-instance-name":"SI_vPE_alacarte_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147970", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"3bd716aa-7817-4b04-bd91-dbc7acf028f0", + "service-instance-name":"SI_AVPN_OAM_Network_E2E_0207", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152970", + "orchestration-status":null, + "model-invariant-id":"b5373453-c64a-4bab-88cb-90d8cf04d215", + "model-version-id":"a0b35f52-6f10-4d7d-b50f-6f69ea8a0a3e" + }, + { + "service-instance-id":"5e32f45a-d406-4780-a8d2-29aa720c8f88", + "service-instance-name":"SI_vPE_custuuid_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147962", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vVM", + "resource-version":"1494255049530", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"def03e43-8993-423f-b903-50a95271b69a", + "service-instance-name":"vivtest21417", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148182", + "orchestration-status":null, + "model-invariant-id":"868522e5-efdf-4603-91eb-42538f1da8be", + "model-version-id":"b60e3c88-a403-4439-9f61-b988e4682d32" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vOTA", + "resource-version":"1501692006937", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"70ea5910-b338-417e-a3a5-b63e7780bc13", + "service-instance-name":"RDM3_vOTA3_072717_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501863709431", + "orchestration-status":"Active", + "model-invariant-id":"a21adfdb-a491-4dd1-b87d-e46a5a96da35", + "model-version-id":"eaa52657-9bbf-4312-bb45-035bb0947c83" + }, + { + "service-instance-id":"8db3b285-40ec-4fce-8d56-3f9f160ed015", + "service-instance-name":"vOTA_2016-11-10_v2_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148733", + "orchestration-status":null, + "model-invariant-id":"c3b2c93b-720a-499b-b4f2-58d9b1160639", + "model-version-id":"ba735c56-fb6a-4949-b7a7-4d586998fb51" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vMME", + "resource-version":"1497729820723", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"26731151-6854-4936-8ddc-1eb2b28cef26", + "service-instance-name":"vMME_2017-33_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152917", + "orchestration-status":null, + "model-invariant-id":"d0535cb6-cf25-4a97-aff4-6d57a0e2be7b", + "model-version-id":"44f6ed9a-93c1-488d-8926-18fa525e8579" + }, + { + "service-instance-id":"b75fb352-0719-465b-ba48-3aa7d781b394", + "service-instance-name":"vMME1610Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148345", + "orchestration-status":null, + "model-invariant-id":"1aa670c7-3637-415f-a10b-057b46ba921c", + "model-version-id":"02f741e0-9488-48ee-aa9d-b6907a95bb2a" + }, + { + "service-instance-id":"1d291ab5-0440-4263-8648-1846a09d6135", + "service-instance-name":"vMME_1610_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148352", + "orchestration-status":null, + "model-invariant-id":"1aa670c7-3637-415f-a10b-057b46ba921c", + "model-version-id":"02f741e0-9488-48ee-aa9d-b6907a95bb2a" + }, + { + "service-instance-id":"05427532-2f81-4d56-921f-52645e40dd9a", + "service-instance-name":"Vive2evmme1020", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148467", + "orchestration-status":null, + "model-invariant-id":"1aa670c7-3637-415f-a10b-057b46ba921c", + "model-version-id":"02f741e0-9488-48ee-aa9d-b6907a95bb2a" + }, + { + "service-instance-id":"14ce9494-9a75-49bf-a898-3503697c29f1", + "service-instance-name":"vMME+Svc+Jul+14", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135820", + "orchestration-status":null, + "model-invariant-id":"441ae8cd-a16a-44c3-9acc-4eaf2613792c", + "model-version-id":null + }, + { + "service-instance-id":"72960ff3-a1e9-493d-93f4-ac026b22326b", + "service-instance-name":"vMME_CI_110216_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136021", + "orchestration-status":null, + "model-invariant-id":"ff482e1a-cd62-4b8a-8603-e61a4208fe8e", + "model-version-id":null + }, + { + "service-instance-id":"c9bf0fc4-b621-40d1-8b89-7f8235171ffb", + "service-instance-name":"vMME1.8_LAB_8152017_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504727411210", + "orchestration-status":"Active", + "model-invariant-id":"14d5ea8d-151f-4837-80f3-5bc21d4c4969", + "model-version-id":"53d25dca-3727-4d5c-b4f7-db7df6df5a6e" + }, + { + "service-instance-id":"aee4df10-4289-4ae1-acdc-7f8cffa61603", + "service-instance-name":"xx_2017_417_vMME_0622_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498675414340", + "orchestration-status":"Active", + "model-invariant-id":"ca096fc9-8f1b-437f-a385-2c06ce7abcba", + "model-version-id":"7bb74b3a-e257-474b-af50-5f4a19f098b0" + }, + { + "service-instance-id":"816042cd-d75a-4743-8bd0-0e74d816b5b0", + "service-instance-name":"tier_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148749", + "orchestration-status":null, + "model-invariant-id":"d26e00fb-cfa7-459d-a22d-94ae6dbd252d", + "model-version-id":"4d4db128-302a-4931-92c6-ee3e688f9270" + }, + { + "service-instance-id":"ac425fe4-3ce1-4966-8160-557eb3e2f219", + "service-instance-name":"demolily328", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148931", + "orchestration-status":null, + "model-invariant-id":"868522e5-efdf-4603-91eb-42538f1da8be", + "model-version-id":"b60e3c88-a403-4439-9f61-b988e4682d32" + }, + { + "service-instance-id":"e22f6619-7592-47e3-8f91-7a359489bae0", + "service-instance-name":"ldf_test_020915", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148050", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"124ee346-1aac-4db6-aed6-606bbc29f7c2", + "service-instance-name":"lll051817A", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495135780761", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"2b897f5c-83e1-4600-a76b-d41d54e79e21" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vMNS", + "resource-version":"1509391084129", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"3816ce95-6d3f-45fb-8909-d80ea53505f6", + "service-instance-name":"MNS_OAM_2017-331_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152438", + "orchestration-status":null, + "model-invariant-id":"774eca04-a60e-4624-8354-0e6acf03b5c3", + "model-version-id":"a9b4f3b5-91cc-4073-8971-b5998c541524" + }, + { + "service-instance-id":"52c11364-cd16-459c-9ae4-5bac77d3da20", + "service-instance-name":"MNS_FN_COR_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148818", + "orchestration-status":null, + "model-invariant-id":"b1cf73b5-c0a8-494e-8919-7dcfe179592e", + "model-version-id":"067baf5f-c809-4800-918f-af9aba6b54eb" + }, + { + "service-instance-id":"9bfc7f49-a286-4c85-95b4-cd5b7850e468", + "service-instance-name":"MNS_15_VFW_V4_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1510005095746", + "orchestration-status":"Active", + "model-invariant-id":"1fc1e151-0984-43d9-a127-f89704d2f182", + "model-version-id":"6e63db20-8fb7-457b-9c02-b4e75d5f1b06" + }, + { + "service-instance-id":"2d292275-6da1-4cce-814a-299f9af029d4", + "service-instance-name":"JSA_1610_728_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136034", + "orchestration-status":null, + "model-invariant-id":"e08d1989-cce4-42d2-9d5a-c81bc0fa9873", + "model-version-id":null + }, + { + "service-instance-id":"0fbc620f-3132-4ce5-9477-376413580282", + "service-instance-name":"MNS_FN_OAM_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148664", + "orchestration-status":null, + "model-invariant-id":"1f0f50ab-ceb3-47ef-ba37-69de8d8fbfdd", + "model-version-id":"4758c71e-7599-452d-9cae-6edc698d7684" + }, + { + "service-instance-id":"28db0d95-d564-448e-ae9d-0a17eb9eb0a1", + "service-instance-name":"MNS_FN_DMZ_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148757", + "orchestration-status":null, + "model-invariant-id":"7ac7bcc2-a3e7-46e3-abd6-471b9bf122f4", + "model-version-id":"1aa13e60-2e3c-4e73-bbd2-fc3061afc35b" + }, + { + "service-instance-id":"186eabfb-006b-45cf-bdb6-02176fac43c8", + "service-instance-name":"MNS_EXN_2017-331_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495047516159", + "orchestration-status":"Active", + "model-invariant-id":"4542e241-0a6a-40ed-bd7a-83603efe55b3", + "model-version-id":"b9714211-7ea7-4750-a410-b9b60e6f7a64" + }, + { + "service-instance-id":"77111d90-c390-4d8f-8ce2-7f5fd2cc20fc", + "service-instance-name":"APN_DNS_LB_SVC_1710", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1504713849873", + "orchestration-status":"Active", + "model-invariant-id":"78384e06-013b-4928-a07c-ee162e7b9f40", + "model-version-id":"3dfbc0aa-ecc1-4869-bd85-477fabf5984a" + }, + { + "service-instance-id":"630447a3-17b5-437f-a262-7a359973c94a", + "service-instance-name":"MNS_FN_GN_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149019", + "orchestration-status":null, + "model-invariant-id":"abccc2d4-3e4b-47b1-b026-6118ba1cd47b", + "model-version-id":"6a8bc628-4ca9-4ddc-a38b-f341cef85a0e" + }, + { + "service-instance-id":"ae887a30-4a47-4765-ab66-443d9db45e86", + "service-instance-name":"MNS_FN2_OAM_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150423", + "orchestration-status":null, + "model-invariant-id":"1200c85e-c786-4246-a2a9-da6bc16f77da", + "model-version-id":"1ee1e95a-7dc3-4902-9873-5dd638c6a694" + }, + { + "service-instance-id":"6af70748-40a0-455b-a891-2ef2626dd0ab", + "service-instance-name":"JSA_AUG_2017_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501688416370", + "orchestration-status":"Active", + "model-invariant-id":"af01c62c-9909-410e-834c-89e201d18b57", + "model-version-id":"90ba0937-fed0-4ead-8021-4226f499ff76" + }, + { + "service-instance-id":"8326443b-29ea-4646-ad3a-22d406e9b4ca", + "service-instance-name":"TT_ISBC_Network_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136028", + "orchestration-status":null, + "model-invariant-id":"204f0695-5cdc-4b92-9eda-a6b6f490a61d", + "model-version-id":null + }, + { + "service-instance-id":"c1f21fc9-f169-4a35-9f91-b4ccd1857f2e", + "service-instance-name":"MNS_DMZ02_FW_CNTR3.0_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149319", + "orchestration-status":null, + "model-invariant-id":"61a81f9e-3e13-4d05-b878-bb603111954a", + "model-version-id":"945eea0e-623e-4300-8435-24ea185f0155" + }, + { + "service-instance-id":"52bdd6f0-3cf4-4607-a0ee-345e5c1ee370", + "service-instance-name":"MNS_Mobility_Network_RDM6B", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509390672331", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"4909bb7b-42ff-4892-a3c6-cf3219804b54", + "service-instance-name":"MNS_15_VNF_VFW_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508887742652", + "orchestration-status":"Active", + "model-invariant-id":"39468fdb-dc81-4e5e-a429-bb5b4e22d456", + "model-version-id":"fe156d98-923c-4387-97cf-a74e22dfe8a8" + }, + { + "service-instance-id":"b4d67b16-1cf1-4301-a6e0-1fd3487e1279", + "service-instance-name":"viv21517", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147955", + "orchestration-status":null, + "model-invariant-id":"868522e5-efdf-4603-91eb-42538f1da8be", + "model-version-id":"b60e3c88-a403-4439-9f61-b988e4682d32" + }, + { + "service-instance-id":"d3880a9f-2f9d-432f-8aaa-c9911c9d9b64", + "service-instance-name":"MNS_EXN02_FW_CNTR3.0_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496770656655", + "orchestration-status":"Active", + "model-invariant-id":"510f925c-aec2-4740-a377-6a61df81893c", + "model-version-id":"3d4a7459-2072-40e5-8507-18554f2f5e67" + }, + { + "service-instance-id":"140b40e4-57a2-4b32-82b9-2f8475368f96", + "service-instance-name":"Mobility_Ntwking_vMNS_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507653879814", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"17b401bb-bcf9-45d3-a6fd-78474fefe44d", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254851840", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"2eb492dd-90d5-489a-9a28-5d0ae8657ed9", + "service-instance-name":"MNS_Test_2016-11-03_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147979", + "orchestration-status":null, + "model-invariant-id":"72acf076-e865-4986-9c0e-11a96ac1030e", + "model-version-id":"d16a6ed6-5f06-4af3-a5f6-b35c01cf419d" + }, + { + "service-instance-id":"f2ac821f-d0de-44d2-a635-d3c2768f6e32", + "service-instance-name":"Mobility+Proted+Network+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135548", + "orchestration-status":null, + "model-invariant-id":"f33b82c2-b4bb-4334-bf09-8cf13e7bf26d", + "model-version-id":null + }, + { + "service-instance-id":"75c4fa31-b89f-48d7-9192-2f0fd1918ca0", + "service-instance-name":"MNS%20EXN%20FW%20Cntr2.5%20Aug%2010%20Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135688", + "orchestration-status":null, + "model-invariant-id":"e409b0a0-e12f-432f-ad1c-7447f01a3d32", + "model-version-id":null + }, + { + "service-instance-id":"18c26081-ced9-4295-8363-2f5dec967175", + "service-instance-name":"Mobility+HSL+Network+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135993", + "orchestration-status":null, + "model-invariant-id":"3ea63aa3-15a6-4a22-991c-abcfd62b7131", + "model-version-id":null + }, + { + "service-instance-id":"100c48e7-ff0e-40b3-b34e-fc7789c361ce", + "service-instance-name":"Mobility+Mgmt+Network+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136003", + "orchestration-status":null, + "model-invariant-id":"ab3aff70-17cf-4644-b721-99131c8504c61", + "model-version-id":null + }, + { + "service-instance-id":"b5db5280-84ed-11e6-ae22-56b6b6499611", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254817461", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"dae4013c-8907-4c40-83e2-e4f28227a2cb", + "service-instance-name":"Mobility+Direct+Network+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136019", + "orchestration-status":null, + "model-invariant-id":"4bd8f38f-a4b0-43b9-9a5e-7cf195603521", + "model-version-id":null + }, + { + "service-instance-id":"834befdc-3acc-4a92-823f-079f6ebc693f", + "service-instance-name":"JSA_SEP_2017_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505853446859", + "orchestration-status":"Active", + "model-invariant-id":"b8e4e9a2-27af-4b14-a639-92a2096ed310", + "model-version-id":"aa0eb807-5222-4a3e-9e4b-42d317f656dc" + }, + { + "service-instance-id":"e37ba66a-07e7-4725-b336-a8df9df5cce4", + "service-instance-name":"MNS_DMZ_2017_331_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496850754822", + "orchestration-status":"Active", + "model-invariant-id":"ff0e9212-b0e4-46a8-9177-66763d33b903", + "model-version-id":"2beda03b-a8cc-489a-9f9a-dbfd64353dcb" + }, + { + "service-instance-id":"6c48980f-e78a-4bf6-88f5-eb10f10f05b1", + "service-instance-name":"MNS_DMZ_FW_SVC_062017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499721527038", + "orchestration-status":"Active", + "model-invariant-id":"d77c66b1-9eda-4a58-b0bc-8c0e8405a8b8", + "model-version-id":"44fd0d77-df33-453d-b0d1-7b8f8f504eb5" + }, + { + "service-instance-id":"4ca5a532-6737-447b-9c66-6fef3b9c2f0e", + "service-instance-name":"larry_test_031617", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148634", + "orchestration-status":null, + "model-invariant-id":"1f0f50ab-ceb3-47ef-ba37-69de8d8fbfdd", + "model-version-id":"4758c71e-7599-452d-9cae-6edc698d7684" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vSCP", + "resource-version":"1501532104695", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"b3614fb3-9430-4e21-824a-69b7838a6afa", + "service-instance-name":"vSCP_FW_INT2_20170727_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501864174017", + "orchestration-status":"Active", + "model-invariant-id":"6665336b-718d-4eb9-a4d3-699e6ce1837f", + "model-version-id":"3b667807-757c-4311-b8d2-252b6e471e24" + }, + { + "service-instance-id":"e3eb131c-d057-41af-af1f-72b16599cab0", + "service-instance-name":"larry_sample_test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136033", + "orchestration-status":null, + "model-invariant-id":"7c19573d-4984-4229-b61d-8476612418e5", + "model-version-id":null + }, + { + "service-instance-id":"116dda7f-1728-4276-b976-e750d3e360d6", + "service-instance-name":"vSCP_FW+INT1+Sept+22+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135497", + "orchestration-status":null, + "model-invariant-id":"62097076-5762-4df6-9844-75b590f19ba9", + "model-version-id":null + }, + { + "service-instance-id":"09c90fc9-b977-4611-9f62-d265908cadb4", + "service-instance-name":"larry_vsamp12_test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135516", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":null + }, + { + "service-instance-id":"49a01bf2-7793-4ba8-8b86-85fc7fe37b0f", + "service-instance-name":"e2e10202016", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152561", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":"d6d8331d-fc0a-43d9-9188-b5de9aba281e" + }, + { + "service-instance-id":"ee52ca93-8309-4b66-b935-ffc1a3a5d2b0", + "service-instance-name":"vSCP_INT1_Sept_20_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500661099821", + "orchestration-status":"Active", + "model-invariant-id":"4d97242b-89eb-4a7f-b6b6-a656a64e5ddf", + "model-version-id":"78a2d193-ba47-4a87-ba16-d30ccf281e5f" + }, + { + "service-instance-id":"771e40c1-9449-4564-bd12-3a9c32c9ef88", + "service-instance-name":"larry_test_samp12", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136037", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":null + }, + { + "service-instance-id":"f64cf888-12d7-4d98-900b-d3bb2f2a096c", + "service-instance-name":"vSCP_SVC_INT2_0722", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135475", + "orchestration-status":null, + "model-invariant-id":"d84ee2f6-2dac-4c7c-9408-20074afc0338", + "model-version-id":null + }, + { + "service-instance-id":"25ccf760-66eb-4500-990a-66d423174fae", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254851844", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"23952183-78cb-47ac-8ddd-75fc8d3e71f8", + "service-instance-name":"test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1503321384484", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"2b897f5c-83e1-4600-a76b-d41d54e79e21" + }, + { + "service-instance-id":"6eac6301-8583-4ac0-b1bf-c79eb528c95d", + "service-instance-name":"vSCP_FW_INT2_20170727_SVC_VL", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505230561129", + "orchestration-status":"Active", + "model-invariant-id":"6665336b-718d-4eb9-a4d3-699e6ce1837f", + "model-version-id":"f3e552bf-701e-4caf-b7df-e02fd00d36ed" + }, + { + "service-instance-id":"1966d1ae-fd53-4796-8eef-74d6027a67a8", + "service-instance-name":"LitalTest", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505197462504", + "orchestration-status":"Active", + "model-invariant-id":"2b85a18a-2f54-4e93-b072-08a065b4d2d7", + "model-version-id":"84775948-1cf2-4640-b918-4bbd1e6177ff" + }, + { + "service-instance-id":"7494d3c5-e6d1-4b36-9c1f-0793f4dd0752", + "service-instance-name":"ldf_test_020817", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147995", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"b229a960-06ab-4994-91d1-5ac6a7dac01c", + "service-instance-name":"vSCP_RDM3_Lab_INT2_0712_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502889690377", + "orchestration-status":"Active", + "model-invariant-id":"25f296a0-b941-45ea-8460-46f6d5bea315", + "model-version-id":"9ee7ea07-bcad-4816-bf11-56a3d39a7f53" + }, + { + "service-instance-id":"6292f85e-59cd-4ebf-a4e4-082c81ba7f19", + "service-instance-name":"LitalZ123", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505387397073", + "orchestration-status":"Active", + "model-invariant-id":"9134eae7-8e6a-46fd-9719-59244dbe752f", + "model-version-id":"33e52193-7fee-46d4-a935-9e21332b9d9e" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"VPMS", + "resource-version":"1509738154248", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"116dfe0b-d469-442f-bc8e-ff35ce2b80a3", + "service-instance-name":"Radcom-VPMS-26071-D-01-Networks", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509736844902", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"7b0c7517-fbbf-4931-89d5-3a89e2926723", + "service-instance-name":"SI_VG_test_621_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498077980067", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"dd0faef2-aa6b-4f35-bdbe-2bdda9aa05ef", + "service-instance-name":"clementdemovprobe112", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135500", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":null + }, + { + "service-instance-id":"cd3a9458-12d7-4e08-91cc-3cb1855625ce", + "service-instance-name":"Vive2evscp_vprobe1025", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148167", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"9150328a-922b-46e6-81c0-586d31cdf07a", + "service-instance-name":"Vive2evscp_vprobe1025", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152546", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"1bc1002b-d12a-4cbb-a977-f21bf9b4a7a9", + "service-instance-name":"viv2vscpe2e1025", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152553", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"44fd57f7-6027-40af-88a5-c54f74010397", + "service-instance-name":"larry_test_vprobe", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152702", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"201efd11-6cc4-40e5-b4a7-480ef9966947", + "service-instance-name":"demo1027vprobe", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152779", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + }, + { + "service-instance-id":"7a39c617-cfd5-41f3-986e-2e20c5d25cb6", + "service-instance-name":"vivdemo21517", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147904", + "orchestration-status":null, + "model-invariant-id":"e14dfbd9-1a46-42ba-bfe5-f5bbf6c62e90", + "model-version-id":"dfdc3990-118c-4726-af2a-dd4f65cc58f9" + }, + { + "service-instance-id":"34dc46dc-6193-4dd0-b562-f630f1d27dba", + "service-instance-name":"VPMS-BE-11-2-5-3-SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509112065190", + "orchestration-status":"Active", + "model-invariant-id":"80751ac0-adaa-4a07-917e-0c245a7f5e3c", + "model-version-id":"3474f2ed-560f-497e-9043-f8f3979586da" + }, + { + "service-instance-id":"300856aa-3ac6-4005-ad79-aac342d30006", + "service-instance-name":"vProbes_2017_FE_service_11_2_3_3_0712", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499876569894", + "orchestration-status":"Active", + "model-invariant-id":"32e665f5-e06e-41cb-8d4a-fb319045d290", + "model-version-id":"2f16e52a-5da0-4aa5-843e-8d298747016a" + }, + { + "service-instance-id":"8cc34639-ac55-42f3-8660-1c67dc0e673c", + "service-instance-name":"vPROBE_FE_Svc_2017-334_RDM3", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151275", + "orchestration-status":null, + "model-invariant-id":"ee5851c1-5f2c-48b8-af0b-8d9e9f68baab", + "model-version-id":"a5deb984-f4e6-4b10-a796-1d64ae244bab" + }, + { + "service-instance-id":"bff67aec-a57e-44a2-bfab-a810264e6dd8", + "service-instance-name":"FN-Vprobe-FE-11-2-5-3-SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509131611548", + "orchestration-status":"Active", + "model-invariant-id":"c960274f-4e9f-46fb-93da-23552a849028", + "model-version-id":"0929d7f8-640f-483b-a71c-38d2aa3cfad8" + }, + { + "service-instance-id":"8344643c-7fcb-48dd-9b0d-a3f848387d2d", + "service-instance-name":"vProbe_BE_11.2.1_Svc_2017-333", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150106", + "orchestration-status":null, + "model-invariant-id":"b4888759-3953-48f4-b0dc-23526407dc9b", + "model-version-id":"ae13cb89-d9ff-42b0-8e33-74790bc2b4f3" + }, + { + "service-instance-id":"b06e9f78-398a-466d-af4e-deb66c19bd7d", + "service-instance-name":"Mobility-vprobe-FE-11-2-1-7-Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507062871959", + "orchestration-status":"Active", + "model-invariant-id":"84e719ba-a53a-462e-a794-1a7d9a729783", + "model-version-id":"c2235b48-a005-43d0-9443-3960d47bb4af" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vMMSC", + "resource-version":"1498752217386", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"3364befd-0802-4861-99af-47c5c047239b", + "service-instance-name":"HnportalSriovProviderNet_50", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148521", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"ab305113-b153-48c9-9d65-f0bee4172142", + "service-instance-name":"SI_VFModule_test_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497033325800", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"240f80d8-4b6e-4882-a069-67512dc66888", + "service-instance-name":"HnportalSriovProviderNet_88", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148043", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"48e6f4d3-8335-4669-9708-2e972fd2473f", + "service-instance-name":"HnportalSriovProviderNet_77", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149448", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"afdf3ac0-371e-4f52-bda1-e2273179bdc7", + "service-instance-name":"SI_e2e_vf", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148545", + "orchestration-status":null, + "model-invariant-id":"d26e00fb-cfa7-459d-a22d-94ae6dbd252d", + "model-version-id":"4d4db128-302a-4931-92c6-ee3e688f9270" + }, + { + "service-instance-id":"a6f0ec08-d397-4949-9627-1c97b7f7f79c", + "service-instance-name":"SI_mvm_Test_1707_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497272999236", + "orchestration-status":"Active", + "model-invariant-id":"5db8a2c4-2833-4ccb-859f-e7c0c3424c5c", + "model-version-id":"188db48e-a4f0-4207-b52e-6a58b9c72250" + }, + { + "service-instance-id":"060e9be8-8bcc-4d2d-90b4-c1921e484f93", + "service-instance-name":"si_net_628_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498682941300", + "orchestration-status":"Active", + "model-invariant-id":"e2a5bdba-15e4-488a-85dd-53cea110a61a", + "model-version-id":"0969a516-8867-43b0-b49b-2074894c495a" + }, + { + "service-instance-id":"b09cb6f4-2f79-4378-a2f7-dfe65b7ce412", + "service-instance-name":"SI_alacarte_network_628-1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498682468277", + "orchestration-status":"Active", + "model-invariant-id":"e1a6a74e-c386-4a70-ad67-069a32a49637", + "model-version-id":"3967529c-8101-4542-bc41-e8de36a42799" + }, + { + "service-instance-id":"a19cf235-598c-408b-aa56-644925e978f9", + "service-instance-name":"SI_network_628_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498682714775", + "orchestration-status":"Active", + "model-invariant-id":"1dfcd5bb-bfcb-42e8-99b3-e3daaed63165", + "model-version-id":"bd132c96-b4c1-4663-be24-081431307cfc" + }, + { + "service-instance-id":"526fe500-b06d-49e9-ac9c-9e305468f7d9", + "service-instance-name":"HnportalSriovProviderNet_89", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151379", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"7f05c8e1-0592-46ed-9ddb-ae03f9047730", + "service-instance-name":"VvigServiceVvigSriovProviderNetworkService_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149722", + "orchestration-status":null, + "model-invariant-id":"846f6cf0-cb82-4cd2-b035-f6a5b4c928cc", + "model-version-id":"ff79f357-6b41-488a-b762-87f146aa8dd9" + }, + { + "service-instance-id":"be3b207e-5a2e-4afc-a33e-f7b7234cc1ad", + "service-instance-name":"SI_test_vid619_DD_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497884131196", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"8c15d8b8-d62e-4066-b0bf-2d63224843a9", + "service-instance-name":"SI_mvm241_Testsvc_dd_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497548765890", + "orchestration-status":"Active", + "model-invariant-id":"5db8a2c4-2833-4ccb-859f-e7c0c3424c5c", + "model-version-id":"188db48e-a4f0-4207-b52e-6a58b9c72250" + }, + { + "service-instance-id":"d12538b2-d2f3-4879-87ac-f0b45fc6f84d", + "service-instance-name":"CRSVC_Mobility_Service_297772_ss616y_09_26_17_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506440871179", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"dc4b47a7-9834-4b94-a06d-05968e739fc0", + "service-instance-name":"SI_VNF_FlagTest_627_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498586212786", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"9e3499af-9d03-4831-ba04-05311508bcba", + "service-instance-name":"SI_mvm1707_test_dd_08", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498249852156", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"500da3fa-2b1d-4c7b-bafa-7f725ddf49e8", + "service-instance-name":"Service_Test_Demo_MOW_04", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135581", + "orchestration-status":null, + "model-invariant-id":"a44b38bb-3af7-4dc6-8599-1cdc364410e8", + "model-version-id":null + }, + { + "service-instance-id":"02e038e0-2321-44d5-a042-6c2eb6ee2ea4", + "service-instance-name":"x291364a_ASTRA_vVIG_Service_tutu", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506027459911", + "orchestration-status":"Active", + "model-invariant-id":"81136370-2afb-4738-bc93-de2bc64f573b", + "model-version-id":"056345ca-6105-4bb5-8406-e4e151380bc0" + }, + { + "service-instance-id":"0512c4cc-067f-44c3-a310-cce7efc45307", + "service-instance-name":"SI_VGTest_621_4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498082005284", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"804c924a-00fe-40a9-af10-fbaa4ad99390", + "service-instance-name":"vMMSC_Lab2_020217_Svc_Service_0617", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497721637609", + "orchestration-status":"Active", + "model-invariant-id":"157f09fe-15f1-4c9f-a0bc-c7a92e382f9d", + "model-version-id":"524f7306-5623-46fc-8383-1a695791c4b9" + }, + { + "service-instance-id":"2a5e8844-b9aa-4866-b202-a9ff7f6c6502", + "service-instance-name":"SI_network_621_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498074740050", + "orchestration-status":"Active", + "model-invariant-id":"857587a2-f160-4e8c-b993-b3a373694d26", + "model-version-id":"e27bb69f-8110-4429-9884-e1a79a6ba4e4" + }, + { + "service-instance-id":"590d330a-95c6-4bb7-876c-f88e9a26e24f", + "service-instance-name":"Service_Instance_Demo_MOW_05", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149372", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"96d051cf-0efd-4ce3-bca2-ac625b6f547a", + "service-instance-name":"", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149830", + "orchestration-status":null, + "model-invariant-id":"b5373453-c64a-4bab-88cb-90d8cf04d215", + "model-version-id":"a0b35f52-6f10-4d7d-b50f-6f69ea8a0a3e" + }, + { + "service-instance-id":"1b9e0bf1-13d9-4122-8364-6d94187a6e76", + "service-instance-name":"vMMSC_Lab2_010517_Svc_DS_0714_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500063304219", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"66395952-21dc-4f1d-a02a-41e67b1f5694", + "service-instance-name":"svc_lll_022017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148143", + "orchestration-status":null, + "model-invariant-id":"a88591c3-4de7-4cf8-85ac-50f1f7be15d8", + "model-version-id":"41a82132-9c2c-4eb0-bad4-22daf0d3bf81" + }, + { + "service-instance-id":"97ed0e33-3031-42c7-a4ce-519f3af21132", + "service-instance-name":"HnportalSriovProviderNet_29", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148377", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"022b44be-2fe1-465a-b9ad-e9d6c3c89778", + "service-instance-name":"VMMSC_AIC_3.0_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495556113481", + "orchestration-status":"Active", + "model-invariant-id":"ea082ff0-a1e3-425b-85de-0d083cad3f98", + "model-version-id":"2b32bcfb-7fbc-47c2-8e48-a9187236bcba" + }, + { + "service-instance-id":"72117a7f-e304-4f59-9ba5-d2b6419caa6b", + "service-instance-name":"HnportalSriovProviderNet_100", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148058", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"6e58ad4d-ef9f-47b8-91d9-13624a76118e", + "service-instance-name":"VbngServiceSriovProviderNetworkService_4", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498761340221", + "orchestration-status":"Active", + "model-invariant-id":"5c64e640-ae29-4ace-8af6-f20352b40922", + "model-version-id":"ab72d6c6-66b6-4aa3-9122-eabe35406dd0" + }, + { + "service-instance-id":"26031c62-ca38-4427-a773-ee43a172ed3a", + "service-instance-name":"vMMSC_Test_06292017_Svc_0629_ud6361", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498782124079", + "orchestration-status":"Active", + "model-invariant-id":"a38c1661-ae00-4122-8b73-c58d58915e6b", + "model-version-id":"7b07c320-e0ca-4434-82ba-0e0cf217d4c9" + }, + { + "service-instance-id":"d3055874-7e1c-4a3d-b4d1-8ac3e91fcc28", + "service-instance-name":"vMMSC_Test_08182017_Svc_sb063v", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1503070451727", + "orchestration-status":"Active", + "model-invariant-id":"a38c1661-ae00-4122-8b73-c58d58915e6b", + "model-version-id":"7b07c320-e0ca-4434-82ba-0e0cf217d4c9" + }, + { + "service-instance-id":"4e08c0ae-21e7-4682-999d-1d76958155e2", + "service-instance-name":"VvigServiceVvigTenantOamNetwork_28", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148082", + "orchestration-status":null, + "model-invariant-id":"fe43c7d9-97d6-4cd2-a994-e1c4bb9019c2", + "model-version-id":"addb2e1d-78cf-45e7-9aa8-23bdf22cebe5" + }, + { + "service-instance-id":"9c44641c-a5e8-4a6a-9dc9-bcfec9971761", + "service-instance-name":"SI_vVIG_Service_vVIG_SRIOV_Provider_Network_Service_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149559", + "orchestration-status":null, + "model-invariant-id":"92bc714b-b0a9-42e6-8074-477e167edc48", + "model-version-id":"607ee147-9eb3-47a8-b4fb-ee810e11c681" + }, + { + "service-instance-id":"7b65977b-d255-4ed9-95cd-30ad6d78168c", + "service-instance-name":"VvigTenantOamNetworkSvc0627_14", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506032019917", + "orchestration-status":"Active", + "model-invariant-id":"452396ca-0a6b-4277-b72a-4ce17d00f40a", + "model-version-id":"0d7d7e3d-6077-4f60-a09c-20923d3eaba1" + }, + { + "service-instance-id":"743485e9-654e-449d-938c-3b2fbf7dae03", + "service-instance-name":"a_291364a_ASTRA_vVIG_Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506032583103", + "orchestration-status":"Active", + "model-invariant-id":"81136370-2afb-4738-bc93-de2bc64f573b", + "model-version-id":"056345ca-6105-4bb5-8406-e4e151380bc0" + }, + { + "service-instance-id":"facedbb9-9703-4b61-a04b-d0f23e6a0188", + "service-instance-name":"crSVC_Mobility_Service_297772_ss616y_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506374487982", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"8c56447a-41c8-42b5-80b5-516a1106b891", + "service-instance-name":"VvigTenantOamNetworkSvc0627_13", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506031851552", + "orchestration-status":"Active", + "model-invariant-id":"452396ca-0a6b-4277-b72a-4ce17d00f40a", + "model-version-id":"0d7d7e3d-6077-4f60-a09c-20923d3eaba1" + }, + { + "service-instance-id":"2ddb263f-f061-4b29-8ca6-0b87faf31ac5", + "service-instance-name":"SI_MVM_Test_DD_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495718844830", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"c74aaa37-6eee-48cf-bcd1-ad7cc0a7118f", + "service-instance-name":"SI_vg_518", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495136200559", + "orchestration-status":"Active", + "model-invariant-id":"d26e00fb-cfa7-459d-a22d-94ae6dbd252d", + "model-version-id":"60a0d00c-7af4-4011-8368-c8b21c4d93fc" + }, + { + "service-instance-id":"c9dd1438-d10f-406d-be46-39ff3edfac80", + "service-instance-name":"lll_mvm_sbc_2017", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495134122399", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"fd202522-5f89-4ce9-b892-5f75956f93b3", + "service-instance-name":"HnportalSriovProviderNet_112", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149987", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"a83695df-061f-4871-80fe-0be5f7113ad0", + "service-instance-name":"HnportalSriovProviderNet_53", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148198", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"3d443a66-504d-49d3-967d-5f6523ec2e7b", + "service-instance-name":"HnportalSriovProviderNet_55", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148205", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"9365e5c7-bdd6-4f50-a8d2-96d5b3293842", + "service-instance-name":"HnportalSriovProviderNet_123", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149295", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"1f3f0dda-0835-4606-a142-5468853e09df", + "service-instance-name":"service_intsnace_test", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149662", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"d71ac15f-3774-4418-8df0-6087ab5a554a", + "service-instance-name":"AvpnMowVpeOamNetworkNew_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255150623", + "orchestration-status":null, + "model-invariant-id":"8af0c0bb-6cf2-4815-ba64-d3b4cafc6674", + "model-version-id":"b875ace5-161f-40ac-87f8-7accc181e515" + }, + { + "service-instance-id":"5ba77479-e6e4-4bd1-996e-66d04c0b8314", + "service-instance-name":"SI_ds1707_test_dd_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500409249772", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"e6405160-81f8-42c2-9f9e-930897d9c320", + "service-instance-name":"cSvc_291364a_ASTRA_vVIG_Service_sstest", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506359010172", + "orchestration-status":"Active", + "model-invariant-id":"81136370-2afb-4738-bc93-de2bc64f573b", + "model-version-id":"056345ca-6105-4bb5-8406-e4e151380bc0" + }, + { + "service-instance-id":"537b6fdd-1753-4be6-8b12-d325eebc3e32", + "service-instance-name":"createService_Mobility_Service_297772_09_28_ss616y", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506543405211", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"7f8b4e13-fc46-4b67-b2b7-d6d8226476fe", + "service-instance-name":"x_mdns_2017_1011_CSI", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509729899645", + "orchestration-status":"Active", + "model-invariant-id":"e58733ef-43cb-4b6b-b641-922078b6c88b", + "model-version-id":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "service-instance-id":"4ec4f2c8-6f55-4244-aa36-aac847ac048f", + "service-instance-name":"vMMSC+Sept+22+Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136029", + "orchestration-status":null, + "model-invariant-id":"0e0e6da4-5ca6-4d83-b63c-89c5e3c3d004", + "model-version-id":null + }, + { + "service-instance-id":"39324f70-406f-486e-8b3b-5c0f7abd7640", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254803645", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"9c3042f1-62b9-4ef2-81c0-333fbfbb6510", + "service-instance-name":"SI_vsamp_1117", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135562", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":null + }, + { + "service-instance-id":"4b0f6c91-239c-4311-bb96-6e7326a39147", + "service-instance-name":"larry_test110216", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136003", + "orchestration-status":null, + "model-invariant-id":"7c19573d-4984-4229-b61d-8476612418e5", + "model-version-id":null + }, + { + "service-instance-id":"3191493c-46cd-40d0-b659-c7d1e5f14bda", + "service-instance-name":"vMMSC_MMS_Lab_3_121416_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152771", + "orchestration-status":null, + "model-invariant-id":"c730ab8c-7758-44f6-b613-99182802b3ad", + "model-version-id":"1693b862-1cb5-44dd-b9bc-b2f4c4fb8848" + }, + { + "service-instance-id":"5d826b36-65d8-4110-82d4-14b87fb2496a", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494254819442", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"ee612d09-aa6d-455d-97ad-3259d2098d75", + "service-instance-name":"HnportalSriovProviderNet_58", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151334", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"6301180d-d4d8-447d-88f9-37fa585b1502", + "service-instance-name":"vMMSC_AIC_3.0_0622_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500335097279", + "orchestration-status":"Active", + "model-invariant-id":"8b272d41-0cb9-4fb5-a27a-46bd2c8376e4", + "model-version-id":"43440f00-cb82-4f6a-8025-f960c714f409" + }, + { + "service-instance-id":"a5c57309-c13c-4d93-b849-78857cbc1620", + "service-instance-name":"Mobility_Service_297772_nb5443", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505761426908", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"8d79d575-fd8e-4df9-916b-52ddd77bf63b", + "service-instance-name":"Service_Test_Demo_AVPN_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151051", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"01c24b6b-c466-48d4-a9c5-d49ef23b6912", + "service-instance-name":"AvpnMowVpeOamNetwork_51", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151839", + "orchestration-status":null, + "model-invariant-id":"b5373453-c64a-4bab-88cb-90d8cf04d215", + "model-version-id":"a0b35f52-6f10-4d7d-b50f-6f69ea8a0a3e" + }, + { + "service-instance-id":"c254cb3d-d251-4754-a88f-2ade55a6fea8", + "service-instance-name":"SI_mvm1707_test_dd_05", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496164401395", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"c509bf00-9880-4393-8f24-c8cf4cdb5269", + "service-instance-name":"SI_namespace_test_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497033852857", + "orchestration-status":"Active", + "model-invariant-id":"a03eddac-24c5-4e66-92be-5b9e84647324", + "model-version-id":"106a818f-e37e-4bf7-922b-47c1e6e2e5c1" + }, + { + "service-instance-id":"e42898ae-c05a-4a78-8c43-ac54b0a890cb", + "service-instance-name":"SI_Test_619_DD_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500663275337", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"d6b2677e-12bf-4dfa-b187-da47fffbf0fe", + "service-instance-name":"SI_VBNG_OAM_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148221", + "orchestration-status":null, + "model-invariant-id":"657528ef-8281-4dad-b307-804fdd5be08f", + "model-version-id":"661928ec-45e9-44fc-8d6e-2e1aa6f14e81" + }, + { + "service-instance-id":"faac5e72-5fa0-4a3c-84f9-7f582cb6dac7", + "service-instance-name":"HNPortal_OAM_NET_VTO_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151970", + "orchestration-status":null, + "model-invariant-id":"bc8f060e-bf77-4ec1-b817-fe3f341d3321", + "model-version-id":"965ac7c4-4668-4a47-bfe1-963aac391f6d" + }, + { + "service-instance-id":"4d02aab1-9733-4753-90fa-148b2149f99b", + "service-instance-name":"Service_Instance_Network_Demo_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149737", + "orchestration-status":null, + "model-invariant-id":"39ef2db5-dcf0-4ab9-94a3-0eb75a42038b", + "model-version-id":"b411cc01-20d9-465a-a5ed-f6382045f829" + }, + { + "service-instance-id":"da6cac78-6033-4600-867c-9ecb8e19134b", + "service-instance-name":"si_test_AVPN", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495135690422", + "orchestration-status":"Active", + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"b73c6911-be64-448a-bb4b-7b7a7006507a" + }, + { + "service-instance-id":"463f089f-0397-4423-962d-b6a08fadb1cd", + "service-instance-name":"SI_test_518_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495135626521", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"2b897f5c-83e1-4600-a76b-d41d54e79e21" + }, + { + "service-instance-id":"96ebc75f-fb74-4e90-a907-f8e95e12b2f7", + "service-instance-name":"Mobility_Service_297772_DS_0918_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505761575910", + "orchestration-status":"Active", + "model-invariant-id":"75101e0a-b584-46ce-86fd-94399ce6441b", + "model-version-id":"e40a212d-3dd2-4d14-9567-851e8ae79af6" + }, + { + "service-instance-id":"56ee9345-037e-4145-a678-0c91f31d986c", + "service-instance-name":"Sanity_Service_Redundancy_05", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152568", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"a5196283-561f-43c9-adf6-d303c2bfabd3", + "service-instance-name":"SI_vVIG_Test_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151348", + "orchestration-status":null, + "model-invariant-id":"846f6cf0-cb82-4cd2-b035-f6a5b4c928cc", + "model-version-id":"ff79f357-6b41-488a-b762-87f146aa8dd9" + }, + { + "service-instance-id":"ec6b2b5b-b3cc-428d-951a-246b5c520f2d", + "service-instance-name":"VMMSC_AIC_3.0_MVM_0612", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497298262657", + "orchestration-status":"Active", + "model-invariant-id":"ea082ff0-a1e3-425b-85de-0d083cad3f98", + "model-version-id":"6bd3502f-804e-49fd-b328-d07ee3abe284" + }, + { + "service-instance-id":"8eabacfe-c914-4891-9d1c-68f0ecff1944", + "service-instance-name":"VMMSC_AIC_30_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505484796812", + "orchestration-status":"Active", + "model-invariant-id":"2c1376b7-4041-4f2d-91a4-dcc028712131", + "model-version-id":"71f9aa6c-5a84-4c40-a021-f09c063e55f4" + }, + { + "service-instance-id":"125acc86-c526-4480-802f-a3be8a5cdee5", + "service-instance-name":"Service_Test_demo_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148369", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"7d05c5df-e627-43f2-8684-bac0762dacbd", + "service-instance-name":"HnportalSriovProviderNet_98", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149640", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"62b492ec-66c9-4817-9104-2d5dfa83e323", + "service-instance-name":"SI_vid619_test1707_dd_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497982285526", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"1f138e0a-8e8a-4a2f-b2b8-0d88ce49de11", + "service-instance-name":"SI_VG_620_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497990411263", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"c063b7bc-a213-4c89-9b48-e8369ffc78b2", + "service-instance-name":"SI_test_VG_621_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498078068416", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"fb433045-336d-4394-a158-1cd19f4bea7d", + "service-instance-name":"Service_vPROBE_298109_II_sb_0919", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505833529173", + "orchestration-status":"Active", + "model-invariant-id":"e549507a-af10-42f3-811d-16e2bc9e5691", + "model-version-id":"a6d3b604-0626-4f14-8622-a34865dd2dba" + }, + { + "service-instance-id":"33c37a25-76a7-40fe-b08e-d88384e5654e", + "service-instance-name":"HnportalSriovProviderNet_96", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149632", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"3d689e37-9e68-470e-8b9f-ec1fa2700ff4", + "service-instance-name":"SI_VF_VG_e2e_196_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497884700308", + "orchestration-status":"Active", + "model-invariant-id":"62aa11ac-4360-4d00-a7ba-77c1297e01ae", + "model-version-id":"92002783-e4ba-4c33-9cd9-10a89ce3a7d8" + }, + { + "service-instance-id":"d0dd8197-b506-4118-97c9-29fa49af77fd", + "service-instance-name":"vMMSC_Lab2_010517_Svc_DS_0615_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1497539173826", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"01ea26d4-d83b-4e89-8e9e-f93f4d387933", + "service-instance-name":"SI_test_518_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495132055390", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"c0d6aca3-c3bb-48eb-8912-22a214b99dc1", + "service-instance-name":"SI_test_518", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495131822848", + "orchestration-status":"Active", + "model-invariant-id":"273411dc-71d0-4747-9c85-aaabbe7389a6", + "model-version-id":"2b897f5c-83e1-4600-a76b-d41d54e79e21" + }, + { + "service-instance-id":"b18dcd6c-9581-458e-9e19-606bb7e8cf21", + "service-instance-name":"SI_MVM_test_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495133003732", + "orchestration-status":"Active", + "model-invariant-id":"49bdb42f-45e5-4abc-9b6e-c27a9108675d", + "model-version-id":"afc166fb-1cfb-454a-9e31-d050661fb113" + }, + { + "service-instance-id":"e0aa3f05-1c5d-4205-be72-b4f53c5caf26", + "service-instance-name":"lll_051817_vmme_svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495131287067", + "orchestration-status":"Active", + "model-invariant-id":"bc95bd73-a2c5-4de6-bd79-50d7ce688afa", + "model-version-id":"070d4280-8e82-4338-819c-a15f22943576" + }, + { + "service-instance-id":"8514ebd9-b681-47e7-86bc-6c803b672dc4", + "service-instance-name":"vMMSC_Lab2_020217_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255147818", + "orchestration-status":null, + "model-invariant-id":"157f09fe-15f1-4c9f-a0bc-c7a92e382f9d", + "model-version-id":"efd7db1d-3425-4f33-b637-21d4779e2a86" + }, + { + "service-instance-id":"d11b6e9b-0c72-4e65-a93e-a94d9c673d05", + "service-instance-name":"vMMSC_Test_06292017_Svc_ds_0720_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1500490381801", + "orchestration-status":"Active", + "model-invariant-id":"a38c1661-ae00-4122-8b73-c58d58915e6b", + "model-version-id":"7b07c320-e0ca-4434-82ba-0e0cf217d4c9" + }, + { + "service-instance-id":"78f93382-b473-47c9-b921-3beb1e73477e", + "service-instance-name":"vMMSC_Lab2_010707_Svc_SA", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499368751374", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"512cea94-0ae9-4df5-a670-75fdeb709574", + "service-instance-name":"vMMSC_Lab2_010517_Svc_710", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499701812485", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"c4783855-6c77-4a41-a6b4-d3fe7714a2da", + "service-instance-name":"Service_Instance_Demo_MOW_06", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148700", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"a41138d3-528c-4b59-94a0-cda8f0b86d9b", + "service-instance-name":"Service_vPROBE_298109_sb_0914", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505421696638", + "orchestration-status":"Active", + "model-invariant-id":"429b7c51-6a5d-4bd7-98de-78b2cc58357f", + "model-version-id":"954a9b29-68bd-42aa-8ace-0d8890844ac8" + }, + { + "service-instance-id":"1481c145-43de-41dd-81a0-6a1fd3100a27", + "service-instance-name":"a_2016_191_vIRC_license_svr_Svc_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505491968433", + "orchestration-status":"Active", + "model-invariant-id":"29f1d520-0ac8-49c5-ac32-267530bec4aa", + "model-version-id":"d205a128-cab7-44d2-8167-7e30fa5e08e5" + }, + { + "service-instance-id":"8752cea8-ffee-4dcc-8f80-71641ce7017b", + "service-instance-name":"Service_vMMSC_298109_Svc_DS_0913_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505336746682", + "orchestration-status":"Active", + "model-invariant-id":"59e1f843-41d8-4010-814a-c480f68ec285", + "model-version-id":"78cb3626-e007-41d1-9676-7ac7f1a7e787" + }, + { + "service-instance-id":"5cd4b31f-17e3-4bc2-8a53-fd1aebfc40c8", + "service-instance-name":"HnportalSriovProviderNet_97", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149102", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"d7596d34-bc10-48cb-8282-363e534fa1dc", + "service-instance-name":"SI_demo_0502", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151312", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"5a2cb0c0-e32d-42a9-9a8c-e47ad9dd7978", + "service-instance-name":"HnportalSriovProviderNet_73", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149603", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"1664e68e-5323-4d0a-be16-fbf7a973aede", + "service-instance-name":"HnportalSriovProviderNet_82", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149782", + "orchestration-status":null, + "model-invariant-id":"4cf944d4-fe30-4492-97a5-2c437623b058", + "model-version-id":"62a2b8de-1938-4217-85a2-684e9ce49fdb" + }, + { + "service-instance-id":"83865127-f76c-4425-a775-a1c5678ef3ed", + "service-instance-name":"SI_test_0602", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496430868986", + "orchestration-status":"Active", + "model-invariant-id":"29dc99aa-7648-497f-8e2b-7d5ebedfdae2", + "model-version-id":"79b2df12-3759-426d-9b5e-4a9a0f2a28b1" + }, + { + "service-instance-id":"370073cf-89e9-4526-9fc0-dfff468571a8", + "service-instance-name":"SI_vVIGaas_Test_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148452", + "orchestration-status":null, + "model-invariant-id":"9134eae7-8e6a-46fd-9719-59244dbe752f", + "model-version-id":"8cb824f1-bc2a-46c7-a579-00579ead5392" + }, + { + "service-instance-id":"3295dd00-33a6-4f96-a6b6-88def31c106f", + "service-instance-name":"SI_MOW_AVPN_vMX_BV_vPE_VF_1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149172", + "orchestration-status":null, + "model-invariant-id":"450006b7-9d95-405a-b1c5-8bd617a8600e", + "model-version-id":"1502c920-3ff9-4552-8ebd-d112591ddce8" + }, + { + "service-instance-id":"3b91aa28-6583-4820-9927-0ae67551b300", + "service-instance-name":"AvpnMowVpeOamNetworkNew_3", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151568", + "orchestration-status":null, + "model-invariant-id":"8af0c0bb-6cf2-4815-ba64-d3b4cafc6674", + "model-version-id":"b875ace5-161f-40ac-87f8-7accc181e515" + }, + { + "service-instance-id":"9e479ab8-7e19-4e16-9375-b0591da2b514", + "service-instance-name":"VvigServiceVvigTenantOamNetwork_27", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255149179", + "orchestration-status":null, + "model-invariant-id":"fe43c7d9-97d6-4cd2-a994-e1c4bb9019c2", + "model-version-id":"addb2e1d-78cf-45e7-9aa8-23bdf22cebe5" + }, + { + "service-instance-id":"e757da92-6c9f-44d8-8ff8-15bde01290cb", + "service-instance-name":"SI_MOW_Test_Demo_01", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255148474", + "orchestration-status":null, + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"40b4ce9b-d5bf-4c63-8764-131509623a44" + }, + { + "service-instance-id":"885a79b0-ffd0-4b26-8f34-5e7eb22a959a", + "service-instance-name":"VvigSriovProviderNetworkSvc070317_9", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506032192216", + "orchestration-status":"Active", + "model-invariant-id":"5a4d1b5a-32a3-466f-92b4-1de7a3f6dbf6", + "model-version-id":"28720d53-a61e-468b-90ec-d11ffef70653" + }, + { + "service-instance-id":"7ada0691-8478-46e6-b77d-9509b17ccc5c", + "service-instance-name":"SI_test_245_2", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1495655320076", + "orchestration-status":"Active", + "model-invariant-id":"d48764b1-043d-4783-89e3-8816602dc833", + "model-version-id":"b73c6911-be64-448a-bb4b-7b7a7006507a" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"SSD", + "resource-version":"1494254866295", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"0a6b93fa-7c56-4842-9410-4823067d279d", + "service-instance-name":"demotest1026", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152947", + "orchestration-status":null, + "model-invariant-id":"75e0c233-7f8e-4ded-913d-e9a4f4c99ae2", + "model-version-id":"1120f469-921b-414a-a51b-ddf205101642" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vMOG", + "resource-version":"1500675745252", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"03d65b86-3ee9-4f8c-89a2-360b34b3fd2a", + "service-instance-name":"MOG11_1_VNF_Apr_6", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135885", + "orchestration-status":null, + "model-invariant-id":"b3359087-7153-4520-9eb7-053e0a40ca22", + "model-version-id":null + }, + { + "service-instance-id":"5629382d-c78c-4bce-9766-a4590b7779cd", + "service-instance-name":"MOG11_1_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152835", + "orchestration-status":null, + "model-invariant-id":"aab91394-722a-442f-bef8-cd86227b9e93", + "model-version-id":"a19962d3-8521-416a-a6d8-7645f5b0dcae" + }, + { + "service-instance-id":"8d5b0ad7-fc6f-4de9-844f-3566978953c4", + "service-instance-name":"MOG11ArbiterJune_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498843846042", + "orchestration-status":"Active", + "model-invariant-id":"c800355e-5b79-4afb-93e0-70450dd6968f", + "model-version-id":"6402ee72-0af8-4bea-89a9-ce099a563c70" + }, + { + "service-instance-id":"ccb99e3c-f9b4-4715-924e-57bbedea464a", + "service-instance-name":"xx_2017-328_vMOG1_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151817", + "orchestration-status":null, + "model-invariant-id":"868522e5-efdf-4603-91eb-42538f1da8be", + "model-version-id":"b60e3c88-a403-4439-9f61-b988e4682d32" + }, + { + "service-instance-id":"601fbb00-40ac-46b9-8386-34cc00222757", + "service-instance-name":"ARB14_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1501268179140", + "orchestration-status":"Active", + "model-invariant-id":"a9d2bcc4-b547-48d4-94f0-344bfe277d0b", + "model-version-id":"ee7b9bb7-b1a3-4970-ad14-f3fe96d1a090" + }, + { + "service-instance-id":"d08cc422-cbcd-430a-a8f4-6c5c1a0e2380", + "service-instance-name":"ARB12_0811_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502907960465", + "orchestration-status":"Active", + "model-invariant-id":"97be5a08-14a3-4ed4-8de5-ab4d1511ca5f", + "model-version-id":"4d9a539e-ec4a-449b-8559-ef5d9661bd0a" + }, + { + "service-instance-id":"c2a66d59-7400-4800-9611-13cc29778c7a", + "service-instance-name":"MOG12.1_0628_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499103173947", + "orchestration-status":"Active", + "model-invariant-id":"4c61b8d0-bef3-48d7-bf67-849bafbd21a2", + "model-version-id":"40fed6d5-69c8-42cd-8319-01f531a370fa" + }, + { + "service-instance-id":"4fb75729-e127-4406-951c-f0cf169abda3", + "service-instance-name":"vMOGsvc1607Jul20", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255135530", + "orchestration-status":null, + "model-invariant-id":"6e382ecb-bf03-4111-a125-de4442d84dcb", + "model-version-id":null + }, + { + "service-instance-id":"9dbfb551-6169-48ee-90f9-c7a8b7cb7226", + "service-instance-name":"test_larry_1206", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255136012", + "orchestration-status":null, + "model-invariant-id":"251682bc-ec33-4913-b82e-d7f7e730b256", + "model-version-id":null + }, + { + "service-instance-id":"37aa1cd2-decf-41a8-9edb-ed4407898201", + "service-instance-name":"vMMSC_Lab2_010517_Svc_Rollback", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499697119107", + "orchestration-status":"Active", + "model-invariant-id":"f1935230-01f0-41db-ab27-1862b3e8b296", + "model-version-id":"90683823-a867-4ca0-904b-17374eef10ff" + }, + { + "service-instance-id":"be3a57e8-5462-4ef6-8858-983152bfdfa4", + "service-instance-name":"MOG_11_1_ECOMP_2017_June_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1498614215166", + "orchestration-status":"Active", + "model-invariant-id":"8c8fcdbf-c79c-485a-8a22-a76adc58895e", + "model-version-id":"55bf1513-82e3-4156-9d03-e8f09c1c661e" + }, + { + "service-instance-id":"629cb0e6-0f2d-421b-995e-bc1642bbe0a1", + "service-instance-name":"MOG12_0811_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502736104266", + "orchestration-status":"Active", + "model-invariant-id":"df2f9ea0-fb1e-45a0-9774-01b7e552cd9b", + "model-version-id":"413a6a21-54ab-4c6f-869b-02d57592779a" + }, + { + "service-instance-id":"3a4a80e4-1538-42e5-bc19-dea1db3e1908", + "service-instance-name":"vMOG_12142016_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255152844", + "orchestration-status":null, + "model-invariant-id":"41dad78d-3711-40c4-beb1-dd261d85d8d9", + "model-version-id":"736dafd3-aca9-4acc-ae5f-cdc6c6ce9ce0" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"FIRSTNET", + "resource-version":"1509387060781", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"72745ee0-4236-43a4-a2a7-5156f7d5db4d", + "service-instance-name":"RDM5a_TFNET_CORE_NTWK_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494255151745", + "orchestration-status":null, + "model-invariant-id":"137fb14d-ad74-4295-9d39-400b920f8727", + "model-version-id":"7df8ffac-d441-42cd-acd0-56551443cced" + }, + { + "service-instance-id":"21343700-a9d3-401c-a9cb-d46dacecac8a", + "service-instance-name":"vSAEGW-FN-0630-Svc-RDM5B1", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508454188209", + "orchestration-status":"Active", + "model-invariant-id":"eb710f16-73b4-40b8-9e78-e920fde3d45c", + "model-version-id":"9972f060-be31-4021-975d-331a274e0b26" + }, + { + "service-instance-id":"fe7b3002-fec0-4604-a60d-8ee5df52dd81", + "service-instance-name":"VPMS-FN-26071-T-01-FE-Networks", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508530185281", + "orchestration-status":"Active", + "model-invariant-id":"eb42af12-e2a6-457e-8bba-6ad7e5ebd137", + "model-version-id":"432dc19e-9234-4403-9d00-80fd5b3d3232" + }, + { + "service-instance-id":"2548a167-6203-4bd2-a073-d93ba04375c7", + "service-instance-name":"APNDNS-1710-SVC-FN", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508510732055", + "orchestration-status":"Active", + "model-invariant-id":"76ddddcb-87a7-4b28-999c-10daac2dc6c9", + "model-version-id":"825e8b57-e4d6-4469-9a80-803ce4cf994a" + }, + { + "service-instance-id":"5b1b7638-ccfd-4115-98d1-9a8c79f52a0a", + "service-instance-name":"FMBT_05_30_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1499565576697", + "orchestration-status":"Active", + "model-invariant-id":"dfd6095c-1fad-4c9d-b9e3-1e2766cb7c92", + "model-version-id":"0f5ae9a5-2616-4d44-b654-7e69b507dbb0" + }, + { + "service-instance-id":"6d66c7e2-15c3-4d47-b923-9e55973e06fe", + "service-instance-name":"FN-vProbe-BE-11-2-5-1-Service", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1506374824011", + "orchestration-status":"Active", + "model-invariant-id":"0194713a-1215-435c-bccd-d23407937d9d", + "model-version-id":"0b421ba2-6ef1-4536-8b6e-66bdc6845946" + }, + { + "service-instance-id":"1b7a5027-4df7-4730-be55-8783d629db94", + "service-instance-name":"AMP_NSO_02", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509398451550", + "orchestration-status":"Active", + "model-invariant-id":"3381efde-c9b8-4845-b63f-a0402a8ab428", + "model-version-id":"2adce1bb-768a-4e0f-a3b6-e9bfed8cb813" + }, + { + "service-instance-id":"1f1c8086-ea43-42b7-b16c-cf84bd83fd0d", + "service-instance-name":"VEPDG_Firewall_Svc", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1508447384962", + "orchestration-status":"Active", + "model-invariant-id":"810bf0f9-2ee4-42f4-ae7a-3c3f3d97ce4c", + "model-version-id":"81d50a2e-5848-4cc2-9f5e-403a4aab02de" + }, + { + "service-instance-id":"7bb7ea08-d091-433d-b3e5-1e32617b19d7", + "service-instance-name":"APNDNS-1710-SVC-FN-RDM5a", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509999807693", + "orchestration-status":"Active", + "model-invariant-id":"76ddddcb-87a7-4b28-999c-10daac2dc6c9", + "model-version-id":"825e8b57-e4d6-4469-9a80-803ce4cf994a" + }, + { + "service-instance-id":"bf1175e7-c0c3-403a-8d19-68647dc3a4e6", + "service-instance-name":"AMP_NSO_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509053109463", + "orchestration-status":"Active", + "model-invariant-id":"3381efde-c9b8-4845-b63f-a0402a8ab428", + "model-version-id":"2adce1bb-768a-4e0f-a3b6-e9bfed8cb813" + }, + { + "service-instance-id":"53926da2-2c9a-469a-b559-e4a23f19ba8e", + "service-instance-name":null, + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1494294004261", + "orchestration-status":null, + "model-invariant-id":null, + "model-version-id":null + }, + { + "service-instance-id":"6fa2437f-985a-4dd0-ad42-40ef06061c7d", + "service-instance-name":"vEPDG_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507824795872", + "orchestration-status":"Active", + "model-invariant-id":"b57ef9be-0d97-483d-959c-2f6747ca021f", + "model-version-id":"b36a8bdd-7d6b-47b3-a7d3-e505779cf1dc" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"ACTIVE_CHARGE", + "resource-version":"1494255101364", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"42671b61-6530-4494-b52e-3a553eca7315", + "service-instance-name":"AC_Svc20", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1509480348906", + "orchestration-status":"Active", + "model-invariant-id":"a03eddac-24c5-4e66-92be-5b9e84647324", + "model-version-id":"7b4d4e9d-377a-4afc-a982-f4eeb78e6171" + } + ] + }, + "is-permitted":false + }, + { + "service-type":"vHSS", + "resource-version":"1494254877333", + "service-instances":{ + "service-instance":[ + { + "service-instance-id":"cebf5d96-09d7-4bee-9b5b-c5e116366c5b", + "service-instance-name":"vHSS-EPC-RDM3-Lab-SVC-0921", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1507211398987", + "orchestration-status":"Active", + "model-invariant-id":"b97ec4b9-f87f-424e-a4c2-960970f6954e", + "model-version-id":"b70398dd-3e40-4486-9e17-c5f22e21ecc0" + }, + { + "service-instance-id":"6190f33b-ce93-4dce-8ef9-4c737ee0cccb", + "service-instance-name":"vHSS_RDM3_Lab_SVC", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1496180262725", + "orchestration-status":"Active", + "model-invariant-id":"50bacdfb-7149-401d-aa26-adab4ee95d78", + "model-version-id":"bf701670-69cf-4628-a230-20d60c517cf7" + }, + { + "service-instance-id":"99ec97fc-d9c6-47df-b619-b8d51e693b00", + "service-instance-name":"vHSS-RDM3-Lab1-SVC-0803", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1502120091585", + "orchestration-status":"Active", + "model-invariant-id":"46807b18-b0fc-4023-b21d-2d9ec283062b", + "model-version-id":"a688e914-ca02-4d26-9817-21934b366416" + }, + { + "service-instance-id":"86bad36c-e58a-4681-8d6e-9a72caed750e", + "service-instance-name":"vHSS-EPC-RDM3-Lab-SVC-0830", + "persona-model-id":null, + "persona-model-version":null, + "resource-version":"1505856441762", + "orchestration-status":"Active", + "model-invariant-id":"af10ca62-9116-40fe-90da-5d6d319325a6", + "model-version-id":"71a21369-dec7-4ba1-a80c-ed90181165a3" + } + ] + }, + "is-permitted":false + } + ] + } + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_cloud_resources_request_status.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_cloud_resources_request_status.json new file mode 100644 index 000000000..28338b550 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_cloud_resources_request_status.json @@ -0,0 +1,39 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/mso/cloudResourcesRequests/v1", + "queryParams" : { + "requestId": [ "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "request": { + "requestId": "3212b08c-0dcd-4d20-8c84-51e4f325c14a", + "startTime": "Thu, 02 Jun 2017 02:51:59 GMT", + "instanceReferences": { + "operationalEnvironmentInstanceId": "bc305d54-75b4-431b-adb2-eb6b9e546014" + }, + "requestScope": "operationalEnvironment", + "requestType": "deactivate", + "requestDetails": { + "requestInfo": { + "resourceType": "operationalEnvironment", + "source": "VID", + "requestorId": "az2017" + }, + "requestParameters": { + "operationalEnvironmentType": "VNF" + } + }, + "requestStatus": { + "timestamp": "Thu, 02 Jun 2017 02:53:39 GMT", + "requestState": "COMPLETE", + "statusMessage": "Operational Environment successfully deactivated", + "percentProgress": "100" + } + } + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_logical_link.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_logical_link.json new file mode 100644 index 000000000..c3137e420 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_logical_link.json @@ -0,0 +1,10 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/network/logical-links/logical-link/tesai371ve2:ae10|tesaaisdgraclz1a1:po100" + } , + "simulatorResponse": { + "responseCode": 200, + "body": "{\"link-name\":\"tesai371ve2:ae10|tesaaisdgraclz1a1:po100\",\"in-maint\":false,\"link-type\":\"LAG\",\"resource-version\":\"1508364831589\",\"relationship-list\":{\"relationship\":[{\"related-to\":\"lag-interface\",\"related-link\":\"/aai/v11/network/pnfs/pnf/tesaaisdgraclz1a1/lag-interfaces/lag-interface/po100\",\"relationship-data\":[{\"relationship-key\":\"pnf.pnf-name\",\"relationship-value\":\"tesaaisdgraclz1a1\"},{\"relationship-key\":\"lag-interface.interface-name\",\"relationship-value\":\"po100\"}]},{\"related-to\":\"service-instance\",\"related-link\":\"/aai/v11/business/customers/customer/31739f3e-526b-11e6-beb8-9e71128cae77/service-subscriptions/service-subscription/MISVPN%20Transport/service-instances/service-instance/5e72ff6e-8bab-4ec7-bfc9-54f58c01a666\",\"relationship-data\":[{\"relationship-key\":\"customer.global-customer-id\",\"relationship-value\":\"31739f3e-526b-11e6-beb8-9e71128cae77\"},{\"relationship-key\":\"service-subscription.service-type\",\"relationship-value\":\"MISVPN Transport\"},{\"relationship-key\":\"service-instance.service-instance-id\",\"relationship-value\":\"5e72ff6e-8bab-4ec7-bfc9-54f58c01a666\"}],\"related-to-property\":[{\"property-key\":\"service-instance.service-instance-name\",\"property-value\":\"MISVPN_TRANSPORT_00001\"}]},{\"related-to\":\"lag-interface\",\"related-link\":\"/aai/v11/network/pnfs/pnf/tesai371ve2/lag-interfaces/lag-interface/ae10\",\"relationship-data\":[{\"relationship-key\":\"pnf.pnf-name\",\"relationship-value\":\"tesai371ve2\"},{\"relationship-key\":\"lag-interface.interface-name\",\"relationship-value\":\"ae10\"}]}]}}" + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_operational_environments_aai.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_operational_environments_aai.json new file mode 100644 index 000000000..547f7f8f2 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_operational_environments_aai.json @@ -0,0 +1,88 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v12/cloud-infrastructure/operational-environments" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "operational-environment":[ + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ea", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Activate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship": [ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "operational-environment-name": "Op Env Name", + "operational-environment-type": "VNF", + "operational-environment-status": "Deactivate", + "tenant-context": "Test", + "workload-context": "VNF_Development", + "resource-version": "1505228226913", + "relationship-list": { + "relationship":[ + { + "related-to": "operational-environment", + "related-link": "string", + "relationship-data": [ + { + "relationship-key": "operational-environment.operational-environment-id", + "relationship-value": "UUID of the ECOMP Operational Environment" + } + ], + "related-to-property": [ + { + "property-key": "operational-environment.operational-name", + "property-value": "Name of the ECOMP Operational Environment" + } + ] + } + ] + } + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + }, + { + "operational-environment-id": "f07ca256-96dd-40ad-b4d2-7a77e2a974ed", + "operational-environment-name": "ECOMP Env Name", + "operational-environment-type": "ECOMP", + "operational-environment-status": "Activate", + "tenant-context": "ECOMP Test", + "workload-context": "ECOMP_Development", + "resource-version": "1505228226912" + } + ]} + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_scheduler_details_full.json.REMOVE_ME b/vid-ext-services-simulator/src/main/resources/preset_registration/get_scheduler_details_full.json.REMOVE_ME new file mode 100644 index 000000000..97ba8df7f --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_scheduler_details_full.json.REMOVE_ME @@ -0,0 +1,10 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/scheduler/v1/ChangeManagement/schedules/scheduleDetails" + } , + "simulatorResponse": { + "responseCode": 200, + "body": "[{\"vnfName\":\"ZRDM1MMSC04c53a\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":1,\"createDateTime\":\"2017-09-06T13:29:43Z\",\"optimizerDateTime\":\"2017-09-06T13:29:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-c098bd33-a51e-461b-8fd2-6c4d2666c706\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ecc00d6d8>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"08fb4c32-ecb4-4d72-b618-a6156d3fc53a\",\"scheduleId\":\"08fb4c32-ecb4-4d72-b618-a6156d3fc53a\",\"scheduleName\":\"08fb4c32-ecb4-4d72-b618-a6156d3fc53a\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":2,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":3,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04482c\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":2,\"createDateTime\":\"2017-09-06T13:34:07Z\",\"optimizerDateTime\":\"2017-09-06T13:34:09Z\",\"optimizerMessage\":\"Error while processing request ID: CM-896de9fc-aa5f-446d-b8ea-801f2bb9c282 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 1122, in _do_get\\n return self._pool.get(wait, self._timeout)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/util\/queue.py\\\", line 145, in get\\n raise Empty\\nsqlalchemy.util.queue.Empty\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 58, in __init__\\n self.v_p_topo, self.clli = vserver_pserver_topology(self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 91, in vserver_pserver_topology\\n vertica = AAIVertica()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 19, in __init__\\n self.fresh_connection()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 23, in fresh_connection\\n self.conn, self.cursor = VerticaDB().connect()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/db_adapters\/VerticaDB.py\\\", line 35, in connect\\n conn = self.connection_pool.connect()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 387, in connect\\n return _ConnectionFairy._checkout(self)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 766, in _checkout\\n fairy = _ConnectionRecord.checkout(pool)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 516, in checkout\\n rec = pool._do_get()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 1138, in _do_get\\n self._dec_overflow()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/util\/langhelpers.py\\\", line 66, in __exit__\\n compat.reraise(exc_type, exc_value, exc_tb)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/util\/compat.py\\\", line 187, in reraise\\n raise value\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 1135, in _do_get\\n return self._create_connection()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 333, in _create_connection\\n return _ConnectionRecord(self)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 461, in __init__\\n self.__connect(first_connect_check=True)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 651, in __connect\\n connection = pool._invoke_creator(self)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 294, in <lambda>\\n return lambda crec: creator()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/db_adapters\/VerticaDB.py\\\", line 20, in get_connection\\n jars=[p['db_driver']]\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 381, in connect\\n jconn = _jdbc_connect(jclassname, url, driver_args, jars, libs)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 199, in _jdbc_connect_jpype\\n return jpype.java.sql.DriverManager.getConnection(url, *dargs)\\njpype._jexception.java.sql.SQLExceptionPyRaisable: java.sql.SQLException: [Vertica][VJDBC](2983) FATAL: Database \\\"PDWQ\\\" does not exist\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T13:34:10Z\",\"optimizerTransactionId\":\"e12ee39a-6c9c-42a7-9a96-0cfc6eca482c\",\"scheduleId\":\"e12ee39a-6c9c-42a7-9a96-0cfc6eca482c\",\"scheduleName\":\"e12ee39a-6c9c-42a7-9a96-0cfc6eca482c\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":4,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":5,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":6,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0496bd\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":3,\"createDateTime\":\"2017-09-06T13:38:46Z\",\"optimizerDateTime\":\"2017-09-06T13:38:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-4efdc79b-4513-423d-97a3-f2476dfce035\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4478b4dc18>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"04783c12-8d08-4fba-9266-99a8cbf296bd\",\"scheduleId\":\"04783c12-8d08-4fba-9266-99a8cbf296bd\",\"scheduleName\":\"04783c12-8d08-4fba-9266-99a8cbf296bd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":7,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":8,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":9,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC046e00\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":4,\"createDateTime\":\"2017-09-06T13:39:52Z\",\"optimizerDateTime\":\"2017-09-06T13:40:05Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-80d99308-0be4-492c-b27c-89f023d19f82\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4478b28d68>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"fcb0db08-bbc5-451d-ab25-6e9d3df96e00\",\"scheduleId\":\"fcb0db08-bbc5-451d-ab25-6e9d3df96e00\",\"scheduleName\":\"fcb0db08-bbc5-451d-ab25-6e9d3df96e00\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":10,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":11,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":12,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC042bd4\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":5,\"createDateTime\":\"2017-09-06T13:40:31Z\",\"optimizerDateTime\":\"2017-09-06T13:40:45Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-641ec46e-d776-4fba-b19c-8d5f456047d5\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f44780ce160>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"ca6a8d66-05c3-42a8-b972-87ccd15d2bd4\",\"scheduleId\":\"ca6a8d66-05c3-42a8-b972-87ccd15d2bd4\",\"scheduleName\":\"ca6a8d66-05c3-42a8-b972-87ccd15d2bd4\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":13,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":14,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":15,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC046ad2\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":6,\"createDateTime\":\"2017-09-06T13:43:51Z\",\"optimizerDateTime\":\"2017-09-06T13:44:05Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-f8bb70f2-da49-4bde-9d98-3a34859c8c25\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4478054198>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"e2faba68-5a8e-4991-8fba-6cfa25d16ad2\",\"scheduleId\":\"e2faba68-5a8e-4991-8fba-6cfa25d16ad2\",\"scheduleName\":\"e2faba68-5a8e-4991-8fba-6cfa25d16ad2\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":16,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":17,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":18,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04fa29\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":7,\"createDateTime\":\"2017-09-06T13:44:51Z\",\"optimizerDateTime\":\"2017-09-06T13:44:59Z\",\"optimizerMessage\":\"Error while processing request ID: CM-20223918-3c30-4731-ae08-87c16cdf65db -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 58, in __init__\\n self.v_p_topo, self.clli = vserver_pserver_topology(self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 92, in vserver_pserver_topology\\n res, clli = vertica.query_vnf_pserver(vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 68, in query_vnf_pserver\\n query_res = self.query(query_str)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 41, in query\\n self.cursor.execute(query_string)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 498, in execute\\n self._prep = self._connection.jconn.prepareStatement(operation)\\njpype._jexception.java.sql.SQLExceptionPyRaisable: java.sql.SQLException: [Vertica][VJDBC](4650) ERROR: Schema \\\"pdw_dcaecommon_views\\\" does not exist\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T13:45:20Z\",\"optimizerTransactionId\":\"9123205f-d648-48ce-947a-b0d70f7efa29\",\"scheduleId\":\"9123205f-d648-48ce-947a-b0d70f7efa29\",\"scheduleName\":\"9123205f-d648-48ce-947a-b0d70f7efa29\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":19,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":20,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":21,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":8,\"createDateTime\":\"2017-09-06T13:58:10Z\",\"optimizerDateTime\":\"2017-09-06T13:58:25Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-d717d44e-8832-4651-9459-90e4f3cd7c76\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4470045940>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"e19bf384-9331-4cc7-a368-c0928ae5edc8\",\"scheduleId\":\"e19bf384-9331-4cc7-a368-c0928ae5edc8\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":22,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":23,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":24,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":8,\"createDateTime\":\"2017-09-06T13:58:10Z\",\"optimizerDateTime\":\"2017-09-06T13:58:25Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-d717d44e-8832-4651-9459-90e4f3cd7c76\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4470045940>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"e19bf384-9331-4cc7-a368-c0928ae5edc8\",\"scheduleId\":\"e19bf384-9331-4cc7-a368-c0928ae5edc8\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":22,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":23,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":24,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC042b36\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":9,\"createDateTime\":\"2017-09-06T14:03:20Z\",\"optimizerDateTime\":\"2017-09-06T14:03:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-a23e8e82-9f41-41c7-bb8a-48139fb171c4 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('ZRDM1MMSC042b36', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T14:05:31Z\",\"optimizerTransactionId\":\"0a93b526-2ad5-4cce-901e-ce422a992b36\",\"scheduleId\":\"0a93b526-2ad5-4cce-901e-ce422a992b36\",\"scheduleName\":\"0a93b526-2ad5-4cce-901e-ce422a992b36\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":25,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":26,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":27,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":10,\"createDateTime\":\"2017-09-06T14:09:45Z\",\"optimizerDateTime\":\"2017-09-06T14:09:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-e950ee5f-7db3-42c6-b791-21ac411979f1\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216874e128>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"278d632c-a728-4655-924f-f644886d797a\",\"scheduleId\":\"278d632c-a728-4655-924f-f644886d797a\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":28,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":29,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":30,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":10,\"createDateTime\":\"2017-09-06T14:09:45Z\",\"optimizerDateTime\":\"2017-09-06T14:09:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-e950ee5f-7db3-42c6-b791-21ac411979f1\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216874e128>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"278d632c-a728-4655-924f-f644886d797a\",\"scheduleId\":\"278d632c-a728-4655-924f-f644886d797a\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":28,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":29,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":30,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":11,\"createDateTime\":\"2017-09-06T14:12:11Z\",\"optimizerDateTime\":\"2017-09-06T14:12:25Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-5eb4091f-4e2a-440a-9010-40a794be8091\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216875d978>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"7f57fdb5-5fec-49b1-8336-f3db2bb51f3f\",\"scheduleId\":\"7f57fdb5-5fec-49b1-8336-f3db2bb51f3f\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":31,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":32,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":33,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":11,\"createDateTime\":\"2017-09-06T14:12:11Z\",\"optimizerDateTime\":\"2017-09-06T14:12:25Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-5eb4091f-4e2a-440a-9010-40a794be8091\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216875d978>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"7f57fdb5-5fec-49b1-8336-f3db2bb51f3f\",\"scheduleId\":\"7f57fdb5-5fec-49b1-8336-f3db2bb51f3f\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":31,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":32,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":33,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM3MMEX55\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":12,\"createDateTime\":\"2017-09-06T14:35:41Z\",\"optimizerDateTime\":\"2017-09-06T14:35:49Z\",\"optimizerMessage\":\"Error while processing request ID: CM-2f7a9977-c145-4142-ad36-7d8abda30e4c -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('RDM3WAGPLCP', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T14:37:05Z\",\"optimizerTransactionId\":\"8a975be1-6c45-4c3b-a64c-9856587eb559\",\"scheduleId\":\"8a975be1-6c45-4c3b-a64c-9856587eb559\",\"scheduleName\":\"8a975be1-6c45-4c3b-a64c-9856587eb559\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":34,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":35,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":36,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"zrdm3logs01\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":13,\"createDateTime\":\"2017-09-06T14:39:05Z\",\"optimizerDateTime\":\"2017-09-06T14:39:09Z\",\"optimizerMessage\":\"Error while processing request ID: CM-808c7a9a-d270-47c5-afea-ecacac342395 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('RDM3WAGPLCP', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T14:41:01Z\",\"optimizerTransactionId\":\"90dc2fc6-617e-477b-90e9-408d8b4e0586\",\"scheduleId\":\"90dc2fc6-617e-477b-90e9-408d8b4e0586\",\"scheduleName\":\"90dc2fc6-617e-477b-90e9-408d8b4e0586\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":37,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":38,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":39,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":14,\"createDateTime\":\"2017-09-06T14:42:52Z\",\"optimizerDateTime\":\"2017-09-06T14:43:12Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-c99669c8-00c0-4aa6-aed3-a33aca5e53f1\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216875d6a0>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"fa800f6d-1edb-4e1c-b027-b2a6aa1983d7\",\"scheduleId\":\"fa800f6d-1edb-4e1c-b027-b2a6aa1983d7\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":40,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":41,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":42,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":14,\"createDateTime\":\"2017-09-06T14:42:52Z\",\"optimizerDateTime\":\"2017-09-06T14:43:12Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-c99669c8-00c0-4aa6-aed3-a33aca5e53f1\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216875d6a0>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"fa800f6d-1edb-4e1c-b027-b2a6aa1983d7\",\"scheduleId\":\"fa800f6d-1edb-4e1c-b027-b2a6aa1983d7\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":40,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":41,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":42,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":15,\"createDateTime\":\"2017-09-06T14:42:52Z\",\"optimizerDateTime\":\"2017-09-06T14:43:05Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-76a73b37-2e64-450c-87d9-667137f401f4\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f2187579be0>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"0a3f2fac-6c49-4cc8-b454-e794b51ce8d5\",\"scheduleId\":\"0a3f2fac-6c49-4cc8-b454-e794b51ce8d5\",\"scheduleName\":\"0a3f2fac-6c49-4cc8-b454-e794b51ce8d5\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":43,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":44,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":45,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":16,\"createDateTime\":\"2017-09-06T14:46:33Z\",\"optimizerDateTime\":\"2017-09-06T14:46:39Z\",\"optimizerMessage\":\"Error while processing request ID: CM-05617cfc-5bc8-40d0-bdaa-13b96baf19aa -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/pandas\/core\/indexes\/base.py\\\", line 2442, in get_loc\\n return self._engine.get_loc(key)\\n File \\\"pandas\/_libs\/index.pyx\\\", line 132, in pandas._libs.index.IndexEngine.get_loc (pandas\/_libs\/index.c:5280)\\n File \\\"pandas\/_libs\/index.pyx\\\", line 154, in pandas._libs.index.IndexEngine.get_loc (pandas\/_libs\/index.c:5126)\\n File \\\"pandas\/_libs\/hashtable_class_helper.pxi\\\", line 1210, in pandas._libs.hashtable.PyObjectHashTable.get_item (pandas\/_libs\/hashtable.c:20523)\\n File \\\"pandas\/_libs\/hashtable_class_helper.pxi\\\", line 1218, in pandas._libs.hashtable.PyObjectHashTable.get_item (pandas\/_libs\/hashtable.c:20477)\\nKeyError: 'Asset Id'\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 91, in __init__\\n self.update_raw_schedules()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 128, in update_raw_schedules\\n self.asset_ids = set(df['Asset Id'])\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/pandas\/core\/frame.py\\\", line 1964, in __getitem__\\n return self._getitem_column(key)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/pandas\/core\/frame.py\\\", line 1971, in _getitem_column\\n return self._get_item_cache(key)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/pandas\/core\/generic.py\\\", line 1645, in _get_item_cache\\n values = self._data.get(item)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/pandas\/core\/internals.py\\\", line 3590, in get\\n loc = self.items.get_loc(item)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/pandas\/core\/indexes\/base.py\\\", line 2444, in get_loc\\n return self._engine.get_loc(self._maybe_cast_indexer(key))\\n File \\\"pandas\/_libs\/index.pyx\\\", line 132, in pandas._libs.index.IndexEngine.get_loc (pandas\/_libs\/index.c:5280)\\n File \\\"pandas\/_libs\/index.pyx\\\", line 154, in pandas._libs.index.IndexEngine.get_loc (pandas\/_libs\/index.c:5126)\\n File \\\"pandas\/_libs\/hashtable_class_helper.pxi\\\", line 1210, in pandas._libs.hashtable.PyObjectHashTable.get_item (pandas\/_libs\/hashtable.c:20523)\\n File \\\"pandas\/_libs\/hashtable_class_helper.pxi\\\", line 1218, in pandas._libs.hashtable.PyObjectHashTable.get_item (pandas\/_libs\/hashtable.c:20477)\\nKeyError: ('Asset Id', '(Error requesting AOTS data)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T14:48:49Z\",\"optimizerTransactionId\":\"8c968885-62bb-4105-8764-f4ebcbba44c7\",\"scheduleId\":\"8c968885-62bb-4105-8764-f4ebcbba44c7\",\"scheduleName\":\"8c968885-62bb-4105-8764-f4ebcbba44c7\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":46,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":47,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":48,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":17,\"createDateTime\":\"2017-09-06T15:25:56Z\",\"optimizerDateTime\":\"2017-09-06T15:26:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-bedadd2b-5a62-48e7-8906-4686bc60ddca\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216867c9e8>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"fae33613-1658-49c3-a17e-197d1f92b82c\",\"scheduleId\":\"fae33613-1658-49c3-a17e-197d1f92b82c\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":49,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":50,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":51,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":17,\"createDateTime\":\"2017-09-06T15:25:56Z\",\"optimizerDateTime\":\"2017-09-06T15:26:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-bedadd2b-5a62-48e7-8906-4686bc60ddca\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216867c9e8>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"fae33613-1658-49c3-a17e-197d1f92b82c\",\"scheduleId\":\"fae33613-1658-49c3-a17e-197d1f92b82c\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":49,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":50,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":51,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":18,\"createDateTime\":\"2017-09-06T15:46:40Z\",\"optimizerDateTime\":\"2017-09-06T15:46:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-c79c8def-1b16-4302-9991-db35606eef6d\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216874e128>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"11c41e1b-99bc-4924-b595-a203039c2662\",\"scheduleId\":\"11c41e1b-99bc-4924-b595-a203039c2662\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":52,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":53,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":54,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":18,\"createDateTime\":\"2017-09-06T15:46:40Z\",\"optimizerDateTime\":\"2017-09-06T15:46:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-c79c8def-1b16-4302-9991-db35606eef6d\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216874e128>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"11c41e1b-99bc-4924-b595-a203039c2662\",\"scheduleId\":\"11c41e1b-99bc-4924-b595-a203039c2662\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":52,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":53,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":54,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":19,\"createDateTime\":\"2017-09-06T16:28:31Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"63302ebf-d71c-43fa-aa19-2231bce5e821\",\"scheduleId\":\"63302ebf-d71c-43fa-aa19-2231bce5e821\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":55,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":56,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":57,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":19,\"createDateTime\":\"2017-09-06T16:28:31Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"63302ebf-d71c-43fa-aa19-2231bce5e821\",\"scheduleId\":\"63302ebf-d71c-43fa-aa19-2231bce5e821\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":55,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":56,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":57,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":20,\"createDateTime\":\"2017-09-06T16:58:30Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9a22fc57-bfca-4805-a605-47aeb0eb5e3d\",\"scheduleId\":\"9a22fc57-bfca-4805-a605-47aeb0eb5e3d\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":58,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":59,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":60,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":20,\"createDateTime\":\"2017-09-06T16:58:30Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9a22fc57-bfca-4805-a605-47aeb0eb5e3d\",\"scheduleId\":\"9a22fc57-bfca-4805-a605-47aeb0eb5e3d\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":58,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":59,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":60,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC044d3a\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":21,\"createDateTime\":\"2017-09-06T18:06:07Z\",\"optimizerDateTime\":\"2017-09-06T18:06:15Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-f2e76e71-4838-4988-8f45-55b2848768fd\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.TimeLimitAndVerticalTopology: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f21686de908>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"17e3df1f-5ca9-44c5-8b03-712a99d24d3a\",\"scheduleId\":\"17e3df1f-5ca9-44c5-8b03-712a99d24d3a\",\"scheduleName\":\"17e3df1f-5ca9-44c5-8b03-712a99d24d3a\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":61,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":62,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":63,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1b268\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":22,\"createDateTime\":\"2017-09-06T18:08:12Z\",\"optimizerDateTime\":\"2017-09-06T18:08:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-488f5b0f-7204-4971-95d2-78ccb1d2c00c -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('VNFName2b268', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:09:54Z\",\"optimizerTransactionId\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"scheduleId\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"scheduleName\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":64,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":65,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":66,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2b268\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":22,\"createDateTime\":\"2017-09-06T18:08:12Z\",\"optimizerDateTime\":\"2017-09-06T18:08:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-488f5b0f-7204-4971-95d2-78ccb1d2c00c -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('VNFName2b268', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:09:54Z\",\"optimizerTransactionId\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"scheduleId\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"scheduleName\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":64,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":65,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":66,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3b268\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":22,\"createDateTime\":\"2017-09-06T18:08:12Z\",\"optimizerDateTime\":\"2017-09-06T18:08:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-488f5b0f-7204-4971-95d2-78ccb1d2c00c -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('VNFName2b268', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:09:54Z\",\"optimizerTransactionId\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"scheduleId\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"scheduleName\":\"20445471-438c-42d3-a2f5-c26a26c5b268\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":64,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":65,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":66,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName16316\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":23,\"createDateTime\":\"2017-09-06T18:10:16Z\",\"optimizerDateTime\":\"2017-09-06T18:10:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-c20d6b0a-3fb7-41bb-92e0-f0b5b6116f41 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('VNFName16316', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:11:58Z\",\"optimizerTransactionId\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"scheduleId\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"scheduleName\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":67,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":68,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":69,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName26316\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":23,\"createDateTime\":\"2017-09-06T18:10:16Z\",\"optimizerDateTime\":\"2017-09-06T18:10:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-c20d6b0a-3fb7-41bb-92e0-f0b5b6116f41 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('VNFName16316', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:11:58Z\",\"optimizerTransactionId\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"scheduleId\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"scheduleName\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":67,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":68,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":69,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName36316\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":23,\"createDateTime\":\"2017-09-06T18:10:16Z\",\"optimizerDateTime\":\"2017-09-06T18:10:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-c20d6b0a-3fb7-41bb-92e0-f0b5b6116f41 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('VNFName16316', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:11:58Z\",\"optimizerTransactionId\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"scheduleId\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"scheduleName\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":67,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":68,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":69,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName46316\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":23,\"createDateTime\":\"2017-09-06T18:10:16Z\",\"optimizerDateTime\":\"2017-09-06T18:10:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-c20d6b0a-3fb7-41bb-92e0-f0b5b6116f41 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('VNFName16316', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:11:58Z\",\"optimizerTransactionId\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"scheduleId\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"scheduleName\":\"1ebbb319-89f4-483e-959f-5afccc046316\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":67,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":68,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":69,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04e437\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:22:49Z\",\"executionCompletedTime\":\"2017-09-06T18:22:59Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:22:59Z\",\"scheduleRequest\":{\"id\":24,\"createDateTime\":\"2017-09-06T18:22:46Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d592291e-066b-4d8e-90c9-78d45794e437\",\"scheduleId\":\"d592291e-066b-4d8e-90c9-78d45794e437\",\"scheduleName\":\"d592291e-066b-4d8e-90c9-78d45794e437\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T18:23:59Z\",\"domainData\":[{\"id\":70,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":71,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":72,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1332a\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:24:09Z\",\"executionCompletedTime\":\"2017-09-06T18:24:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:24:19Z\",\"scheduleRequest\":{\"id\":25,\"createDateTime\":\"2017-09-06T18:24:00Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"scheduleId\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"scheduleName\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T18:25:03Z\",\"domainData\":[{\"id\":73,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":74,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":75,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2332a\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:24:09Z\",\"executionCompletedTime\":\"2017-09-06T18:24:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:24:19Z\",\"scheduleRequest\":{\"id\":25,\"createDateTime\":\"2017-09-06T18:24:00Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"scheduleId\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"scheduleName\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T18:25:03Z\",\"domainData\":[{\"id\":73,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":74,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":75,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3332a\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:24:09Z\",\"executionCompletedTime\":\"2017-09-06T18:24:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:24:19Z\",\"scheduleRequest\":{\"id\":25,\"createDateTime\":\"2017-09-06T18:24:00Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"scheduleId\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"scheduleName\":\"60ff53fc-ab6a-4869-9613-7835e14f332a\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T18:25:03Z\",\"domainData\":[{\"id\":73,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":74,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":75,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC041a84\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":26,\"createDateTime\":\"2017-09-06T18:34:43Z\",\"optimizerDateTime\":\"2017-09-06T18:35:10Z\",\"optimizerMessage\":\"Error while processing request ID: CM-14cc9f8c-2752-49eb-965c-780c9d7e9195 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('ZRDM1MMSC041a84', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T18:37:44Z\",\"optimizerTransactionId\":\"a216e6c2-a17e-43da-b470-1db7aad01a84\",\"scheduleId\":\"a216e6c2-a17e-43da-b470-1db7aad01a84\",\"scheduleName\":\"\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":76,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":77,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":78,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC041447\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":27,\"createDateTime\":\"2017-09-06T18:34:43Z\",\"optimizerDateTime\":\"2017-09-06T18:35:09Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-2228a751-88d3-45e5-a86b-19dbfe9e8510\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.TimeLimitAndVerticalTopology: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216867c2b0>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"809dc4fd-d18c-4fb7-beab-3471be5a1447\",\"scheduleId\":\"809dc4fd-d18c-4fb7-beab-3471be5a1447\",\"scheduleName\":\"809dc4fd-d18c-4fb7-beab-3471be5a1447\",\"status\":\"Schedule Failed\",\"userId\":\"\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":79,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":80,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":81,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0415f8\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"string\",\"scheduleRequest\":{\"id\":28,\"createDateTime\":\"2017-09-06T18:34:43Z\",\"optimizerDateTime\":\"2017-09-06T18:35:10Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-11189b82-d81a-495e-808b-771905e5c217\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy string: : 400 Client Error: Bad Request for url: https:\/\/policypdp-conexus-ist.ecomp.cci.att.com:8081\/pdp\/getConfig\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"9a32eda0-214c-4437-85ab-e878dda515f8\",\"scheduleId\":\"9a32eda0-214c-4437-85ab-e878dda515f8\",\"scheduleName\":\"9a32eda0-214c-4437-85ab-e878dda515f8\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":82,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":83,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":84,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC042caa\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":29,\"createDateTime\":\"2017-09-06T18:34:44Z\",\"optimizerDateTime\":\"2017-09-06T18:34:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-b3a9b487-6ba3-4e70-8661-b1d46626c64d\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.TimeLimitAndVerticalTopology: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216867e9b0>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"197d1b45-1a42-466d-9d40-1dfc761f2caa\",\"scheduleId\":\"197d1b45-1a42-466d-9d40-1dfc761f2caa\",\"scheduleName\":\"197d1b45-1a42-466d-9d40-1dfc761f2caa\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":85,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":86,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":87,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC040ec2\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:34:49Z\",\"executionCompletedTime\":\"2017-09-06T18:34:59Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:34:59Z\",\"scheduleRequest\":{\"id\":30,\"createDateTime\":\"2017-09-06T18:34:44Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ef637f24-1e55-4675-a2eb-1b0e82670ec2\",\"scheduleId\":\"ef637f24-1e55-4675-a2eb-1b0e82670ec2\",\"scheduleName\":\"ef637f24-1e55-4675-a2eb-1b0e82670ec2\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":88,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":89,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":90,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":31,\"createDateTime\":\"2017-09-06T18:34:44Z\",\"optimizerDateTime\":\"2017-09-06T18:35:02Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-f35fdfc9-5f5f-4191-add5-4f4dba7b5252\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.TimeLimitAndVerticalTopology: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: \/pdp\/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f216867c9e8>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"4720fed0-1b44-48e8-b70a-ac77951ad28b\",\"scheduleId\":\"4720fed0-1b44-48e8-b70a-ac77951ad28b\",\"scheduleName\":\"4720fed0-1b44-48e8-b70a-ac77951ad28b\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":91,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":92,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":93,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC048be5\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:34:49Z\",\"executionCompletedTime\":\"2017-09-06T18:34:59Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:34:59Z\",\"scheduleRequest\":{\"id\":32,\"createDateTime\":\"2017-09-06T18:34:45Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"46969fb7-0d4c-4e78-80ca-e20759628be5\",\"scheduleId\":\"46969fb7-0d4c-4e78-80ca-e20759628be5\",\"scheduleName\":\"46969fb7-0d4c-4e78-80ca-e20759628be5\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":94,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":95,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":96,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04dd33\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":33,\"createDateTime\":\"2017-09-06T18:34:45Z\",\"optimizerDateTime\":\"2017-09-06T18:35:19Z\",\"optimizerMessage\":\"Error while processing request ID: CM-7412bdb6-77de-42d7-ad9c-45279c7363c8 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('ZRDM1MMSC04dd33', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:36:38Z\",\"optimizerTransactionId\":\"d57c8311-1a5d-481b-a014-f12dcd47dd33\",\"scheduleId\":\"d57c8311-1a5d-481b-a014-f12dcd47dd33\",\"scheduleName\":\"d57c8311-1a5d-481b-a014-f12dcd47dd33\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":97,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":98,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":99,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04af3e\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":34,\"createDateTime\":\"2017-09-06T18:37:13Z\",\"optimizerDateTime\":\"2017-09-06T18:37:19Z\",\"optimizerMessage\":\"Error while processing request ID: CM-c5f53e56-a1df-4716-8d33-e7ba18f05ae0 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('ZRDM1MMSC04af3e', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T18:48:18Z\",\"optimizerTransactionId\":\"a4dc9988-d60d-464f-9cae-8be82ec5af3e\",\"scheduleId\":\"a4dc9988-d60d-464f-9cae-8be82ec5af3e\",\"scheduleName\":\"\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":100,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":101,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":102,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC040127\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":35,\"createDateTime\":\"2017-09-06T18:37:13Z\",\"optimizerDateTime\":\"2017-09-06T18:37:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-c144c33b-9160-4235-9e7c-6b3655220eb7 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('ZRDM1MMSC040127', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:47:36Z\",\"optimizerTransactionId\":\"7d6f96b3-3ad6-4780-8c53-e9d1e2420127\",\"scheduleId\":\"7d6f96b3-3ad6-4780-8c53-e9d1e2420127\",\"scheduleName\":\"7d6f96b3-3ad6-4780-8c53-e9d1e2420127\",\"status\":\"Optimization Failed\",\"userId\":\"\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":103,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":104,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":105,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04da8c\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"string\",\"scheduleRequest\":{\"id\":36,\"createDateTime\":\"2017-09-06T18:37:13Z\",\"optimizerDateTime\":\"2017-09-06T18:37:29Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-1b03de7d-e994-4255-80bc-d0f0efd87eab\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy string: : 400 Client Error: Bad Request for url: https:\/\/policypdp-conexus-ist.ecomp.cci.att.com:8081\/pdp\/getConfig\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"8a691adc-74c3-474b-bb3e-615c363eda8c\",\"scheduleId\":\"8a691adc-74c3-474b-bb3e-615c363eda8c\",\"scheduleName\":\"8a691adc-74c3-474b-bb3e-615c363eda8c\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":106,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":107,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":108,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC040690\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":37,\"createDateTime\":\"2017-09-06T18:37:14Z\",\"optimizerDateTime\":\"2017-09-06T18:37:29Z\",\"optimizerMessage\":\"Error while processing request ID: CM-d3189f7c-1cd5-4e2d-8a60-248366da663d -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 501, in execute\\n is_rs = self._prep.execute()\\njpype._jexception.java.sql.SQLTransientExceptionPyRaisable: java.sql.SQLTransientException: [Vertica][VJDBC](3587) ERROR: Insufficient resources to execute plan on pool rp_rpt_short [Timedout waiting for resource request: General cannot supply required overflow resources: Memory(KB) Exceeded: Requested = 9384035, Free = 1469252 (Limit = 21081784, Used = 19612532) (queueing threshold)]\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 58, in __init__\\n self.v_p_topo, self.clli = vserver_pserver_topology(self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 92, in vserver_pserver_topology\\n res, clli = vertica.query_vnf_pserver(vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 68, in query_vnf_pserver\\n query_res = self.query(query_str)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 47, in query\\n self.cursor.execute(query_string)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 503, in execute\\n _handle_sql_exception()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 156, in _handle_sql_exception_jpype\\n reraise(exc_type, exc_info[1], exc_info[2])\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 57, in reraise\\n raise value.with_traceback(tb)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 501, in execute\\n is_rs = self._prep.execute()\\njaydebeapi.DatabaseError: (SQLTransientExceptionPyRaisable(<jpype._jclass.java.sql.SQLTransientException object at 0x7f2168501128>,), '(Error requesting AAI data)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T18:57:30Z\",\"optimizerTransactionId\":\"bcee039e-b6ac-4810-adbc-077b39bc0690\",\"scheduleId\":\"bcee039e-b6ac-4810-adbc-077b39bc0690\",\"scheduleName\":\"bcee039e-b6ac-4810-adbc-077b39bc0690\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":109,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":110,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":111,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC041b53\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:37:19Z\",\"executionCompletedTime\":\"2017-09-06T18:37:29Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:37:29Z\",\"scheduleRequest\":{\"id\":38,\"createDateTime\":\"2017-09-06T18:37:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"6d2d9d4c-a625-4a23-85dd-7670fc211b53\",\"scheduleId\":\"6d2d9d4c-a625-4a23-85dd-7670fc211b53\",\"scheduleName\":\"6d2d9d4c-a625-4a23-85dd-7670fc211b53\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":112,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":113,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":114,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":39,\"createDateTime\":\"2017-09-06T18:37:14Z\",\"optimizerDateTime\":\"2017-09-06T18:37:39Z\",\"optimizerMessage\":\"Error while processing request ID: CM-c559dc3d-f679-4dfb-a012-4349306d6a15 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:58:15Z\",\"optimizerTransactionId\":\"d728e2b4-dc51-4a07-a8af-796732fbb4c5\",\"scheduleId\":\"d728e2b4-dc51-4a07-a8af-796732fbb4c5\",\"scheduleName\":\"d728e2b4-dc51-4a07-a8af-796732fbb4c5\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":115,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":116,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":117,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0432c3\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:37:19Z\",\"executionCompletedTime\":\"2017-09-06T18:37:29Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:37:29Z\",\"scheduleRequest\":{\"id\":40,\"createDateTime\":\"2017-09-06T18:37:15Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c255b230-6e7b-4c59-901f-1863c17932c3\",\"scheduleId\":\"c255b230-6e7b-4c59-901f-1863c17932c3\",\"scheduleName\":\"c255b230-6e7b-4c59-901f-1863c17932c3\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":118,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":119,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":120,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04f62d\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":41,\"createDateTime\":\"2017-09-06T18:37:15Z\",\"optimizerDateTime\":\"2017-09-06T18:37:49Z\",\"optimizerMessage\":\"Error while processing request ID: CM-c004b8a8-e6bb-4d9d-8b70-3da567809517 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 501, in execute\\n is_rs = self._prep.execute()\\njpype._jexception.java.sql.SQLTransientExceptionPyRaisable: java.sql.SQLTransientException: [Vertica][VJDBC](3587) ERROR: Insufficient resources to execute plan on pool rp_rpt_short [Timedout waiting for resource request: General cannot supply required overflow resources: Memory(KB) Exceeded: Requested = 10429176, Free = 1602650 (Limit = 21760824, Used = 20158174) (queueing threshold)]\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 58, in __init__\\n self.v_p_topo, self.clli = vserver_pserver_topology(self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 92, in vserver_pserver_topology\\n res, clli = vertica.query_vnf_pserver(vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 68, in query_vnf_pserver\\n query_res = self.query(query_str)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 47, in query\\n self.cursor.execute(query_string)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 503, in execute\\n _handle_sql_exception()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 156, in _handle_sql_exception_jpype\\n reraise(exc_type, exc_info[1], exc_info[2])\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 57, in reraise\\n raise value.with_traceback(tb)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 501, in execute\\n is_rs = self._prep.execute()\\njaydebeapi.DatabaseError: (SQLTransientExceptionPyRaisable(<jpype._jclass.java.sql.SQLTransientException object at 0x7f21685014a8>,), '(Error requesting AAI data)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":1,\"optimizerReturnDateTime\":\"2017-09-06T18:58:01Z\",\"optimizerTransactionId\":\"5baed129-ae00-43ae-845b-0981a71bf62d\",\"scheduleId\":\"5baed129-ae00-43ae-845b-0981a71bf62d\",\"scheduleName\":\"5baed129-ae00-43ae-845b-0981a71bf62d\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":121,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":122,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":123,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC044179\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:47:59Z\",\"executionCompletedTime\":\"2017-09-06T18:48:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:48:09Z\",\"scheduleRequest\":{\"id\":42,\"createDateTime\":\"2017-09-06T18:47:49Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cca19fc3-df0f-4f82-b98f-654bc4ac4179\",\"scheduleId\":\"cca19fc3-df0f-4f82-b98f-654bc4ac4179\",\"scheduleName\":\"cca19fc3-df0f-4f82-b98f-654bc4ac4179\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T18:49:02Z\",\"domainData\":[{\"id\":124,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":125,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":126,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName116cf\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:49:09Z\",\"executionCompletedTime\":\"2017-09-06T18:49:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:49:19Z\",\"scheduleRequest\":{\"id\":43,\"createDateTime\":\"2017-09-06T18:49:02Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"scheduleId\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"scheduleName\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T18:50:01Z\",\"domainData\":[{\"id\":127,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":128,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":129,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName216cf\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:49:09Z\",\"executionCompletedTime\":\"2017-09-06T18:49:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:49:19Z\",\"scheduleRequest\":{\"id\":43,\"createDateTime\":\"2017-09-06T18:49:02Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"scheduleId\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"scheduleName\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T18:50:01Z\",\"domainData\":[{\"id\":127,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":128,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":129,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName316cf\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T18:49:09Z\",\"executionCompletedTime\":\"2017-09-06T18:49:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T18:49:19Z\",\"scheduleRequest\":{\"id\":43,\"createDateTime\":\"2017-09-06T18:49:02Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"scheduleId\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"scheduleName\":\"f0d425c0-c5af-47d1-822e-d95118f916cf\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T18:50:01Z\",\"domainData\":[{\"id\":127,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":128,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":129,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04160b\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T19:05:29Z\",\"executionCompletedTime\":\"2017-09-06T19:05:39Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T19:05:39Z\",\"scheduleRequest\":{\"id\":44,\"createDateTime\":\"2017-09-06T19:05:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"38967233-3d9f-4e79-8da3-ff78684b160b\",\"scheduleId\":\"38967233-3d9f-4e79-8da3-ff78684b160b\",\"scheduleName\":\"38967233-3d9f-4e79-8da3-ff78684b160b\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T19:06:03Z\",\"domainData\":[{\"id\":130,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":131,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":132,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName17c71\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T19:06:09Z\",\"executionCompletedTime\":\"2017-09-06T19:06:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T19:06:19Z\",\"scheduleRequest\":{\"id\":45,\"createDateTime\":\"2017-09-06T19:06:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"scheduleId\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"scheduleName\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T19:07:01Z\",\"domainData\":[{\"id\":133,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":134,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":135,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName27c71\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T19:06:09Z\",\"executionCompletedTime\":\"2017-09-06T19:06:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T19:06:19Z\",\"scheduleRequest\":{\"id\":45,\"createDateTime\":\"2017-09-06T19:06:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"scheduleId\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"scheduleName\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T19:07:01Z\",\"domainData\":[{\"id\":133,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":134,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":135,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName37c71\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-06T19:06:09Z\",\"executionCompletedTime\":\"2017-09-06T19:06:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T19:06:19Z\",\"scheduleRequest\":{\"id\":45,\"createDateTime\":\"2017-09-06T19:06:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"scheduleId\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"scheduleName\":\"8a64151e-d82e-4b08-ac36-6e71fb907c71\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T19:07:01Z\",\"domainData\":[{\"id\":133,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":134,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":135,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-06T20:51:33Z\",\"finishTime\":\"2017-09-06T20:53:23Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-06T20:51:33Z\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":46,\"createDateTime\":\"2017-09-06T20:50:33Z\",\"optimizerDateTime\":\"2017-09-06T20:59:32Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T20:59:33Z\",\"optimizerTransactionId\":\"ae44e0c3-2c99-40c1-954f-e2326ca6bf37\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-06T20:51:33.000Z\\\",\\\"finishTime\\\":\\\"2017-09-06T20:53:23.000Z\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-06T20:51:33.000Z\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"ae44e0c3-2c99-40c1-954f-e2326ca6bf37\",\"scheduleName\":\"ae44e0c3-2c99-40c1-954f-e2326ca6bf37\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":136,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":137,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":138,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-06T21:02:06Z\",\"finishTime\":\"2017-09-06T21:03:56Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-06T21:02:06Z\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":47,\"createDateTime\":\"2017-09-06T21:01:06Z\",\"optimizerDateTime\":\"2017-09-06T21:01:09Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T21:01:09Z\",\"optimizerTransactionId\":\"8ebf802b-8d48-49a2-871e-d41d4f883686\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-06T21:02:06.000Z\\\",\\\"finishTime\\\":\\\"2017-09-06T21:03:56.000Z\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-06T21:02:06.000Z\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"8ebf802b-8d48-49a2-871e-d41d4f883686\",\"scheduleName\":\"8ebf802b-8d48-49a2-871e-d41d4f883686\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":139,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":140,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":141,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-06T21:05:13Z\",\"finishTime\":\"2017-09-06T21:07:03Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-06T21:05:13Z\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":48,\"createDateTime\":\"2017-09-06T21:04:13Z\",\"optimizerDateTime\":\"2017-09-06T21:04:19Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T21:04:19Z\",\"optimizerTransactionId\":\"b1c0034c-325e-451d-b395-6853d8958050\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-06T21:05:13.000Z\\\",\\\"finishTime\\\":\\\"2017-09-06T21:07:03.000Z\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-06T21:05:13.000Z\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"b1c0034c-325e-451d-b395-6853d8958050\",\"scheduleName\":\"b1c0034c-325e-451d-b395-6853d8958050\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":142,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":143,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":144,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-06T21:49:17Z\",\"finishTime\":\"2017-09-06T21:51:07Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-06T21:49:17Z\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":49,\"createDateTime\":\"2017-09-06T21:48:19Z\",\"optimizerDateTime\":\"2017-09-06T21:48:26Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T21:48:27Z\",\"optimizerTransactionId\":\"0d2577f3-b3fc-4176-b714-3f42fea60a93\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-06T21:49:17.000Z\\\",\\\"finishTime\\\":\\\"2017-09-06T21:51:07.000Z\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-06T21:49:17.000Z\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"0d2577f3-b3fc-4176-b714-3f42fea60a93\",\"scheduleName\":\"0d2577f3-b3fc-4176-b714-3f42fea60a93\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":145,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":146,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":147,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-06T21:50:50Z\",\"finishTime\":\"2017-09-06T21:52:40Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-06T21:50:50Z\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":50,\"createDateTime\":\"2017-09-06T21:49:50Z\",\"optimizerDateTime\":\"2017-09-06T21:49:56Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T21:49:56Z\",\"optimizerTransactionId\":\"2523f915-7b00-4247-8eba-34362fee0fce\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-06T21:50:50.000Z\\\",\\\"finishTime\\\":\\\"2017-09-06T21:52:40.000Z\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-06T21:50:50.000Z\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"2523f915-7b00-4247-8eba-34362fee0fce\",\"scheduleName\":\"2523f915-7b00-4247-8eba-34362fee0fce\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":148,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":149,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":150,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-06T22:03:57Z\",\"finishTime\":\"2017-09-06T22:05:47Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-06T22:03:57Z\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"dispatchTime\":\"2017-09-06T22:03:56Z\",\"executionCompletedTime\":\"2017-09-06T22:04:06Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-06T22:04:06Z\",\"scheduleRequest\":{\"id\":51,\"createDateTime\":\"2017-09-06T22:02:58Z\",\"optimizerDateTime\":\"2017-09-06T22:03:02Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T22:03:03Z\",\"optimizerTransactionId\":\"af74a742-72b5-4e4e-ab9b-a4538b90ffcb\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-06T22:03:57.000Z\\\",\\\"finishTime\\\":\\\"2017-09-06T22:05:47.000Z\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-06T22:03:57.000Z\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"af74a742-72b5-4e4e-ab9b-a4538b90ffcb\",\"scheduleName\":\"af74a742-72b5-4e4e-ab9b-a4538b90ffcb\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-06T22:04:56Z\",\"domainData\":[{\"id\":151,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":152,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":153,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-06T22:03:04Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":52,\"createDateTime\":\"2017-09-06T22:37:37Z\",\"optimizerDateTime\":\"2017-09-06T22:39:40Z\",\"optimizerMessage\":\"'' is too short\\n\\nFailed validating 'minLength' in schema['properties']['change_elements']['items']['properties']['group_id']:\\n {'description': 'Group to which the elements belongs to.',\\n 'minLength': 1,\\n 'type': 'string'}\\n\\nOn instance['change_elements'][0]['group_id']:\\n ''\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T22:44:40Z\",\"optimizerTransactionId\":\"570eb51d-cea5-4e18-bf39-a9d7f9c58ca5\",\"schedule\":\"[]\",\"scheduleId\":\"570eb51d-cea5-4e18-bf39-a9d7f9c58ca5\",\"scheduleName\":\"570eb51d-cea5-4e18-bf39-a9d7f9c58ca5\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":154,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":155,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":156,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":53,\"createDateTime\":\"2017-09-06T23:02:11Z\",\"optimizerDateTime\":\"2017-09-06T23:02:20Z\",\"optimizerMessage\":\"'' is too short\\n\\nFailed validating 'minLength' in schema['properties']['change_elements']['items']['properties']['group_id']:\\n {'description': 'Group to which the elements belongs to.',\\n 'minLength': 1,\\n 'type': 'string'}\\n\\nOn instance['change_elements'][0]['group_id']:\\n ''\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T23:04:36Z\",\"optimizerTransactionId\":\"6b4d2da8-d128-4ea1-b039-c6a92d1cd471\",\"schedule\":\"[]\",\"scheduleId\":\"6b4d2da8-d128-4ea1-b039-c6a92d1cd471\",\"scheduleName\":\"6b4d2da8-d128-4ea1-b039-c6a92d1cd471\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":157,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":158,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":159,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone\",\"scheduleRequest\":{\"id\":54,\"createDateTime\":\"2017-09-06T23:10:55Z\",\"optimizerDateTime\":\"2017-09-06T23:11:00Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T23:16:03Z\",\"optimizerTransactionId\":\"e8049709-dbf2-427b-809c-2a9119a3c334\",\"schedule\":\"[]\",\"scheduleId\":\"e8049709-dbf2-427b-809c-2a9119a3c334\",\"scheduleName\":\"e8049709-dbf2-427b-809c-2a9119a3c334\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":160,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":161,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":162,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1707.Demo_TimeLimitAndVerticalTopology_vnf\",\"scheduleRequest\":{\"id\":55,\"createDateTime\":\"2017-09-06T23:37:24Z\",\"optimizerDateTime\":\"2017-09-06T23:37:31Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-06T23:39:13Z\",\"optimizerTransactionId\":\"55dcaee8-7240-4030-931c-4805338ed0da\",\"schedule\":\"[]\",\"scheduleId\":\"55dcaee8-7240-4030-931c-4805338ed0da\",\"scheduleName\":\"55dcaee8-7240-4030-931c-4805338ed0da\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":163,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":164,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":165,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1707.Demo_TimeLimitAndVerticalTopology_vnf\",\"scheduleRequest\":{\"id\":56,\"createDateTime\":\"2017-09-07T13:11:04Z\",\"optimizerDateTime\":\"2017-09-07T13:52:10Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-11fab5bb-5e77-4dc9-876e-d3288bd99551\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"21229d35-aaeb-4cc1-8df2-40c8f2301cbe\",\"scheduleId\":\"21229d35-aaeb-4cc1-8df2-40c8f2301cbe\",\"scheduleName\":\"21229d35-aaeb-4cc1-8df2-40c8f2301cbe\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":166,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":167,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":168,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0483db\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":57,\"createDateTime\":\"2017-09-07T14:07:25Z\",\"optimizerDateTime\":\"2017-09-07T14:07:30Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-c5122dc2-856d-4606-a902-a1ce2aed056f\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"2e688faf-b6ad-43a1-a8ad-027a446983db\",\"scheduleId\":\"2e688faf-b6ad-43a1-a8ad-027a446983db\",\"scheduleName\":\"2e688faf-b6ad-43a1-a8ad-027a446983db\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":169,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":170,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":171,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC049963\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":58,\"createDateTime\":\"2017-09-07T14:27:33Z\",\"optimizerDateTime\":\"2017-09-07T14:27:40Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-aa7f0b70-372b-4fb2-9fcd-51444a28bf59\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"2a0d3a95-7e3a-4381-9922-8891245d9963\",\"scheduleId\":\"2a0d3a95-7e3a-4381-9922-8891245d9963\",\"scheduleName\":\"2a0d3a95-7e3a-4381-9922-8891245d9963\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":172,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":173,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":174,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC041314\",\"status\":\"Deleted\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":59,\"createDateTime\":\"2017-09-07T14:28:51Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"47388cd2-1ed4-4833-a517-36ec29e81314\",\"scheduleId\":\"47388cd2-1ed4-4833-a517-36ec29e81314\",\"scheduleName\":\"47388cd2-1ed4-4833-a517-36ec29e81314\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T14:28:52Z\",\"domainData\":[{\"id\":175,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":176,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":177,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC047820\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":60,\"createDateTime\":\"2017-09-07T15:38:00Z\",\"optimizerDateTime\":\"2017-09-07T15:38:10Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-1c1e932d-50af-4c6d-9dd9-31422626fd2f\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"3671791a-3af7-4768-9bbf-0c39e2557820\",\"scheduleId\":\"3671791a-3af7-4768-9bbf-0c39e2557820\",\"scheduleName\":\"3671791a-3af7-4768-9bbf-0c39e2557820\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":178,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":179,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":180,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04bfe9\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":61,\"createDateTime\":\"2017-09-07T15:43:51Z\",\"optimizerDateTime\":\"2017-09-07T15:44:00Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-f13a71fc-42cf-46f2-9c9c-be432a651c48\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"305f2522-3020-4cfc-82c8-75a8af5ebfe9\",\"scheduleId\":\"305f2522-3020-4cfc-82c8-75a8af5ebfe9\",\"scheduleName\":\"305f2522-3020-4cfc-82c8-75a8af5ebfe9\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":181,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":182,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":183,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04369f\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":62,\"createDateTime\":\"2017-09-07T15:55:02Z\",\"optimizerDateTime\":\"2017-09-07T15:55:10Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-cf1c943e-6926-461f-af39-3ff44aa9b752\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"87a0c9c2-53c8-4ee6-baf8-3a538ca3369f\",\"scheduleId\":\"87a0c9c2-53c8-4ee6-baf8-3a538ca3369f\",\"scheduleName\":\"87a0c9c2-53c8-4ee6-baf8-3a538ca3369f\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":184,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":185,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":186,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b5e0\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":63,\"createDateTime\":\"2017-09-07T16:03:49Z\",\"optimizerDateTime\":\"2017-09-07T16:03:50Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-be4f7c92-bb76-46ff-9db7-a47cc77b1493\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"e204e486-2d24-4f35-8097-07c51b49b5e0\",\"scheduleId\":\"e204e486-2d24-4f35-8097-07c51b49b5e0\",\"scheduleName\":\"e204e486-2d24-4f35-8097-07c51b49b5e0\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":187,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":188,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":189,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC048dc3\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":64,\"createDateTime\":\"2017-09-07T16:11:15Z\",\"optimizerDateTime\":\"2017-09-07T16:11:20Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-0d98e071-c31c-435f-962a-fcab2001bbe6\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"829ca9e9-ce3f-49bc-b5d7-0199251b8dc3\",\"scheduleId\":\"829ca9e9-ce3f-49bc-b5d7-0199251b8dc3\",\"scheduleName\":\"829ca9e9-ce3f-49bc-b5d7-0199251b8dc3\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":190,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":191,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":192,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1707.Demo_TimeLimitAndVerticalTopology_vnf\",\"scheduleRequest\":{\"id\":65,\"createDateTime\":\"2017-09-07T16:43:19Z\",\"optimizerDateTime\":\"2017-09-07T16:43:20Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-04830166-f68a-4fb6-bbe0-70602f30648c\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"a5ed87e7-c3ad-4893-959f-a022dbdaae0e\",\"scheduleId\":\"a5ed87e7-c3ad-4893-959f-a022dbdaae0e\",\"scheduleName\":\"a5ed87e7-c3ad-4893-959f-a022dbdaae0e\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":193,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":194,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":195,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":66,\"createDateTime\":\"2017-09-07T16:49:45Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2c345d6c-70ee-4186-a82a-ce7e0542d10d\",\"scheduleId\":\"2c345d6c-70ee-4186-a82a-ce7e0542d10d\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":196,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":197,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":198,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":66,\"createDateTime\":\"2017-09-07T16:49:45Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2c345d6c-70ee-4186-a82a-ce7e0542d10d\",\"scheduleId\":\"2c345d6c-70ee-4186-a82a-ce7e0542d10d\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":196,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":197,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":198,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b03a\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":67,\"createDateTime\":\"2017-09-07T16:55:43Z\",\"optimizerDateTime\":\"2017-09-07T16:55:50Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-79c29ea6-66e4-450a-a5c6-9f0e1eb400fb\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"7d8eb7e4-89ca-44a6-875a-17ec43d2b03a\",\"scheduleId\":\"7d8eb7e4-89ca-44a6-875a-17ec43d2b03a\",\"scheduleName\":\"7d8eb7e4-89ca-44a6-875a-17ec43d2b03a\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":199,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":200,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":201,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC040ed3\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T17:09:40Z\",\"executionCompletedTime\":\"2017-09-07T17:09:50Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T17:09:50Z\",\"scheduleRequest\":{\"id\":68,\"createDateTime\":\"2017-09-07T17:09:31Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f964ce50-93ee-44bf-9cb2-7bc21ebe0ed3\",\"scheduleId\":\"f964ce50-93ee-44bf-9cb2-7bc21ebe0ed3\",\"scheduleName\":\"f964ce50-93ee-44bf-9cb2-7bc21ebe0ed3\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T17:10:24Z\",\"domainData\":[{\"id\":202,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":203,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":204,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology_vnf\",\"scheduleRequest\":{\"id\":69,\"createDateTime\":\"2017-09-07T17:10:16Z\",\"optimizerDateTime\":\"2017-09-07T17:10:20Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-12973736-ce58-4148-bd58-2945ca8966e5\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"c2f78aa0-8243-45a3-af3d-4165aeb0f7fe\",\"scheduleId\":\"c2f78aa0-8243-45a3-af3d-4165aeb0f7fe\",\"scheduleName\":\"c2f78aa0-8243-45a3-af3d-4165aeb0f7fe\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":205,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":206,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":207,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1c84c\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T17:10:30Z\",\"executionCompletedTime\":\"2017-09-07T17:10:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T17:10:40Z\",\"scheduleRequest\":{\"id\":70,\"createDateTime\":\"2017-09-07T17:10:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"scheduleId\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"scheduleName\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T17:11:22Z\",\"domainData\":[{\"id\":208,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":209,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":210,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2c84c\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T17:10:30Z\",\"executionCompletedTime\":\"2017-09-07T17:10:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T17:10:40Z\",\"scheduleRequest\":{\"id\":70,\"createDateTime\":\"2017-09-07T17:10:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"scheduleId\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"scheduleName\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T17:11:22Z\",\"domainData\":[{\"id\":208,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":209,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":210,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3c84c\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T17:10:30Z\",\"executionCompletedTime\":\"2017-09-07T17:10:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T17:10:40Z\",\"scheduleRequest\":{\"id\":70,\"createDateTime\":\"2017-09-07T17:10:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"scheduleId\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"scheduleName\":\"1c4a7154-5564-4101-95f4-9a725d37c84c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T17:11:22Z\",\"domainData\":[{\"id\":208,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":209,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":210,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC041b99\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":71,\"createDateTime\":\"2017-09-07T17:15:58Z\",\"optimizerDateTime\":\"2017-09-07T17:16:00Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-52392f7d-8a22-4d29-ad04-6f8eea0066fb\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"45ab855c-de06-4a0b-a589-759788c61b99\",\"scheduleId\":\"45ab855c-de06-4a0b-a589-759788c61b99\",\"scheduleName\":\"45ab855c-de06-4a0b-a589-759788c61b99\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":211,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":212,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":213,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":72,\"createDateTime\":\"2017-09-07T17:27:22Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"659eeffc-b4f8-4d00-9c7a-541f9f84b3a3\",\"scheduleId\":\"659eeffc-b4f8-4d00-9c7a-541f9f84b3a3\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":214,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":215,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":216,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":72,\"createDateTime\":\"2017-09-07T17:27:22Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"659eeffc-b4f8-4d00-9c7a-541f9f84b3a3\",\"scheduleId\":\"659eeffc-b4f8-4d00-9c7a-541f9f84b3a3\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":214,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":215,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":216,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":73,\"createDateTime\":\"2017-09-07T17:29:43Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"54b0bc3a-0f8c-4c10-8af5-64d1af351244\",\"scheduleId\":\"54b0bc3a-0f8c-4c10-8af5-64d1af351244\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":217,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":218,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":219,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":73,\"createDateTime\":\"2017-09-07T17:29:43Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"54b0bc3a-0f8c-4c10-8af5-64d1af351244\",\"scheduleId\":\"54b0bc3a-0f8c-4c10-8af5-64d1af351244\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":217,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":218,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":219,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04a143\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":74,\"createDateTime\":\"2017-09-07T17:31:14Z\",\"optimizerDateTime\":\"2017-09-07T17:31:20Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-3e062f4b-ab5a-4bf1-892a-9d03e699085e\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"e559a17b-aee7-472a-8586-9a0b30d4a143\",\"scheduleId\":\"e559a17b-aee7-472a-8586-9a0b30d4a143\",\"scheduleName\":\"e559a17b-aee7-472a-8586-9a0b30d4a143\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":220,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":221,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":222,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":75,\"createDateTime\":\"2017-09-07T17:33:58Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2d512127-aeb3-48c3-aa73-ac34ae5b80f1\",\"scheduleId\":\"2d512127-aeb3-48c3-aa73-ac34ae5b80f1\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":223,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":224,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":225,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":75,\"createDateTime\":\"2017-09-07T17:33:58Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2d512127-aeb3-48c3-aa73-ac34ae5b80f1\",\"scheduleId\":\"2d512127-aeb3-48c3-aa73-ac34ae5b80f1\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":223,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":224,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":225,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC049b49\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":76,\"createDateTime\":\"2017-09-07T17:38:30Z\",\"optimizerDateTime\":\"2017-09-07T17:38:40Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-460644fe-8c64-4fc8-81fa-5ffd2cc70a21\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"d353ba85-3398-4201-8fca-aef523a19b49\",\"scheduleId\":\"d353ba85-3398-4201-8fca-aef523a19b49\",\"scheduleName\":\"d353ba85-3398-4201-8fca-aef523a19b49\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":226,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":227,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":228,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1decd\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":77,\"createDateTime\":\"2017-09-07T18:10:02Z\",\"optimizerDateTime\":\"2017-09-07T18:10:10Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-b70ffa95-0963-43e8-8ebf-6b211245e7b7\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"scheduleId\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"scheduleName\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":229,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":230,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":231,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2decd\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":77,\"createDateTime\":\"2017-09-07T18:10:02Z\",\"optimizerDateTime\":\"2017-09-07T18:10:10Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-b70ffa95-0963-43e8-8ebf-6b211245e7b7\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"scheduleId\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"scheduleName\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":229,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":230,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":231,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3decd\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":77,\"createDateTime\":\"2017-09-07T18:10:02Z\",\"optimizerDateTime\":\"2017-09-07T18:10:10Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-b70ffa95-0963-43e8-8ebf-6b211245e7b7\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"scheduleId\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"scheduleName\":\"d22e17ce-9ed5-44b8-9269-d0f3d4d8decd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":229,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":230,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":231,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04f5e0\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T18:14:00Z\",\"executionCompletedTime\":\"2017-09-07T18:14:10Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T18:14:10Z\",\"scheduleRequest\":{\"id\":78,\"createDateTime\":\"2017-09-07T18:13:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"33df7d5c-7307-44dc-b608-5303698af5e0\",\"scheduleId\":\"33df7d5c-7307-44dc-b608-5303698af5e0\",\"scheduleName\":\"33df7d5c-7307-44dc-b608-5303698af5e0\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T18:14:21Z\",\"domainData\":[{\"id\":232,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":233,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":234,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName14d07\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T18:14:30Z\",\"executionCompletedTime\":\"2017-09-07T18:14:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T18:14:40Z\",\"scheduleRequest\":{\"id\":79,\"createDateTime\":\"2017-09-07T18:14:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"scheduleId\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"scheduleName\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T18:15:25Z\",\"domainData\":[{\"id\":235,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":236,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":237,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName24d07\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T18:14:30Z\",\"executionCompletedTime\":\"2017-09-07T18:14:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T18:14:40Z\",\"scheduleRequest\":{\"id\":79,\"createDateTime\":\"2017-09-07T18:14:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"scheduleId\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"scheduleName\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T18:15:25Z\",\"domainData\":[{\"id\":235,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":236,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":237,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName34d07\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T18:14:30Z\",\"executionCompletedTime\":\"2017-09-07T18:14:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T18:14:40Z\",\"scheduleRequest\":{\"id\":79,\"createDateTime\":\"2017-09-07T18:14:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"scheduleId\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"scheduleName\":\"bdda9663-23ad-4d89-8f2e-1fc7b0494d07\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T18:15:25Z\",\"domainData\":[{\"id\":235,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":236,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":237,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0474dd\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":80,\"createDateTime\":\"2017-09-07T18:25:08Z\",\"optimizerDateTime\":\"2017-09-07T18:25:10Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-5133179f-4475-47d8-828f-125256e149c9\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"5721e8b3-bd71-41c9-b280-b067b3b674dd\",\"scheduleId\":\"5721e8b3-bd71-41c9-b280-b067b3b674dd\",\"scheduleName\":\"5721e8b3-bd71-41c9-b280-b067b3b674dd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":238,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":239,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":240,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology_vnf\",\"scheduleRequest\":{\"id\":81,\"createDateTime\":\"2017-09-07T18:30:38Z\",\"optimizerDateTime\":\"2017-09-07T18:30:40Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-e4ef3021-29e7-4400-841d-51dbb8e3dc65\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"e587ff37-bfb1-411b-9bab-c68b00b117ca\",\"scheduleId\":\"e587ff37-bfb1-411b-9bab-c68b00b117ca\",\"scheduleName\":\"e587ff37-bfb1-411b-9bab-c68b00b117ca\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":241,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":242,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":243,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04927a\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":82,\"createDateTime\":\"2017-09-07T18:31:16Z\",\"optimizerDateTime\":\"2017-09-07T18:31:20Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-f4df7dc8-b803-47d4-ac6d-b8b200dfbb19\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"9a0346b7-8ec1-4b64-bebb-c6ee3643927a\",\"scheduleId\":\"9a0346b7-8ec1-4b64-bebb-c6ee3643927a\",\"scheduleName\":\"9a0346b7-8ec1-4b64-bebb-c6ee3643927a\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":244,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":245,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":246,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":83,\"createDateTime\":\"2017-09-07T18:44:29Z\",\"optimizerDateTime\":\"2017-09-07T18:44:30Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-a64a1d40-8de6-4ff5-aa0e-4222f24a6ecc\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"8d0fc802-b300-4a79-b765-2348f0db1467\",\"scheduleId\":\"8d0fc802-b300-4a79-b765-2348f0db1467\",\"scheduleName\":\"8d0fc802-b300-4a79-b765-2348f0db1467\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":247,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":248,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":249,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04cd16\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_1710.Config_MS_PlacementOptimizationPolicy_dhv_v1.1\",\"scheduleRequest\":{\"id\":84,\"createDateTime\":\"2017-09-07T18:51:25Z\",\"optimizerDateTime\":\"2017-09-07T18:51:30Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-6a93e17b-b34b-40d1-a9cd-6c2432c784a3\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"586068da-ac76-4e1a-9dc2-d9980436cd16\",\"scheduleId\":\"586068da-ac76-4e1a-9dc2-d9980436cd16\",\"scheduleName\":\"586068da-ac76-4e1a-9dc2-d9980436cd16\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":250,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":251,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":252,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04481f\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_1710.Config_MS_PlacementOptimizationPolicy_dhv_v1.1\",\"scheduleRequest\":{\"id\":85,\"createDateTime\":\"2017-09-07T18:57:59Z\",\"optimizerDateTime\":\"2017-09-07T18:58:00Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-f87bc217-23d7-4e7e-9a69-4e7c6f2d2479\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"befc6dec-c698-4e47-bc6f-e34b4579481f\",\"scheduleId\":\"befc6dec-c698-4e47-bc6f-e34b4579481f\",\"scheduleName\":\"befc6dec-c698-4e47-bc6f-e34b4579481f\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":253,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":254,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":255,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_1707.TimeLimitAndVerticalTopology_v2\",\"scheduleRequest\":{\"id\":86,\"createDateTime\":\"2017-09-07T19:00:46Z\",\"optimizerDateTime\":\"2017-09-07T19:00:50Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-cc051386-c5cc-4889-a176-b2874f2f9b9c\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"421bce5f-675c-4582-a945-fda8618400c8\",\"scheduleId\":\"421bce5f-675c-4582-a945-fda8618400c8\",\"scheduleName\":\"421bce5f-675c-4582-a945-fda8618400c8\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":256,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":257,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":258,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04d5f5\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T19:19:10Z\",\"executionCompletedTime\":\"2017-09-07T19:19:20Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T19:19:20Z\",\"scheduleRequest\":{\"id\":87,\"createDateTime\":\"2017-09-07T19:19:09Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"28140bcb-2e46-4ea4-8c1f-951591a5d5f5\",\"scheduleId\":\"28140bcb-2e46-4ea4-8c1f-951591a5d5f5\",\"scheduleName\":\"28140bcb-2e46-4ea4-8c1f-951591a5d5f5\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":259,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":260,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":261,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b768\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T19:20:30Z\",\"executionCompletedTime\":\"2017-09-07T19:20:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T19:20:40Z\",\"scheduleRequest\":{\"id\":88,\"createDateTime\":\"2017-09-07T19:20:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7ef44520-7573-44f8-8ef5-06ce31acb768\",\"scheduleId\":\"7ef44520-7573-44f8-8ef5-06ce31acb768\",\"scheduleName\":\"7ef44520-7573-44f8-8ef5-06ce31acb768\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T19:21:24Z\",\"domainData\":[{\"id\":262,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":263,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":264,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":89,\"createDateTime\":\"2017-09-07T19:32:08Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7f4e3c88-3cb0-4224-88e5-e979633c6792\",\"scheduleId\":\"7f4e3c88-3cb0-4224-88e5-e979633c6792\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":265,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":266,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":267,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":89,\"createDateTime\":\"2017-09-07T19:32:08Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7f4e3c88-3cb0-4224-88e5-e979633c6792\",\"scheduleId\":\"7f4e3c88-3cb0-4224-88e5-e979633c6792\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":265,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":266,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":267,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_1707.Config_MS_TimeLimitAndVerticalTopology_v2.1.xml\",\"scheduleRequest\":{\"id\":90,\"createDateTime\":\"2017-09-07T19:45:48Z\",\"optimizerDateTime\":\"2017-09-07T19:45:50Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-e700c536-9e84-45a4-9929-a35dfbdc4238\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"4a0cd6ef-803b-41ec-8cf9-ff8fdec22fcf\",\"scheduleId\":\"4a0cd6ef-803b-41ec-8cf9-ff8fdec22fcf\",\"scheduleName\":\"4a0cd6ef-803b-41ec-8cf9-ff8fdec22fcf\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":268,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":269,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":270,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b9ec\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_1710.Config_MS_PlacementOptimizationPolicy_dhv_v1.1\",\"scheduleRequest\":{\"id\":91,\"createDateTime\":\"2017-09-07T19:46:24Z\",\"optimizerDateTime\":\"2017-09-07T19:46:30Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-44fa06b7-f656-4cf1-b00e-beb467e1da69\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"c14e01ec-b0a7-4064-b521-c6afad1bb9ec\",\"scheduleId\":\"c14e01ec-b0a7-4064-b521-c6afad1bb9ec\",\"scheduleName\":\"c14e01ec-b0a7-4064-b521-c6afad1bb9ec\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":271,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":272,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":273,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04a55c\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T19:53:00Z\",\"executionCompletedTime\":\"2017-09-07T19:53:10Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T19:53:10Z\",\"scheduleRequest\":{\"id\":92,\"createDateTime\":\"2017-09-07T19:52:51Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"fb95ca34-a708-448a-9a2e-5c9e5ffba55c\",\"scheduleId\":\"fb95ca34-a708-448a-9a2e-5c9e5ffba55c\",\"scheduleName\":\"fb95ca34-a708-448a-9a2e-5c9e5ffba55c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T19:53:23Z\",\"domainData\":[{\"id\":274,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":275,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":276,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName155f8\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T19:53:30Z\",\"executionCompletedTime\":\"2017-09-07T19:53:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T19:53:40Z\",\"scheduleRequest\":{\"id\":93,\"createDateTime\":\"2017-09-07T19:53:23Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"scheduleId\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"scheduleName\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T19:54:21Z\",\"domainData\":[{\"id\":277,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":278,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":279,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName255f8\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T19:53:30Z\",\"executionCompletedTime\":\"2017-09-07T19:53:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T19:53:40Z\",\"scheduleRequest\":{\"id\":93,\"createDateTime\":\"2017-09-07T19:53:23Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"scheduleId\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"scheduleName\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T19:54:21Z\",\"domainData\":[{\"id\":277,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":278,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":279,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName355f8\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-07T19:53:30Z\",\"executionCompletedTime\":\"2017-09-07T19:53:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-07T19:53:40Z\",\"scheduleRequest\":{\"id\":93,\"createDateTime\":\"2017-09-07T19:53:23Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"scheduleId\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"scheduleName\":\"89721f2c-032e-4ba8-aefe-5599f66255f8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-07T19:54:21Z\",\"domainData\":[{\"id\":277,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":278,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":279,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":94,\"createDateTime\":\"2017-09-07T20:10:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e30c9681-a022-4669-a7f5-cf7870de66a1\",\"scheduleId\":\"e30c9681-a022-4669-a7f5-cf7870de66a1\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":280,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":281,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":282,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":94,\"createDateTime\":\"2017-09-07T20:10:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e30c9681-a022-4669-a7f5-cf7870de66a1\",\"scheduleId\":\"e30c9681-a022-4669-a7f5-cf7870de66a1\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":280,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":281,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":282,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC043b76\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_1707.Config_MS_TimeLimitAndVerticalTopology_v2.1.xml\",\"scheduleRequest\":{\"id\":95,\"createDateTime\":\"2017-09-07T20:10:35Z\",\"optimizerDateTime\":\"2017-09-07T20:10:40Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-1eb8b5d0-a2c7-4645-ba28-25d2507f2788\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"55dbc451-526b-467f-ae68-94242afa3b76\",\"scheduleId\":\"55dbc451-526b-467f-ae68-94242afa3b76\",\"scheduleName\":\"55dbc451-526b-467f-ae68-94242afa3b76\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":283,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":284,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":285,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC047268\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_1707.Config_MS_TimeLimitAndVerticalTopology_v2.1.xml\",\"scheduleRequest\":{\"id\":96,\"createDateTime\":\"2017-09-07T20:40:32Z\",\"optimizerDateTime\":\"2017-09-07T20:40:40Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-6a9ea02b-15a9-4da7-acd9-c0c3764ca93c\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"d73026a3-a6c1-4f5e-bc48-aa9b51ff7268\",\"scheduleId\":\"d73026a3-a6c1-4f5e-bc48-aa9b51ff7268\",\"scheduleName\":\"d73026a3-a6c1-4f5e-bc48-aa9b51ff7268\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":286,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":287,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":288,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":97,\"createDateTime\":\"2017-09-07T20:46:02Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9b0b0947-1ac7-4df4-a0ba-6fb5ca00fe6a\",\"scheduleId\":\"9b0b0947-1ac7-4df4-a0ba-6fb5ca00fe6a\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":289,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":290,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":291,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":97,\"createDateTime\":\"2017-09-07T20:46:02Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9b0b0947-1ac7-4df4-a0ba-6fb5ca00fe6a\",\"scheduleId\":\"9b0b0947-1ac7-4df4-a0ba-6fb5ca00fe6a\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":289,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":290,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":291,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":98,\"createDateTime\":\"2017-09-08T01:19:19Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"02dfccb3-1e74-48e1-b051-1904b8957a02\",\"scheduleId\":\"02dfccb3-1e74-48e1-b051-1904b8957a02\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":292,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":293,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":294,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Scheduled\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":98,\"createDateTime\":\"2017-09-08T01:19:19Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"02dfccb3-1e74-48e1-b051-1904b8957a02\",\"scheduleId\":\"02dfccb3-1e74-48e1-b051-1904b8957a02\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":292,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":293,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":294,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-08T03:24:58Z\",\"finishTime\":\"2017-09-08T03:26:48Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-08T03:24:58Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-08T03:24:57Z\",\"executionCompletedTime\":\"2017-09-08T03:25:07Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T03:25:07Z\",\"scheduleRequest\":{\"id\":99,\"createDateTime\":\"2017-09-08T03:23:59Z\",\"optimizerDateTime\":\"2017-09-08T03:24:08Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T03:24:08Z\",\"optimizerTransactionId\":\"e3e325d9-3fc4-4cb5-88f7-162c77758806\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-08T03:24:58.000Z\\\",\\\"finishTime\\\":\\\"2017-09-08T03:26:48.000Z\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-08T03:24:58.000Z\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"e3e325d9-3fc4-4cb5-88f7-162c77758806\",\"scheduleName\":\"e3e325d9-3fc4-4cb5-88f7-162c77758806\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T03:25:58Z\",\"domainData\":[{\"id\":295,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":296,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":297,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-08T03:24:10Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":100,\"createDateTime\":\"2017-09-08T03:33:47Z\",\"optimizerDateTime\":\"2017-09-08T03:33:48Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d8e07357-c78b-4010-9291-97d9d7e8c06b\",\"scheduleId\":\"d8e07357-c78b-4010-9291-97d9d7e8c06b\",\"scheduleName\":\"d8e07357-c78b-4010-9291-97d9d7e8c06b\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":298,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":299,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":300,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":101,\"createDateTime\":\"2017-09-08T04:06:46Z\",\"optimizerDateTime\":\"2017-09-08T04:06:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bdeac7bd-d344-4a32-ad1e-80377d7e5106\",\"scheduleId\":\"bdeac7bd-d344-4a32-ad1e-80377d7e5106\",\"scheduleName\":\"bdeac7bd-d344-4a32-ad1e-80377d7e5106\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":301,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":302,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":303,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":102,\"createDateTime\":\"2017-09-08T04:18:29Z\",\"optimizerDateTime\":\"2017-09-08T04:18:34Z\",\"optimizerMessage\":\"Error while processing request ID: CM-fda616fa-f0fb-4656-8936-ab54f537e8b5 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 1122, in _do_get\\n return self._pool.get(wait, self._timeout)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/util\/queue.py\\\", line 145, in get\\n raise Empty\\nsqlalchemy.util.queue.Empty\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 58, in __init__\\n self.v_p_topo, self.clli = vserver_pserver_topology(self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 91, in vserver_pserver_topology\\n vertica = AAIVertica()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 19, in __init__\\n self.fresh_connection()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 23, in fresh_connection\\n self.conn, self.cursor = VerticaDB().connect()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/db_adapters\/VerticaDB.py\\\", line 35, in connect\\n conn = self.connection_pool.connect()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 387, in connect\\n return _ConnectionFairy._checkout(self)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 766, in _checkout\\n fairy = _ConnectionRecord.checkout(pool)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 516, in checkout\\n rec = pool._do_get()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 1138, in _do_get\\n self._dec_overflow()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/util\/langhelpers.py\\\", line 66, in __exit__\\n compat.reraise(exc_type, exc_value, exc_tb)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/util\/compat.py\\\", line 187, in reraise\\n raise value\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 1135, in _do_get\\n return self._create_connection()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 333, in _create_connection\\n return _ConnectionRecord(self)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 461, in __init__\\n self.__connect(first_connect_check=True)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 651, in __connect\\n connection = pool._invoke_creator(self)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/sqlalchemy\/pool.py\\\", line 294, in <lambda>\\n return lambda crec: creator()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/db_adapters\/VerticaDB.py\\\", line 20, in get_connection\\n jars=[p['db_driver']]\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 381, in connect\\n jconn = _jdbc_connect(jclassname, url, driver_args, jars, libs)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 199, in _jdbc_connect_jpype\\n return jpype.java.sql.DriverManager.getConnection(url, *dargs)\\njpype._jexception.java.sql.SQLExceptionPyRaisable: java.sql.SQLException: [Vertica][VJDBC](2983) FATAL: Database \\\"PDWQ\\\" does not exist\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T04:18:35Z\",\"optimizerTransactionId\":\"0f0c550b-cde2-4b51-8a7c-5280f4ba1aff\",\"scheduleId\":\"0f0c550b-cde2-4b51-8a7c-5280f4ba1aff\",\"scheduleName\":\"0f0c550b-cde2-4b51-8a7c-5280f4ba1aff\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":304,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":305,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":306,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":103,\"createDateTime\":\"2017-09-08T04:22:07Z\",\"optimizerDateTime\":\"2017-09-08T04:22:13Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T04:23:54Z\",\"optimizerTransactionId\":\"0e5eb481-b3b4-48bd-aa5e-9a66b79cbedb\",\"scheduleId\":\"0e5eb481-b3b4-48bd-aa5e-9a66b79cbedb\",\"scheduleName\":\"0e5eb481-b3b4-48bd-aa5e-9a66b79cbedb\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":307,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":308,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":309,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":104,\"createDateTime\":\"2017-09-08T05:52:56Z\",\"optimizerDateTime\":\"2017-09-08T05:53:03Z\",\"optimizerMessage\":\"Invalid format: \\\"2017-09-08 16:01:44\\\" is malformed at \\\" 16:01:44\\\"\",\"optimizerStatus\":\"Exception\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T05:54:47Z\",\"optimizerTransactionId\":\"fb3eff9e-6ccf-4e98-9d2c-098df186703f\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-08 15:59:54\\\",\\\"finishTime\\\":\\\"2017-09-08 16:01:44\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-08 15:59:54\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"fb3eff9e-6ccf-4e98-9d2c-098df186703f\",\"scheduleName\":\"fb3eff9e-6ccf-4e98-9d2c-098df186703f\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":310,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":311,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":312,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-08T16:00:25Z\",\"finishTime\":\"2017-09-08T16:02:15Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-08T16:00:25Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-08T16:00:24Z\",\"executionCompletedTime\":\"2017-09-08T16:00:34Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T16:00:34Z\",\"scheduleRequest\":{\"id\":105,\"createDateTime\":\"2017-09-08T06:35:26Z\",\"optimizerDateTime\":\"2017-09-08T06:35:35Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T06:37:01Z\",\"optimizerTransactionId\":\"0bad668c-d611-4a92-9be7-f65cc639f072\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-08 16:00:25\\\",\\\"finishTime\\\":\\\"2017-09-08 16:02:15\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-08 16:00:25\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"0bad668c-d611-4a92-9be7-f65cc639f072\",\"scheduleName\":\"0bad668c-d611-4a92-9be7-f65cc639f072\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":313,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":314,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":315,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-08T06:37:07Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b45c\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_1707.Config_MS_TimeLimitAndVerticalTopology_v2.1.xml\",\"scheduleRequest\":{\"id\":106,\"createDateTime\":\"2017-09-08T13:03:45Z\",\"optimizerDateTime\":\"2017-09-08T13:03:55Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-e06b19d0-240c-4cd3-8d23-e99369d59502\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"8a26d69c-ca17-4426-8a4c-9e1565beb45c\",\"scheduleId\":\"8a26d69c-ca17-4426-8a4c-9e1565beb45c\",\"scheduleName\":\"8a26d69c-ca17-4426-8a4c-9e1565beb45c\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":316,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":317,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":318,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04497e\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"scheduleRequest\":{\"id\":107,\"createDateTime\":\"2017-09-08T13:10:53Z\",\"optimizerDateTime\":\"2017-09-08T13:10:55Z\",\"optimizerMessage\":\"Error while processing request ID: CM-e85186f1-3606-498c-b4cd-211b4f6f9d81 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('ZRDM1MMSC04497e', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T13:12:41Z\",\"optimizerTransactionId\":\"9d09aa20-5ee4-4981-8177-341e4cb9497e\",\"scheduleId\":\"9d09aa20-5ee4-4981-8177-341e4cb9497e\",\"scheduleName\":\"9d09aa20-5ee4-4981-8177-341e4cb9497e\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":319,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":320,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":321,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":108,\"createDateTime\":\"2017-09-08T13:40:30Z\",\"optimizerDateTime\":\"2017-09-08T13:40:35Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T13:42:48Z\",\"optimizerTransactionId\":\"077ca4cb-6475-4dbb-9227-bdab382109b9\",\"scheduleId\":\"077ca4cb-6475-4dbb-9227-bdab382109b9\",\"scheduleName\":\"077ca4cb-6475-4dbb-9227-bdab382109b9\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":322,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":323,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":324,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":109,\"createDateTime\":\"2017-09-08T13:51:19Z\",\"optimizerDateTime\":\"2017-09-08T13:51:25Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T13:52:52Z\",\"optimizerTransactionId\":\"b44c9929-ae42-4214-8a3d-aec35f8d9a88\",\"scheduleId\":\"b44c9929-ae42-4214-8a3d-aec35f8d9a88\",\"scheduleName\":\"b44c9929-ae42-4214-8a3d-aec35f8d9a88\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":325,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":326,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":327,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":110,\"createDateTime\":\"2017-09-08T14:02:07Z\",\"optimizerDateTime\":\"2017-09-08T14:02:15Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T14:05:54Z\",\"optimizerTransactionId\":\"150f434f-4d43-458a-97c9-791294049664\",\"scheduleId\":\"150f434f-4d43-458a-97c9-791294049664\",\"scheduleName\":\"150f434f-4d43-458a-97c9-791294049664\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":328,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":329,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":330,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":111,\"createDateTime\":\"2017-09-08T14:09:58Z\",\"optimizerDateTime\":\"2017-09-08T14:10:05Z\",\"optimizerMessage\":\"Error while processing request ID: CM-dccb763b-bdea-4b65-8ad3-22c4373b44bf -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 501, in execute\\n is_rs = self._prep.execute()\\njpype._jexception.java.sql.SQLTransientExceptionPyRaisable: java.sql.SQLTransientException: [Vertica][VJDBC](3587) ERROR: Insufficient resources to execute plan on pool rp_rpt_short [Timedout waiting for resource request: General cannot supply required overflow resources: Memory(KB) Exceeded: Requested = 9384041, Free = 1966118 (Limit = 21611386, Used = 19645268) (queueing threshold)]\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 58, in __init__\\n self.v_p_topo, self.clli = vserver_pserver_topology(self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 92, in vserver_pserver_topology\\n res, clli = vertica.query_vnf_pserver(vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 68, in query_vnf_pserver\\n query_res = self.query(query_str)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/aai_vertica.py\\\", line 47, in query\\n self.cursor.execute(query_string)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 503, in execute\\n _handle_sql_exception()\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 156, in _handle_sql_exception_jpype\\n reraise(exc_type, exc_info[1], exc_info[2])\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 57, in reraise\\n raise value.with_traceback(tb)\\n File \\\"\/usr\/local\/lib\/python3.5\/site-packages\/jaydebeapi\/__init__.py\\\", line 501, in execute\\n is_rs = self._prep.execute()\\njaydebeapi.DatabaseError: (SQLTransientExceptionPyRaisable(<jpype._jclass.java.sql.SQLTransientException object at 0x7ff3bd8b9128>,), '(Error requesting AAI data)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T14:28:54Z\",\"optimizerTransactionId\":\"70ed785c-a8c2-4440-b453-5280420a6ba6\",\"scheduleId\":\"70ed785c-a8c2-4440-b453-5280420a6ba6\",\"scheduleName\":\"70ed785c-a8c2-4440-b453-5280420a6ba6\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":331,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":332,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":333,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1836a\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":112,\"createDateTime\":\"2017-09-08T14:12:03Z\",\"optimizerDateTime\":\"2017-09-08T14:12:05Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-1c6b0aa4-d076-4979-a081-fa9d87282017\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"scheduleId\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"scheduleName\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":334,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":335,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":336,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2836a\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":112,\"createDateTime\":\"2017-09-08T14:12:03Z\",\"optimizerDateTime\":\"2017-09-08T14:12:05Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-1c6b0aa4-d076-4979-a081-fa9d87282017\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"scheduleId\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"scheduleName\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":334,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":335,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":336,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3836a\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":112,\"createDateTime\":\"2017-09-08T14:12:03Z\",\"optimizerDateTime\":\"2017-09-08T14:12:05Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-1c6b0aa4-d076-4979-a081-fa9d87282017\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"scheduleId\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"scheduleName\":\"04bb121c-8602-41df-9b7b-7e2150c8836a\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":334,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":335,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":336,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName101cd\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":113,\"createDateTime\":\"2017-09-08T14:14:08Z\",\"optimizerDateTime\":\"2017-09-08T14:14:16Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-fe7c43e5-b783-47ad-a114-ab824adfe454\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"scheduleId\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"scheduleName\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":337,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":338,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":339,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName201cd\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":113,\"createDateTime\":\"2017-09-08T14:14:08Z\",\"optimizerDateTime\":\"2017-09-08T14:14:16Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-fe7c43e5-b783-47ad-a114-ab824adfe454\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"scheduleId\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"scheduleName\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":337,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":338,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":339,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName301cd\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":113,\"createDateTime\":\"2017-09-08T14:14:08Z\",\"optimizerDateTime\":\"2017-09-08T14:14:16Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-fe7c43e5-b783-47ad-a114-ab824adfe454\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"scheduleId\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"scheduleName\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":337,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":338,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":339,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName401cd\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":113,\"createDateTime\":\"2017-09-08T14:14:08Z\",\"optimizerDateTime\":\"2017-09-08T14:14:16Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-fe7c43e5-b783-47ad-a114-ab824adfe454\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"scheduleId\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"scheduleName\":\"7d472095-2fab-4036-8ae1-69f48dc901cd\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":337,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":338,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":339,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":114,\"createDateTime\":\"2017-09-08T14:20:36Z\",\"optimizerDateTime\":\"2017-09-08T14:20:45Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-08T14:36:59Z\",\"optimizerTransactionId\":\"64d55198-a2ee-402f-9fea-24067b747efe\",\"scheduleId\":\"64d55198-a2ee-402f-9fea-24067b747efe\",\"scheduleName\":\"64d55198-a2ee-402f-9fea-24067b747efe\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":340,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":341,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":342,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":115,\"createDateTime\":\"2017-09-08T14:40:51Z\",\"optimizerDateTime\":\"2017-09-08T14:40:55Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bbf34be8-228b-41d2-8f9e-ec68c6648223\",\"scheduleId\":\"bbf34be8-228b-41d2-8f9e-ec68c6648223\",\"scheduleName\":\"bbf34be8-228b-41d2-8f9e-ec68c6648223\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":343,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":344,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":345,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC042aeb\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:15:05Z\",\"executionCompletedTime\":\"2017-09-08T15:15:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:15:15Z\",\"scheduleRequest\":{\"id\":116,\"createDateTime\":\"2017-09-08T15:15:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ac48102b-5bb7-467e-9255-c72df9df2aeb\",\"scheduleId\":\"ac48102b-5bb7-467e-9255-c72df9df2aeb\",\"scheduleName\":\"ac48102b-5bb7-467e-9255-c72df9df2aeb\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T15:15:56Z\",\"domainData\":[{\"id\":346,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":347,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":348,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName145a8\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:16:05Z\",\"executionCompletedTime\":\"2017-09-08T15:16:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:16:15Z\",\"scheduleRequest\":{\"id\":117,\"createDateTime\":\"2017-09-08T15:15:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"scheduleId\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"scheduleName\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T15:17:00Z\",\"domainData\":[{\"id\":349,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":350,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":351,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName245a8\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:16:05Z\",\"executionCompletedTime\":\"2017-09-08T15:16:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:16:15Z\",\"scheduleRequest\":{\"id\":117,\"createDateTime\":\"2017-09-08T15:15:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"scheduleId\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"scheduleName\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T15:17:00Z\",\"domainData\":[{\"id\":349,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":350,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":351,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName345a8\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:16:05Z\",\"executionCompletedTime\":\"2017-09-08T15:16:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:16:15Z\",\"scheduleRequest\":{\"id\":117,\"createDateTime\":\"2017-09-08T15:15:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"scheduleId\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"scheduleName\":\"3cff9a93-e4f6-4487-826b-fa29c15245a8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T15:17:00Z\",\"domainData\":[{\"id\":349,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":350,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":351,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0447f2\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":118,\"createDateTime\":\"2017-09-08T15:23:42Z\",\"optimizerDateTime\":\"2017-09-11T13:36:07Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"8ef64952-8f92-4b7f-beb6-039b90d847f2\",\"scheduleId\":\"8ef64952-8f92-4b7f-beb6-039b90d847f2\",\"scheduleName\":\"\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":352,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":353,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":354,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC049207\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":119,\"createDateTime\":\"2017-09-08T15:23:43Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c41748a1-4ea7-42f0-842f-09432fdf9207\",\"scheduleId\":\"c41748a1-4ea7-42f0-842f-09432fdf9207\",\"scheduleName\":\"c41748a1-4ea7-42f0-842f-09432fdf9207\",\"status\":\"Optimization In Progress\",\"userId\":\"\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":355,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":356,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":357,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b08f\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"string\",\"scheduleRequest\":{\"id\":120,\"createDateTime\":\"2017-09-08T15:23:43Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-a65af5fa-ab15-4034-8d73-07a39e2dac9e\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"9d3e5577-0400-41af-99bb-28751e6ab08f\",\"scheduleId\":\"9d3e5577-0400-41af-99bb-28751e6ab08f\",\"scheduleName\":\"9d3e5577-0400-41af-99bb-28751e6ab08f\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":358,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":359,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":360,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04d535\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":121,\"createDateTime\":\"2017-09-08T15:23:43Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4d7f795d-ac94-49b7-aa31-d680bac7d535\",\"scheduleId\":\"4d7f795d-ac94-49b7-aa31-d680bac7d535\",\"scheduleName\":\"4d7f795d-ac94-49b7-aa31-d680bac7d535\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":361,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":362,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":363,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC048d6c\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:23:45Z\",\"executionCompletedTime\":\"2017-09-08T15:23:55Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:23:55Z\",\"scheduleRequest\":{\"id\":122,\"createDateTime\":\"2017-09-08T15:23:43Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cf3af7ae-12f1-4607-8e83-1f90f14c8d6c\",\"scheduleId\":\"cf3af7ae-12f1-4607-8e83-1f90f14c8d6c\",\"scheduleName\":\"cf3af7ae-12f1-4607-8e83-1f90f14c8d6c\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":364,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":365,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":366,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":123,\"createDateTime\":\"2017-09-08T15:23:44Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7a9165f5-da86-4649-b366-6455339830a4\",\"scheduleId\":\"7a9165f5-da86-4649-b366-6455339830a4\",\"scheduleName\":\"7a9165f5-da86-4649-b366-6455339830a4\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":367,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":368,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":369,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04d9e7\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:23:45Z\",\"executionCompletedTime\":\"2017-09-08T15:23:55Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:23:55Z\",\"scheduleRequest\":{\"id\":124,\"createDateTime\":\"2017-09-08T15:23:44Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"6d910793-1c14-4956-a884-22b0d22fd9e7\",\"scheduleId\":\"6d910793-1c14-4956-a884-22b0d22fd9e7\",\"scheduleName\":\"6d910793-1c14-4956-a884-22b0d22fd9e7\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":370,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":371,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":372,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04d4f2\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":125,\"createDateTime\":\"2017-09-08T15:23:44Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3c44ed4b-8b48-47b5-b1ec-27289b3cd4f2\",\"scheduleId\":\"3c44ed4b-8b48-47b5-b1ec-27289b3cd4f2\",\"scheduleName\":\"3c44ed4b-8b48-47b5-b1ec-27289b3cd4f2\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":373,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":374,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":375,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":126,\"createDateTime\":\"2017-09-08T15:23:45Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"6373b1f0-ff5e-48f3-8f43-4ca6ae8e41a8\",\"scheduleId\":\"6373b1f0-ff5e-48f3-8f43-4ca6ae8e41a8\",\"scheduleName\":\"6373b1f0-ff5e-48f3-8f43-4ca6ae8e41a8\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":376,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":377,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":378,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName10975\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":127,\"createDateTime\":\"2017-09-08T15:28:47Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-06096caa-1c1a-4a2d-91f8-6033c4008981\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"scheduleId\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"scheduleName\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":379,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":380,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":381,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName20975\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":127,\"createDateTime\":\"2017-09-08T15:28:47Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-06096caa-1c1a-4a2d-91f8-6033c4008981\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"scheduleId\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"scheduleName\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":379,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":380,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":381,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName30975\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":127,\"createDateTime\":\"2017-09-08T15:28:47Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-06096caa-1c1a-4a2d-91f8-6033c4008981\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"scheduleId\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"scheduleName\":\"657a9d0c-73c3-4138-88be-a73e91f10975\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":379,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":380,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":381,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1b75e\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":128,\"createDateTime\":\"2017-09-08T15:33:51Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-919fad78-b72f-4bd6-98d9-7051f7ccee64\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"scheduleId\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"scheduleName\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":382,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":383,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":384,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2b75e\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":128,\"createDateTime\":\"2017-09-08T15:33:51Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-919fad78-b72f-4bd6-98d9-7051f7ccee64\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"scheduleId\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"scheduleName\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":382,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":383,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":384,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3b75e\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":128,\"createDateTime\":\"2017-09-08T15:33:51Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-919fad78-b72f-4bd6-98d9-7051f7ccee64\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"scheduleId\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"scheduleName\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":382,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":383,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":384,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName4b75e\",\"status\":\"Pending Schedule\",\"groupId\":\"Group1\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":128,\"createDateTime\":\"2017-09-08T15:33:51Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-919fad78-b72f-4bd6-98d9-7051f7ccee64\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"scheduleId\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"scheduleName\":\"25293a77-f509-4a07-883b-1f718246b75e\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":382,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":383,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":384,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04dab5\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:39:05Z\",\"executionCompletedTime\":\"2017-09-08T15:39:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:39:15Z\",\"scheduleRequest\":{\"id\":129,\"createDateTime\":\"2017-09-08T15:38:55Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"6f8c6fd9-01bd-4ff7-a46e-54de1e88dab5\",\"scheduleId\":\"6f8c6fd9-01bd-4ff7-a46e-54de1e88dab5\",\"scheduleName\":\"6f8c6fd9-01bd-4ff7-a46e-54de1e88dab5\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T15:39:57Z\",\"domainData\":[{\"id\":385,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":386,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":387,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1f7cd\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:40:05Z\",\"executionCompletedTime\":\"2017-09-08T15:40:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:40:15Z\",\"scheduleRequest\":{\"id\":130,\"createDateTime\":\"2017-09-08T15:39:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"scheduleId\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"scheduleName\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T15:40:57Z\",\"domainData\":[{\"id\":388,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":389,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":390,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2f7cd\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:40:05Z\",\"executionCompletedTime\":\"2017-09-08T15:40:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:40:15Z\",\"scheduleRequest\":{\"id\":130,\"createDateTime\":\"2017-09-08T15:39:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"scheduleId\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"scheduleName\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T15:40:57Z\",\"domainData\":[{\"id\":388,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":389,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":390,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3f7cd\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-08T15:40:05Z\",\"executionCompletedTime\":\"2017-09-08T15:40:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-08T15:40:15Z\",\"scheduleRequest\":{\"id\":130,\"createDateTime\":\"2017-09-08T15:39:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"scheduleId\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"scheduleName\":\"7db50c61-05c3-408a-9f17-8da9b450f7cd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-08T15:40:57Z\",\"domainData\":[{\"id\":388,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":389,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":390,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":131,\"createDateTime\":\"2017-09-08T15:41:01Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"51fc05c8-4fb7-488e-90dd-111cf52ac23e\",\"scheduleId\":\"51fc05c8-4fb7-488e-90dd-111cf52ac23e\",\"scheduleName\":\"51fc05c8-4fb7-488e-90dd-111cf52ac23e\",\"status\":\"Optimization In Progress\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":391,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":392,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":393,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC041f35\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":132,\"createDateTime\":\"2017-09-08T15:41:08Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-6d2e2e59-872a-4f43-8116-4427d96037be\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"e1e345c9-5e6b-4278-81e6-1529fd8a1f35\",\"scheduleId\":\"e1e345c9-5e6b-4278-81e6-1529fd8a1f35\",\"scheduleName\":\"e1e345c9-5e6b-4278-81e6-1529fd8a1f35\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":394,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":395,\"name\":\"WorkflowName\",\"value\":\"Build Software Upgrade for vNFs\"},{\"id\":396,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":133,\"createDateTime\":\"2017-09-08T20:26:42Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-7ce5df68-4085-483b-be8c-a632e65bf05e\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"673bfb7c-3bba-4eac-88e6-5e72b113d343\",\"scheduleId\":\"673bfb7c-3bba-4eac-88e6-5e72b113d343\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":397,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":398,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":399,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Pending Schedule\",\"groupId\":\"group1\",\"policyId\":\"SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml\",\"scheduleRequest\":{\"id\":133,\"createDateTime\":\"2017-09-08T20:26:42Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-7ce5df68-4085-483b-be8c-a632e65bf05e\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"673bfb7c-3bba-4eac-88e6-5e72b113d343\",\"scheduleId\":\"673bfb7c-3bba-4eac-88e6-5e72b113d343\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":397,\"name\":\"WorkflowName\",\"value\":\"HEAT Stack Software Update for vNFs\"},{\"id\":398,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":399,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b713\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"string\",\"scheduleRequest\":{\"id\":134,\"createDateTime\":\"2017-09-09T12:32:14Z\",\"optimizerDateTime\":\"2017-09-11T13:36:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-8bc75132-b255-491c-820c-ccf05ecba4f3\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"030f2ceb-ec92-45eb-a614-6bbc80b3b713\",\"scheduleId\":\"030f2ceb-ec92-45eb-a614-6bbc80b3b713\",\"scheduleName\":\"030f2ceb-ec92-45eb-a614-6bbc80b3b713\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":400,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":401,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":402,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T08:21:17Z\",\"executionCompletedTime\":\"2017-09-11T08:21:27Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T08:21:27Z\",\"scheduleRequest\":{\"id\":135,\"createDateTime\":\"2017-09-11T08:21:10Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"1219a17d-8cba-4452-873d-86aa5c10437f\",\"scheduleId\":\"1219a17d-8cba-4452-873d-86aa5c10437f\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":403,\"name\":\"WorkflowName\",\"value\":\"Replace\"},{\"id\":404,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":405,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Replace\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelInvariantId\\\":\\\"08b17e33-dc82-4fa7-8423-af392abd16c2\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-VSP\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationName\\\":\\\"VID-Sanity-1707.0.6-VSP 1\\\",\\\"modelCustomizationId\\\":\\\"b07347e9-88ee-42aa-9b24-1aae322c1d7b\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"2.0\\\",\\\"modelCustomizationName\\\":\\\"\\\",\\\"modelCustomizationId\\\":\\\"\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T09:24:37Z\",\"executionCompletedTime\":\"2017-09-11T09:24:47Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T09:24:47Z\",\"scheduleRequest\":{\"id\":136,\"createDateTime\":\"2017-09-11T09:24:28Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9182f22d-ade8-47e1-87f5-174a20e4c0ad\",\"scheduleId\":\"9182f22d-ade8-47e1-87f5-174a20e4c0ad\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":406,\"name\":\"WorkflowName\",\"value\":\"Replace\"},{\"id\":407,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":408,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Replace\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelInvariantId\\\":\\\"08b17e33-dc82-4fa7-8423-af392abd16c2\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-VSP\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationName\\\":\\\"VID-Sanity-1707.0.6-VSP 1\\\",\\\"modelCustomizationId\\\":\\\"b07347e9-88ee-42aa-9b24-1aae322c1d7b\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"2.0\\\",\\\"modelCustomizationName\\\":\\\"\\\",\\\"modelCustomizationId\\\":\\\"\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T09:25:17Z\",\"executionCompletedTime\":\"2017-09-11T09:25:27Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T09:25:27Z\",\"scheduleRequest\":{\"id\":137,\"createDateTime\":\"2017-09-11T09:25:15Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f5e419aa-d1ff-4d26-991f-0ad926f0b994\",\"scheduleId\":\"f5e419aa-d1ff-4d26-991f-0ad926f0b994\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":409,\"name\":\"WorkflowName\",\"value\":\"Replace\"},{\"id\":410,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":411,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Replace\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelInvariantId\\\":\\\"08b17e33-dc82-4fa7-8423-af392abd16c2\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-VSP\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationName\\\":\\\"VID-Sanity-1707.0.6-VSP 1\\\",\\\"modelCustomizationId\\\":\\\"b07347e9-88ee-42aa-9b24-1aae322c1d7b\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"2.0\\\",\\\"modelCustomizationName\\\":\\\"\\\",\\\"modelCustomizationId\\\":\\\"\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T11:56:27Z\",\"executionCompletedTime\":\"2017-09-11T11:56:37Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T11:56:37Z\",\"scheduleRequest\":{\"id\":138,\"createDateTime\":\"2017-09-11T11:56:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"43397d50-43c1-409e-9422-71479579c74b\",\"scheduleId\":\"43397d50-43c1-409e-9422-71479579c74b\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":412,\"name\":\"WorkflowName\",\"value\":\"Replace\"},{\"id\":413,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":414,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Replace\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelInvariantId\\\":\\\"08b17e33-dc82-4fa7-8423-af392abd16c2\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-VSP\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationName\\\":\\\"BK-Sanity-1707.0.6-VSP 1\\\",\\\"modelCustomizationId\\\":\\\"635bd3f6-3144-47b3-92e6-200d8fc7fe4e\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"98d8e770-efce-4018-8ac2-a7a643e3cf93\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationName\\\":\\\"\\\",\\\"modelCustomizationId\\\":\\\"\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T13:19:47Z\",\"executionCompletedTime\":\"2017-09-11T13:19:57Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T13:19:57Z\",\"scheduleRequest\":{\"id\":139,\"createDateTime\":\"2017-09-11T13:19:46Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0280c8f8-7426-4911-91c0-6e8428ab9adc\",\"scheduleId\":\"0280c8f8-7426-4911-91c0-6e8428ab9adc\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":415,\"name\":\"WorkflowName\",\"value\":\"Update\"},{\"id\":416,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":417,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Update\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelVersion\\\":\\\"1.0\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"98d8e770-efce-4018-8ac2-a7a643e3cf93\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationName\\\":\\\"\\\",\\\"modelCustomizationId\\\":\\\"\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T13:25:47Z\",\"executionCompletedTime\":\"2017-09-11T13:25:57Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T13:25:57Z\",\"scheduleRequest\":{\"id\":140,\"createDateTime\":\"2017-09-11T13:25:39Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2d50a429-6fe1-4a00-9ed0-3fed8caf333d\",\"scheduleId\":\"2d50a429-6fe1-4a00-9ed0-3fed8caf333d\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":418,\"name\":\"WorkflowName\",\"value\":\"Update\"},{\"id\":419,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":420,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Update\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelInvariantId\\\":\\\"08b17e33-dc82-4fa7-8423-af392abd16c2\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"VNF_670_test_05\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationId\\\":\\\"b07347e9-88ee-42aa-9b24-1aae322c1d7b\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"98d8e770-efce-4018-8ac2-a7a643e3cf93\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"2.0\\\",\\\"modelCustomizationName\\\":\\\"\\\",\\\"modelCustomizationId\\\":\\\"\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T14:04:27Z\",\"executionCompletedTime\":\"2017-09-11T14:04:37Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T14:04:37Z\",\"scheduleRequest\":{\"id\":141,\"createDateTime\":\"2017-09-11T14:04:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f97bcd01-17f9-42f8-af97-268156ddb407\",\"scheduleId\":\"f97bcd01-17f9-42f8-af97-268156ddb407\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":421,\"name\":\"WorkflowName\",\"value\":\"Update\"},{\"id\":422,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":423,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Update\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelInvariantId\\\":\\\"08b17e33-dc82-4fa7-8423-af392abd16c2\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"VNF_670_test_05\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationId\\\":\\\"b07347e9-88ee-42aa-9b24-1aae322c1d7b\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"98d8e770-efce-4018-8ac2-a7a643e3cf93\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelInvariantId\\\":\\\"66b17bb4-9cba-4ea7-a2bb-942844bb3483\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"3.0\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T14:49:59Z\",\"executionCompletedTime\":\"2017-09-11T14:50:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T14:50:09Z\",\"scheduleRequest\":{\"id\":142,\"createDateTime\":\"2017-09-11T14:49:56Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e69c9e56-2e31-4b82-abcf-b22ecb936f9d\",\"scheduleId\":\"e69c9e56-2e31-4b82-abcf-b22ecb936f9d\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":424,\"name\":\"WorkflowName\",\"value\":\"Update\"},{\"id\":425,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":426,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Update\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelInvariantId\\\":\\\"08b17e33-dc82-4fa7-8423-af392abd16c2\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-VSP\\\",\\\"modelCustomizationName\\\":\\\"VID-Sanity-1707.0.6-VSP 1\\\",\\\"modelCustomizationId\\\":\\\"b07347e9-88ee-42aa-9b24-1aae322c1d7b\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"3.0\\\",\\\"modelCustomizationName\\\":\\\"\\\",\\\"modelCustomizationId\\\":\\\"\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNF_670_test_05\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"groupId\",\"dispatchTime\":\"2017-09-11T15:32:07Z\",\"executionCompletedTime\":\"2017-09-11T15:32:17Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T15:32:17Z\",\"scheduleRequest\":{\"id\":143,\"createDateTime\":\"2017-09-11T15:32:01Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f56aaaa9-0c85-4f0f-83bf-a3879358491e\",\"scheduleId\":\"f56aaaa9-0c85-4f0f-83bf-a3879358491e\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Completed\",\"userId\":\"1\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":427,\"name\":\"WorkflowName\",\"value\":\"Update\"},{\"id\":428,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":429,\"name\":\"CallbackData\",\"value\":\"{\\\"requestType\\\":\\\"Update\\\",\\\"requestDetails\\\":[{\\\"vnfName\\\":\\\"VNF_670_test_05\\\",\\\"vnfInstanceId\\\":\\\"d16d9f8f-d746-4259-abe0-0880d7e690bb\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"vnf\\\",\\\"modelInvariantId\\\":\\\"08b17e33-dc82-4fa7-8423-af392abd16c2\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"VNF_670_test_05\\\",\\\"modelVersion\\\":\\\"1.0\\\",\\\"modelCustomizationId\\\":\\\"b07347e9-88ee-42aa-9b24-1aae322c1d7b\\\"},\\\"cloudConfiguration\\\":{\\\"lcpCloudRegionId\\\":\\\"mdt1\\\",\\\"tenantId\\\":\\\"88a6ca3ee0394ade9403f075db23167e\\\"},\\\"requestInfo\\\":{\\\"source\\\":\\\"VID\\\",\\\"suppressRollback\\\":false,\\\"requestorId\\\":\\\"az2016\\\"},\\\"relatedInstanceList\\\":[{\\\"relatedInstance\\\":{\\\"instanceId\\\":\\\"98d8e770-efce-4018-8ac2-a7a643e3cf93\\\",\\\"modelInfo\\\":{\\\"modelType\\\":\\\"service\\\",\\\"modelInvariantId\\\":\\\"66b17bb4-9cba-4ea7-a2bb-942844bb3483\\\",\\\"modelVersionId\\\":\\\"468c8c05-d55d-40b3-85cf-ec78642f60d8\\\",\\\"modelName\\\":\\\"BK-Sanity-1707.0.6-S\\\",\\\"modelVersion\\\":\\\"1.0\\\"}}}],\\\"requestParameters\\\":{\\\"usePreload\\\":true}}]}\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-11T16:12:36Z\",\"finishTime\":\"2017-09-11T16:14:26Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-11T16:12:36Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":144,\"createDateTime\":\"2017-09-11T16:11:38Z\",\"optimizerDateTime\":\"2017-09-11T16:11:40Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T16:17:25Z\",\"optimizerTransactionId\":\"61516ae8-f7aa-4210-98fa-8d542ffe4c94\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-11 16:12:36\\\",\\\"finishTime\\\":\\\"2017-09-11 16:14:26\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-11 16:12:36\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"61516ae8-f7aa-4210-98fa-8d542ffe4c94\",\"scheduleName\":\"61516ae8-f7aa-4210-98fa-8d542ffe4c94\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":430,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":431,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":432,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003998514\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=27d2e5f5-868b-4886-9748-f4fc25ae1fc9 VNF Name=ctsf0002v AOTS ChangeId=CHG000003998514 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":145,\"createDateTime\":\"2017-09-11T16:18:06Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"27d2e5f5-868b-4886-9748-f4fc25ae1fc9\",\"scheduleId\":\"27d2e5f5-868b-4886-9748-f4fc25ae1fc9\",\"scheduleName\":\"27d2e5f5-868b-4886-9748-f4fc25ae1fc9\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":433,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":434,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":435,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003998515\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=3c9d46ad-e697-4a6e-a255-798f9a4ced5a VNF Name=ctsf0002v AOTS ChangeId=CHG000003998515 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":146,\"createDateTime\":\"2017-09-11T16:29:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3c9d46ad-e697-4a6e-a255-798f9a4ced5a\",\"scheduleId\":\"3c9d46ad-e697-4a6e-a255-798f9a4ced5a\",\"scheduleName\":\"3c9d46ad-e697-4a6e-a255-798f9a4ced5a\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":436,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":437,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":438,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003998516\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"dispatchTime\":\"2017-09-11T16:37:25Z\",\"executionCompletedTime\":\"2017-09-11T16:37:35Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T16:37:35Z\",\"scheduleRequest\":{\"id\":147,\"createDateTime\":\"2017-09-11T16:37:07Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"758f00da-2af8-4053-9338-f84ade9825fd\",\"scheduleId\":\"758f00da-2af8-4053-9338-f84ade9825fd\",\"scheduleName\":\"758f00da-2af8-4053-9338-f84ade9825fd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-11T16:38:46Z\",\"domainData\":[{\"id\":439,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":440,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":441,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Past due\",\"aotsChangeId\":\"CHG000003998517\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-11T16:41:45Z\",\"finishTime\":\"2017-09-11T16:43:35Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-11T16:41:45Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"SCHEDULE_PAST_DUE Attempt to dispatch an event that is Past due scheduleId=6aece642-1eb3-44b6-902f-38c46f41d90c, vnf=ctsf0002v, now=Mon Sep 11 16:44:35 UTC 2017, startTime=Mon Sep 11 16:41:45 UTC 2017\",\"scheduleRequest\":{\"id\":148,\"createDateTime\":\"2017-09-11T16:40:45Z\",\"optimizerDateTime\":\"2017-09-11T16:40:55Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T16:44:13Z\",\"optimizerTransactionId\":\"6aece642-1eb3-44b6-902f-38c46f41d90c\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-11 16:41:45\\\",\\\"finishTime\\\":\\\"2017-09-11 16:43:35\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-11 16:41:45\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"6aece642-1eb3-44b6-902f-38c46f41d90c\",\"scheduleName\":\"6aece642-1eb3-44b6-902f-38c46f41d90c\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":442,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":443,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":444,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-11T16:44:17Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Past due\",\"aotsChangeId\":\"CHG000003998519\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-11T16:48:37Z\",\"finishTime\":\"2017-09-11T16:50:27Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-11T16:48:37Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"SCHEDULE_PAST_DUE Attempt to dispatch an event that is Past due scheduleId=717ca840-b557-4236-a4c7-bcf923906dfd, vnf=ctsf0002v, now=Mon Sep 11 16:50:25 UTC 2017, startTime=Mon Sep 11 16:48:37 UTC 2017\",\"scheduleRequest\":{\"id\":149,\"createDateTime\":\"2017-09-11T16:47:38Z\",\"optimizerDateTime\":\"2017-09-11T16:47:44Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T16:49:55Z\",\"optimizerTransactionId\":\"717ca840-b557-4236-a4c7-bcf923906dfd\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-11 16:48:37\\\",\\\"finishTime\\\":\\\"2017-09-11 16:50:27\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-11 16:48:37\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"717ca840-b557-4236-a4c7-bcf923906dfd\",\"scheduleName\":\"717ca840-b557-4236-a4c7-bcf923906dfd\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":445,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":446,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":447,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-11T16:50:00Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003998520\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-11T17:15:32Z\",\"finishTime\":\"2017-09-11T17:17:22Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-11T17:15:32Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-11T17:15:31Z\",\"executionCompletedTime\":\"2017-09-11T17:15:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T17:15:41Z\",\"scheduleRequest\":{\"id\":150,\"createDateTime\":\"2017-09-11T16:55:32Z\",\"optimizerDateTime\":\"2017-09-11T16:55:34Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T16:56:50Z\",\"optimizerTransactionId\":\"2afed68b-bcd4-4be2-a4b9-ab2751ef03aa\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-11 17:15:32\\\",\\\"finishTime\\\":\\\"2017-09-11 17:17:22\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-11 17:15:32\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"2afed68b-bcd4-4be2-a4b9-ab2751ef03aa\",\"scheduleName\":\"2afed68b-bcd4-4be2-a4b9-ab2751ef03aa\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":448,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":449,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":450,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-11T16:56:51Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC042519\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":151,\"createDateTime\":\"2017-09-11T17:20:09Z\",\"optimizerDateTime\":\"2017-09-11T17:20:14Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-00932a33-d6db-4912-8118-2b147b57f88a\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"6ef470f0-b7b7-4fc5-a3d3-49a528152519\",\"scheduleId\":\"6ef470f0-b7b7-4fc5-a3d3-49a528152519\",\"scheduleName\":\"6ef470f0-b7b7-4fc5-a3d3-49a528152519\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":451,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":452,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":453,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003998521\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-11T17:32:55Z\",\"finishTime\":\"2017-09-11T17:34:45Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-11T17:32:55Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=fbaafb06-f7d9-4990-95dc-c15d0efe4912 VNF Name=ctsf0002v AOTS ChangeId=CHG000003998521 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":152,\"createDateTime\":\"2017-09-11T17:27:56Z\",\"optimizerDateTime\":\"2017-09-11T17:28:03Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T17:30:13Z\",\"optimizerTransactionId\":\"fbaafb06-f7d9-4990-95dc-c15d0efe4912\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-11 17:32:55\\\",\\\"finishTime\\\":\\\"2017-09-11 17:34:45\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-11 17:32:55\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"fbaafb06-f7d9-4990-95dc-c15d0efe4912\",\"scheduleName\":\"fbaafb06-f7d9-4990-95dc-c15d0efe4912\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":454,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":455,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":456,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-11T17:30:13Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC046aa7\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":153,\"createDateTime\":\"2017-09-11T17:41:28Z\",\"optimizerDateTime\":\"2017-09-11T17:41:33Z\",\"optimizerMessage\":\"Error while processing request ID: CM-b24f62cb-876d-40f1-b827-4d009e70506f -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('ZRDM1MMSC046aa7', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T17:46:50Z\",\"optimizerTransactionId\":\"57eb6585-da93-4e57-9130-88c739806aa7\",\"scheduleId\":\"57eb6585-da93-4e57-9130-88c739806aa7\",\"scheduleName\":\"57eb6585-da93-4e57-9130-88c739806aa7\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":457,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":458,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":459,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":157,\"createDateTime\":\"2017-09-11T17:57:08Z\",\"optimizerDateTime\":\"2017-09-11T17:57:13Z\",\"optimizerMessage\":\"'' is too short\\n\\nFailed validating 'minLength' in schema['properties']['change_elements']['items']['properties']['group_id']:\\n {'description': 'Group to which the elements belongs to.',\\n 'minLength': 1,\\n 'type': 'string'}\\n\\nOn instance['change_elements'][0]['group_id']:\\n ''\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T17:59:27Z\",\"optimizerTransactionId\":\"764dd111-4cdf-41a9-8f5e-dad2ca31ec64\",\"scheduleId\":\"764dd111-4cdf-41a9-8f5e-dad2ca31ec64\",\"scheduleName\":\"764dd111-4cdf-41a9-8f5e-dad2ca31ec64\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":469,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":470,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":471,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":160,\"createDateTime\":\"2017-09-11T18:30:54Z\",\"optimizerDateTime\":\"2017-09-11T18:31:03Z\",\"optimizerMessage\":\"'' is too short\\n\\nFailed validating 'minLength' in schema['properties']['change_elements']['items']['properties']['group_id']:\\n {'description': 'Group to which the elements belongs to.',\\n 'minLength': 1,\\n 'type': 'string'}\\n\\nOn instance['change_elements'][0]['group_id']:\\n ''\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T18:33:13Z\",\"optimizerTransactionId\":\"c9be94c4-7e49-43d5-9210-863f7e8c422f\",\"scheduleId\":\"c9be94c4-7e49-43d5-9210-863f7e8c422f\",\"scheduleName\":\"c9be94c4-7e49-43d5-9210-863f7e8c422f\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":478,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":479,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":480,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003998526\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-11T18:57:37Z\",\"finishTime\":\"2017-09-11T18:59:27Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-11T18:57:37Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=0cbf2304-cd6c-457f-b029-8d5da25f69ef VNF Name=ctsf0002v AOTS ChangeId=CHG000003998526 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":161,\"createDateTime\":\"2017-09-11T18:52:37Z\",\"optimizerDateTime\":\"2017-09-11T18:52:43Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T18:54:06Z\",\"optimizerTransactionId\":\"0cbf2304-cd6c-457f-b029-8d5da25f69ef\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-11 18:57:37\\\",\\\"finishTime\\\":\\\"2017-09-11 18:59:27\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-11 18:57:37\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"0cbf2304-cd6c-457f-b029-8d5da25f69ef\",\"scheduleName\":\"0cbf2304-cd6c-457f-b029-8d5da25f69ef\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":481,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":482,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":483,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-11T18:54:07Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":163,\"createDateTime\":\"2017-09-11T19:10:25Z\",\"optimizerDateTime\":\"2017-09-11T19:10:33Z\",\"optimizerMessage\":\"'' is too short\\n\\nFailed validating 'minLength' in schema['properties']['change_elements']['items']['properties']['group_id']:\\n {'description': 'Group to which the elements belongs to.',\\n 'minLength': 1,\\n 'type': 'string'}\\n\\nOn instance['change_elements'][0]['group_id']:\\n ''\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T19:16:04Z\",\"optimizerTransactionId\":\"a20d9233-5464-4e03-8ac6-d30cb6c141f1\",\"scheduleId\":\"a20d9233-5464-4e03-8ac6-d30cb6c141f1\",\"scheduleName\":\"a20d9233-5464-4e03-8ac6-d30cb6c141f1\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":487,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":488,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":489,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003998527\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-11T19:20:52Z\",\"finishTime\":\"2017-09-11T19:22:42Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-11T19:20:52Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=e1d8fb77-d1c2-4a10-adaf-9a1e4aee3426 VNF Name=ctsf0002v AOTS ChangeId=CHG000003998527 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":164,\"createDateTime\":\"2017-09-11T19:19:53Z\",\"optimizerDateTime\":\"2017-09-11T19:19:53Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-11T19:21:08Z\",\"optimizerTransactionId\":\"e1d8fb77-d1c2-4a10-adaf-9a1e4aee3426\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-11 19:20:52\\\",\\\"finishTime\\\":\\\"2017-09-11 19:22:42\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-11 19:20:52\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"e1d8fb77-d1c2-4a10-adaf-9a1e4aee3426\",\"scheduleName\":\"e1d8fb77-d1c2-4a10-adaf-9a1e4aee3426\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":490,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":491,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":492,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-11T19:21:14Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04e308\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003998533\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-11T20:12:05Z\",\"executionCompletedTime\":\"2017-09-11T20:12:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-11T20:12:15Z\",\"scheduleRequest\":{\"id\":166,\"createDateTime\":\"2017-09-11T20:11:51Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"33400945-45fb-4586-af51-80f0d495e308\",\"scheduleId\":\"33400945-45fb-4586-af51-80f0d495e308\",\"scheduleName\":\"33400945-45fb-4586-af51-80f0d495e308\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-11T20:13:26Z\",\"domainData\":[{\"id\":496,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":497,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":498,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-13T15:59:39Z\",\"finishTime\":\"2017-09-13T16:01:29Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-13T15:59:39Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":177,\"createDateTime\":\"2017-09-13T13:18:39Z\",\"optimizerDateTime\":\"2017-09-13T13:18:46Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-13T13:22:52Z\",\"optimizerTransactionId\":\"16a875c8-3ef9-4637-843f-45962abe72a6\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-13 15:59:39\\\",\\\"finishTime\\\":\\\"2017-09-13 16:01:29\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-13 15:59:39\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"16a875c8-3ef9-4637-843f-45962abe72a6\",\"scheduleName\":\"16a875c8-3ef9-4637-843f-45962abe72a6\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":529,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":530,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":531,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"dispatchTime\":\"2017-09-13T13:47:35Z\",\"executionCompletedTime\":\"2017-09-13T13:47:45Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T13:47:45Z\",\"scheduleRequest\":{\"id\":180,\"createDateTime\":\"2017-09-13T13:47:27Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"588239f9-8330-428d-a777-d0b4fd2e40ca\",\"scheduleId\":\"588239f9-8330-428d-a777-d0b4fd2e40ca\",\"scheduleName\":\"588239f9-8330-428d-a777-d0b4fd2e40ca\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-13T13:48:38Z\",\"domainData\":[{\"id\":538,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":539,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":540,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003998712\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"dispatchTime\":\"2017-09-13T13:52:23Z\",\"executionCompletedTime\":\"2017-09-13T13:52:33Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T13:52:33Z\",\"scheduleRequest\":{\"id\":181,\"createDateTime\":\"2017-09-13T13:51:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7bf58d61-120d-4bd2-b101-540247365c3f\",\"scheduleId\":\"7bf58d61-120d-4bd2-b101-540247365c3f\",\"scheduleName\":\"7bf58d61-120d-4bd2-b101-540247365c3f\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-13T13:53:37Z\",\"domainData\":[{\"id\":541,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":542,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":543,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003998713\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-13T15:59:59Z\",\"finishTime\":\"2017-09-13T16:01:49Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-13T15:59:59Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=b77321a0-e80b-4c94-9288-08bea123af69 VNF Name=ctsf0002v AOTS ChangeId=CHG000003998713 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":182,\"createDateTime\":\"2017-09-13T13:53:59Z\",\"optimizerDateTime\":\"2017-09-13T13:54:03Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-13T13:57:08Z\",\"optimizerTransactionId\":\"b77321a0-e80b-4c94-9288-08bea123af69\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-13 15:59:59\\\",\\\"finishTime\\\":\\\"2017-09-13 16:01:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-13 15:59:59\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"b77321a0-e80b-4c94-9288-08bea123af69\",\"scheduleName\":\"b77321a0-e80b-4c94-9288-08bea123af69\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":544,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":545,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":546,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-13T13:57:14Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":183,\"createDateTime\":\"2017-09-13T14:02:09Z\",\"optimizerDateTime\":\"2017-09-13T14:02:12Z\",\"optimizerMessage\":\"Error while processing request ID: CM-0c67738c-191a-49d9-9d92-e3f16ec9d549 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 91, in __init__\\n self.update_raw_schedules()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 122, in update_raw_schedules\\n raw_aots = self.get_aots_data()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 198, in get_aots_data\\n flat_list = self.make_vtm_response_look_like_file(change_info_list);\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 224, in make_vtm_response_look_like_file\\n flatrow[newcol] = self.fixdate(row[col], col)\\nKeyError: ('actualStartDate', '(Error requesting AOTS data)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-13T14:05:57Z\",\"optimizerTransactionId\":\"8547398f-4979-4572-913e-4c3f42fa0eb9\",\"scheduleId\":\"8547398f-4979-4572-913e-4c3f42fa0eb9\",\"scheduleName\":\"8547398f-4979-4572-913e-4c3f42fa0eb9\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":547,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":548,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":549,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003998722\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"statusMessage\":\"UNABLE_TO_LOCATE_CHANGE_RECORD Unable to locate AOTS change record CHG000003998722 to check status before displacth of ctsf0002v for schedulId=7b9aae00-868a-4178-a666-011af3d7da9f\",\"scheduleRequest\":{\"id\":184,\"createDateTime\":\"2017-09-13T14:26:05Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7b9aae00-868a-4178-a666-011af3d7da9f\",\"scheduleId\":\"7b9aae00-868a-4178-a666-011af3d7da9f\",\"scheduleName\":\"7b9aae00-868a-4178-a666-011af3d7da9f\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":550,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":551,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":552,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":185,\"createDateTime\":\"2017-09-13T14:48:14Z\",\"optimizerDateTime\":\"2017-09-13T14:48:22Z\",\"optimizerMessage\":\"Error while processing request ID: CM-7b447d88-8a5a-480d-a5d6-d70c602a3086 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 91, in __init__\\n self.update_raw_schedules()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 122, in update_raw_schedules\\n raw_aots = self.get_aots_data()\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 198, in get_aots_data\\n flat_list = self.make_vtm_response_look_like_file(change_info_list);\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 224, in make_vtm_response_look_like_file\\n flatrow[newcol] = self.fixdate(row[col], col)\\nKeyError: ('actualStartDate', '(Error requesting AOTS data)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-13T14:50:52Z\",\"optimizerTransactionId\":\"2f05ec64-59bd-4288-a0e6-e57b30860c68\",\"scheduleId\":\"2f05ec64-59bd-4288-a0e6-e57b30860c68\",\"scheduleName\":\"2f05ec64-59bd-4288-a0e6-e57b30860c68\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":553,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":554,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":555,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-13T17:50:05Z\",\"executionCompletedTime\":\"2017-09-13T17:50:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T17:50:15Z\",\"scheduleRequest\":{\"id\":193,\"createDateTime\":\"2017-09-13T17:49:56Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cfbbe36e-f111-4ff7-9a92-a34339bac455\",\"scheduleId\":\"cfbbe36e-f111-4ff7-9a92-a34339bac455\",\"scheduleName\":\"cfbbe36e-f111-4ff7-9a92-a34339bac455\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":577,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":578,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":579,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-13T17:51:55Z\",\"executionCompletedTime\":\"2017-09-13T17:52:05Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T17:52:05Z\",\"scheduleRequest\":{\"id\":194,\"createDateTime\":\"2017-09-13T17:51:45Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e2238261-7e5d-4594-b5d8-5e1e5954ee93\",\"scheduleId\":\"e2238261-7e5d-4594-b5d8-5e1e5954ee93\",\"scheduleName\":\"e2238261-7e5d-4594-b5d8-5e1e5954ee93\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":580,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":581,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":582,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-13T17:54:35Z\",\"executionCompletedTime\":\"2017-09-13T17:54:45Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T17:54:45Z\",\"scheduleRequest\":{\"id\":195,\"createDateTime\":\"2017-09-13T17:54:27Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"93b48307-cbc6-4d2a-8d7c-6d34ffeb6045\",\"scheduleId\":\"93b48307-cbc6-4d2a-8d7c-6d34ffeb6045\",\"scheduleName\":\"93b48307-cbc6-4d2a-8d7c-6d34ffeb6045\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":583,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":584,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":585,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-13T18:14:16Z\",\"executionCompletedTime\":\"2017-09-13T18:14:26Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T18:14:26Z\",\"scheduleRequest\":{\"id\":196,\"createDateTime\":\"2017-09-13T18:14:11Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b42dcc30-c938-4e2e-bc37-de28a61534b5\",\"scheduleId\":\"b42dcc30-c938-4e2e-bc37-de28a61534b5\",\"scheduleName\":\"b42dcc30-c938-4e2e-bc37-de28a61534b5\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":586,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":587,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":588,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-13T18:29:35Z\",\"executionCompletedTime\":\"2017-09-13T18:29:45Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T18:29:45Z\",\"scheduleRequest\":{\"id\":197,\"createDateTime\":\"2017-09-13T18:29:26Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"58b10e90-3099-4c82-b2bd-bfe32b2d76f7\",\"scheduleId\":\"58b10e90-3099-4c82-b2bd-bfe32b2d76f7\",\"scheduleName\":\"58b10e90-3099-4c82-b2bd-bfe32b2d76f7\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":589,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":590,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":591,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-13T19:07:05Z\",\"executionCompletedTime\":\"2017-09-13T19:07:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T19:07:15Z\",\"scheduleRequest\":{\"id\":198,\"createDateTime\":\"2017-09-13T19:06:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7e537d37-3490-4f8a-87ac-f7783a214bb3\",\"scheduleId\":\"7e537d37-3490-4f8a-87ac-f7783a214bb3\",\"scheduleName\":\"7e537d37-3490-4f8a-87ac-f7783a214bb3\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":592,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":593,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":594,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-13T19:17:05Z\",\"executionCompletedTime\":\"2017-09-13T19:17:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T19:17:15Z\",\"scheduleRequest\":{\"id\":199,\"createDateTime\":\"2017-09-13T19:17:01Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"918f9524-38a5-4b69-b403-6ba45cda1d90\",\"scheduleId\":\"918f9524-38a5-4b69-b403-6ba45cda1d90\",\"scheduleName\":\"918f9524-38a5-4b69-b403-6ba45cda1d90\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":595,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":596,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":597,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-13T19:29:05Z\",\"executionCompletedTime\":\"2017-09-13T19:29:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-13T19:29:15Z\",\"scheduleRequest\":{\"id\":200,\"createDateTime\":\"2017-09-13T19:29:00Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"25f06d1c-0e4e-4330-be09-b73c80944056\",\"scheduleId\":\"25f06d1c-0e4e-4330-be09-b73c80944056\",\"scheduleName\":\"25f06d1c-0e4e-4330-be09-b73c80944056\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":598,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":599,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":600,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"statusMessage\":\"InboundJaxrsResponse{context=ClientResponse{method=POST, uri=http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\/ctsf0002v, status=401, reason=Unauthorized}}\",\"scheduleRequest\":{\"id\":205,\"createDateTime\":\"2017-09-13T20:28:48Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"55cd6b66-75c7-4af7-9c1e-da83b356212c\",\"scheduleId\":\"55cd6b66-75c7-4af7-9c1e-da83b356212c\",\"scheduleName\":\"55cd6b66-75c7-4af7-9c1e-da83b356212c\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":613,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":614,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":615,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"statusMessage\":\"InboundJaxrsResponse{context=ClientResponse{method=POST, uri=http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\/ctsf0002v, status=401, reason=Unauthorized}}\",\"scheduleRequest\":{\"id\":206,\"createDateTime\":\"2017-09-13T20:29:34Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3e235d44-79f2-4250-9407-e5699283eced\",\"scheduleId\":\"3e235d44-79f2-4250-9407-e5699283eced\",\"scheduleName\":\"3e235d44-79f2-4250-9407-e5699283eced\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":616,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":617,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":618,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"statusMessage\":\"InboundJaxrsResponse{context=ClientResponse{method=POST, uri=http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\/ctsf0002v, status=401, reason=Unauthorized}}\",\"scheduleRequest\":{\"id\":209,\"createDateTime\":\"2017-09-13T20:58:30Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ffeb3aa6-2fa0-4a63-b9d3-5bd8068c96d7\",\"scheduleId\":\"ffeb3aa6-2fa0-4a63-b9d3-5bd8068c96d7\",\"scheduleName\":\"ffeb3aa6-2fa0-4a63-b9d3-5bd8068c96d7\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":625,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":626,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":627,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-14T13:46:16Z\",\"executionCompletedTime\":\"2017-09-14T13:46:26Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-14T13:46:26Z\",\"scheduleRequest\":{\"id\":210,\"createDateTime\":\"2017-09-14T13:46:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"8825e280-2ce9-4caf-9ccc-1f48eda8e9e4\",\"scheduleId\":\"8825e280-2ce9-4caf-9ccc-1f48eda8e9e4\",\"scheduleName\":\"8825e280-2ce9-4caf-9ccc-1f48eda8e9e4\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":628,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":629,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":630,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":211,\"createDateTime\":\"2017-09-14T14:22:52Z\",\"optimizerDateTime\":\"2017-09-14T14:22:56Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-14T14:35:57Z\",\"optimizerTransactionId\":\"ac1cdf77-c268-4c9e-8d1a-7349fdd5bc00\",\"scheduleId\":\"ac1cdf77-c268-4c9e-8d1a-7349fdd5bc00\",\"scheduleName\":\"ac1cdf77-c268-4c9e-8d1a-7349fdd5bc00\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":631,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":632,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":633,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":212,\"createDateTime\":\"2017-09-14T14:23:04Z\",\"optimizerDateTime\":\"2017-09-14T14:23:06Z\",\"optimizerMessage\":\"[] is too short\\n\\nFailed validating 'minItems' in schema['items']['properties']['allowed_periods']:\\n {'description': 'Describes the intervals when an upgrade can be done.',\\n 'items': {'$ref': '#\/definitions\/interval'},\\n 'minItems': 1,\\n 'type': 'array'}\\n\\nOn instance[0]['allowed_periods']:\\n []\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-14T14:35:57Z\",\"optimizerTransactionId\":\"9149b49c-1bad-4b3a-b015-134b17231454\",\"scheduleId\":\"9149b49c-1bad-4b3a-b015-134b17231454\",\"scheduleName\":\"9149b49c-1bad-4b3a-b015-134b17231454\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":634,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":635,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":636,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003998933\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-14T19:41:11Z\",\"executionCompletedTime\":\"2017-09-14T19:41:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-14T19:41:21Z\",\"scheduleRequest\":{\"id\":213,\"createDateTime\":\"2017-09-14T19:40:47Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ebcb4b62-d9e4-44d5-9949-909a6daffa73\",\"scheduleId\":\"ebcb4b62-d9e4-44d5-9949-909a6daffa73\",\"scheduleName\":\"ebcb4b62-d9e4-44d5-9949-909a6daffa73\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":637,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":638,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":639,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1707.Demo_TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":214,\"createDateTime\":\"2017-09-14T19:46:28Z\",\"optimizerDateTime\":\"2017-09-14T19:46:30Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-2d2a6365-844c-4bbd-9863-ec9fe5643583\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"2936db09-00a8-4d79-ac16-75869186b684\",\"scheduleId\":\"2936db09-00a8-4d79-ac16-75869186b684\",\"scheduleName\":\"2936db09-00a8-4d79-ac16-75869186b684\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":640,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":641,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":642,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003998934\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-14T19:47:40Z\",\"executionCompletedTime\":\"2017-09-14T19:47:50Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-14T19:47:50Z\",\"scheduleRequest\":{\"id\":215,\"createDateTime\":\"2017-09-14T19:47:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9c0b4474-fb45-4cb7-837e-29f5b4aad643\",\"scheduleId\":\"9c0b4474-fb45-4cb7-837e-29f5b4aad643\",\"scheduleName\":\"9c0b4474-fb45-4cb7-837e-29f5b4aad643\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":643,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":644,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":645,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003998935\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-14T19:56:30Z\",\"executionCompletedTime\":\"2017-09-14T19:56:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-14T19:56:40Z\",\"scheduleRequest\":{\"id\":216,\"createDateTime\":\"2017-09-14T19:56:11Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e62ebeab-c926-4a42-a296-6f9f731990f7\",\"scheduleId\":\"e62ebeab-c926-4a42-a296-6f9f731990f7\",\"scheduleName\":\"e62ebeab-c926-4a42-a296-6f9f731990f7\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-14T19:57:48Z\",\"domainData\":[{\"id\":646,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":647,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":648,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003998936\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-14T20:35:50Z\",\"executionCompletedTime\":\"2017-09-14T20:36:00Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-14T20:36:00Z\",\"scheduleRequest\":{\"id\":217,\"createDateTime\":\"2017-09-14T20:35:20Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"33c96c1a-74be-4f3c-9264-058e67493c9e\",\"scheduleId\":\"33c96c1a-74be-4f3c-9264-058e67493c9e\",\"scheduleName\":\"33c96c1a-74be-4f3c-9264-058e67493c9e\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-14T20:36:48Z\",\"domainData\":[{\"id\":649,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":650,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":651,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003998937\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-14T20:38:40Z\",\"executionCompletedTime\":\"2017-09-14T20:38:50Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-14T20:38:50Z\",\"scheduleRequest\":{\"id\":218,\"createDateTime\":\"2017-09-14T20:38:23Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b0232f5a-1f6c-4796-8d82-b11796e7436b\",\"scheduleId\":\"b0232f5a-1f6c-4796-8d82-b11796e7436b\",\"scheduleName\":\"b0232f5a-1f6c-4796-8d82-b11796e7436b\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":652,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":653,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":654,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003998938\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"statusMessage\":\"UNABLE_TO_LOCATE_CHANGE_RECORD Unable to locate AOTS change record CHG000003998938 to check status before displacth of ctsf0002v for schedulId=86cefb90-f2a3-4521-a666-54508e8e0520\",\"scheduleRequest\":{\"id\":219,\"createDateTime\":\"2017-09-14T20:40:23Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"86cefb90-f2a3-4521-a666-54508e8e0520\",\"scheduleId\":\"86cefb90-f2a3-4521-a666-54508e8e0520\",\"scheduleName\":\"86cefb90-f2a3-4521-a666-54508e8e0520\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-14T20:41:45Z\",\"domainData\":[{\"id\":655,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":656,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":657,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-15T16:04:35Z\",\"finishTime\":\"2017-09-15T16:06:25Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-15T16:04:35Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":221,\"createDateTime\":\"2017-09-15T16:03:35Z\",\"optimizerDateTime\":\"2017-09-15T16:03:39Z\",\"optimizerMessage\":\"A feasible scheduled has been found\",\"optimizerStatus\":\"complete\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-15T16:06:28Z\",\"optimizerTransactionId\":\"e90aa3a2-a044-4014-9d80-9426425aab2f\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-15 16:04:35\\\",\\\"finishTime\\\":\\\"2017-09-15 16:06:25\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-15 16:04:35\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"e90aa3a2-a044-4014-9d80-9426425aab2f\",\"scheduleName\":\"e90aa3a2-a044-4014-9d80-9426425aab2f\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":661,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":662,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":663,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999139\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"dispatchTime\":\"2017-09-15T16:22:09Z\",\"executionCompletedTime\":\"2017-09-15T16:22:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-15T16:22:19Z\",\"scheduleRequest\":{\"id\":224,\"createDateTime\":\"2017-09-15T16:21:48Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4edc37af-216f-44a5-8ef5-94791072ac70\",\"scheduleId\":\"4edc37af-216f-44a5-8ef5-94791072ac70\",\"scheduleName\":\"4edc37af-216f-44a5-8ef5-94791072ac70\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-15T16:23:36Z\",\"domainData\":[{\"id\":670,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":671,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":672,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":225,\"createDateTime\":\"2017-09-15T16:36:41Z\",\"optimizerDateTime\":\"2017-09-15T16:36:49Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-5c1cc312-7b4d-49c4-a372-145099ca5757\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"b96f1b9c-ae53-4071-ac55-8cf21c1a2ba2\",\"scheduleId\":\"b96f1b9c-ae53-4071-ac55-8cf21c1a2ba2\",\"scheduleName\":\"b96f1b9c-ae53-4071-ac55-8cf21c1a2ba2\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":673,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":674,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":675,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999141\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-15T16:42:09Z\",\"executionCompletedTime\":\"2017-09-15T16:42:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-15T16:42:19Z\",\"scheduleRequest\":{\"id\":226,\"createDateTime\":\"2017-09-15T16:41:43Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"059788bc-43e0-4552-a06d-a828440c7fea\",\"scheduleId\":\"059788bc-43e0-4552-a06d-a828440c7fea\",\"scheduleName\":\"059788bc-43e0-4552-a06d-a828440c7fea\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-15T16:42:53Z\",\"domainData\":[{\"id\":676,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":677,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":678,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999142\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-15T16:45:19Z\",\"executionCompletedTime\":\"2017-09-15T16:45:29Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-15T16:45:29Z\",\"scheduleRequest\":{\"id\":227,\"createDateTime\":\"2017-09-15T16:45:00Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e4984def-4633-447b-9c15-cf715bc7e1fa\",\"scheduleId\":\"e4984def-4633-447b-9c15-cf715bc7e1fa\",\"scheduleName\":\"e4984def-4633-447b-9c15-cf715bc7e1fa\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-15T16:45:52Z\",\"domainData\":[{\"id\":679,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":680,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":681,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName16aa9\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003999144\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-15T17:35:39Z\",\"executionCompletedTime\":\"2017-09-15T17:35:50Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-15T17:35:50Z\",\"scheduleRequest\":{\"id\":228,\"createDateTime\":\"2017-09-15T17:34:47Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"scheduleId\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"scheduleName\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":682,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":683,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":684,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName26aa9\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003999145\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-15T17:35:39Z\",\"executionCompletedTime\":\"2017-09-15T17:35:49Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-15T17:35:49Z\",\"scheduleRequest\":{\"id\":228,\"createDateTime\":\"2017-09-15T17:34:47Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"scheduleId\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"scheduleName\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":682,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":683,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":684,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName36aa9\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003999146\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"statusMessage\":\"UNABLE_TO_LOCATE_CHANGE_RECORD Unable to locate AOTS change record CHG000003999146 to check status before displacth of VNFName36aa9 for schedulId=d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"scheduleRequest\":{\"id\":228,\"createDateTime\":\"2017-09-15T17:34:47Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"scheduleId\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"scheduleName\":\"d65f08c1-d9d4-4ba9-9f32-2bd04fbc6aa9\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":682,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":683,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":684,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC041a1e\",\"status\":\"Pending Schedule\",\"groupId\":\"\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":229,\"createDateTime\":\"2017-09-18T14:22:05Z\",\"optimizerDateTime\":\"2017-09-18T14:22:13Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-119aac04-c22c-4889-b9eb-c810faf4d02d\\\",\\n \\\"text\\\": \\\"No matching policies\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"a06a58e8-e4a3-4fb3-bb1d-25ed4e491a1e\",\"scheduleId\":\"a06a58e8-e4a3-4fb3-bb1d-25ed4e491a1e\",\"scheduleName\":\"a06a58e8-e4a3-4fb3-bb1d-25ed4e491a1e\",\"status\":\"Schedule Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":685,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":686,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":687,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003999208\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-19T13:53:16Z\",\"executionCompletedTime\":\"2017-09-19T13:53:26Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-19T13:53:26Z\",\"scheduleRequest\":{\"id\":233,\"createDateTime\":\"2017-09-19T13:52:54Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9c695100-17e0-4e06-90c9-24e42bdfc5a8\",\"scheduleId\":\"9c695100-17e0-4e06-90c9-24e42bdfc5a8\",\"scheduleName\":\"9c695100-17e0-4e06-90c9-24e42bdfc5a8\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":697,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":698,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":699,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999209\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":234,\"createDateTime\":\"2017-09-19T13:54:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"357a9741-42e6-48ee-aa3b-b395437536e9\",\"scheduleId\":\"357a9741-42e6-48ee-aa3b-b395437536e9\",\"scheduleName\":\"357a9741-42e6-48ee-aa3b-b395437536e9\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-19T13:55:02Z\",\"domainData\":[{\"id\":700,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":701,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":702,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999210\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":235,\"createDateTime\":\"2017-09-19T13:57:38Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a2cd0da2-a8d2-41e3-b1c8-5ef83a1e6ec4\",\"scheduleId\":\"a2cd0da2-a8d2-41e3-b1c8-5ef83a1e6ec4\",\"scheduleName\":\"a2cd0da2-a8d2-41e3-b1c8-5ef83a1e6ec4\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-19T13:57:48Z\",\"domainData\":[{\"id\":703,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":704,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":705,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999212\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":236,\"createDateTime\":\"2017-09-19T14:18:31Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"07072232-6f97-41a2-923d-576c90cb1120\",\"scheduleId\":\"07072232-6f97-41a2-923d-576c90cb1120\",\"scheduleName\":\"07072232-6f97-41a2-923d-576c90cb1120\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-19T14:18:42Z\",\"domainData\":[{\"id\":706,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":707,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":708,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999213\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":237,\"createDateTime\":\"2017-09-19T14:20:22Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0b8ff195-b501-4ab2-bda5-4d3d9ffb172d\",\"scheduleId\":\"0b8ff195-b501-4ab2-bda5-4d3d9ffb172d\",\"scheduleName\":\"0b8ff195-b501-4ab2-bda5-4d3d9ffb172d\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-19T14:20:32Z\",\"domainData\":[{\"id\":709,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":710,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":711,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999214\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":238,\"createDateTime\":\"2017-09-19T14:24:23Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3129bcce-6bc0-4695-b01d-7a38c6789f95\",\"scheduleId\":\"3129bcce-6bc0-4695-b01d-7a38c6789f95\",\"scheduleName\":\"3129bcce-6bc0-4695-b01d-7a38c6789f95\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-19T14:24:34Z\",\"domainData\":[{\"id\":712,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":713,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":714,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999215\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":239,\"createDateTime\":\"2017-09-19T14:27:34Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"289d7a6f-ab9b-4625-8c86-75a9f6f9cdb8\",\"scheduleId\":\"289d7a6f-ab9b-4625-8c86-75a9f6f9cdb8\",\"scheduleName\":\"289d7a6f-ab9b-4625-8c86-75a9f6f9cdb8\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-19T14:27:45Z\",\"domainData\":[{\"id\":715,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":716,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":717,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999216\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":240,\"createDateTime\":\"2017-09-19T14:31:28Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"de8f7d7d-be95-4fcc-9147-836e0e23e92e\",\"scheduleId\":\"de8f7d7d-be95-4fcc-9147-836e0e23e92e\",\"scheduleName\":\"de8f7d7d-be95-4fcc-9147-836e0e23e92e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-19T14:31:38Z\",\"domainData\":[{\"id\":718,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":719,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":720,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999217\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":241,\"createDateTime\":\"2017-09-19T14:38:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3d223686-197c-4189-b8f8-d5ef71ed706d\",\"scheduleId\":\"3d223686-197c-4189-b8f8-d5ef71ed706d\",\"scheduleName\":\"3d223686-197c-4189-b8f8-d5ef71ed706d\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-19T14:38:22Z\",\"domainData\":[{\"id\":721,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":722,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":723,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":247,\"createDateTime\":\"2017-09-21T11:36:06Z\",\"optimizerDateTime\":\"2017-09-21T11:36:16Z\",\"optimizerMessage\":\"Error while processing request ID: CM-8dfaaa15-c847-40bb-8890-5d141a641b61 -- Failed Processing; cause: Traceback (most recent call last):\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 15, in process_local_cm_scheduler_opt\\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/local_opt_processor.py\\\", line 38, in full_process_local_cm_scheduler_opt\\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/optimizers\/cmopt\/rcscheduler\/request_builder.py\\\", line 16, in create_cm_scheduler_request\\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in __init__\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\n File \\\"\/opt\/app\/sniro\/sniroapp\/sniro\/datasources\/aai\/vertical_topology.py\\\", line 68, in <genexpr>\\n self.tzinfo = dict((x, tzxref[self.clli[x]]) for x in self.vnfs)\\nKeyError: ('ctsf0002v', '(Unable to get timezones for some elements)')\\n\",\"optimizerStatus\":\"failed\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-21T11:47:00Z\",\"optimizerTransactionId\":\"b4d512a1-8d37-48f1-b7f9-f639d9aa308a\",\"scheduleId\":\"b4d512a1-8d37-48f1-b7f9-f639d9aa308a\",\"scheduleName\":\"b4d512a1-8d37-48f1-b7f9-f639d9aa308a\",\"status\":\"Optimization Failed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":739,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":740,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":741,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":252,\"createDateTime\":\"2017-09-21T17:07:27Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"88c4b44f-d13f-43df-9415-b3615ea99c23\",\"scheduleId\":\"88c4b44f-d13f-43df-9415-b3615ea99c23\",\"scheduleName\":\"88c4b44f-d13f-43df-9415-b3615ea99c23\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-21T17:07:28Z\",\"domainData\":[{\"id\":754,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":755,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":756,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":253,\"createDateTime\":\"2017-09-21T17:20:11Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"67d61657-e408-4bc6-9eca-4ad12117b66f\",\"scheduleId\":\"67d61657-e408-4bc6-9eca-4ad12117b66f\",\"scheduleName\":\"67d61657-e408-4bc6-9eca-4ad12117b66f\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-21T17:20:11Z\",\"domainData\":[{\"id\":757,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":758,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":759,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":254,\"createDateTime\":\"2017-09-21T17:23:15Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"83e27694-647e-4ac7-b866-285a4b02b2b0\",\"scheduleId\":\"83e27694-647e-4ac7-b866-285a4b02b2b0\",\"scheduleName\":\"83e27694-647e-4ac7-b866-285a4b02b2b0\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-21T17:23:16Z\",\"domainData\":[{\"id\":760,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":761,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":762,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":255,\"createDateTime\":\"2017-09-21T17:24:18Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"7c6d0a64-e4f2-44d7-9b7e-7a099522544e\",\"scheduleId\":\"7c6d0a64-e4f2-44d7-9b7e-7a099522544e\",\"scheduleName\":\"7c6d0a64-e4f2-44d7-9b7e-7a099522544e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-21T17:24:19Z\",\"domainData\":[{\"id\":763,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":764,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":765,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04eb13\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-21T17:46:30Z\",\"finishTime\":\"2017-09-21T17:48:20Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-21T17:46:30Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-21T17:46:29Z\",\"executionCompletedTime\":\"2017-09-21T17:46:39Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-21T17:46:39Z\",\"scheduleRequest\":{\"id\":256,\"createDateTime\":\"2017-09-21T17:45:30Z\",\"optimizerDateTime\":\"2017-09-21T17:45:31Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-21T17:45:31Z\",\"optimizerTransactionId\":\"415ae5bd-1eca-499f-b43c-1bb4bb1ceb13\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-21 17:46:30\\\",\\\"finishTime\\\":\\\"2017-09-21 17:48:20\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-21 17:46:30\\\",\\\"node\\\":[\\\"ZRDM1MMSC04eb13\\\"]}]\",\"scheduleId\":\"415ae5bd-1eca-499f-b43c-1bb4bb1ceb13\",\"scheduleName\":\"415ae5bd-1eca-499f-b43c-1bb4bb1ceb13\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-21T17:47:15Z\",\"domainData\":[{\"id\":766,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":767,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":768,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-21T17:45:36Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04bb7e\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-21T18:55:00Z\",\"finishTime\":\"2017-09-21T18:56:50Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-21T18:55:00Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-21T18:54:59Z\",\"executionCompletedTime\":\"2017-09-21T18:55:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-21T18:55:09Z\",\"scheduleRequest\":{\"id\":257,\"createDateTime\":\"2017-09-21T18:54:00Z\",\"optimizerDateTime\":\"2017-09-21T18:54:10Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-21T18:54:10Z\",\"optimizerTransactionId\":\"b3d6c62f-4073-406e-a406-671a965bbb7e\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-21 18:55:00\\\",\\\"finishTime\\\":\\\"2017-09-21 18:56:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-21 18:55:00\\\",\\\"node\\\":[\\\"ZRDM1MMSC04bb7e\\\"]}]\",\"scheduleId\":\"b3d6c62f-4073-406e-a406-671a965bbb7e\",\"scheduleName\":\"b3d6c62f-4073-406e-a406-671a965bbb7e\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-21T18:55:14Z\",\"domainData\":[{\"id\":769,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":770,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":771,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-21T18:54:11Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":258,\"createDateTime\":\"2017-09-22T14:21:46Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"56e7fe53-6803-4da0-9057-7cd11e7f9f40\",\"scheduleId\":\"56e7fe53-6803-4da0-9057-7cd11e7f9f40\",\"scheduleName\":\"56e7fe53-6803-4da0-9057-7cd11e7f9f40\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T14:21:47Z\",\"domainData\":[{\"id\":772,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":773,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":774,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":259,\"createDateTime\":\"2017-09-22T14:41:01Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c415ac6b-cf5a-4994-8609-cdc44050b81f\",\"scheduleId\":\"c415ac6b-cf5a-4994-8609-cdc44050b81f\",\"scheduleName\":\"c415ac6b-cf5a-4994-8609-cdc44050b81f\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T14:41:01Z\",\"domainData\":[{\"id\":775,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":776,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":777,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":260,\"createDateTime\":\"2017-09-22T14:54:44Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"423c0f66-608a-4b83-830c-030d019229c1\",\"scheduleId\":\"423c0f66-608a-4b83-830c-030d019229c1\",\"scheduleName\":\"423c0f66-608a-4b83-830c-030d019229c1\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T14:54:44Z\",\"domainData\":[{\"id\":778,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":779,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":780,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":261,\"createDateTime\":\"2017-09-22T15:13:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2c8eb057-81ba-481a-a169-b91e9321853a\",\"scheduleId\":\"2c8eb057-81ba-481a-a169-b91e9321853a\",\"scheduleName\":\"2c8eb057-81ba-481a-a169-b91e9321853a\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T15:13:57Z\",\"domainData\":[{\"id\":781,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":782,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":783,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":262,\"createDateTime\":\"2017-09-22T15:13:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d1075db2-8c4c-422b-885b-ab9a6ec8ed4e\",\"scheduleId\":\"d1075db2-8c4c-422b-885b-ab9a6ec8ed4e\",\"scheduleName\":\"d1075db2-8c4c-422b-885b-ab9a6ec8ed4e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T15:13:59Z\",\"domainData\":[{\"id\":784,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":785,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":786,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":263,\"createDateTime\":\"2017-09-22T15:15:10Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"741c348b-e4fb-443b-92b8-6b9deb8ce96b\",\"scheduleId\":\"741c348b-e4fb-443b-92b8-6b9deb8ce96b\",\"scheduleName\":\"741c348b-e4fb-443b-92b8-6b9deb8ce96b\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T15:15:11Z\",\"domainData\":[{\"id\":787,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":788,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":789,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":264,\"createDateTime\":\"2017-09-22T15:15:12Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"871083af-8e79-43b3-8f43-cd350257d0a4\",\"scheduleId\":\"871083af-8e79-43b3-8f43-cd350257d0a4\",\"scheduleName\":\"871083af-8e79-43b3-8f43-cd350257d0a4\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T15:15:13Z\",\"domainData\":[{\"id\":790,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":791,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":792,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":265,\"createDateTime\":\"2017-09-22T15:15:36Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"8fdd94b0-9467-46b6-8c2c-20dd30ac3774\",\"scheduleId\":\"8fdd94b0-9467-46b6-8c2c-20dd30ac3774\",\"scheduleName\":\"8fdd94b0-9467-46b6-8c2c-20dd30ac3774\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T15:15:36Z\",\"domainData\":[{\"id\":793,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":794,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":795,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":266,\"createDateTime\":\"2017-09-22T15:15:42Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"272f4591-84ee-4807-8ee8-b40830f9edab\",\"scheduleId\":\"272f4591-84ee-4807-8ee8-b40830f9edab\",\"scheduleName\":\"272f4591-84ee-4807-8ee8-b40830f9edab\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T15:15:43Z\",\"domainData\":[{\"id\":796,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":797,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":798,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04e30c\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-22T16:50:28Z\",\"finishTime\":\"2017-09-22T16:52:18Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-22T16:50:28Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-22T16:50:27Z\",\"executionCompletedTime\":\"2017-09-22T16:50:37Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-22T16:50:37Z\",\"scheduleRequest\":{\"id\":267,\"createDateTime\":\"2017-09-22T16:49:28Z\",\"optimizerDateTime\":\"2017-09-22T16:49:30Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T16:49:31Z\",\"optimizerTransactionId\":\"e9edaba3-3e2a-4bfa-8e34-96d1ef62e30c\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-22 16:50:28\\\",\\\"finishTime\\\":\\\"2017-09-22 16:52:18\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 16:50:28\\\",\\\"node\\\":[\\\"ZRDM1MMSC04e30c\\\"]}]\",\"scheduleId\":\"e9edaba3-3e2a-4bfa-8e34-96d1ef62e30c\",\"scheduleName\":\"e9edaba3-3e2a-4bfa-8e34-96d1ef62e30c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T16:51:13Z\",\"domainData\":[{\"id\":799,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":800,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":801,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T16:49:34Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-22T16:55:30Z\",\"executionCompletedTime\":\"2017-09-22T16:55:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-22T16:55:41Z\",\"scheduleRequest\":{\"id\":268,\"createDateTime\":\"2017-09-22T16:55:22Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f57e591b-e81e-4462-854f-6626b63cad65\",\"scheduleId\":\"f57e591b-e81e-4462-854f-6626b63cad65\",\"scheduleName\":\"f57e591b-e81e-4462-854f-6626b63cad65\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T16:56:14Z\",\"domainData\":[{\"id\":802,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":803,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":804,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName154c1\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-22T16:56:21Z\",\"executionCompletedTime\":\"2017-09-22T16:56:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-22T16:56:31Z\",\"scheduleRequest\":{\"id\":269,\"createDateTime\":\"2017-09-22T16:56:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"scheduleId\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"scheduleName\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T16:57:12Z\",\"domainData\":[{\"id\":805,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":806,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":807,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName254c1\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-22T16:56:21Z\",\"executionCompletedTime\":\"2017-09-22T16:56:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-22T16:56:31Z\",\"scheduleRequest\":{\"id\":269,\"createDateTime\":\"2017-09-22T16:56:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"scheduleId\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"scheduleName\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T16:57:12Z\",\"domainData\":[{\"id\":805,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":806,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":807,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName354c1\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-22T16:56:21Z\",\"executionCompletedTime\":\"2017-09-22T16:56:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-22T16:56:31Z\",\"scheduleRequest\":{\"id\":269,\"createDateTime\":\"2017-09-22T16:56:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"scheduleId\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"scheduleName\":\"c8002937-c0a1-4657-aa28-3de846f954c1\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T16:57:12Z\",\"domainData\":[{\"id\":805,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":806,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":807,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":270,\"createDateTime\":\"2017-09-22T16:59:18Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f430e107-2547-4017-9efb-b1a745bb7d6d\",\"scheduleId\":\"f430e107-2547-4017-9efb-b1a745bb7d6d\",\"scheduleName\":\"f430e107-2547-4017-9efb-b1a745bb7d6d\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T16:59:18Z\",\"domainData\":[{\"id\":808,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":809,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":810,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-22T16:59:21Z\",\"executionCompletedTime\":\"2017-09-22T16:59:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-22T16:59:31Z\",\"scheduleRequest\":{\"id\":271,\"createDateTime\":\"2017-09-22T16:59:20Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3f7da196-bc2d-4190-b073-0538119aff6b\",\"scheduleId\":\"3f7da196-bc2d-4190-b073-0538119aff6b\",\"scheduleName\":\"3f7da196-bc2d-4190-b073-0538119aff6b\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":811,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":812,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":813,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-22T16:59:31Z\",\"executionCompletedTime\":\"2017-09-22T16:59:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-22T16:59:41Z\",\"scheduleRequest\":{\"id\":272,\"createDateTime\":\"2017-09-22T16:59:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"45be0e6e-b3c6-4fc0-b444-623501b9c6c1\",\"scheduleId\":\"45be0e6e-b3c6-4fc0-b444-623501b9c6c1\",\"scheduleName\":\"45be0e6e-b3c6-4fc0-b444-623501b9c6c1\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T17:00:16Z\",\"domainData\":[{\"id\":814,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":815,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":816,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":273,\"createDateTime\":\"2017-09-22T17:18:02Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4c1fb258-ca7b-48ca-9df4-7bb39242e7a3\",\"scheduleId\":\"4c1fb258-ca7b-48ca-9df4-7bb39242e7a3\",\"scheduleName\":\"4c1fb258-ca7b-48ca-9df4-7bb39242e7a3\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T17:18:02Z\",\"domainData\":[{\"id\":817,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":818,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":819,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":274,\"createDateTime\":\"2017-09-22T17:18:08Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"6306097d-5a6e-4f78-a9e6-0f8953a116d3\",\"scheduleId\":\"6306097d-5a6e-4f78-a9e6-0f8953a116d3\",\"scheduleName\":\"6306097d-5a6e-4f78-a9e6-0f8953a116d3\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-22T17:18:09Z\",\"domainData\":[{\"id\":820,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":821,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":822,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-22T18:12:30Z\",\"finishTime\":\"2017-09-22T18:14:20Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-22T18:12:30Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":275,\"createDateTime\":\"2017-09-22T18:07:31Z\",\"optimizerDateTime\":\"2017-09-22T18:07:40Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T18:07:40Z\",\"optimizerTransactionId\":\"bacf090f-52ac-4381-b665-b7275c81925c\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-22 18:12:30\\\",\\\"finishTime\\\":\\\"2017-09-22 18:14:20\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 18:12:30\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"bacf090f-52ac-4381-b665-b7275c81925c\",\"scheduleName\":\"bacf090f-52ac-4381-b665-b7275c81925c\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":823,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":824,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":825,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T18:07:42Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-22T18:18:22Z\",\"finishTime\":\"2017-09-22T18:20:12Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-22T18:18:22Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":276,\"createDateTime\":\"2017-09-22T18:13:22Z\",\"optimizerDateTime\":\"2017-09-22T18:13:30Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T18:13:30Z\",\"optimizerTransactionId\":\"d48879bc-fc64-4649-82bd-5c6238c96db5\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-22 18:18:22\\\",\\\"finishTime\\\":\\\"2017-09-22 18:20:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 18:18:22\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"d48879bc-fc64-4649-82bd-5c6238c96db5\",\"scheduleName\":\"d48879bc-fc64-4649-82bd-5c6238c96db5\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":826,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":827,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":828,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T18:13:33Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName15ce7\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-22T18:20:38Z\",\"finishTime\":\"2017-09-22T18:22:28Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-22T18:20:38Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"scheduleRequest\":{\"id\":277,\"createDateTime\":\"2017-09-22T18:15:39Z\",\"optimizerDateTime\":\"2017-09-22T18:15:40Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T18:15:40Z\",\"optimizerTransactionId\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-22 18:20:38\\\",\\\"finishTime\\\":\\\"2017-09-22 18:22:28\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 18:20:38\\\",\\\"node\\\":[\\\"VNFName15ce7\\\",\\\"VNFName25ce7\\\",\\\"VNFName35ce7\\\"]}]\",\"scheduleId\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"scheduleName\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":829,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":830,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":831,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T18:15:44Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName25ce7\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-22T18:20:38Z\",\"finishTime\":\"2017-09-22T18:22:28Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-22T18:20:38Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"scheduleRequest\":{\"id\":277,\"createDateTime\":\"2017-09-22T18:15:39Z\",\"optimizerDateTime\":\"2017-09-22T18:15:40Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T18:15:40Z\",\"optimizerTransactionId\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-22 18:20:38\\\",\\\"finishTime\\\":\\\"2017-09-22 18:22:28\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 18:20:38\\\",\\\"node\\\":[\\\"VNFName15ce7\\\",\\\"VNFName25ce7\\\",\\\"VNFName35ce7\\\"]}]\",\"scheduleId\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"scheduleName\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":829,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":830,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":831,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T18:15:44Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName35ce7\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-22T18:20:38Z\",\"finishTime\":\"2017-09-22T18:22:28Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-22T18:20:38Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"scheduleRequest\":{\"id\":277,\"createDateTime\":\"2017-09-22T18:15:39Z\",\"optimizerDateTime\":\"2017-09-22T18:15:40Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T18:15:40Z\",\"optimizerTransactionId\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-22 18:20:38\\\",\\\"finishTime\\\":\\\"2017-09-22 18:22:28\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 18:20:38\\\",\\\"node\\\":[\\\"VNFName15ce7\\\",\\\"VNFName25ce7\\\",\\\"VNFName35ce7\\\"]}]\",\"scheduleId\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"scheduleName\":\"d42c772b-6bc2-4027-a423-56d6bf6c5ce7\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":829,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":830,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":831,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T18:15:44Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName1f113\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-22T18:20:44Z\",\"finishTime\":\"2017-09-22T18:22:34Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-22T18:20:44Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"scheduleRequest\":{\"id\":278,\"createDateTime\":\"2017-09-22T18:15:44Z\",\"optimizerDateTime\":\"2017-09-22T18:15:50Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T18:15:50Z\",\"optimizerTransactionId\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-22 18:20:44\\\",\\\"finishTime\\\":\\\"2017-09-22 18:22:34\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 18:20:44\\\",\\\"node\\\":[\\\"VNFName1f113\\\",\\\"VNFName2f113\\\",\\\"VNFName3f113\\\"]}]\",\"scheduleId\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"scheduleName\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":832,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":833,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":834,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T18:15:55Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName2f113\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-22T18:20:44Z\",\"finishTime\":\"2017-09-22T18:22:34Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-22T18:20:44Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"scheduleRequest\":{\"id\":278,\"createDateTime\":\"2017-09-22T18:15:44Z\",\"optimizerDateTime\":\"2017-09-22T18:15:50Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T18:15:50Z\",\"optimizerTransactionId\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-22 18:20:44\\\",\\\"finishTime\\\":\\\"2017-09-22 18:22:34\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 18:20:44\\\",\\\"node\\\":[\\\"VNFName1f113\\\",\\\"VNFName2f113\\\",\\\"VNFName3f113\\\"]}]\",\"scheduleId\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"scheduleName\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":832,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":833,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":834,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T18:15:55Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName3f113\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-22T18:20:44Z\",\"finishTime\":\"2017-09-22T18:22:34Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-22T18:20:44Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"scheduleRequest\":{\"id\":278,\"createDateTime\":\"2017-09-22T18:15:44Z\",\"optimizerDateTime\":\"2017-09-22T18:15:50Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-22T18:15:50Z\",\"optimizerTransactionId\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-22 18:20:44\\\",\\\"finishTime\\\":\\\"2017-09-22 18:22:34\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-22 18:20:44\\\",\\\"node\\\":[\\\"VNFName1f113\\\",\\\"VNFName2f113\\\",\\\"VNFName3f113\\\"]}]\",\"scheduleId\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"scheduleName\":\"53f989cc-a0cf-4e54-9e91-af2a2d99f113\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":832,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":833,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":834,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-22T18:15:55Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":279,\"createDateTime\":\"2017-09-25T13:34:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"06b8065a-1988-4182-aaf6-bfc2ed3f0a5a\",\"scheduleId\":\"06b8065a-1988-4182-aaf6-bfc2ed3f0a5a\",\"scheduleName\":\"06b8065a-1988-4182-aaf6-bfc2ed3f0a5a\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T13:34:50Z\",\"domainData\":[{\"id\":835,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":836,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":837,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC049be8\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-25T15:33:24Z\",\"finishTime\":\"2017-09-25T15:35:14Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-25T15:33:24Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-25T15:33:23Z\",\"executionCompletedTime\":\"2017-09-25T15:33:33Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T15:33:33Z\",\"scheduleRequest\":{\"id\":280,\"createDateTime\":\"2017-09-25T15:32:24Z\",\"optimizerDateTime\":\"2017-09-25T15:32:30Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-25T15:32:30Z\",\"optimizerTransactionId\":\"044db0c7-ffcc-47df-a93d-4709ac559be8\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-25 15:33:24\\\",\\\"finishTime\\\":\\\"2017-09-25 15:35:14\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-25 15:33:24\\\",\\\"node\\\":[\\\"ZRDM1MMSC049be8\\\"]}]\",\"scheduleId\":\"044db0c7-ffcc-47df-a93d-4709ac559be8\",\"scheduleName\":\"044db0c7-ffcc-47df-a93d-4709ac559be8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T15:34:13Z\",\"domainData\":[{\"id\":838,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":839,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":840,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-25T15:32:34Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T16:53:41Z\",\"executionCompletedTime\":\"2017-09-25T16:53:51Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T16:53:51Z\",\"scheduleRequest\":{\"id\":281,\"createDateTime\":\"2017-09-25T16:53:32Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"24a6fede-9ed4-4519-b0cb-c4bf2bcbba9f\",\"scheduleId\":\"24a6fede-9ed4-4519-b0cb-c4bf2bcbba9f\",\"scheduleName\":\"24a6fede-9ed4-4519-b0cb-c4bf2bcbba9f\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":841,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":842,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":843,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T16:54:10Z\",\"executionCompletedTime\":\"2017-09-25T16:54:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T16:54:21Z\",\"scheduleRequest\":{\"id\":282,\"createDateTime\":\"2017-09-25T16:54:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f0f031fb-1aaf-45d6-b5b0-b1260e07e41c\",\"scheduleId\":\"f0f031fb-1aaf-45d6-b5b0-b1260e07e41c\",\"scheduleName\":\"f0f031fb-1aaf-45d6-b5b0-b1260e07e41c\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":844,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":845,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":846,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T17:03:20Z\",\"executionCompletedTime\":\"2017-09-25T17:03:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T17:03:31Z\",\"scheduleRequest\":{\"id\":283,\"createDateTime\":\"2017-09-25T17:03:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f6cb6990-efc7-4199-a48f-daaef8098ecd\",\"scheduleId\":\"f6cb6990-efc7-4199-a48f-daaef8098ecd\",\"scheduleName\":\"f6cb6990-efc7-4199-a48f-daaef8098ecd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T17:04:11Z\",\"domainData\":[{\"id\":847,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":848,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":849,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T17:15:31Z\",\"executionCompletedTime\":\"2017-09-25T17:15:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T17:15:41Z\",\"scheduleRequest\":{\"id\":284,\"createDateTime\":\"2017-09-25T17:15:28Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2395ae3e-bca3-4b1b-9985-94fbabbb65e6\",\"scheduleId\":\"2395ae3e-bca3-4b1b-9985-94fbabbb65e6\",\"scheduleName\":\"2395ae3e-bca3-4b1b-9985-94fbabbb65e6\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T17:16:16Z\",\"domainData\":[{\"id\":850,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":851,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":852,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T17:26:40Z\",\"executionCompletedTime\":\"2017-09-25T17:26:51Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T17:26:50Z\",\"scheduleRequest\":{\"id\":285,\"createDateTime\":\"2017-09-25T17:26:31Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cff7efbc-6388-48f9-a1eb-04dcd4edaa3d\",\"scheduleId\":\"cff7efbc-6388-48f9-a1eb-04dcd4edaa3d\",\"scheduleName\":\"cff7efbc-6388-48f9-a1eb-04dcd4edaa3d\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T17:27:13Z\",\"domainData\":[{\"id\":853,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":854,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":855,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T17:40:00Z\",\"executionCompletedTime\":\"2017-09-25T17:40:11Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T17:40:11Z\",\"scheduleRequest\":{\"id\":286,\"createDateTime\":\"2017-09-25T17:39:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"6e34fca2-415e-44c5-aef1-bd6ce631a004\",\"scheduleId\":\"6e34fca2-415e-44c5-aef1-bd6ce631a004\",\"scheduleName\":\"6e34fca2-415e-44c5-aef1-bd6ce631a004\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":856,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":857,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":858,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T17:41:30Z\",\"executionCompletedTime\":\"2017-09-25T17:41:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T17:41:41Z\",\"scheduleRequest\":{\"id\":287,\"createDateTime\":\"2017-09-25T17:41:29Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"aed09b00-75b0-48c0-911a-d0cd14b90283\",\"scheduleId\":\"aed09b00-75b0-48c0-911a-d0cd14b90283\",\"scheduleName\":\"aed09b00-75b0-48c0-911a-d0cd14b90283\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T17:42:11Z\",\"domainData\":[{\"id\":859,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":860,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":861,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T17:45:50Z\",\"executionCompletedTime\":\"2017-09-25T17:46:01Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T17:46:01Z\",\"scheduleRequest\":{\"id\":288,\"createDateTime\":\"2017-09-25T17:45:47Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cce2b0a8-8dfe-4bc9-9374-e3a8107f0889\",\"scheduleId\":\"cce2b0a8-8dfe-4bc9-9374-e3a8107f0889\",\"scheduleName\":\"cce2b0a8-8dfe-4bc9-9374-e3a8107f0889\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T17:46:13Z\",\"domainData\":[{\"id\":862,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":863,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":864,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T17:49:10Z\",\"executionCompletedTime\":\"2017-09-25T17:49:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T17:49:20Z\",\"scheduleRequest\":{\"id\":289,\"createDateTime\":\"2017-09-25T17:49:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5c23aaac-7e64-4d77-bdfb-cd992f128ae7\",\"scheduleId\":\"5c23aaac-7e64-4d77-bdfb-cd992f128ae7\",\"scheduleName\":\"5c23aaac-7e64-4d77-bdfb-cd992f128ae7\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T17:50:11Z\",\"domainData\":[{\"id\":865,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":866,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":867,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T18:01:01Z\",\"executionCompletedTime\":\"2017-09-25T18:01:11Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T18:01:11Z\",\"scheduleRequest\":{\"id\":290,\"createDateTime\":\"2017-09-25T18:00:58Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b13c99a4-f2ce-4d6d-b584-438ccfbdf3eb\",\"scheduleId\":\"b13c99a4-f2ce-4d6d-b584-438ccfbdf3eb\",\"scheduleName\":\"b13c99a4-f2ce-4d6d-b584-438ccfbdf3eb\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":868,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":869,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":870,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T18:03:30Z\",\"executionCompletedTime\":\"2017-09-25T18:03:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T18:03:41Z\",\"scheduleRequest\":{\"id\":291,\"createDateTime\":\"2017-09-25T18:03:22Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"55bfab3d-0f3b-41e0-8a03-0699fec26ac0\",\"scheduleId\":\"55bfab3d-0f3b-41e0-8a03-0699fec26ac0\",\"scheduleName\":\"55bfab3d-0f3b-41e0-8a03-0699fec26ac0\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":871,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":872,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":873,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T18:05:30Z\",\"executionCompletedTime\":\"2017-09-25T18:05:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T18:05:41Z\",\"scheduleRequest\":{\"id\":292,\"createDateTime\":\"2017-09-25T18:05:29Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"61dd9224-1539-4a61-9ed9-70fc9c3d80ae\",\"scheduleId\":\"61dd9224-1539-4a61-9ed9-70fc9c3d80ae\",\"scheduleName\":\"61dd9224-1539-4a61-9ed9-70fc9c3d80ae\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":874,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":875,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":876,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T18:12:10Z\",\"executionCompletedTime\":\"2017-09-25T18:12:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T18:12:21Z\",\"scheduleRequest\":{\"id\":293,\"createDateTime\":\"2017-09-25T18:12:03Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bb029ebc-869c-4c9b-a5b9-d0b59dac1a91\",\"scheduleId\":\"bb029ebc-869c-4c9b-a5b9-d0b59dac1a91\",\"scheduleName\":\"bb029ebc-869c-4c9b-a5b9-d0b59dac1a91\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":877,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":878,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":879,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T18:17:20Z\",\"executionCompletedTime\":\"2017-09-25T18:17:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T18:17:31Z\",\"scheduleRequest\":{\"id\":294,\"createDateTime\":\"2017-09-25T18:17:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ba177f96-197e-4984-b7a0-779e18f42c1b\",\"scheduleId\":\"ba177f96-197e-4984-b7a0-779e18f42c1b\",\"scheduleName\":\"ba177f96-197e-4984-b7a0-779e18f42c1b\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":880,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":881,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":882,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T18:21:31Z\",\"executionCompletedTime\":\"2017-09-25T18:21:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T18:21:41Z\",\"scheduleRequest\":{\"id\":295,\"createDateTime\":\"2017-09-25T18:21:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f461dc03-881f-4e16-992f-0b31db213866\",\"scheduleId\":\"f461dc03-881f-4e16-992f-0b31db213866\",\"scheduleName\":\"f461dc03-881f-4e16-992f-0b31db213866\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":883,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":884,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":885,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T18:46:21Z\",\"executionCompletedTime\":\"2017-09-25T18:46:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T18:46:31Z\",\"scheduleRequest\":{\"id\":296,\"createDateTime\":\"2017-09-25T18:46:16Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2535eb40-f342-4eec-9ae7-2a8f2a1fb295\",\"scheduleId\":\"2535eb40-f342-4eec-9ae7-2a8f2a1fb295\",\"scheduleName\":\"2535eb40-f342-4eec-9ae7-2a8f2a1fb295\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":886,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":887,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":888,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T18:50:31Z\",\"executionCompletedTime\":\"2017-09-25T18:50:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T18:50:41Z\",\"scheduleRequest\":{\"id\":297,\"createDateTime\":\"2017-09-25T18:50:26Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"90fbc2ed-6e83-4b02-9be7-c6e298856c9e\",\"scheduleId\":\"90fbc2ed-6e83-4b02-9be7-c6e298856c9e\",\"scheduleName\":\"90fbc2ed-6e83-4b02-9be7-c6e298856c9e\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":889,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":890,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":891,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T19:06:30Z\",\"executionCompletedTime\":\"2017-09-25T19:06:41Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T19:06:41Z\",\"scheduleRequest\":{\"id\":298,\"createDateTime\":\"2017-09-25T19:06:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"200f0bea-87b0-4447-83fa-9a4eb521e978\",\"scheduleId\":\"200f0bea-87b0-4447-83fa-9a4eb521e978\",\"scheduleName\":\"200f0bea-87b0-4447-83fa-9a4eb521e978\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":892,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":893,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":894,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T19:08:10Z\",\"executionCompletedTime\":\"2017-09-25T19:08:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T19:08:21Z\",\"scheduleRequest\":{\"id\":299,\"createDateTime\":\"2017-09-25T19:08:05Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4b0366ed-73f8-4ec2-b020-b0e1c7cd71c2\",\"scheduleId\":\"4b0366ed-73f8-4ec2-b020-b0e1c7cd71c2\",\"scheduleName\":\"4b0366ed-73f8-4ec2-b020-b0e1c7cd71c2\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T19:09:13Z\",\"domainData\":[{\"id\":895,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":896,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":897,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T19:17:10Z\",\"executionCompletedTime\":\"2017-09-25T19:17:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T19:17:21Z\",\"scheduleRequest\":{\"id\":300,\"createDateTime\":\"2017-09-25T19:17:07Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"df5dcacd-88a0-4a06-b914-428aef6cac92\",\"scheduleId\":\"df5dcacd-88a0-4a06-b914-428aef6cac92\",\"scheduleName\":\"df5dcacd-88a0-4a06-b914-428aef6cac92\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":898,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":899,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":900,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-25T19:22:00Z\",\"executionCompletedTime\":\"2017-09-25T19:22:11Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T19:22:11Z\",\"scheduleRequest\":{\"id\":301,\"createDateTime\":\"2017-09-25T19:21:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2ba5626e-4ea7-410c-8f2c-6d4e56497ff0\",\"scheduleId\":\"2ba5626e-4ea7-410c-8f2c-6d4e56497ff0\",\"scheduleName\":\"2ba5626e-4ea7-410c-8f2c-6d4e56497ff0\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T19:23:12Z\",\"domainData\":[{\"id\":901,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":902,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":903,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0496ad\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-25T19:50:05Z\",\"finishTime\":\"2017-09-25T19:51:55Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-25T19:50:05Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-25T19:50:04Z\",\"executionCompletedTime\":\"2017-09-25T19:50:14Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-25T19:50:14Z\",\"scheduleRequest\":{\"id\":302,\"createDateTime\":\"2017-09-25T19:49:05Z\",\"optimizerDateTime\":\"2017-09-25T19:49:10Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-25T19:49:10Z\",\"optimizerTransactionId\":\"d82c68f7-eeab-40f3-8050-ba20a64a96ad\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-25 19:50:05\\\",\\\"finishTime\\\":\\\"2017-09-25 19:51:55\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-25 19:50:05\\\",\\\"node\\\":[\\\"ZRDM1MMSC0496ad\\\"]}]\",\"scheduleId\":\"d82c68f7-eeab-40f3-8050-ba20a64a96ad\",\"scheduleName\":\"d82c68f7-eeab-40f3-8050-ba20a64a96ad\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-25T19:51:16Z\",\"domainData\":[{\"id\":904,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":905,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":906,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-25T19:49:16Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC046dec\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-25T20:46:35Z\",\"finishTime\":\"2017-09-25T20:48:25Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-25T20:46:35Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":304,\"createDateTime\":\"2017-09-25T20:45:35Z\",\"optimizerDateTime\":\"2017-09-26T11:02:24Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:02:25Z\",\"optimizerTransactionId\":\"b2b43d83-aa34-47d9-8dd4-0af4186c6dec\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-25 20:46:35\\\",\\\"finishTime\\\":\\\"2017-09-25 20:48:25\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-25 20:46:35\\\",\\\"node\\\":[\\\"ZRDM1MMSC046dec\\\"]}]\",\"scheduleId\":\"b2b43d83-aa34-47d9-8dd4-0af4186c6dec\",\"scheduleName\":\"b2b43d83-aa34-47d9-8dd4-0af4186c6dec\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":910,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":911,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":912,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC043fdc\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-25T20:55:56Z\",\"finishTime\":\"2017-09-25T20:57:46Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-25T20:55:56Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":306,\"createDateTime\":\"2017-09-25T20:54:59Z\",\"optimizerDateTime\":\"2017-09-26T11:02:25Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:02:25Z\",\"optimizerTransactionId\":\"10b8930a-e342-457d-b7a4-df6770833fdc\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-25 20:55:56\\\",\\\"finishTime\\\":\\\"2017-09-25 20:57:46\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-25 20:55:56\\\",\\\"node\\\":[\\\"ZRDM1MMSC043fdc\\\"]}]\",\"scheduleId\":\"10b8930a-e342-457d-b7a4-df6770833fdc\",\"scheduleName\":\"10b8930a-e342-457d-b7a4-df6770833fdc\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":916,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":917,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":918,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04c3c1\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-25T21:07:32Z\",\"finishTime\":\"2017-09-25T21:09:22Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-25T21:07:32Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":308,\"createDateTime\":\"2017-09-25T21:06:32Z\",\"optimizerDateTime\":\"2017-09-26T11:02:26Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:02:26Z\",\"optimizerTransactionId\":\"6d0c77a8-4f57-4f95-abbf-1a2389a7c3c1\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-25 21:07:32\\\",\\\"finishTime\\\":\\\"2017-09-25 21:09:22\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-25 21:07:32\\\",\\\"node\\\":[\\\"ZRDM1MMSC04c3c1\\\"]}]\",\"scheduleId\":\"6d0c77a8-4f57-4f95-abbf-1a2389a7c3c1\",\"scheduleName\":\"6d0c77a8-4f57-4f95-abbf-1a2389a7c3c1\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":922,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":923,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":924,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC043e58\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-25T21:34:15Z\",\"finishTime\":\"2017-09-25T21:36:05Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-25T21:34:15Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":310,\"createDateTime\":\"2017-09-25T21:33:16Z\",\"optimizerDateTime\":\"2017-09-26T11:02:26Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:02:26Z\",\"optimizerTransactionId\":\"2434d674-d028-4177-a82c-ccff49cd3e58\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-25 21:34:15\\\",\\\"finishTime\\\":\\\"2017-09-25 21:36:05\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-25 21:34:15\\\",\\\"node\\\":[\\\"ZRDM1MMSC043e58\\\"]}]\",\"scheduleId\":\"2434d674-d028-4177-a82c-ccff49cd3e58\",\"scheduleName\":\"2434d674-d028-4177-a82c-ccff49cd3e58\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":928,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":929,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":930,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-26T11:03:02Z\",\"finishTime\":\"2017-09-26T11:04:52Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-26T11:03:02Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":311,\"createDateTime\":\"2017-09-26T10:58:03Z\",\"optimizerDateTime\":\"2017-09-26T11:02:26Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:02:26Z\",\"optimizerTransactionId\":\"0d9a35b9-0a70-44cf-9d22-106a9edd2d67\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-26 11:03:02\\\",\\\"finishTime\\\":\\\"2017-09-26 11:04:52\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 11:03:02\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"0d9a35b9-0a70-44cf-9d22-106a9edd2d67\",\"scheduleName\":\"0d9a35b9-0a70-44cf-9d22-106a9edd2d67\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":931,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":932,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":933,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-26T11:09:30Z\",\"finishTime\":\"2017-09-26T11:11:20Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-26T11:09:30Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":312,\"createDateTime\":\"2017-09-26T11:04:30Z\",\"optimizerDateTime\":\"2017-09-26T11:04:33Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:04:33Z\",\"optimizerTransactionId\":\"13cd68c0-3f1b-4b44-89a0-4eff6f86c629\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-26 11:09:30\\\",\\\"finishTime\\\":\\\"2017-09-26 11:11:20\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 11:09:30\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"13cd68c0-3f1b-4b44-89a0-4eff6f86c629\",\"scheduleName\":\"13cd68c0-3f1b-4b44-89a0-4eff6f86c629\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":934,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":935,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":936,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-26T11:28:52Z\",\"finishTime\":\"2017-09-26T11:30:42Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-26T11:28:52Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":313,\"createDateTime\":\"2017-09-26T11:23:51Z\",\"optimizerDateTime\":\"2017-09-26T11:24:02Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:24:02Z\",\"optimizerTransactionId\":\"d8451174-f0cc-407a-9787-05f166eb6b08\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-26 11:28:52\\\",\\\"finishTime\\\":\\\"2017-09-26 11:30:42\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 11:28:52\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"d8451174-f0cc-407a-9787-05f166eb6b08\",\"scheduleName\":\"d8451174-f0cc-407a-9787-05f166eb6b08\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":937,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":938,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":939,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-26T11:33:48Z\",\"finishTime\":\"2017-09-26T11:35:38Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-26T11:33:48Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":314,\"createDateTime\":\"2017-09-26T11:28:47Z\",\"optimizerDateTime\":\"2017-09-26T11:28:54Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:28:54Z\",\"optimizerTransactionId\":\"94f798eb-8992-4e5c-9e53-18adc5b75ef9\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-26 11:33:48\\\",\\\"finishTime\\\":\\\"2017-09-26 11:35:38\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 11:33:48\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"94f798eb-8992-4e5c-9e53-18adc5b75ef9\",\"scheduleName\":\"94f798eb-8992-4e5c-9e53-18adc5b75ef9\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":940,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":941,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":942,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T11:38:12Z\",\"finishTime\":\"2017-09-26T11:40:02Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-26T11:38:12Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-26T11:38:11Z\",\"executionCompletedTime\":\"2017-09-26T11:38:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T11:38:21Z\",\"scheduleRequest\":{\"id\":315,\"createDateTime\":\"2017-09-26T11:33:10Z\",\"optimizerDateTime\":\"2017-09-26T11:33:13Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T11:33:14Z\",\"optimizerTransactionId\":\"2602ba13-844a-472f-8423-c0f40c6ba94f\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-26 11:38:12\\\",\\\"finishTime\\\":\\\"2017-09-26 11:40:02\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 11:38:12\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"2602ba13-844a-472f-8423-c0f40c6ba94f\",\"scheduleName\":\"2602ba13-844a-472f-8423-c0f40c6ba94f\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":943,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":944,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":945,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T11:33:17Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04473f\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T13:07:04Z\",\"finishTime\":\"2017-09-26T13:08:54Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T13:07:04Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T13:07:03Z\",\"executionCompletedTime\":\"2017-09-26T13:07:13Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T13:07:13Z\",\"scheduleRequest\":{\"id\":316,\"createDateTime\":\"2017-09-26T13:06:05Z\",\"optimizerDateTime\":\"2017-09-26T13:06:13Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T13:06:13Z\",\"optimizerTransactionId\":\"c614151a-e3b9-49db-a20d-60e04767473f\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 13:07:04\\\",\\\"finishTime\\\":\\\"2017-09-26 13:08:54\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 13:07:04\\\",\\\"node\\\":[\\\"ZRDM1MMSC04473f\\\"]}]\",\"scheduleId\":\"c614151a-e3b9-49db-a20d-60e04767473f\",\"scheduleName\":\"c614151a-e3b9-49db-a20d-60e04767473f\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T13:07:18Z\",\"domainData\":[{\"id\":946,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":947,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":948,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T13:06:15Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-26T13:58:23Z\",\"executionCompletedTime\":\"2017-09-26T13:58:33Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T13:58:33Z\",\"scheduleRequest\":{\"id\":317,\"createDateTime\":\"2017-09-26T13:58:15Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0080d692-47b6-4f68-b299-c2d64e8c5f6d\",\"scheduleId\":\"0080d692-47b6-4f68-b299-c2d64e8c5f6d\",\"scheduleName\":\"0080d692-47b6-4f68-b299-c2d64e8c5f6d\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T13:59:17Z\",\"domainData\":[{\"id\":949,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":950,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":951,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC046ab6\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T14:01:17Z\",\"finishTime\":\"2017-09-26T14:03:07Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T14:01:17Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T14:01:16Z\",\"executionCompletedTime\":\"2017-09-26T14:01:26Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T14:01:26Z\",\"scheduleRequest\":{\"id\":318,\"createDateTime\":\"2017-09-26T13:59:18Z\",\"optimizerDateTime\":\"2017-09-26T13:59:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T13:59:23Z\",\"optimizerTransactionId\":\"410caae2-1ead-42e3-a3ee-a19117106ab6\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 14:01:17\\\",\\\"finishTime\\\":\\\"2017-09-26 14:03:07\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 14:01:17\\\",\\\"node\\\":[\\\"ZRDM1MMSC046ab6\\\"]}]\",\"scheduleId\":\"410caae2-1ead-42e3-a3ee-a19117106ab6\",\"scheduleName\":\"410caae2-1ead-42e3-a3ee-a19117106ab6\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T14:02:18Z\",\"domainData\":[{\"id\":952,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":953,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":954,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T13:59:29Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-26T14:54:43Z\",\"executionCompletedTime\":\"2017-09-26T14:54:53Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T14:54:53Z\",\"scheduleRequest\":{\"id\":319,\"createDateTime\":\"2017-09-26T14:54:41Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5c13aac0-32ba-4b3c-b09f-59e24d45526b\",\"scheduleId\":\"5c13aac0-32ba-4b3c-b09f-59e24d45526b\",\"scheduleName\":\"5c13aac0-32ba-4b3c-b09f-59e24d45526b\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T14:55:18Z\",\"domainData\":[{\"id\":955,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":956,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":957,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC040ac4\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T14:57:18Z\",\"finishTime\":\"2017-09-26T14:59:08Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T14:57:18Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T14:57:17Z\",\"executionCompletedTime\":\"2017-09-26T14:57:27Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T14:57:27Z\",\"scheduleRequest\":{\"id\":320,\"createDateTime\":\"2017-09-26T14:55:18Z\",\"optimizerDateTime\":\"2017-09-26T14:55:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T14:55:23Z\",\"optimizerTransactionId\":\"001ce46c-36e7-4212-9643-f1b107560ac4\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 14:57:18\\\",\\\"finishTime\\\":\\\"2017-09-26 14:59:08\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 14:57:18\\\",\\\"node\\\":[\\\"ZRDM1MMSC040ac4\\\"]}]\",\"scheduleId\":\"001ce46c-36e7-4212-9643-f1b107560ac4\",\"scheduleName\":\"001ce46c-36e7-4212-9643-f1b107560ac4\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T14:58:19Z\",\"domainData\":[{\"id\":958,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":959,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":960,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T14:55:24Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC044473\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T15:04:08Z\",\"finishTime\":\"2017-09-26T15:05:58Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T15:04:08Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T15:04:07Z\",\"executionCompletedTime\":\"2017-09-26T15:04:17Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T15:04:17Z\",\"scheduleRequest\":{\"id\":321,\"createDateTime\":\"2017-09-26T15:02:09Z\",\"optimizerDateTime\":\"2017-09-26T15:02:13Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T15:02:13Z\",\"optimizerTransactionId\":\"f839f90f-cd2c-40d3-b126-46030a004473\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 15:04:08\\\",\\\"finishTime\\\":\\\"2017-09-26 15:05:58\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 15:04:08\\\",\\\"node\\\":[\\\"ZRDM1MMSC044473\\\"]}]\",\"scheduleId\":\"f839f90f-cd2c-40d3-b126-46030a004473\",\"scheduleName\":\"f839f90f-cd2c-40d3-b126-46030a004473\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T15:05:15Z\",\"domainData\":[{\"id\":961,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":962,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":963,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T15:02:17Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-26T15:22:23Z\",\"executionCompletedTime\":\"2017-09-26T15:22:33Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T15:22:33Z\",\"scheduleRequest\":{\"id\":322,\"createDateTime\":\"2017-09-26T15:22:17Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4311083b-0f61-4a14-8c5f-2246ca82418b\",\"scheduleId\":\"4311083b-0f61-4a14-8c5f-2246ca82418b\",\"scheduleName\":\"4311083b-0f61-4a14-8c5f-2246ca82418b\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T15:23:15Z\",\"domainData\":[{\"id\":964,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":965,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":966,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04eab6\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T15:26:16Z\",\"finishTime\":\"2017-09-26T15:28:06Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T15:26:16Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T15:26:15Z\",\"executionCompletedTime\":\"2017-09-26T15:26:25Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T15:26:25Z\",\"scheduleRequest\":{\"id\":323,\"createDateTime\":\"2017-09-26T15:23:16Z\",\"optimizerDateTime\":\"2017-09-26T15:23:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T15:23:23Z\",\"optimizerTransactionId\":\"8050cb36-c2a2-45fb-a56e-eeb09604eab6\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 15:26:16\\\",\\\"finishTime\\\":\\\"2017-09-26 15:28:06\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 15:26:16\\\",\\\"node\\\":[\\\"ZRDM1MMSC04eab6\\\"]}]\",\"scheduleId\":\"8050cb36-c2a2-45fb-a56e-eeb09604eab6\",\"scheduleName\":\"8050cb36-c2a2-45fb-a56e-eeb09604eab6\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":967,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":968,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":969,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T15:23:25Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC044986\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T15:33:50Z\",\"finishTime\":\"2017-09-26T15:35:40Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T15:33:50Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T15:33:49Z\",\"executionCompletedTime\":\"2017-09-26T15:33:59Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T15:33:59Z\",\"scheduleRequest\":{\"id\":324,\"createDateTime\":\"2017-09-26T15:30:51Z\",\"optimizerDateTime\":\"2017-09-26T15:30:53Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T15:30:53Z\",\"optimizerTransactionId\":\"643cc6bb-3060-4269-aadc-3c7bd0874986\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 15:33:50\\\",\\\"finishTime\\\":\\\"2017-09-26 15:35:40\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 15:33:50\\\",\\\"node\\\":[\\\"ZRDM1MMSC044986\\\"]}]\",\"scheduleId\":\"643cc6bb-3060-4269-aadc-3c7bd0874986\",\"scheduleName\":\"643cc6bb-3060-4269-aadc-3c7bd0874986\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":970,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":971,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":972,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T15:30:55Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T16:11:12Z\",\"finishTime\":\"2017-09-26T16:13:02Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-26T16:11:12Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-26T16:11:11Z\",\"executionCompletedTime\":\"2017-09-26T16:11:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T16:11:21Z\",\"scheduleRequest\":{\"id\":325,\"createDateTime\":\"2017-09-26T16:06:13Z\",\"optimizerDateTime\":\"2017-09-26T16:06:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T16:06:23Z\",\"optimizerTransactionId\":\"1fd34e40-e601-4209-ad4a-4329287c8e84\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-26 16:11:12\\\",\\\"finishTime\\\":\\\"2017-09-26 16:13:02\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 16:11:12\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"1fd34e40-e601-4209-ad4a-4329287c8e84\",\"scheduleName\":\"1fd34e40-e601-4209-ad4a-4329287c8e84\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":973,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":974,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":975,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T16:06:27Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T16:17:12Z\",\"finishTime\":\"2017-09-26T16:19:02Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-26T16:17:12Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-26T16:17:11Z\",\"executionCompletedTime\":\"2017-09-26T16:17:21Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T16:17:21Z\",\"scheduleRequest\":{\"id\":326,\"createDateTime\":\"2017-09-26T16:12:12Z\",\"optimizerDateTime\":\"2017-09-26T16:12:13Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T16:12:13Z\",\"optimizerTransactionId\":\"0df4311e-8d3a-4a82-9f54-440bc7fb4522\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-26 16:17:12\\\",\\\"finishTime\\\":\\\"2017-09-26 16:19:02\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 16:17:12\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"0df4311e-8d3a-4a82-9f54-440bc7fb4522\",\"scheduleName\":\"0df4311e-8d3a-4a82-9f54-440bc7fb4522\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":976,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":977,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":978,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T16:12:22Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T16:37:18Z\",\"finishTime\":\"2017-09-26T16:39:08Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-26T16:37:18Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-26T16:37:17Z\",\"executionCompletedTime\":\"2017-09-26T16:37:27Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T16:37:27Z\",\"scheduleRequest\":{\"id\":327,\"createDateTime\":\"2017-09-26T16:32:19Z\",\"optimizerDateTime\":\"2017-09-26T16:32:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T16:32:23Z\",\"optimizerTransactionId\":\"ed39ce7a-56e7-4f84-aade-024c5150d33b\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-26 16:37:18\\\",\\\"finishTime\\\":\\\"2017-09-26 16:39:08\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 16:37:18\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"ed39ce7a-56e7-4f84-aade-024c5150d33b\",\"scheduleName\":\"ed39ce7a-56e7-4f84-aade-024c5150d33b\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":979,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":980,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":981,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T16:32:25Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b930\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T17:01:04Z\",\"finishTime\":\"2017-09-26T17:02:54Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T17:01:04Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T17:01:03Z\",\"executionCompletedTime\":\"2017-09-26T17:01:13Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T17:01:13Z\",\"scheduleRequest\":{\"id\":328,\"createDateTime\":\"2017-09-26T16:58:05Z\",\"optimizerDateTime\":\"2017-09-26T16:58:13Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T16:58:13Z\",\"optimizerTransactionId\":\"8016017c-1c33-4eb4-a661-8201997ab930\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 17:01:04\\\",\\\"finishTime\\\":\\\"2017-09-26 17:02:54\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 17:01:04\\\",\\\"node\\\":[\\\"ZRDM1MMSC04b930\\\"]}]\",\"scheduleId\":\"8016017c-1c33-4eb4-a661-8201997ab930\",\"scheduleName\":\"8016017c-1c33-4eb4-a661-8201997ab930\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T17:01:14Z\",\"domainData\":[{\"id\":982,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":983,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":984,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T16:58:17Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC049bd0\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T17:09:06Z\",\"finishTime\":\"2017-09-26T17:10:56Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T17:09:06Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T17:09:05Z\",\"executionCompletedTime\":\"2017-09-26T17:09:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T17:09:15Z\",\"scheduleRequest\":{\"id\":329,\"createDateTime\":\"2017-09-26T17:06:06Z\",\"optimizerDateTime\":\"2017-09-26T17:06:13Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T17:06:13Z\",\"optimizerTransactionId\":\"5458cbcb-3365-4378-b734-499fc1aa9bd0\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 17:09:06\\\",\\\"finishTime\\\":\\\"2017-09-26 17:10:56\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 17:09:06\\\",\\\"node\\\":[\\\"ZRDM1MMSC049bd0\\\"]}]\",\"scheduleId\":\"5458cbcb-3365-4378-b734-499fc1aa9bd0\",\"scheduleName\":\"5458cbcb-3365-4378-b734-499fc1aa9bd0\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T17:10:14Z\",\"domainData\":[{\"id\":985,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":986,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":987,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T17:06:18Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04514c\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T17:25:45Z\",\"finishTime\":\"2017-09-26T17:27:35Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T17:25:45Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T17:25:44Z\",\"executionCompletedTime\":\"2017-09-26T17:25:54Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T17:25:54Z\",\"scheduleRequest\":{\"id\":330,\"createDateTime\":\"2017-09-26T17:22:45Z\",\"optimizerDateTime\":\"2017-09-26T17:22:53Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T17:22:53Z\",\"optimizerTransactionId\":\"880b432d-b122-4701-b52e-6a333b2e514c\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 17:25:45\\\",\\\"finishTime\\\":\\\"2017-09-26 17:27:35\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 17:25:45\\\",\\\"node\\\":[\\\"ZRDM1MMSC04514c\\\"]}]\",\"scheduleId\":\"880b432d-b122-4701-b52e-6a333b2e514c\",\"scheduleName\":\"880b432d-b122-4701-b52e-6a333b2e514c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T17:26:14Z\",\"domainData\":[{\"id\":988,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":989,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":990,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T17:22:56Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC046673\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T17:31:37Z\",\"finishTime\":\"2017-09-26T17:33:27Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T17:31:37Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T17:31:36Z\",\"executionCompletedTime\":\"2017-09-26T17:31:46Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T17:31:46Z\",\"scheduleRequest\":{\"id\":331,\"createDateTime\":\"2017-09-26T17:28:37Z\",\"optimizerDateTime\":\"2017-09-26T17:28:43Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T17:28:43Z\",\"optimizerTransactionId\":\"fbddf764-2696-4b60-987a-772a06cb6673\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 17:31:37\\\",\\\"finishTime\\\":\\\"2017-09-26 17:33:27\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 17:31:37\\\",\\\"node\\\":[\\\"ZRDM1MMSC046673\\\"]}]\",\"scheduleId\":\"fbddf764-2696-4b60-987a-772a06cb6673\",\"scheduleName\":\"fbddf764-2696-4b60-987a-772a06cb6673\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T17:32:13Z\",\"domainData\":[{\"id\":991,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":992,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":993,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T17:28:48Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04a4ff\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T17:35:50Z\",\"finishTime\":\"2017-09-26T17:37:40Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T17:35:50Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T17:35:49Z\",\"executionCompletedTime\":\"2017-09-26T17:35:59Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T17:35:59Z\",\"scheduleRequest\":{\"id\":332,\"createDateTime\":\"2017-09-26T17:34:51Z\",\"optimizerDateTime\":\"2017-09-26T17:34:53Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T17:34:53Z\",\"optimizerTransactionId\":\"0fb7f7ae-b3e7-4b5d-92ff-67da85aca4ff\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 17:35:50\\\",\\\"finishTime\\\":\\\"2017-09-26 17:37:40\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 17:35:50\\\",\\\"node\\\":[\\\"ZRDM1MMSC04a4ff\\\"]}]\",\"scheduleId\":\"0fb7f7ae-b3e7-4b5d-92ff-67da85aca4ff\",\"scheduleName\":\"0fb7f7ae-b3e7-4b5d-92ff-67da85aca4ff\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T17:36:15Z\",\"domainData\":[{\"id\":994,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":995,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":996,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T17:34:56Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC049043\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-26T18:37:05Z\",\"finishTime\":\"2017-09-26T18:38:55Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-26T18:37:05Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-26T18:37:04Z\",\"executionCompletedTime\":\"2017-09-26T18:37:14Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-26T18:37:14Z\",\"scheduleRequest\":{\"id\":333,\"createDateTime\":\"2017-09-26T18:36:06Z\",\"optimizerDateTime\":\"2017-09-26T18:36:13Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-26T18:36:13Z\",\"optimizerTransactionId\":\"1ea7565b-3e3f-464a-a61d-82e1d2019043\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-26 18:37:05\\\",\\\"finishTime\\\":\\\"2017-09-26 18:38:55\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-26 18:37:05\\\",\\\"node\\\":[\\\"ZRDM1MMSC049043\\\"]}]\",\"scheduleId\":\"1ea7565b-3e3f-464a-a61d-82e1d2019043\",\"scheduleName\":\"1ea7565b-3e3f-464a-a61d-82e1d2019043\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-26T18:38:14Z\",\"domainData\":[{\"id\":997,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":998,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":999,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-26T18:36:14Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003999477\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T14:15:18Z\",\"finishTime\":\"2017-09-27T14:17:08Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T14:15:18Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=57f013ff-ab5a-40e1-9d4d-df0f6728f690 VNF Name=ctsf0002v AOTS ChangeId=CHG000003999477 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":334,\"createDateTime\":\"2017-09-27T14:14:19Z\",\"optimizerDateTime\":\"2017-09-27T14:19:38Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T14:19:39Z\",\"optimizerTransactionId\":\"57f013ff-ab5a-40e1-9d4d-df0f6728f690\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 14:15:18\\\",\\\"finishTime\\\":\\\"2017-09-27 14:17:08\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 14:15:18\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"57f013ff-ab5a-40e1-9d4d-df0f6728f690\",\"scheduleName\":\"57f013ff-ab5a-40e1-9d4d-df0f6728f690\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1000,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1001,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1002,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T14:19:42Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0426b8\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003999478\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T14:27:04Z\",\"finishTime\":\"2017-09-27T14:28:54Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T14:27:04Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=98f95102-d8d8-4286-b3aa-7f3bd16f26b8 VNF Name=ZRDM1MMSC0426b8 AOTS ChangeId=CHG000003999478 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":335,\"createDateTime\":\"2017-09-27T14:26:04Z\",\"optimizerDateTime\":\"2017-09-27T14:26:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T14:26:06Z\",\"optimizerTransactionId\":\"98f95102-d8d8-4286-b3aa-7f3bd16f26b8\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 14:27:04\\\",\\\"finishTime\\\":\\\"2017-09-27 14:28:54\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 14:27:04\\\",\\\"node\\\":[\\\"ZRDM1MMSC0426b8\\\"]}]\",\"scheduleId\":\"98f95102-d8d8-4286-b3aa-7f3bd16f26b8\",\"scheduleName\":\"98f95102-d8d8-4286-b3aa-7f3bd16f26b8\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1003,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1004,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1005,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T14:26:10Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003999483\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T14:29:13Z\",\"finishTime\":\"2017-09-27T14:31:03Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T14:29:13Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=6ba6771d-8d6f-4dd3-bdfe-5c80b5ff2494 VNF Name=ctsf0002v AOTS ChangeId=CHG000003999483 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":336,\"createDateTime\":\"2017-09-27T14:28:13Z\",\"optimizerDateTime\":\"2017-09-27T14:28:16Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T14:28:16Z\",\"optimizerTransactionId\":\"6ba6771d-8d6f-4dd3-bdfe-5c80b5ff2494\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 14:29:13\\\",\\\"finishTime\\\":\\\"2017-09-27 14:31:03\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 14:29:13\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"6ba6771d-8d6f-4dd3-bdfe-5c80b5ff2494\",\"scheduleName\":\"6ba6771d-8d6f-4dd3-bdfe-5c80b5ff2494\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1006,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1007,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1008,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T14:28:19Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000003999503\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T14:42:19Z\",\"finishTime\":\"2017-09-27T14:44:09Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T14:42:19Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=7cebb60c-9926-4e81-a34a-702923d1cfc9 VNF Name=ctsf0002v AOTS ChangeId=CHG000003999503 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":337,\"createDateTime\":\"2017-09-27T14:41:20Z\",\"optimizerDateTime\":\"2017-09-27T14:41:22Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T14:41:23Z\",\"optimizerTransactionId\":\"7cebb60c-9926-4e81-a34a-702923d1cfc9\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 14:42:19\\\",\\\"finishTime\\\":\\\"2017-09-27 14:44:09\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 14:42:19\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"7cebb60c-9926-4e81-a34a-702923d1cfc9\",\"scheduleName\":\"7cebb60c-9926-4e81-a34a-702923d1cfc9\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1009,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1010,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1011,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T14:41:27Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999521\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":338,\"createDateTime\":\"2017-09-27T14:46:39Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4abbdad5-5cd9-426c-8f1b-1db8b309b0b5\",\"scheduleId\":\"4abbdad5-5cd9-426c-8f1b-1db8b309b0b5\",\"scheduleName\":\"4abbdad5-5cd9-426c-8f1b-1db8b309b0b5\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T14:46:49Z\",\"domainData\":[{\"id\":1012,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1013,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1014,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999532\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":339,\"createDateTime\":\"2017-09-27T14:58:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"99ece0ff-375c-4d90-8ed6-cf4fa1afbf29\",\"scheduleId\":\"99ece0ff-375c-4d90-8ed6-cf4fa1afbf29\",\"scheduleName\":\"99ece0ff-375c-4d90-8ed6-cf4fa1afbf29\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T14:59:03Z\",\"domainData\":[{\"id\":1015,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1016,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1017,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999533\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":340,\"createDateTime\":\"2017-09-27T14:59:09Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5ba44368-e029-497f-bdfc-985bff16cee6\",\"scheduleId\":\"5ba44368-e029-497f-bdfc-985bff16cee6\",\"scheduleName\":\"5ba44368-e029-497f-bdfc-985bff16cee6\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T14:59:18Z\",\"domainData\":[{\"id\":1018,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1019,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1020,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999534\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":341,\"createDateTime\":\"2017-09-27T15:12:19Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5b859046-de30-406d-9e9f-c8948e62ed5a\",\"scheduleId\":\"5b859046-de30-406d-9e9f-c8948e62ed5a\",\"scheduleName\":\"5b859046-de30-406d-9e9f-c8948e62ed5a\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:12:51Z\",\"domainData\":[{\"id\":1021,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1022,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1023,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999537\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:13:56Z\",\"finishTime\":\"2017-09-27T15:15:46Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T15:13:56Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-27T15:13:55Z\",\"executionCompletedTime\":\"2017-09-27T15:14:05Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:14:05Z\",\"scheduleRequest\":{\"id\":342,\"createDateTime\":\"2017-09-27T15:12:57Z\",\"optimizerDateTime\":\"2017-09-27T15:13:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:13:01Z\",\"optimizerTransactionId\":\"8165fa58-5aee-4995-8575-4f7e3a355790\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 15:13:56\\\",\\\"finishTime\\\":\\\"2017-09-27 15:15:46\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:13:56\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"8165fa58-5aee-4995-8575-4f7e3a355790\",\"scheduleName\":\"8165fa58-5aee-4995-8575-4f7e3a355790\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:14:58Z\",\"domainData\":[{\"id\":1024,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1025,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1026,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:13:03Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999536\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":343,\"createDateTime\":\"2017-09-27T15:12:57Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2879f7c3-4fb4-43a0-8fd5-1f2105874085\",\"scheduleId\":\"2879f7c3-4fb4-43a0-8fd5-1f2105874085\",\"scheduleName\":\"2879f7c3-4fb4-43a0-8fd5-1f2105874085\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:13:13Z\",\"domainData\":[{\"id\":1027,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1028,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1029,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999538\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":344,\"createDateTime\":\"2017-09-27T15:16:55Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"66805dab-f65d-4de9-b78f-e3ea3761189c\",\"scheduleId\":\"66805dab-f65d-4de9-b78f-e3ea3761189c\",\"scheduleName\":\"66805dab-f65d-4de9-b78f-e3ea3761189c\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:17:11Z\",\"domainData\":[{\"id\":1030,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1031,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1032,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999539\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:17:56Z\",\"finishTime\":\"2017-09-27T15:19:46Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T15:17:56Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-27T15:17:55Z\",\"executionCompletedTime\":\"2017-09-27T15:18:05Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:18:05Z\",\"scheduleRequest\":{\"id\":345,\"createDateTime\":\"2017-09-27T15:16:57Z\",\"optimizerDateTime\":\"2017-09-27T15:17:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:17:01Z\",\"optimizerTransactionId\":\"686e7bde-7929-4ce6-9954-dd555017a486\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 15:17:56\\\",\\\"finishTime\\\":\\\"2017-09-27 15:19:46\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:17:56\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"686e7bde-7929-4ce6-9954-dd555017a486\",\"scheduleName\":\"686e7bde-7929-4ce6-9954-dd555017a486\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:18:56Z\",\"domainData\":[{\"id\":1033,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1034,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1035,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:17:02Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName12069\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999540\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:19:56Z\",\"finishTime\":\"2017-09-27T15:21:46Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T15:19:56Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:19:55Z\",\"executionCompletedTime\":\"2017-09-27T15:20:05Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:20:05Z\",\"scheduleRequest\":{\"id\":346,\"createDateTime\":\"2017-09-27T15:18:56Z\",\"optimizerDateTime\":\"2017-09-27T15:19:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:19:01Z\",\"optimizerTransactionId\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 15:19:56\\\",\\\"finishTime\\\":\\\"2017-09-27 15:21:46\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:19:56\\\",\\\"node\\\":[\\\"VNFName12069\\\",\\\"VNFName22069\\\",\\\"VNFName32069\\\"]}]\",\"scheduleId\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"scheduleName\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:21:00Z\",\"domainData\":[{\"id\":1036,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1037,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1038,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:19:02Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName22069\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999541\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:19:56Z\",\"finishTime\":\"2017-09-27T15:21:46Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T15:19:56Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:19:55Z\",\"executionCompletedTime\":\"2017-09-27T15:20:05Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:20:05Z\",\"scheduleRequest\":{\"id\":346,\"createDateTime\":\"2017-09-27T15:18:56Z\",\"optimizerDateTime\":\"2017-09-27T15:19:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:19:01Z\",\"optimizerTransactionId\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 15:19:56\\\",\\\"finishTime\\\":\\\"2017-09-27 15:21:46\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:19:56\\\",\\\"node\\\":[\\\"VNFName12069\\\",\\\"VNFName22069\\\",\\\"VNFName32069\\\"]}]\",\"scheduleId\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"scheduleName\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:21:00Z\",\"domainData\":[{\"id\":1036,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1037,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1038,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:19:02Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName32069\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999542\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:19:56Z\",\"finishTime\":\"2017-09-27T15:21:46Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T15:19:56Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:19:55Z\",\"executionCompletedTime\":\"2017-09-27T15:20:05Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:20:05Z\",\"scheduleRequest\":{\"id\":346,\"createDateTime\":\"2017-09-27T15:18:56Z\",\"optimizerDateTime\":\"2017-09-27T15:19:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:19:01Z\",\"optimizerTransactionId\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 15:19:56\\\",\\\"finishTime\\\":\\\"2017-09-27 15:21:46\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:19:56\\\",\\\"node\\\":[\\\"VNFName12069\\\",\\\"VNFName22069\\\",\\\"VNFName32069\\\"]}]\",\"scheduleId\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"scheduleName\":\"77c298c8-b6e9-44ab-80e4-ee2d7b3b2069\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:21:00Z\",\"domainData\":[{\"id\":1036,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1037,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1038,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:19:02Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName11007\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999543\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:22:00Z\",\"finishTime\":\"2017-09-27T15:23:50Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T15:22:00Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:21:59Z\",\"executionCompletedTime\":\"2017-09-27T15:22:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:22:09Z\",\"scheduleRequest\":{\"id\":347,\"createDateTime\":\"2017-09-27T15:21:00Z\",\"optimizerDateTime\":\"2017-09-27T15:21:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:21:01Z\",\"optimizerTransactionId\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 15:22:00\\\",\\\"finishTime\\\":\\\"2017-09-27 15:23:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:22:00\\\",\\\"node\\\":[\\\"VNFName11007\\\",\\\"VNFName21007\\\",\\\"VNFName31007\\\",\\\"VNFName41007\\\"]}]\",\"scheduleId\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"scheduleName\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:23:01Z\",\"domainData\":[{\"id\":1039,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1040,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1041,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:21:06Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName21007\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999544\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:22:00Z\",\"finishTime\":\"2017-09-27T15:23:50Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T15:22:00Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:21:59Z\",\"executionCompletedTime\":\"2017-09-27T15:22:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:22:09Z\",\"scheduleRequest\":{\"id\":347,\"createDateTime\":\"2017-09-27T15:21:00Z\",\"optimizerDateTime\":\"2017-09-27T15:21:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:21:01Z\",\"optimizerTransactionId\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 15:22:00\\\",\\\"finishTime\\\":\\\"2017-09-27 15:23:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:22:00\\\",\\\"node\\\":[\\\"VNFName11007\\\",\\\"VNFName21007\\\",\\\"VNFName31007\\\",\\\"VNFName41007\\\"]}]\",\"scheduleId\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"scheduleName\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:23:01Z\",\"domainData\":[{\"id\":1039,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1040,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1041,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:21:06Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName31007\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999545\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:22:00Z\",\"finishTime\":\"2017-09-27T15:23:50Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T15:22:00Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:21:59Z\",\"executionCompletedTime\":\"2017-09-27T15:22:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:22:09Z\",\"scheduleRequest\":{\"id\":347,\"createDateTime\":\"2017-09-27T15:21:00Z\",\"optimizerDateTime\":\"2017-09-27T15:21:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:21:01Z\",\"optimizerTransactionId\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 15:22:00\\\",\\\"finishTime\\\":\\\"2017-09-27 15:23:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:22:00\\\",\\\"node\\\":[\\\"VNFName11007\\\",\\\"VNFName21007\\\",\\\"VNFName31007\\\",\\\"VNFName41007\\\"]}]\",\"scheduleId\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"scheduleName\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:23:01Z\",\"domainData\":[{\"id\":1039,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1040,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1041,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:21:06Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName41007\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999546\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:22:00Z\",\"finishTime\":\"2017-09-27T15:23:50Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T15:22:00Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:21:59Z\",\"executionCompletedTime\":\"2017-09-27T15:22:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:22:09Z\",\"scheduleRequest\":{\"id\":347,\"createDateTime\":\"2017-09-27T15:21:00Z\",\"optimizerDateTime\":\"2017-09-27T15:21:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:21:01Z\",\"optimizerTransactionId\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 15:22:00\\\",\\\"finishTime\\\":\\\"2017-09-27 15:23:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:22:00\\\",\\\"node\\\":[\\\"VNFName11007\\\",\\\"VNFName21007\\\",\\\"VNFName31007\\\",\\\"VNFName41007\\\"]}]\",\"scheduleId\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"scheduleName\":\"51678fdb-cd30-47f2-9e50-6d75b0e91007\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:23:01Z\",\"domainData\":[{\"id\":1039,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1040,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1041,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:21:06Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999547\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:24:01Z\",\"finishTime\":\"2017-09-27T15:25:51Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T15:24:01Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-27T15:24:00Z\",\"executionCompletedTime\":\"2017-09-27T15:24:10Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:24:10Z\",\"scheduleRequest\":{\"id\":348,\"createDateTime\":\"2017-09-27T15:23:02Z\",\"optimizerDateTime\":\"2017-09-27T15:23:11Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:23:11Z\",\"optimizerTransactionId\":\"aeece070-466d-4e5c-bbf5-1c2624b0f19b\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 15:24:01\\\",\\\"finishTime\\\":\\\"2017-09-27 15:25:51\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:24:01\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"aeece070-466d-4e5c-bbf5-1c2624b0f19b\",\"scheduleName\":\"aeece070-466d-4e5c-bbf5-1c2624b0f19b\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:24:55Z\",\"domainData\":[{\"id\":1042,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1043,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":1044,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:23:13Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999550\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":349,\"createDateTime\":\"2017-09-27T15:28:43Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"70ef0543-9527-4af8-873b-1d4ba5f0a57c\",\"scheduleId\":\"70ef0543-9527-4af8-873b-1d4ba5f0a57c\",\"scheduleName\":\"70ef0543-9527-4af8-873b-1d4ba5f0a57c\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:29:07Z\",\"domainData\":[{\"id\":1045,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1046,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1047,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999551\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:31:06Z\",\"finishTime\":\"2017-09-27T15:32:56Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T15:31:06Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-27T15:31:05Z\",\"executionCompletedTime\":\"2017-09-27T15:31:15Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:31:15Z\",\"scheduleRequest\":{\"id\":350,\"createDateTime\":\"2017-09-27T15:30:06Z\",\"optimizerDateTime\":\"2017-09-27T15:30:11Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:30:11Z\",\"optimizerTransactionId\":\"26f091a1-3b9f-441f-8e57-73fc105aa655\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 15:31:06\\\",\\\"finishTime\\\":\\\"2017-09-27 15:32:56\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:31:06\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"26f091a1-3b9f-441f-8e57-73fc105aa655\",\"scheduleName\":\"26f091a1-3b9f-441f-8e57-73fc105aa655\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:31:58Z\",\"domainData\":[{\"id\":1048,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1049,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1050,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:30:12Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName11c4e\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999552\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:32:58Z\",\"finishTime\":\"2017-09-27T15:34:48Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T15:32:58Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:32:57Z\",\"executionCompletedTime\":\"2017-09-27T15:33:07Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:33:07Z\",\"scheduleRequest\":{\"id\":351,\"createDateTime\":\"2017-09-27T15:31:58Z\",\"optimizerDateTime\":\"2017-09-27T15:32:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:32:01Z\",\"optimizerTransactionId\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 15:32:58\\\",\\\"finishTime\\\":\\\"2017-09-27 15:34:48\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:32:58\\\",\\\"node\\\":[\\\"VNFName11c4e\\\",\\\"VNFName21c4e\\\",\\\"VNFName31c4e\\\"]}]\",\"scheduleId\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"scheduleName\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:34:02Z\",\"domainData\":[{\"id\":1051,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1052,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1053,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:32:04Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName21c4e\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999553\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:32:58Z\",\"finishTime\":\"2017-09-27T15:34:48Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T15:32:58Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:32:57Z\",\"executionCompletedTime\":\"2017-09-27T15:33:07Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:33:07Z\",\"scheduleRequest\":{\"id\":351,\"createDateTime\":\"2017-09-27T15:31:58Z\",\"optimizerDateTime\":\"2017-09-27T15:32:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:32:01Z\",\"optimizerTransactionId\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 15:32:58\\\",\\\"finishTime\\\":\\\"2017-09-27 15:34:48\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:32:58\\\",\\\"node\\\":[\\\"VNFName11c4e\\\",\\\"VNFName21c4e\\\",\\\"VNFName31c4e\\\"]}]\",\"scheduleId\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"scheduleName\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:34:02Z\",\"domainData\":[{\"id\":1051,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1052,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1053,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:32:04Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName31c4e\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999554\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:32:58Z\",\"finishTime\":\"2017-09-27T15:34:48Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T15:32:58Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:32:57Z\",\"executionCompletedTime\":\"2017-09-27T15:33:07Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:33:07Z\",\"scheduleRequest\":{\"id\":351,\"createDateTime\":\"2017-09-27T15:31:58Z\",\"optimizerDateTime\":\"2017-09-27T15:32:01Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:32:01Z\",\"optimizerTransactionId\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 15:32:58\\\",\\\"finishTime\\\":\\\"2017-09-27 15:34:48\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:32:58\\\",\\\"node\\\":[\\\"VNFName11c4e\\\",\\\"VNFName21c4e\\\",\\\"VNFName31c4e\\\"]}]\",\"scheduleId\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"scheduleName\":\"03ede769-8577-4768-8b49-20069b4d1c4e\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:34:02Z\",\"domainData\":[{\"id\":1051,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1052,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1053,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:32:04Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName1ed4a\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999555\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:35:02Z\",\"finishTime\":\"2017-09-27T15:36:52Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T15:35:02Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:35:01Z\",\"executionCompletedTime\":\"2017-09-27T15:35:11Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:35:11Z\",\"scheduleRequest\":{\"id\":352,\"createDateTime\":\"2017-09-27T15:34:02Z\",\"optimizerDateTime\":\"2017-09-27T15:34:11Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:34:11Z\",\"optimizerTransactionId\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 15:35:02\\\",\\\"finishTime\\\":\\\"2017-09-27 15:36:52\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:35:02\\\",\\\"node\\\":[\\\"VNFName1ed4a\\\",\\\"VNFName2ed4a\\\",\\\"VNFName3ed4a\\\",\\\"VNFName4ed4a\\\"]}]\",\"scheduleId\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"scheduleName\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:36:04Z\",\"domainData\":[{\"id\":1054,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1055,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1056,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:34:13Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName2ed4a\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999556\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:35:02Z\",\"finishTime\":\"2017-09-27T15:36:52Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T15:35:02Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:35:01Z\",\"executionCompletedTime\":\"2017-09-27T15:35:11Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:35:11Z\",\"scheduleRequest\":{\"id\":352,\"createDateTime\":\"2017-09-27T15:34:02Z\",\"optimizerDateTime\":\"2017-09-27T15:34:11Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:34:11Z\",\"optimizerTransactionId\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 15:35:02\\\",\\\"finishTime\\\":\\\"2017-09-27 15:36:52\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:35:02\\\",\\\"node\\\":[\\\"VNFName1ed4a\\\",\\\"VNFName2ed4a\\\",\\\"VNFName3ed4a\\\",\\\"VNFName4ed4a\\\"]}]\",\"scheduleId\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"scheduleName\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:36:04Z\",\"domainData\":[{\"id\":1054,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1055,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1056,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:34:13Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName3ed4a\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999557\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:35:02Z\",\"finishTime\":\"2017-09-27T15:36:52Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T15:35:02Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:35:01Z\",\"executionCompletedTime\":\"2017-09-27T15:35:11Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:35:11Z\",\"scheduleRequest\":{\"id\":352,\"createDateTime\":\"2017-09-27T15:34:02Z\",\"optimizerDateTime\":\"2017-09-27T15:34:11Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:34:11Z\",\"optimizerTransactionId\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 15:35:02\\\",\\\"finishTime\\\":\\\"2017-09-27 15:36:52\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:35:02\\\",\\\"node\\\":[\\\"VNFName1ed4a\\\",\\\"VNFName2ed4a\\\",\\\"VNFName3ed4a\\\",\\\"VNFName4ed4a\\\"]}]\",\"scheduleId\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"scheduleName\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:36:04Z\",\"domainData\":[{\"id\":1054,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1055,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1056,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:34:13Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName4ed4a\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999558\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:35:02Z\",\"finishTime\":\"2017-09-27T15:36:52Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T15:35:02Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T15:35:01Z\",\"executionCompletedTime\":\"2017-09-27T15:35:11Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:35:11Z\",\"scheduleRequest\":{\"id\":352,\"createDateTime\":\"2017-09-27T15:34:02Z\",\"optimizerDateTime\":\"2017-09-27T15:34:11Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:34:11Z\",\"optimizerTransactionId\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 15:35:02\\\",\\\"finishTime\\\":\\\"2017-09-27 15:36:52\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:35:02\\\",\\\"node\\\":[\\\"VNFName1ed4a\\\",\\\"VNFName2ed4a\\\",\\\"VNFName3ed4a\\\",\\\"VNFName4ed4a\\\"]}]\",\"scheduleId\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"scheduleName\":\"8c5449ea-e2b7-457f-93e7-ede1684aed4a\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:36:04Z\",\"domainData\":[{\"id\":1054,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1055,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1056,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:34:13Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999559\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T15:37:04Z\",\"finishTime\":\"2017-09-27T15:38:54Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T15:37:04Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-27T15:37:03Z\",\"executionCompletedTime\":\"2017-09-27T15:37:13Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T15:37:13Z\",\"scheduleRequest\":{\"id\":353,\"createDateTime\":\"2017-09-27T15:36:05Z\",\"optimizerDateTime\":\"2017-09-27T15:36:11Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T15:36:11Z\",\"optimizerTransactionId\":\"9cf07ab3-7d07-4739-9c93-6ca8489127f2\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 15:37:04\\\",\\\"finishTime\\\":\\\"2017-09-27 15:38:54\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 15:37:04\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"9cf07ab3-7d07-4739-9c93-6ca8489127f2\",\"scheduleName\":\"9cf07ab3-7d07-4739-9c93-6ca8489127f2\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T15:37:55Z\",\"domainData\":[{\"id\":1057,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1058,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":1059,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T15:36:16Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04a36e\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-27T16:30:25Z\",\"finishTime\":\"2017-09-27T16:32:15Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T16:30:25Z\",\"policyId\":\"string\",\"scheduleRequest\":{\"id\":354,\"createDateTime\":\"2017-09-27T16:25:26Z\",\"optimizerDateTime\":\"2017-09-27T16:25:31Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T16:25:31Z\",\"optimizerTransactionId\":\"142af109-9597-493f-91c0-6dc4b0aba36e\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 16:30:25\\\",\\\"finishTime\\\":\\\"2017-09-27 16:32:15\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 16:30:25\\\",\\\"node\\\":[\\\"ZRDM1MMSC04a36e\\\"]}]\",\"scheduleId\":\"142af109-9597-493f-91c0-6dc4b0aba36e\",\"scheduleName\":\"142af109-9597-493f-91c0-6dc4b0aba36e\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1060,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1061,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1062,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04f4f8\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-27T18:07:19Z\",\"finishTime\":\"2017-09-27T18:09:09Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T18:07:19Z\",\"policyId\":\"string\",\"scheduleRequest\":{\"id\":355,\"createDateTime\":\"2017-09-27T18:02:17Z\",\"optimizerDateTime\":\"2017-09-27T18:02:18Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:02:19Z\",\"optimizerTransactionId\":\"861b6b4f-4b28-4b29-a6a1-0644d531f4f8\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 18:07:19\\\",\\\"finishTime\\\":\\\"2017-09-27 18:09:09\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:07:19\\\",\\\"node\\\":[\\\"ZRDM1MMSC04f4f8\\\"]}]\",\"scheduleId\":\"861b6b4f-4b28-4b29-a6a1-0644d531f4f8\",\"scheduleName\":\"861b6b4f-4b28-4b29-a6a1-0644d531f4f8\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1063,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1064,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1065,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003999562\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-27T18:04:29Z\",\"executionCompletedTime\":\"2017-09-27T18:04:39Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:04:39Z\",\"scheduleRequest\":{\"id\":356,\"createDateTime\":\"2017-09-27T18:03:09Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9929e285-1773-42ee-b5c0-eb5744adc825\",\"scheduleId\":\"9929e285-1773-42ee-b5c0-eb5744adc825\",\"scheduleName\":\"9929e285-1773-42ee-b5c0-eb5744adc825\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1066,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1067,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1068,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003999563\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:09:26Z\",\"finishTime\":\"2017-09-27T18:11:16Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T18:09:26Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-27T18:09:25Z\",\"executionCompletedTime\":\"2017-09-27T18:09:35Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:09:35Z\",\"scheduleRequest\":{\"id\":357,\"createDateTime\":\"2017-09-27T18:04:23Z\",\"optimizerDateTime\":\"2017-09-27T18:04:28Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:04:28Z\",\"optimizerTransactionId\":\"4804109e-8370-4f90-802a-66f04cf570b6\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 18:09:26\\\",\\\"finishTime\\\":\\\"2017-09-27 18:11:16\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:09:26\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"4804109e-8370-4f90-802a-66f04cf570b6\",\"scheduleName\":\"4804109e-8370-4f90-802a-66f04cf570b6\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1069,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1070,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1071,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:04:29Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999564\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:06:23Z\",\"finishTime\":\"2017-09-27T18:08:13Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T18:06:23Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-27T18:06:22Z\",\"executionCompletedTime\":\"2017-09-27T18:06:32Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:06:32Z\",\"scheduleRequest\":{\"id\":358,\"createDateTime\":\"2017-09-27T18:05:21Z\",\"optimizerDateTime\":\"2017-09-27T18:05:28Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:05:28Z\",\"optimizerTransactionId\":\"78d61df0-f35d-48e3-a1df-639fdd6b4537\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 18:06:23\\\",\\\"finishTime\\\":\\\"2017-09-27 18:08:13\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:06:23\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"78d61df0-f35d-48e3-a1df-639fdd6b4537\",\"scheduleName\":\"78d61df0-f35d-48e3-a1df-639fdd6b4537\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:07:17Z\",\"domainData\":[{\"id\":1072,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1073,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1074,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:05:32Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName1db54\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999567\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:08:19Z\",\"finishTime\":\"2017-09-27T18:10:09Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T18:08:19Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T18:08:18Z\",\"executionCompletedTime\":\"2017-09-27T18:08:28Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:08:28Z\",\"scheduleRequest\":{\"id\":359,\"createDateTime\":\"2017-09-27T18:07:17Z\",\"optimizerDateTime\":\"2017-09-27T18:07:18Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:07:18Z\",\"optimizerTransactionId\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 18:08:19\\\",\\\"finishTime\\\":\\\"2017-09-27 18:10:09\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:08:19\\\",\\\"node\\\":[\\\"VNFName1db54\\\",\\\"VNFName2db54\\\",\\\"VNFName3db54\\\"]}]\",\"scheduleId\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"scheduleName\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:09:19Z\",\"domainData\":[{\"id\":1075,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1076,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1077,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:07:23Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName2db54\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999568\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:08:19Z\",\"finishTime\":\"2017-09-27T18:10:09Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T18:08:19Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T18:08:18Z\",\"executionCompletedTime\":\"2017-09-27T18:08:28Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:08:28Z\",\"scheduleRequest\":{\"id\":359,\"createDateTime\":\"2017-09-27T18:07:17Z\",\"optimizerDateTime\":\"2017-09-27T18:07:18Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:07:18Z\",\"optimizerTransactionId\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 18:08:19\\\",\\\"finishTime\\\":\\\"2017-09-27 18:10:09\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:08:19\\\",\\\"node\\\":[\\\"VNFName1db54\\\",\\\"VNFName2db54\\\",\\\"VNFName3db54\\\"]}]\",\"scheduleId\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"scheduleName\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:09:19Z\",\"domainData\":[{\"id\":1075,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1076,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1077,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:07:23Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName3db54\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999569\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:08:19Z\",\"finishTime\":\"2017-09-27T18:10:09Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-27T18:08:19Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T18:08:18Z\",\"executionCompletedTime\":\"2017-09-27T18:08:28Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:08:28Z\",\"scheduleRequest\":{\"id\":359,\"createDateTime\":\"2017-09-27T18:07:17Z\",\"optimizerDateTime\":\"2017-09-27T18:07:18Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:07:18Z\",\"optimizerTransactionId\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-27 18:08:19\\\",\\\"finishTime\\\":\\\"2017-09-27 18:10:09\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:08:19\\\",\\\"node\\\":[\\\"VNFName1db54\\\",\\\"VNFName2db54\\\",\\\"VNFName3db54\\\"]}]\",\"scheduleId\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"scheduleName\":\"20c7dd80-f32f-43f1-b791-7857a797db54\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:09:19Z\",\"domainData\":[{\"id\":1075,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1076,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1077,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:07:23Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName1e037\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999570\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:10:22Z\",\"finishTime\":\"2017-09-27T18:12:12Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T18:10:22Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T18:10:21Z\",\"executionCompletedTime\":\"2017-09-27T18:10:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:10:31Z\",\"scheduleRequest\":{\"id\":360,\"createDateTime\":\"2017-09-27T18:09:20Z\",\"optimizerDateTime\":\"2017-09-27T18:09:28Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:09:28Z\",\"optimizerTransactionId\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 18:10:22\\\",\\\"finishTime\\\":\\\"2017-09-27 18:12:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:10:22\\\",\\\"node\\\":[\\\"VNFName1e037\\\",\\\"VNFName2e037\\\",\\\"VNFName3e037\\\",\\\"VNFName4e037\\\"]}]\",\"scheduleId\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"scheduleName\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:11:20Z\",\"domainData\":[{\"id\":1078,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1079,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1080,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:09:31Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName2e037\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999571\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:10:22Z\",\"finishTime\":\"2017-09-27T18:12:12Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T18:10:22Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T18:10:21Z\",\"executionCompletedTime\":\"2017-09-27T18:10:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:10:31Z\",\"scheduleRequest\":{\"id\":360,\"createDateTime\":\"2017-09-27T18:09:20Z\",\"optimizerDateTime\":\"2017-09-27T18:09:28Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:09:28Z\",\"optimizerTransactionId\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 18:10:22\\\",\\\"finishTime\\\":\\\"2017-09-27 18:12:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:10:22\\\",\\\"node\\\":[\\\"VNFName1e037\\\",\\\"VNFName2e037\\\",\\\"VNFName3e037\\\",\\\"VNFName4e037\\\"]}]\",\"scheduleId\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"scheduleName\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:11:20Z\",\"domainData\":[{\"id\":1078,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1079,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1080,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:09:31Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName3e037\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999572\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:10:22Z\",\"finishTime\":\"2017-09-27T18:12:12Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T18:10:22Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T18:10:21Z\",\"executionCompletedTime\":\"2017-09-27T18:10:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:10:31Z\",\"scheduleRequest\":{\"id\":360,\"createDateTime\":\"2017-09-27T18:09:20Z\",\"optimizerDateTime\":\"2017-09-27T18:09:28Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:09:28Z\",\"optimizerTransactionId\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 18:10:22\\\",\\\"finishTime\\\":\\\"2017-09-27 18:12:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:10:22\\\",\\\"node\\\":[\\\"VNFName1e037\\\",\\\"VNFName2e037\\\",\\\"VNFName3e037\\\",\\\"VNFName4e037\\\"]}]\",\"scheduleId\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"scheduleName\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:11:20Z\",\"domainData\":[{\"id\":1078,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1079,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1080,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:09:31Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName4e037\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999573\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:10:22Z\",\"finishTime\":\"2017-09-27T18:12:12Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-09-27T18:10:22Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_pserver\",\"dispatchTime\":\"2017-09-27T18:10:21Z\",\"executionCompletedTime\":\"2017-09-27T18:10:31Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:10:31Z\",\"scheduleRequest\":{\"id\":360,\"createDateTime\":\"2017-09-27T18:09:20Z\",\"optimizerDateTime\":\"2017-09-27T18:09:28Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:09:28Z\",\"optimizerTransactionId\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-09-27 18:10:22\\\",\\\"finishTime\\\":\\\"2017-09-27 18:12:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:10:22\\\",\\\"node\\\":[\\\"VNFName1e037\\\",\\\"VNFName2e037\\\",\\\"VNFName3e037\\\",\\\"VNFName4e037\\\"]}]\",\"scheduleId\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"scheduleName\":\"20c88659-4b21-4ac4-8590-55c438f8e037\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:11:20Z\",\"domainData\":[{\"id\":1078,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1079,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1080,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:09:31Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999574\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-27T18:12:23Z\",\"finishTime\":\"2017-09-27T18:14:13Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-27T18:12:23Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-09-27T18:12:22Z\",\"executionCompletedTime\":\"2017-09-27T18:12:32Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T18:12:32Z\",\"scheduleRequest\":{\"id\":361,\"createDateTime\":\"2017-09-27T18:11:21Z\",\"optimizerDateTime\":\"2017-09-27T18:11:28Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-27T18:11:28Z\",\"optimizerTransactionId\":\"c075be81-6bfa-4fc1-ab5c-15ffef1b706d\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-27 18:12:23\\\",\\\"finishTime\\\":\\\"2017-09-27 18:14:13\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-27 18:12:23\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"c075be81-6bfa-4fc1-ab5c-15ffef1b706d\",\"scheduleName\":\"c075be81-6bfa-4fc1-ab5c-15ffef1b706d\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:13:13Z\",\"domainData\":[{\"id\":1081,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1082,\"name\":\"WorkflowName\",\"value\":\"UpdateVnfInfra\"},{\"id\":1083,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-27T18:11:32Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999577\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":362,\"createDateTime\":\"2017-09-27T18:54:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"fc878ec4-a61e-4181-9c8f-9da537f89f5c\",\"scheduleId\":\"fc878ec4-a61e-4181-9c8f-9da537f89f5c\",\"scheduleName\":\"fc878ec4-a61e-4181-9c8f-9da537f89f5c\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:54:35Z\",\"domainData\":[{\"id\":1084,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1085,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1086,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999578\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":363,\"createDateTime\":\"2017-09-27T18:54:41Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5527a048-ea92-4130-ac34-38fc9560a6a8\",\"scheduleId\":\"5527a048-ea92-4130-ac34-38fc9560a6a8\",\"scheduleName\":\"5527a048-ea92-4130-ac34-38fc9560a6a8\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T18:54:55Z\",\"domainData\":[{\"id\":1087,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1088,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1089,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999581\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":364,\"createDateTime\":\"2017-09-27T19:21:27Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0aef853c-8e79-4085-8328-34b71685e883\",\"scheduleId\":\"0aef853c-8e79-4085-8328-34b71685e883\",\"scheduleName\":\"0aef853c-8e79-4085-8328-34b71685e883\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T19:21:57Z\",\"domainData\":[{\"id\":1090,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1091,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1092,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000003999582\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-27T19:22:19Z\",\"executionCompletedTime\":\"2017-09-27T19:22:29Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-27T19:22:29Z\",\"scheduleRequest\":{\"id\":365,\"createDateTime\":\"2017-09-27T19:22:03Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9218bbeb-69c7-495a-8f82-427e3d0f46bd\",\"scheduleId\":\"9218bbeb-69c7-495a-8f82-427e3d0f46bd\",\"scheduleName\":\"9218bbeb-69c7-495a-8f82-427e3d0f46bd\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1093,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1094,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1095,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999583\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":366,\"createDateTime\":\"2017-09-27T19:26:07Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"1de69ad8-9882-4f61-ab60-e3c36ef9183d\",\"scheduleId\":\"1de69ad8-9882-4f61-ab60-e3c36ef9183d\",\"scheduleName\":\"1de69ad8-9882-4f61-ab60-e3c36ef9183d\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T19:26:24Z\",\"domainData\":[{\"id\":1096,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1097,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1098,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999584\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":367,\"createDateTime\":\"2017-09-27T19:30:01Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"caf4ca7d-d252-4655-9eb9-5aefd1e761a7\",\"scheduleId\":\"caf4ca7d-d252-4655-9eb9-5aefd1e761a7\",\"scheduleName\":\"caf4ca7d-d252-4655-9eb9-5aefd1e761a7\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T19:30:17Z\",\"domainData\":[{\"id\":1099,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1100,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1101,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999585\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":368,\"createDateTime\":\"2017-09-27T19:34:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bea1ac64-b470-42b4-a78d-95230ff748cf\",\"scheduleId\":\"bea1ac64-b470-42b4-a78d-95230ff748cf\",\"scheduleName\":\"bea1ac64-b470-42b4-a78d-95230ff748cf\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T19:34:29Z\",\"domainData\":[{\"id\":1102,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1103,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1104,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999586\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":369,\"createDateTime\":\"2017-09-27T19:42:28Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"506f3f14-cf97-4d7d-89db-46e4ad78f5f1\",\"scheduleId\":\"506f3f14-cf97-4d7d-89db-46e4ad78f5f1\",\"scheduleName\":\"506f3f14-cf97-4d7d-89db-46e4ad78f5f1\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T19:42:43Z\",\"domainData\":[{\"id\":1105,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1106,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1107,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999588\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":370,\"createDateTime\":\"2017-09-27T20:07:16Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"10370693-0727-48d7-9e60-ac77eabe2286\",\"scheduleId\":\"10370693-0727-48d7-9e60-ac77eabe2286\",\"scheduleName\":\"10370693-0727-48d7-9e60-ac77eabe2286\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T20:07:30Z\",\"domainData\":[{\"id\":1108,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1109,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1110,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999590\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":371,\"createDateTime\":\"2017-09-27T21:09:58Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f845b456-5ee7-4673-88f7-337faf36d0bc\",\"scheduleId\":\"f845b456-5ee7-4673-88f7-337faf36d0bc\",\"scheduleName\":\"f845b456-5ee7-4673-88f7-337faf36d0bc\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-27T21:10:19Z\",\"domainData\":[{\"id\":1111,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1112,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1113,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999686\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":372,\"createDateTime\":\"2017-09-28T13:40:45Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f34db246-0363-4fdc-a2b9-0db8ca2437c7\",\"scheduleId\":\"f34db246-0363-4fdc-a2b9-0db8ca2437c7\",\"scheduleName\":\"f34db246-0363-4fdc-a2b9-0db8ca2437c7\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T13:42:08Z\",\"domainData\":[{\"id\":1114,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1115,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1116,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999688\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":373,\"createDateTime\":\"2017-09-28T13:50:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0e1f1275-c722-40d9-8992-4ee8470dfc4f\",\"scheduleId\":\"0e1f1275-c722-40d9-8992-4ee8470dfc4f\",\"scheduleName\":\"0e1f1275-c722-40d9-8992-4ee8470dfc4f\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T13:50:30Z\",\"domainData\":[{\"id\":1117,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1118,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1119,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999729\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":374,\"createDateTime\":\"2017-09-28T14:39:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0085a6d7-cff7-4b42-a146-8b315cd3dc4e\",\"scheduleId\":\"0085a6d7-cff7-4b42-a146-8b315cd3dc4e\",\"scheduleName\":\"0085a6d7-cff7-4b42-a146-8b315cd3dc4e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T14:39:32Z\",\"domainData\":[{\"id\":1120,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1121,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1122,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999733\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":375,\"createDateTime\":\"2017-09-28T15:22:26Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a970e2e5-03eb-43d4-b6c7-45b8870e9e3e\",\"scheduleId\":\"a970e2e5-03eb-43d4-b6c7-45b8870e9e3e\",\"scheduleName\":\"a970e2e5-03eb-43d4-b6c7-45b8870e9e3e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T15:22:53Z\",\"domainData\":[{\"id\":1123,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1124,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1125,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999734\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":376,\"createDateTime\":\"2017-09-28T15:24:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a0978f72-064d-49e0-be86-b110df071078\",\"scheduleId\":\"a0978f72-064d-49e0-be86-b110df071078\",\"scheduleName\":\"a0978f72-064d-49e0-be86-b110df071078\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T15:24:15Z\",\"domainData\":[{\"id\":1126,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1127,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1128,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999736\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":377,\"createDateTime\":\"2017-09-28T15:32:18Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0c8b6357-038b-415c-9516-25da5b99b1b2\",\"scheduleId\":\"0c8b6357-038b-415c-9516-25da5b99b1b2\",\"scheduleName\":\"0c8b6357-038b-415c-9516-25da5b99b1b2\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T15:32:30Z\",\"domainData\":[{\"id\":1129,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1130,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1131,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999737\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":378,\"createDateTime\":\"2017-09-28T15:34:45Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"15b40049-2d37-486c-a4f3-663ca83c8eee\",\"scheduleId\":\"15b40049-2d37-486c-a4f3-663ca83c8eee\",\"scheduleName\":\"15b40049-2d37-486c-a4f3-663ca83c8eee\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T15:34:56Z\",\"domainData\":[{\"id\":1132,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1133,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1134,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999738\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":379,\"createDateTime\":\"2017-09-28T15:42:20Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"43cdb320-5066-499a-80e4-dda7ea0020e9\",\"scheduleId\":\"43cdb320-5066-499a-80e4-dda7ea0020e9\",\"scheduleName\":\"43cdb320-5066-499a-80e4-dda7ea0020e9\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T15:42:34Z\",\"domainData\":[{\"id\":1135,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1136,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1137,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Cancelled\",\"aotsChangeId\":\"CHG000003999739\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-28T16:07:23Z\",\"finishTime\":\"2017-09-28T16:09:13Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-28T16:07:23Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":380,\"createDateTime\":\"2017-09-28T16:02:23Z\",\"optimizerDateTime\":\"2017-09-28T16:02:28Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-28T16:02:28Z\",\"optimizerTransactionId\":\"6c00ad9a-abf1-427d-ad2a-03362091663f\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-28 16:07:23\\\",\\\"finishTime\\\":\\\"2017-09-28 16:09:13\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-28 16:07:23\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"6c00ad9a-abf1-427d-ad2a-03362091663f\",\"scheduleName\":\"6c00ad9a-abf1-427d-ad2a-03362091663f\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T16:02:44Z\",\"domainData\":[{\"id\":1138,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1139,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1140,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-28T16:02:29Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Cancelled\",\"aotsChangeId\":\"CHG000003999740\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-28T16:08:42Z\",\"finishTime\":\"2017-09-28T16:10:32Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-28T16:08:42Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":381,\"createDateTime\":\"2017-09-28T16:03:43Z\",\"optimizerDateTime\":\"2017-09-28T16:03:48Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-28T16:03:48Z\",\"optimizerTransactionId\":\"7a391060-d23f-4a8e-b916-c391d807c172\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-28 16:08:42\\\",\\\"finishTime\\\":\\\"2017-09-28 16:10:32\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-28 16:08:42\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"7a391060-d23f-4a8e-b916-c391d807c172\",\"scheduleName\":\"7a391060-d23f-4a8e-b916-c391d807c172\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T16:04:09Z\",\"domainData\":[{\"id\":1141,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1142,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1143,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-28T16:03:53Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Cancelled\",\"aotsChangeId\":\"CHG000003999741\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-28T16:09:47Z\",\"finishTime\":\"2017-09-28T16:11:37Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-28T16:09:47Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":382,\"createDateTime\":\"2017-09-28T16:04:48Z\",\"optimizerDateTime\":\"2017-09-28T16:04:48Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-28T16:04:48Z\",\"optimizerTransactionId\":\"f2b7fbcd-07f7-44e6-9ba0-d35c2c724969\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-28 16:09:47\\\",\\\"finishTime\\\":\\\"2017-09-28 16:11:37\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-28 16:09:47\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"f2b7fbcd-07f7-44e6-9ba0-d35c2c724969\",\"scheduleName\":\"f2b7fbcd-07f7-44e6-9ba0-d35c2c724969\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T16:05:02Z\",\"domainData\":[{\"id\":1144,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1145,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1146,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-28T16:04:49Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999743\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":383,\"createDateTime\":\"2017-09-28T16:47:12Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ed4e9154-e743-4b87-a2bb-4974f6592aab\",\"scheduleId\":\"ed4e9154-e743-4b87-a2bb-4974f6592aab\",\"scheduleName\":\"ed4e9154-e743-4b87-a2bb-4974f6592aab\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T16:47:34Z\",\"domainData\":[{\"id\":1147,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1148,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1149,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999744\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":384,\"createDateTime\":\"2017-09-28T17:00:18Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2470e65a-c861-4faf-9e9a-b4f7ef9c05a8\",\"scheduleId\":\"2470e65a-c861-4faf-9e9a-b4f7ef9c05a8\",\"scheduleName\":\"2470e65a-c861-4faf-9e9a-b4f7ef9c05a8\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T17:00:36Z\",\"domainData\":[{\"id\":1150,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1151,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1152,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999745\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":385,\"createDateTime\":\"2017-09-28T17:03:58Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4c0a5fdf-2784-444c-8eca-9ac160a20ff2\",\"scheduleId\":\"4c0a5fdf-2784-444c-8eca-9ac160a20ff2\",\"scheduleName\":\"4c0a5fdf-2784-444c-8eca-9ac160a20ff2\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T17:04:11Z\",\"domainData\":[{\"id\":1153,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1154,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1155,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999746\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":386,\"createDateTime\":\"2017-09-28T17:05:25Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a64885e8-2b41-491c-bf64-d7ddd7449a66\",\"scheduleId\":\"a64885e8-2b41-491c-bf64-d7ddd7449a66\",\"scheduleName\":\"a64885e8-2b41-491c-bf64-d7ddd7449a66\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T17:05:37Z\",\"domainData\":[{\"id\":1156,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1157,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1158,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999747\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":387,\"createDateTime\":\"2017-09-28T17:05:43Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f30c9b86-75a8-4a5c-a0f8-2e661ba97160\",\"scheduleId\":\"f30c9b86-75a8-4a5c-a0f8-2e661ba97160\",\"scheduleName\":\"f30c9b86-75a8-4a5c-a0f8-2e661ba97160\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T17:05:51Z\",\"domainData\":[{\"id\":1159,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1160,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1161,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999748\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":388,\"createDateTime\":\"2017-09-28T17:05:54Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"590ebd5a-be49-4aec-80a5-7c605b50c19e\",\"scheduleId\":\"590ebd5a-be49-4aec-80a5-7c605b50c19e\",\"scheduleName\":\"590ebd5a-be49-4aec-80a5-7c605b50c19e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T17:06:05Z\",\"domainData\":[{\"id\":1162,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1163,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1164,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999750\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":389,\"createDateTime\":\"2017-09-28T18:26:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c8a1a356-645d-4aa4-b007-4fe9a7805139\",\"scheduleId\":\"c8a1a356-645d-4aa4-b007-4fe9a7805139\",\"scheduleName\":\"c8a1a356-645d-4aa4-b007-4fe9a7805139\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T18:27:02Z\",\"domainData\":[{\"id\":1165,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1166,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1167,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Past due\",\"aotsChangeId\":\"CHG000003999752\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-28T18:38:02Z\",\"finishTime\":\"2017-09-28T18:39:52Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-09-28T18:38:02Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"SCHEDULE_PAST_DUE Attempt to dispatch an event that is Past due scheduleId=6b2b8048-0f3e-4244-a152-bfe625242cb7, vnf=ctsf0002v, now=Thu Sep 28 18:38:14 UTC 2017, startTime=Thu Sep 28 18:38:02 UTC 2017\",\"scheduleRequest\":{\"id\":390,\"createDateTime\":\"2017-09-28T18:37:08Z\",\"optimizerDateTime\":\"2017-09-28T18:37:13Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-28T18:37:14Z\",\"optimizerTransactionId\":\"6b2b8048-0f3e-4244-a152-bfe625242cb7\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-09-28 18:38:02\\\",\\\"finishTime\\\":\\\"2017-09-28 18:39:52\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-28 18:38:02\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"6b2b8048-0f3e-4244-a152-bfe625242cb7\",\"scheduleName\":\"6b2b8048-0f3e-4244-a152-bfe625242cb7\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1168,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1169,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1170,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-28T18:37:49Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999753\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":391,\"createDateTime\":\"2017-09-28T19:12:20Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"24882a49-e98c-4505-abbc-b6b69f20469e\",\"scheduleId\":\"24882a49-e98c-4505-abbc-b6b69f20469e\",\"scheduleName\":\"24882a49-e98c-4505-abbc-b6b69f20469e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T19:12:47Z\",\"domainData\":[{\"id\":1171,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1172,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1173,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999754\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":392,\"createDateTime\":\"2017-09-28T19:17:58Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c71c209e-8e8f-41fb-8a77-f6e00fba848c\",\"scheduleId\":\"c71c209e-8e8f-41fb-8a77-f6e00fba848c\",\"scheduleName\":\"c71c209e-8e8f-41fb-8a77-f6e00fba848c\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T19:18:24Z\",\"domainData\":[{\"id\":1174,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1175,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1176,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999755\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":393,\"createDateTime\":\"2017-09-28T19:24:29Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"6e678203-78c6-4a6e-846a-f1d5e0934167\",\"scheduleId\":\"6e678203-78c6-4a6e-846a-f1d5e0934167\",\"scheduleName\":\"6e678203-78c6-4a6e-846a-f1d5e0934167\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T19:24:44Z\",\"domainData\":[{\"id\":1177,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1178,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1179,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999760\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":394,\"createDateTime\":\"2017-09-28T20:22:52Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a6c4981e-1738-41f4-930a-786f1c230f4b\",\"scheduleId\":\"a6c4981e-1738-41f4-930a-786f1c230f4b\",\"scheduleName\":\"a6c4981e-1738-41f4-930a-786f1c230f4b\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T20:23:18Z\",\"domainData\":[{\"id\":1180,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1181,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1182,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999761\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":395,\"createDateTime\":\"2017-09-28T20:25:41Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c7f53d81-2b59-4df6-96ca-c0eb00d74fad\",\"scheduleId\":\"c7f53d81-2b59-4df6-96ca-c0eb00d74fad\",\"scheduleName\":\"c7f53d81-2b59-4df6-96ca-c0eb00d74fad\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-28T20:25:55Z\",\"domainData\":[{\"id\":1183,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1184,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1185,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999789\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-29T13:39:44Z\",\"executionCompletedTime\":\"2017-09-29T13:39:54Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T13:39:54Z\",\"scheduleRequest\":{\"id\":396,\"createDateTime\":\"2017-09-29T13:39:20Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"540fa350-5002-4273-a741-5231ae058084\",\"scheduleId\":\"540fa350-5002-4273-a741-5231ae058084\",\"scheduleName\":\"540fa350-5002-4273-a741-5231ae058084\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T13:40:49Z\",\"domainData\":[{\"id\":1186,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1187,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1188,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC043f28\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999790\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-29T13:43:35Z\",\"finishTime\":\"2017-09-29T13:45:25Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-29T13:43:35Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-29T13:43:34Z\",\"executionCompletedTime\":\"2017-09-29T13:43:44Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T13:43:44Z\",\"scheduleRequest\":{\"id\":397,\"createDateTime\":\"2017-09-29T13:42:35Z\",\"optimizerDateTime\":\"2017-09-29T13:42:43Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-29T13:42:43Z\",\"optimizerTransactionId\":\"0cb0fd6a-41d1-44cf-b8ad-2867b6973f28\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-29 13:43:35\\\",\\\"finishTime\\\":\\\"2017-09-29 13:45:25\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-29 13:43:35\\\",\\\"node\\\":[\\\"ZRDM1MMSC043f28\\\"]}]\",\"scheduleId\":\"0cb0fd6a-41d1-44cf-b8ad-2867b6973f28\",\"scheduleName\":\"0cb0fd6a-41d1-44cf-b8ad-2867b6973f28\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T13:44:49Z\",\"domainData\":[{\"id\":1189,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1190,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1191,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-29T13:42:46Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04c1b5\",\"vnfId\":\"\",\"status\":\"Past due\",\"aotsChangeId\":\"CHG000003999796\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-29T15:52:14Z\",\"finishTime\":\"2017-09-29T15:54:04Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-29T15:52:14Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"SCHEDULE_PAST_DUE Attempt to dispatch an event that is Past due scheduleId=54ed3057-9ed2-44d9-84c9-d4d8890bc1b5, vnf=ZRDM1MMSC04c1b5, now=Fri Sep 29 15:52:14 UTC 2017, startTime=Fri Sep 29 15:52:14 UTC 2017\",\"scheduleRequest\":{\"id\":398,\"createDateTime\":\"2017-09-29T15:51:14Z\",\"optimizerDateTime\":\"2017-09-29T15:51:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-29T15:51:23Z\",\"optimizerTransactionId\":\"54ed3057-9ed2-44d9-84c9-d4d8890bc1b5\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-29 15:52:14\\\",\\\"finishTime\\\":\\\"2017-09-29 15:54:04\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-29 15:52:14\\\",\\\"node\\\":[\\\"ZRDM1MMSC04c1b5\\\"]}]\",\"scheduleId\":\"54ed3057-9ed2-44d9-84c9-d4d8890bc1b5\",\"scheduleName\":\"54ed3057-9ed2-44d9-84c9-d4d8890bc1b5\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1192,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1193,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1194,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-29T15:51:24Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999798\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-29T15:58:43Z\",\"executionCompletedTime\":\"2017-09-29T15:58:53Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T15:58:53Z\",\"scheduleRequest\":{\"id\":399,\"createDateTime\":\"2017-09-29T15:58:19Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"15f42662-8b5d-4bf8-8cff-5fa6ac208687\",\"scheduleId\":\"15f42662-8b5d-4bf8-8cff-5fa6ac208687\",\"scheduleName\":\"15f42662-8b5d-4bf8-8cff-5fa6ac208687\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T15:59:50Z\",\"domainData\":[{\"id\":1195,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1196,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1197,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1d345\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999799\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-29T16:00:43Z\",\"executionCompletedTime\":\"2017-09-29T16:00:53Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T16:00:53Z\",\"scheduleRequest\":{\"id\":400,\"createDateTime\":\"2017-09-29T15:59:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"scheduleId\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"scheduleName\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T16:02:02Z\",\"domainData\":[{\"id\":1198,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1199,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1200,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2d345\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999800\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-29T16:00:43Z\",\"executionCompletedTime\":\"2017-09-29T16:00:54Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T16:00:53Z\",\"scheduleRequest\":{\"id\":400,\"createDateTime\":\"2017-09-29T15:59:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"scheduleId\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"scheduleName\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T16:02:02Z\",\"domainData\":[{\"id\":1198,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1199,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1200,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3d345\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999801\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-29T16:00:43Z\",\"executionCompletedTime\":\"2017-09-29T16:00:53Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T16:00:53Z\",\"scheduleRequest\":{\"id\":400,\"createDateTime\":\"2017-09-29T15:59:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"scheduleId\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"scheduleName\":\"a5db58b1-6ed9-45d0-9860-d332f6d0d345\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T16:02:02Z\",\"domainData\":[{\"id\":1198,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1199,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1200,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999802\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":401,\"createDateTime\":\"2017-09-29T16:04:08Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b24f2621-9409-4459-8c8c-5f1cee12915f\",\"scheduleId\":\"b24f2621-9409-4459-8c8c-5f1cee12915f\",\"scheduleName\":\"b24f2621-9409-4459-8c8c-5f1cee12915f\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T16:04:26Z\",\"domainData\":[{\"id\":1201,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1202,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1203,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999803\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":402,\"createDateTime\":\"2017-09-29T16:04:32Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e9168be3-4fa1-4f89-af29-fe28977ffa71\",\"scheduleId\":\"e9168be3-4fa1-4f89-af29-fe28977ffa71\",\"scheduleName\":\"e9168be3-4fa1-4f89-af29-fe28977ffa71\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T16:05:19Z\",\"domainData\":[{\"id\":1204,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1205,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1206,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999805\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":403,\"createDateTime\":\"2017-09-29T16:05:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"02107812-2b34-4981-890f-2eebe23f05d7\",\"scheduleId\":\"02107812-2b34-4981-890f-2eebe23f05d7\",\"scheduleName\":\"02107812-2b34-4981-890f-2eebe23f05d7\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T16:05:35Z\",\"domainData\":[{\"id\":1207,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1208,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1209,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999806\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-09-29T16:05:53Z\",\"executionCompletedTime\":\"2017-09-29T16:06:03Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T16:06:03Z\",\"scheduleRequest\":{\"id\":404,\"createDateTime\":\"2017-09-29T16:05:41Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2aa3d956-1620-4799-9838-c2c13ff09dee\",\"scheduleId\":\"2aa3d956-1620-4799-9838-c2c13ff09dee\",\"scheduleName\":\"2aa3d956-1620-4799-9838-c2c13ff09dee\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T16:06:50Z\",\"domainData\":[{\"id\":1210,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1211,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1212,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04a097\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999807\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-29T16:07:50Z\",\"finishTime\":\"2017-09-29T16:09:40Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-29T16:07:50Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-29T16:07:49Z\",\"executionCompletedTime\":\"2017-09-29T16:07:59Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T16:07:59Z\",\"scheduleRequest\":{\"id\":405,\"createDateTime\":\"2017-09-29T16:06:50Z\",\"optimizerDateTime\":\"2017-09-29T16:06:53Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-29T16:06:53Z\",\"optimizerTransactionId\":\"98b3633a-cc28-4f91-8328-f0631609a097\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-29 16:07:50\\\",\\\"finishTime\\\":\\\"2017-09-29 16:09:40\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-29 16:07:50\\\",\\\"node\\\":[\\\"ZRDM1MMSC04a097\\\"]}]\",\"scheduleId\":\"98b3633a-cc28-4f91-8328-f0631609a097\",\"scheduleName\":\"98b3633a-cc28-4f91-8328-f0631609a097\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T16:08:52Z\",\"domainData\":[{\"id\":1213,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1214,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1215,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-29T16:06:56Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC049b77\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-09-29T17:24:17Z\",\"finishTime\":\"2017-09-29T17:26:07Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-29T17:24:17Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":406,\"createDateTime\":\"2017-09-29T17:23:17Z\",\"optimizerDateTime\":\"2017-09-29T17:23:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-29T17:23:23Z\",\"optimizerTransactionId\":\"b53d629b-8bd2-439b-b24b-e043d6f39b77\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-29 17:24:17\\\",\\\"finishTime\\\":\\\"2017-09-29 17:26:07\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-29 17:24:17\\\",\\\"node\\\":[\\\"ZRDM1MMSC049b77\\\"]}]\",\"scheduleId\":\"b53d629b-8bd2-439b-b24b-e043d6f39b77\",\"scheduleName\":\"b53d629b-8bd2-439b-b24b-e043d6f39b77\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1216,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1217,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1218,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-29T17:23:27Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC044cf8\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000003999812\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-09-29T17:24:54Z\",\"finishTime\":\"2017-09-29T17:26:44Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-09-29T17:24:54Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-09-29T17:24:53Z\",\"executionCompletedTime\":\"2017-09-29T17:25:03Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-09-29T17:25:03Z\",\"scheduleRequest\":{\"id\":407,\"createDateTime\":\"2017-09-29T17:23:54Z\",\"optimizerDateTime\":\"2017-09-29T17:24:03Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-09-29T17:24:03Z\",\"optimizerTransactionId\":\"769c1897-52fb-4a29-8ba9-d7ada8a64cf8\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-09-29 17:24:54\\\",\\\"finishTime\\\":\\\"2017-09-29 17:26:44\\\",\\\"latestInstanceStartTime\\\":\\\"2017-09-29 17:24:54\\\",\\\"node\\\":[\\\"ZRDM1MMSC044cf8\\\"]}]\",\"scheduleId\":\"769c1897-52fb-4a29-8ba9-d7ada8a64cf8\",\"scheduleName\":\"769c1897-52fb-4a29-8ba9-d7ada8a64cf8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-09-29T17:25:48Z\",\"domainData\":[{\"id\":1219,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1220,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1221,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-09-29T17:24:04Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC047adc\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T13:12:15Z\",\"finishTime\":\"2017-10-02T13:14:05Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T13:12:15Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":408,\"createDateTime\":\"2017-10-02T13:11:15Z\",\"optimizerDateTime\":\"2017-10-02T13:11:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T13:11:23Z\",\"optimizerTransactionId\":\"00498285-58fe-4034-a163-a9db83bc7adc\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 13:12:15\\\",\\\"finishTime\\\":\\\"2017-10-02 13:14:05\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 13:12:15\\\",\\\"node\\\":[\\\"ZRDM1MMSC047adc\\\"]}]\",\"scheduleId\":\"00498285-58fe-4034-a163-a9db83bc7adc\",\"scheduleName\":\"00498285-58fe-4034-a163-a9db83bc7adc\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1222,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1223,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1224,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC040514\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T13:17:16Z\",\"finishTime\":\"2017-10-02T13:19:06Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T13:17:16Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":411,\"createDateTime\":\"2017-10-02T13:16:16Z\",\"optimizerDateTime\":\"2017-10-02T13:16:23Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T13:16:23Z\",\"optimizerTransactionId\":\"0fd9c634-1e69-447a-8e20-fdc9adff0514\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 13:17:16\\\",\\\"finishTime\\\":\\\"2017-10-02 13:19:06\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 13:17:16\\\",\\\"node\\\":[\\\"ZRDM1MMSC040514\\\"]}]\",\"scheduleId\":\"0fd9c634-1e69-447a-8e20-fdc9adff0514\",\"scheduleName\":\"0fd9c634-1e69-447a-8e20-fdc9adff0514\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1231,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1232,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1233,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T13:16:26Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04f474\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T13:17:43Z\",\"finishTime\":\"2017-10-02T13:19:33Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T13:17:43Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":416,\"createDateTime\":\"2017-10-02T13:16:43Z\",\"optimizerDateTime\":\"2017-10-02T13:16:53Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T13:16:53Z\",\"optimizerTransactionId\":\"b0a3ab3e-ee14-4eb1-bfbd-c29d5e94f474\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 13:17:43\\\",\\\"finishTime\\\":\\\"2017-10-02 13:19:33\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 13:17:43\\\",\\\"node\\\":[\\\"ZRDM1MMSC04f474\\\"]}]\",\"scheduleId\":\"b0a3ab3e-ee14-4eb1-bfbd-c29d5e94f474\",\"scheduleName\":\"b0a3ab3e-ee14-4eb1-bfbd-c29d5e94f474\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1246,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1247,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1248,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC040bdc\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T15:09:01Z\",\"finishTime\":\"2017-10-02T15:10:51Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T15:09:01Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":417,\"createDateTime\":\"2017-10-02T15:08:01Z\",\"optimizerDateTime\":\"2017-10-02T15:08:03Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T15:08:03Z\",\"optimizerTransactionId\":\"984a161c-d0b6-47cd-913a-05e2fab30bdc\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 15:09:01\\\",\\\"finishTime\\\":\\\"2017-10-02 15:10:51\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 15:09:01\\\",\\\"node\\\":[\\\"ZRDM1MMSC040bdc\\\"]}]\",\"scheduleId\":\"984a161c-d0b6-47cd-913a-05e2fab30bdc\",\"scheduleName\":\"984a161c-d0b6-47cd-913a-05e2fab30bdc\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1249,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1250,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1251,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04abf5\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T16:55:38Z\",\"finishTime\":\"2017-10-02T16:57:28Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T16:55:38Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":418,\"createDateTime\":\"2017-10-02T16:54:38Z\",\"optimizerDateTime\":\"2017-10-02T16:54:43Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T16:54:43Z\",\"optimizerTransactionId\":\"5050d9c6-94ca-46ce-8068-2d36f04aabf5\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 16:55:38\\\",\\\"finishTime\\\":\\\"2017-10-02 16:57:28\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 16:55:38\\\",\\\"node\\\":[\\\"ZRDM1MMSC04abf5\\\"]}]\",\"scheduleId\":\"5050d9c6-94ca-46ce-8068-2d36f04aabf5\",\"scheduleName\":\"5050d9c6-94ca-46ce-8068-2d36f04aabf5\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1252,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1253,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1254,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName19e7a\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T16:55:51Z\",\"finishTime\":\"2017-10-02T16:57:41Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T16:55:51Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":419,\"createDateTime\":\"2017-10-02T16:54:52Z\",\"optimizerDateTime\":\"2017-10-02T16:54:53Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T16:54:54Z\",\"optimizerTransactionId\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 16:55:51\\\",\\\"finishTime\\\":\\\"2017-10-02 16:57:41\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 16:55:51\\\",\\\"node\\\":[\\\"VNFName19e7a\\\",\\\"VNFName29e7a\\\",\\\"VNFName39e7a\\\"]}]\",\"scheduleId\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"scheduleName\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1255,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1256,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1257,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName29e7a\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T16:55:51Z\",\"finishTime\":\"2017-10-02T16:57:41Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T16:55:51Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":419,\"createDateTime\":\"2017-10-02T16:54:52Z\",\"optimizerDateTime\":\"2017-10-02T16:54:53Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T16:54:54Z\",\"optimizerTransactionId\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 16:55:51\\\",\\\"finishTime\\\":\\\"2017-10-02 16:57:41\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 16:55:51\\\",\\\"node\\\":[\\\"VNFName19e7a\\\",\\\"VNFName29e7a\\\",\\\"VNFName39e7a\\\"]}]\",\"scheduleId\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"scheduleName\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1255,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1256,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1257,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName39e7a\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T16:55:51Z\",\"finishTime\":\"2017-10-02T16:57:41Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T16:55:51Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":419,\"createDateTime\":\"2017-10-02T16:54:52Z\",\"optimizerDateTime\":\"2017-10-02T16:54:53Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T16:54:54Z\",\"optimizerTransactionId\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 16:55:51\\\",\\\"finishTime\\\":\\\"2017-10-02 16:57:41\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 16:55:51\\\",\\\"node\\\":[\\\"VNFName19e7a\\\",\\\"VNFName29e7a\\\",\\\"VNFName39e7a\\\"]}]\",\"scheduleId\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"scheduleName\":\"4fe539c9-10cb-43c0-9320-5a70a44b9e7a\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1255,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1256,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1257,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName13cf1\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T16:55:59Z\",\"finishTime\":\"2017-10-02T16:57:49Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-02T16:55:59Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":420,\"createDateTime\":\"2017-10-02T16:54:59Z\",\"optimizerDateTime\":\"2017-10-02T16:55:03Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T16:55:03Z\",\"optimizerTransactionId\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-02 16:55:59\\\",\\\"finishTime\\\":\\\"2017-10-02 16:57:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 16:55:59\\\",\\\"node\\\":[\\\"VNFName13cf1\\\",\\\"VNFName23cf1\\\",\\\"VNFName33cf1\\\",\\\"VNFName43cf1\\\"]}]\",\"scheduleId\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"scheduleName\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1258,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1259,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1260,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName23cf1\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T16:55:59Z\",\"finishTime\":\"2017-10-02T16:57:49Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-02T16:55:59Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":420,\"createDateTime\":\"2017-10-02T16:54:59Z\",\"optimizerDateTime\":\"2017-10-02T16:55:03Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T16:55:03Z\",\"optimizerTransactionId\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-02 16:55:59\\\",\\\"finishTime\\\":\\\"2017-10-02 16:57:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 16:55:59\\\",\\\"node\\\":[\\\"VNFName13cf1\\\",\\\"VNFName23cf1\\\",\\\"VNFName33cf1\\\",\\\"VNFName43cf1\\\"]}]\",\"scheduleId\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"scheduleName\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1258,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1259,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1260,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName33cf1\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T16:55:59Z\",\"finishTime\":\"2017-10-02T16:57:49Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-02T16:55:59Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":420,\"createDateTime\":\"2017-10-02T16:54:59Z\",\"optimizerDateTime\":\"2017-10-02T16:55:03Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T16:55:03Z\",\"optimizerTransactionId\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-02 16:55:59\\\",\\\"finishTime\\\":\\\"2017-10-02 16:57:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 16:55:59\\\",\\\"node\\\":[\\\"VNFName13cf1\\\",\\\"VNFName23cf1\\\",\\\"VNFName33cf1\\\",\\\"VNFName43cf1\\\"]}]\",\"scheduleId\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"scheduleName\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1258,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1259,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1260,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName43cf1\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T16:55:59Z\",\"finishTime\":\"2017-10-02T16:57:49Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-02T16:55:59Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":420,\"createDateTime\":\"2017-10-02T16:54:59Z\",\"optimizerDateTime\":\"2017-10-02T16:55:03Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T16:55:03Z\",\"optimizerTransactionId\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-02 16:55:59\\\",\\\"finishTime\\\":\\\"2017-10-02 16:57:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 16:55:59\\\",\\\"node\\\":[\\\"VNFName13cf1\\\",\\\"VNFName23cf1\\\",\\\"VNFName33cf1\\\",\\\"VNFName43cf1\\\"]}]\",\"scheduleId\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"scheduleName\":\"1cfba934-d28c-4717-ad76-cb2d080a3cf1\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1258,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1259,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1260,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T18:30:23Z\",\"finishTime\":\"2017-10-02T18:32:13Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-10-02T18:30:23Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":421,\"createDateTime\":\"2017-10-02T18:10:24Z\",\"optimizerDateTime\":\"2017-10-02T18:10:33Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T18:10:33Z\",\"optimizerTransactionId\":\"a212db43-9063-460c-b46d-23d467ef7021\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-10-02 18:30:23\\\",\\\"finishTime\\\":\\\"2017-10-02 18:32:13\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 18:30:23\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"a212db43-9063-460c-b46d-23d467ef7021\",\"scheduleName\":\"a212db43-9063-460c-b46d-23d467ef7021\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1261,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1262,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1263,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Completed\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T18:50:31Z\",\"finishTime\":\"2017-10-02T18:52:21Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-10-02T18:50:31Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"dispatchTime\":\"2017-10-02T18:50:30Z\",\"executionCompletedTime\":\"2017-10-02T18:50:40Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T18:50:40Z\",\"scheduleRequest\":{\"id\":422,\"createDateTime\":\"2017-10-02T18:30:33Z\",\"optimizerDateTime\":\"2017-10-02T18:30:36Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T18:30:36Z\",\"optimizerTransactionId\":\"53e3b940-1920-4a5a-8b64-61597927e17d\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-10-02 18:50:31\\\",\\\"finishTime\\\":\\\"2017-10-02 18:52:21\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 18:50:31\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"53e3b940-1920-4a5a-8b64-61597927e17d\",\"scheduleName\":\"53e3b940-1920-4a5a-8b64-61597927e17d\",\"status\":\"Completed\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1264,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1265,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1266,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T18:31:04Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04b511\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:24:19Z\",\"finishTime\":\"2017-10-02T19:26:09Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T19:24:19Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:24:18Z\",\"executionCompletedTime\":\"2017-10-02T19:24:28Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:24:28Z\",\"scheduleRequest\":{\"id\":423,\"createDateTime\":\"2017-10-02T19:23:19Z\",\"optimizerDateTime\":\"2017-10-02T19:23:26Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:23:26Z\",\"optimizerTransactionId\":\"40b290d5-902e-4366-baeb-29fbd7ddb511\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 19:24:19\\\",\\\"finishTime\\\":\\\"2017-10-02 19:26:09\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:24:19\\\",\\\"node\\\":[\\\"ZRDM1MMSC04b511\\\"]}]\",\"scheduleId\":\"40b290d5-902e-4366-baeb-29fbd7ddb511\",\"scheduleName\":\"40b290d5-902e-4366-baeb-29fbd7ddb511\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:24:59Z\",\"domainData\":[{\"id\":1267,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1268,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1269,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:23:30Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName11007\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:25:59Z\",\"finishTime\":\"2017-10-02T19:27:49Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T19:25:59Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:25:58Z\",\"executionCompletedTime\":\"2017-10-02T19:26:08Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:26:08Z\",\"scheduleRequest\":{\"id\":424,\"createDateTime\":\"2017-10-02T19:24:59Z\",\"optimizerDateTime\":\"2017-10-02T19:25:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:25:06Z\",\"optimizerTransactionId\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 19:25:59\\\",\\\"finishTime\\\":\\\"2017-10-02 19:27:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:25:59\\\",\\\"node\\\":[\\\"VNFName11007\\\",\\\"VNFName21007\\\",\\\"VNFName31007\\\"]}]\",\"scheduleId\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"scheduleName\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:27:00Z\",\"domainData\":[{\"id\":1270,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1271,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1272,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:25:10Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName21007\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:25:59Z\",\"finishTime\":\"2017-10-02T19:27:49Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T19:25:59Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:25:58Z\",\"executionCompletedTime\":\"2017-10-02T19:26:08Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:26:08Z\",\"scheduleRequest\":{\"id\":424,\"createDateTime\":\"2017-10-02T19:24:59Z\",\"optimizerDateTime\":\"2017-10-02T19:25:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:25:06Z\",\"optimizerTransactionId\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 19:25:59\\\",\\\"finishTime\\\":\\\"2017-10-02 19:27:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:25:59\\\",\\\"node\\\":[\\\"VNFName11007\\\",\\\"VNFName21007\\\",\\\"VNFName31007\\\"]}]\",\"scheduleId\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"scheduleName\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:27:00Z\",\"domainData\":[{\"id\":1270,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1271,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1272,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:25:10Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName31007\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:25:59Z\",\"finishTime\":\"2017-10-02T19:27:49Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T19:25:59Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:25:58Z\",\"executionCompletedTime\":\"2017-10-02T19:26:08Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:26:08Z\",\"scheduleRequest\":{\"id\":424,\"createDateTime\":\"2017-10-02T19:24:59Z\",\"optimizerDateTime\":\"2017-10-02T19:25:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:25:06Z\",\"optimizerTransactionId\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 19:25:59\\\",\\\"finishTime\\\":\\\"2017-10-02 19:27:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:25:59\\\",\\\"node\\\":[\\\"VNFName11007\\\",\\\"VNFName21007\\\",\\\"VNFName31007\\\"]}]\",\"scheduleId\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"scheduleName\":\"4723250b-0ed6-4127-aaab-2b3192af1007\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:27:00Z\",\"domainData\":[{\"id\":1270,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1271,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1272,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:25:10Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName144dd\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:28:00Z\",\"finishTime\":\"2017-10-02T19:29:50Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-02T19:28:00Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:27:59Z\",\"executionCompletedTime\":\"2017-10-02T19:28:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:28:09Z\",\"scheduleRequest\":{\"id\":425,\"createDateTime\":\"2017-10-02T19:27:00Z\",\"optimizerDateTime\":\"2017-10-02T19:27:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:27:06Z\",\"optimizerTransactionId\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-02 19:28:00\\\",\\\"finishTime\\\":\\\"2017-10-02 19:29:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:28:00\\\",\\\"node\\\":[\\\"VNFName144dd\\\",\\\"VNFName244dd\\\",\\\"VNFName344dd\\\",\\\"VNFName444dd\\\"]}]\",\"scheduleId\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"scheduleName\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:28:56Z\",\"domainData\":[{\"id\":1273,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1274,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1275,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:27:11Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName244dd\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:28:00Z\",\"finishTime\":\"2017-10-02T19:29:50Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-02T19:28:00Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:27:59Z\",\"executionCompletedTime\":\"2017-10-02T19:28:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:28:09Z\",\"scheduleRequest\":{\"id\":425,\"createDateTime\":\"2017-10-02T19:27:00Z\",\"optimizerDateTime\":\"2017-10-02T19:27:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:27:06Z\",\"optimizerTransactionId\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-02 19:28:00\\\",\\\"finishTime\\\":\\\"2017-10-02 19:29:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:28:00\\\",\\\"node\\\":[\\\"VNFName144dd\\\",\\\"VNFName244dd\\\",\\\"VNFName344dd\\\",\\\"VNFName444dd\\\"]}]\",\"scheduleId\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"scheduleName\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:28:56Z\",\"domainData\":[{\"id\":1273,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1274,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1275,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:27:11Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName344dd\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:28:00Z\",\"finishTime\":\"2017-10-02T19:29:50Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-02T19:28:00Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:27:59Z\",\"executionCompletedTime\":\"2017-10-02T19:28:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:28:09Z\",\"scheduleRequest\":{\"id\":425,\"createDateTime\":\"2017-10-02T19:27:00Z\",\"optimizerDateTime\":\"2017-10-02T19:27:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:27:06Z\",\"optimizerTransactionId\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-02 19:28:00\\\",\\\"finishTime\\\":\\\"2017-10-02 19:29:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:28:00\\\",\\\"node\\\":[\\\"VNFName144dd\\\",\\\"VNFName244dd\\\",\\\"VNFName344dd\\\",\\\"VNFName444dd\\\"]}]\",\"scheduleId\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"scheduleName\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:28:56Z\",\"domainData\":[{\"id\":1273,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1274,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1275,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:27:11Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName444dd\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:28:00Z\",\"finishTime\":\"2017-10-02T19:29:50Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-02T19:28:00Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:27:59Z\",\"executionCompletedTime\":\"2017-10-02T19:28:09Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:28:09Z\",\"scheduleRequest\":{\"id\":425,\"createDateTime\":\"2017-10-02T19:27:00Z\",\"optimizerDateTime\":\"2017-10-02T19:27:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:27:06Z\",\"optimizerTransactionId\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-02 19:28:00\\\",\\\"finishTime\\\":\\\"2017-10-02 19:29:50\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:28:00\\\",\\\"node\\\":[\\\"VNFName144dd\\\",\\\"VNFName244dd\\\",\\\"VNFName344dd\\\",\\\"VNFName444dd\\\"]}]\",\"scheduleId\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"scheduleName\":\"654e859a-02c1-4ad9-ad44-66f0b6d144dd\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:28:56Z\",\"domainData\":[{\"id\":1273,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1274,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1275,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:27:11Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-02T19:29:06Z\",\"executionCompletedTime\":\"2017-10-02T19:29:16Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:29:16Z\",\"scheduleRequest\":{\"id\":426,\"createDateTime\":\"2017-10-02T19:28:56Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"06752839-43d0-4acd-ba66-29f51f92350f\",\"scheduleId\":\"06752839-43d0-4acd-ba66-29f51f92350f\",\"scheduleName\":\"06752839-43d0-4acd-ba66-29f51f92350f\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:29:59Z\",\"domainData\":[{\"id\":1276,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1277,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1278,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1097c\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-02T19:30:06Z\",\"executionCompletedTime\":\"2017-10-02T19:30:16Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:30:16Z\",\"scheduleRequest\":{\"id\":427,\"createDateTime\":\"2017-10-02T19:29:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"scheduleId\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"scheduleName\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:30:57Z\",\"domainData\":[{\"id\":1279,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1280,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1281,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2097c\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-02T19:30:06Z\",\"executionCompletedTime\":\"2017-10-02T19:30:16Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:30:16Z\",\"scheduleRequest\":{\"id\":427,\"createDateTime\":\"2017-10-02T19:29:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"scheduleId\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"scheduleName\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:30:57Z\",\"domainData\":[{\"id\":1279,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1280,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1281,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3097c\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-02T19:30:06Z\",\"executionCompletedTime\":\"2017-10-02T19:30:16Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:30:16Z\",\"scheduleRequest\":{\"id\":427,\"createDateTime\":\"2017-10-02T19:29:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"scheduleId\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"scheduleName\":\"fd1151af-4848-4be5-94e5-4086e7f1097c\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:30:57Z\",\"domainData\":[{\"id\":1279,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1280,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1281,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0424c6\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-02T19:31:59Z\",\"finishTime\":\"2017-10-02T19:33:49Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T19:31:59Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":428,\"createDateTime\":\"2017-10-02T19:30:59Z\",\"optimizerDateTime\":\"2017-10-02T19:31:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:31:06Z\",\"optimizerTransactionId\":\"ee473408-9bf0-4c65-8498-b79a816b24c6\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 19:31:59\\\",\\\"finishTime\\\":\\\"2017-10-02 19:33:49\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:31:59\\\",\\\"node\\\":[\\\"ZRDM1MMSC0424c6\\\"]}]\",\"scheduleId\":\"ee473408-9bf0-4c65-8498-b79a816b24c6\",\"scheduleName\":\"ee473408-9bf0-4c65-8498-b79a816b24c6\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1282,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1283,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1284,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:31:10Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":429,\"createDateTime\":\"2017-10-02T19:31:10Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"af71ca24-8ea6-4223-b08c-29207520a9bb\",\"scheduleId\":\"af71ca24-8ea6-4223-b08c-29207520a9bb\",\"scheduleName\":\"af71ca24-8ea6-4223-b08c-29207520a9bb\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:31:10Z\",\"domainData\":[{\"id\":1285,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1286,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1287,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":430,\"createDateTime\":\"2017-10-02T19:31:16Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5cda583d-9e55-4691-a217-22d471f2f908\",\"scheduleId\":\"5cda583d-9e55-4691-a217-22d471f2f908\",\"scheduleName\":\"5cda583d-9e55-4691-a217-22d471f2f908\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:31:17Z\",\"domainData\":[{\"id\":1288,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1289,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1290,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":431,\"createDateTime\":\"2017-10-02T19:31:19Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"aa7aa8d4-c448-421e-95a4-857de7210a09\",\"scheduleId\":\"aa7aa8d4-c448-421e-95a4-857de7210a09\",\"scheduleName\":\"aa7aa8d4-c448-421e-95a4-857de7210a09\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:31:20Z\",\"domainData\":[{\"id\":1291,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1292,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1293,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-02T19:31:26Z\",\"executionCompletedTime\":\"2017-10-02T19:31:36Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:31:36Z\",\"scheduleRequest\":{\"id\":432,\"createDateTime\":\"2017-10-02T19:31:25Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"91d2015e-a24f-488f-b000-723a61c20b81\",\"scheduleId\":\"91d2015e-a24f-488f-b000-723a61c20b81\",\"scheduleName\":\"91d2015e-a24f-488f-b000-723a61c20b81\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:31:57Z\",\"domainData\":[{\"id\":1294,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1295,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1296,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04bec1\",\"vnfId\":\"\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-02T19:32:57Z\",\"finishTime\":\"2017-10-02T19:34:47Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-02T19:32:57Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"dispatchTime\":\"2017-10-02T19:32:56Z\",\"executionCompletedTime\":\"2017-10-02T19:33:06Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-02T19:33:06Z\",\"scheduleRequest\":{\"id\":433,\"createDateTime\":\"2017-10-02T19:31:57Z\",\"optimizerDateTime\":\"2017-10-02T19:32:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-02T19:32:06Z\",\"optimizerTransactionId\":\"89798307-ad50-4f9c-9798-64d9b637bec1\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-02 19:32:57\\\",\\\"finishTime\\\":\\\"2017-10-02 19:34:47\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-02 19:32:57\\\",\\\"node\\\":[\\\"ZRDM1MMSC04bec1\\\"]}]\",\"scheduleId\":\"89798307-ad50-4f9c-9798-64d9b637bec1\",\"scheduleName\":\"89798307-ad50-4f9c-9798-64d9b637bec1\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-02T19:33:59Z\",\"domainData\":[{\"id\":1297,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1298,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1299,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-02T19:32:07Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":434,\"createDateTime\":\"2017-10-03T15:28:47Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"76ce8aed-2df1-4e3f-9faf-c526ddb932b1\",\"scheduleId\":\"76ce8aed-2df1-4e3f-9faf-c526ddb932b1\",\"scheduleName\":\"76ce8aed-2df1-4e3f-9faf-c526ddb932b1\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-03T15:28:48Z\",\"domainData\":[{\"id\":1300,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1301,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1302,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":435,\"createDateTime\":\"2017-10-03T15:28:51Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d91abb5e-7bd9-41cf-aced-72bdae39fdcd\",\"scheduleId\":\"d91abb5e-7bd9-41cf-aced-72bdae39fdcd\",\"scheduleName\":\"d91abb5e-7bd9-41cf-aced-72bdae39fdcd\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-03T15:28:51Z\",\"domainData\":[{\"id\":1303,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1304,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1305,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":436,\"createDateTime\":\"2017-10-03T15:28:54Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d86eb47a-6693-4176-93d5-4d5e762abee3\",\"scheduleId\":\"d86eb47a-6693-4176-93d5-4d5e762abee3\",\"scheduleName\":\"d86eb47a-6693-4176-93d5-4d5e762abee3\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-03T15:28:55Z\",\"domainData\":[{\"id\":1306,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1307,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1308,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":437,\"createDateTime\":\"2017-10-03T15:30:11Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a14ddc20-ee79-4def-a794-6ec901a32bb1\",\"scheduleId\":\"a14ddc20-ee79-4def-a794-6ec901a32bb1\",\"scheduleName\":\"a14ddc20-ee79-4def-a794-6ec901a32bb1\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-03T15:30:11Z\",\"domainData\":[{\"id\":1309,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1310,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1311,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":438,\"createDateTime\":\"2017-10-03T15:30:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9968453d-216b-47ba-a60f-2f635cc1cd93\",\"scheduleId\":\"9968453d-216b-47ba-a60f-2f635cc1cd93\",\"scheduleName\":\"9968453d-216b-47ba-a60f-2f635cc1cd93\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-03T15:30:15Z\",\"domainData\":[{\"id\":1312,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1313,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1314,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000000000001\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":439,\"createDateTime\":\"2017-10-03T15:30:17Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d7b896f0-8a4a-436a-b44f-9708eb832f0e\",\"scheduleId\":\"d7b896f0-8a4a-436a-b44f-9708eb832f0e\",\"scheduleName\":\"d7b896f0-8a4a-436a-b44f-9708eb832f0e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-03T15:30:18Z\",\"domainData\":[{\"id\":1315,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1316,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1317,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-04T15:36:58Z\",\"finishTime\":\"2017-10-04T15:38:48Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-10-04T15:36:58Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":440,\"createDateTime\":\"2017-10-04T15:31:59Z\",\"optimizerDateTime\":\"2017-10-04T15:32:06Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-04T15:32:06Z\",\"optimizerTransactionId\":\"df4ff2cc-a6a1-45fb-b2ef-c16afcf18c10\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-10-04 15:36:58\\\",\\\"finishTime\\\":\\\"2017-10-04 15:38:48\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-04 15:36:58\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"df4ff2cc-a6a1-45fb-b2ef-c16afcf18c10\",\"scheduleName\":\"df4ff2cc-a6a1-45fb-b2ef-c16afcf18c10\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1318,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1319,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1320,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Pending Schedule\",\"groupId\":\"group\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":442,\"createDateTime\":\"2017-10-04T17:52:44Z\",\"optimizerDateTime\":\"2017-10-04T17:52:48Z\",\"optimizerMessage\":\"\\n{\\n \\\"requestError\\\": {\\n \\\"serviceException\\\": {\\n \\\"messageId\\\": \\\"SVC0001\\\",\\n \\\"requestId\\\": \\\"CM-adabf2bd-4348-4e4c-a798-a2985f3e1d85\\\",\\n \\\"text\\\": \\\"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1: : 400 Client Error: Bad Request for url: https:\/\/peawiv9nspd01.pedc.sbc.com:8081\/pdp\/getConfig\\\",\\n \\\"variables\\\": [\\\"severity\\\", 400]\\n }\\n }\\n}\",\"optimizerStatus\":\"HTTP Status: 400\",\"optimizerAttemptsToSchedule\":1,\"optimizerTransactionId\":\"7bc93cad-29fe-4ead-a6b5-87b558a6afc7\",\"scheduleId\":\"7bc93cad-29fe-4ead-a6b5-87b558a6afc7\",\"scheduleName\":\"7bc93cad-29fe-4ead-a6b5-87b558a6afc7\",\"status\":\"Schedule Failed\",\"userId\":\"jf9860\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1324,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1325,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1326,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000066\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-04T18:26:19Z\",\"finishTime\":\"2017-10-04T18:28:09Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-10-04T18:26:19Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=57ae19e2-595d-4335-9176-caf752b8c623 VNF Name=ctsf0002v AOTS ChangeId=CHG000004000066 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":443,\"createDateTime\":\"2017-10-04T18:06:20Z\",\"optimizerDateTime\":\"2017-10-04T18:06:27Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-04T18:06:27Z\",\"optimizerTransactionId\":\"57ae19e2-595d-4335-9176-caf752b8c623\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-10-04 18:26:19\\\",\\\"finishTime\\\":\\\"2017-10-04 18:28:09\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-04 18:26:19\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"57ae19e2-595d-4335-9176-caf752b8c623\",\"scheduleName\":\"57ae19e2-595d-4335-9176-caf752b8c623\",\"status\":\"Completed with error(s)\",\"userId\":\"jf9860\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1327,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1328,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1329,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-04T18:06:51Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000065\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:07:08Z\",\"executionCompletedTime\":\"2017-10-04T18:07:19Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:07:19Z\",\"scheduleRequest\":{\"id\":444,\"createDateTime\":\"2017-10-04T18:06:29Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"58164a74-7eaa-42ce-80de-243497f13758\",\"scheduleId\":\"58164a74-7eaa-42ce-80de-243497f13758\",\"scheduleName\":\"58164a74-7eaa-42ce-80de-243497f13758\",\"status\":\"Deleted\",\"userId\":\"dr695h\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:07:37Z\",\"domainData\":[{\"id\":1330,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1331,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1332,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000067\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:07:57Z\",\"executionCompletedTime\":\"2017-10-04T18:08:07Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:08:07Z\",\"scheduleRequest\":{\"id\":445,\"createDateTime\":\"2017-10-04T18:07:37Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c59097c0-5176-42ba-b2ea-fdb2b45384e0\",\"scheduleId\":\"c59097c0-5176-42ba-b2ea-fdb2b45384e0\",\"scheduleName\":\"c59097c0-5176-42ba-b2ea-fdb2b45384e0\",\"status\":\"Deleted\",\"userId\":\"jf9860\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:08:36Z\",\"domainData\":[{\"id\":1333,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1334,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1335,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000068\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:08:57Z\",\"executionCompletedTime\":\"2017-10-04T18:09:07Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:09:07Z\",\"scheduleRequest\":{\"id\":446,\"createDateTime\":\"2017-10-04T18:08:36Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"db6b5616-102a-41f8-924a-53faea728791\",\"scheduleId\":\"db6b5616-102a-41f8-924a-53faea728791\",\"scheduleName\":\"db6b5616-102a-41f8-924a-53faea728791\",\"status\":\"Deleted\",\"userId\":\"ks6305\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:09:30Z\",\"domainData\":[{\"id\":1336,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1337,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1338,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000070\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:09:47Z\",\"executionCompletedTime\":\"2017-10-04T18:09:57Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:09:57Z\",\"scheduleRequest\":{\"id\":447,\"createDateTime\":\"2017-10-04T18:09:30Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"82450054-fa58-4ab6-aeac-2566fdc8a175\",\"scheduleId\":\"82450054-fa58-4ab6-aeac-2566fdc8a175\",\"scheduleName\":\"82450054-fa58-4ab6-aeac-2566fdc8a175\",\"status\":\"Deleted\",\"userId\":\"op317q\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:10:33Z\",\"domainData\":[{\"id\":1339,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1340,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1341,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000071\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:10:47Z\",\"executionCompletedTime\":\"2017-10-04T18:10:57Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:10:57Z\",\"scheduleRequest\":{\"id\":448,\"createDateTime\":\"2017-10-04T18:10:33Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d72b43ae-f16b-4c16-8859-cb06cb5916c0\",\"scheduleId\":\"d72b43ae-f16b-4c16-8859-cb06cb5916c0\",\"scheduleName\":\"d72b43ae-f16b-4c16-8859-cb06cb5916c0\",\"status\":\"Deleted\",\"userId\":\"pr937n\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:11:30Z\",\"domainData\":[{\"id\":1342,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1343,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1344,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000072\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:11:47Z\",\"executionCompletedTime\":\"2017-10-04T18:11:57Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:11:57Z\",\"scheduleRequest\":{\"id\":449,\"createDateTime\":\"2017-10-04T18:11:31Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2592ad87-2cc5-4565-a1c9-f4660b8341ff\",\"scheduleId\":\"2592ad87-2cc5-4565-a1c9-f4660b8341ff\",\"scheduleName\":\"2592ad87-2cc5-4565-a1c9-f4660b8341ff\",\"status\":\"Deleted\",\"userId\":\"sy6266\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:12:32Z\",\"domainData\":[{\"id\":1345,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1346,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1347,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000073\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:12:47Z\",\"executionCompletedTime\":\"2017-10-04T18:12:57Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:12:57Z\",\"scheduleRequest\":{\"id\":450,\"createDateTime\":\"2017-10-04T18:12:34Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"1db0f04b-5b74-4315-8f62-f5843e570511\",\"scheduleId\":\"1db0f04b-5b74-4315-8f62-f5843e570511\",\"scheduleName\":\"1db0f04b-5b74-4315-8f62-f5843e570511\",\"status\":\"Deleted\",\"userId\":\"sb5356\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:13:30Z\",\"domainData\":[{\"id\":1348,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1349,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1350,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000074\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:13:47Z\",\"executionCompletedTime\":\"2017-10-04T18:13:57Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:13:57Z\",\"scheduleRequest\":{\"id\":451,\"createDateTime\":\"2017-10-04T18:13:31Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"877e2ac4-b3c0-4267-877d-4cb62b69e341\",\"scheduleId\":\"877e2ac4-b3c0-4267-877d-4cb62b69e341\",\"scheduleName\":\"877e2ac4-b3c0-4267-877d-4cb62b69e341\",\"status\":\"Deleted\",\"userId\":\"ss5466\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:14:32Z\",\"domainData\":[{\"id\":1351,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1352,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1353,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000076\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-04T18:14:47Z\",\"executionCompletedTime\":\"2017-10-04T18:14:57Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-04T18:14:57Z\",\"scheduleRequest\":{\"id\":452,\"createDateTime\":\"2017-10-04T18:14:33Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5f601f72-31e0-4a37-b7ba-2037ff2b45da\",\"scheduleId\":\"5f601f72-31e0-4a37-b7ba-2037ff2b45da\",\"scheduleName\":\"5f601f72-31e0-4a37-b7ba-2037ff2b45da\",\"status\":\"Deleted\",\"userId\":\"gf1868\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:15:34Z\",\"domainData\":[{\"id\":1354,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1355,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1356,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000078\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":454,\"createDateTime\":\"2017-10-04T18:25:20Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cd69bf78-cf71-46b3-ae91-a9959e0f5b6c\",\"scheduleId\":\"cd69bf78-cf71-46b3-ae91-a9959e0f5b6c\",\"scheduleName\":\"cd69bf78-cf71-46b3-ae91-a9959e0f5b6c\",\"status\":\"Cancelled\",\"userId\":\"dr695h\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:25:29Z\",\"domainData\":[{\"id\":1360,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1361,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1362,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000079\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":455,\"createDateTime\":\"2017-10-04T18:25:29Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"d704b5dd-960b-465c-a646-04e9c1b98c06\",\"scheduleId\":\"d704b5dd-960b-465c-a646-04e9c1b98c06\",\"scheduleName\":\"d704b5dd-960b-465c-a646-04e9c1b98c06\",\"status\":\"Cancelled\",\"userId\":\"jf9860\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:25:36Z\",\"domainData\":[{\"id\":1363,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1364,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1365,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000080\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":456,\"createDateTime\":\"2017-10-04T18:25:36Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"187995fa-43c3-43ee-b0dd-76497410245b\",\"scheduleId\":\"187995fa-43c3-43ee-b0dd-76497410245b\",\"scheduleName\":\"187995fa-43c3-43ee-b0dd-76497410245b\",\"status\":\"Cancelled\",\"userId\":\"ks6305\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:25:45Z\",\"domainData\":[{\"id\":1366,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1367,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1368,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000081\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":457,\"createDateTime\":\"2017-10-04T18:25:46Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"095a6581-1b2c-43b7-93f1-0a54bd904cf8\",\"scheduleId\":\"095a6581-1b2c-43b7-93f1-0a54bd904cf8\",\"scheduleName\":\"095a6581-1b2c-43b7-93f1-0a54bd904cf8\",\"status\":\"Cancelled\",\"userId\":\"op317q\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:25:55Z\",\"domainData\":[{\"id\":1369,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1370,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1371,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000082\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":458,\"createDateTime\":\"2017-10-04T18:25:55Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e5ccfae3-ddc7-44f6-b608-edde6eec695a\",\"scheduleId\":\"e5ccfae3-ddc7-44f6-b608-edde6eec695a\",\"scheduleName\":\"e5ccfae3-ddc7-44f6-b608-edde6eec695a\",\"status\":\"Cancelled\",\"userId\":\"pr937n\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:26:03Z\",\"domainData\":[{\"id\":1372,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1373,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1374,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000083\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":459,\"createDateTime\":\"2017-10-04T18:26:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"fd14fbc9-499e-488d-83d1-f07e0a8d3e9e\",\"scheduleId\":\"fd14fbc9-499e-488d-83d1-f07e0a8d3e9e\",\"scheduleName\":\"fd14fbc9-499e-488d-83d1-f07e0a8d3e9e\",\"status\":\"Cancelled\",\"userId\":\"sy6266\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:26:13Z\",\"domainData\":[{\"id\":1375,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1376,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1377,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000084\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":460,\"createDateTime\":\"2017-10-04T18:26:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cc6045ef-f64d-457b-a37c-bf8ab68e1ef4\",\"scheduleId\":\"cc6045ef-f64d-457b-a37c-bf8ab68e1ef4\",\"scheduleName\":\"cc6045ef-f64d-457b-a37c-bf8ab68e1ef4\",\"status\":\"Cancelled\",\"userId\":\"sb5356\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:26:21Z\",\"domainData\":[{\"id\":1378,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1379,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1380,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000085\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":461,\"createDateTime\":\"2017-10-04T18:26:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"8e3f1851-de2a-4d57-9df2-666363b16a29\",\"scheduleId\":\"8e3f1851-de2a-4d57-9df2-666363b16a29\",\"scheduleName\":\"8e3f1851-de2a-4d57-9df2-666363b16a29\",\"status\":\"Cancelled\",\"userId\":\"ss5466\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:26:29Z\",\"domainData\":[{\"id\":1381,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1382,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1383,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000086\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":462,\"createDateTime\":\"2017-10-04T18:26:29Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c364330b-5535-4256-9b9a-3a5bd019e007\",\"scheduleId\":\"c364330b-5535-4256-9b9a-3a5bd019e007\",\"scheduleName\":\"c364330b-5535-4256-9b9a-3a5bd019e007\",\"status\":\"Cancelled\",\"userId\":\"gf1868\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:26:38Z\",\"domainData\":[{\"id\":1384,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1385,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1386,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000087\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":464,\"createDateTime\":\"2017-10-04T18:26:40Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b894b160-cf4e-4a83-a89d-39a516d45e88\",\"scheduleId\":\"b894b160-cf4e-4a83-a89d-39a516d45e88\",\"scheduleName\":\"b894b160-cf4e-4a83-a89d-39a516d45e88\",\"status\":\"Cancelled\",\"userId\":\"cr057g\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:26:49Z\",\"domainData\":[{\"id\":1390,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1391,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1392,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000088\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":465,\"createDateTime\":\"2017-10-04T18:26:49Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"da18992b-f1ff-400b-a3dd-710fc40514bd\",\"scheduleId\":\"da18992b-f1ff-400b-a3dd-710fc40514bd\",\"scheduleName\":\"da18992b-f1ff-400b-a3dd-710fc40514bd\",\"status\":\"Cancelled\",\"userId\":\"hb6269\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:26:56Z\",\"domainData\":[{\"id\":1393,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1394,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1395,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000089\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":466,\"createDateTime\":\"2017-10-04T18:26:56Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5cca91c8-de5a-47f8-9e59-459a8b0eaa3d\",\"scheduleId\":\"5cca91c8-de5a-47f8-9e59-459a8b0eaa3d\",\"scheduleName\":\"5cca91c8-de5a-47f8-9e59-459a8b0eaa3d\",\"status\":\"Cancelled\",\"userId\":\"ra5425\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:27:04Z\",\"domainData\":[{\"id\":1396,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1397,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1398,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000091\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-04T18:52:44Z\",\"finishTime\":\"2017-10-04T18:54:34Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-10-04T18:52:44Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=edcb2836-e14d-45fd-b0dc-1aadbc8a2daa VNF Name=ctsf0002v AOTS ChangeId=CHG000004000091 Status=Closed Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":467,\"createDateTime\":\"2017-10-04T18:32:45Z\",\"optimizerDateTime\":\"2017-10-04T18:32:47Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-04T18:32:47Z\",\"optimizerTransactionId\":\"edcb2836-e14d-45fd-b0dc-1aadbc8a2daa\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-10-04 18:52:44\\\",\\\"finishTime\\\":\\\"2017-10-04 18:54:34\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-04 18:52:44\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"edcb2836-e14d-45fd-b0dc-1aadbc8a2daa\",\"scheduleName\":\"edcb2836-e14d-45fd-b0dc-1aadbc8a2daa\",\"status\":\"Completed with error(s)\",\"userId\":\"jf9860\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1399,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1400,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1401,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-04T18:33:15Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-04T18:58:09Z\",\"finishTime\":\"2017-10-04T18:59:59Z\",\"groupId\":\"group\",\"lastInstanceStartTime\":\"2017-10-04T18:58:09Z\",\"policyId\":\"SNIRO_CM_1710.TimeLimitAndVerticalTopology_v2_split_1\",\"scheduleRequest\":{\"id\":468,\"createDateTime\":\"2017-10-04T18:38:09Z\",\"optimizerDateTime\":\"2017-10-04T18:38:17Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-04T18:38:17Z\",\"optimizerTransactionId\":\"2ef7a76e-8cd5-4bd4-8cc0-f3745866d49f\",\"schedule\":\"[{\\\"groupId\\\":\\\"group\\\",\\\"startTime\\\":\\\"2017-10-04 18:58:09\\\",\\\"finishTime\\\":\\\"2017-10-04 18:59:59\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-04 18:58:09\\\",\\\"node\\\":[\\\"ctsf0002v\\\"]}]\",\"scheduleId\":\"2ef7a76e-8cd5-4bd4-8cc0-f3745866d49f\",\"scheduleName\":\"2ef7a76e-8cd5-4bd4-8cc0-f3745866d49f\",\"status\":\"Pending Approval\",\"userId\":\"hw3215\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1402,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": \\\"True\\\"}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": \\\"False\\\"}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"lcpCloudRegionId\\\": \\\"mdt1\\\", \\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\"}}]}\"},{\"id\":1403,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1404,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000093\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":469,\"createDateTime\":\"2017-10-04T18:53:06Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b4512b60-eab1-473f-a1d0-0ddbf8fbf67a\",\"scheduleId\":\"b4512b60-eab1-473f-a1d0-0ddbf8fbf67a\",\"scheduleName\":\"b4512b60-eab1-473f-a1d0-0ddbf8fbf67a\",\"status\":\"Cancelled\",\"userId\":\"dr695h\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:53:16Z\",\"domainData\":[{\"id\":1405,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1406,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1407,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000094\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":470,\"createDateTime\":\"2017-10-04T18:53:16Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2a24939a-34a2-4ee1-81a8-a906d06ec082\",\"scheduleId\":\"2a24939a-34a2-4ee1-81a8-a906d06ec082\",\"scheduleName\":\"2a24939a-34a2-4ee1-81a8-a906d06ec082\",\"status\":\"Cancelled\",\"userId\":\"jf9860\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:53:24Z\",\"domainData\":[{\"id\":1408,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1409,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1410,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000095\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":471,\"createDateTime\":\"2017-10-04T18:53:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cb05dbff-0fca-4f84-9a6f-e7a55ca77c9a\",\"scheduleId\":\"cb05dbff-0fca-4f84-9a6f-e7a55ca77c9a\",\"scheduleName\":\"cb05dbff-0fca-4f84-9a6f-e7a55ca77c9a\",\"status\":\"Cancelled\",\"userId\":\"ks6305\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:53:31Z\",\"domainData\":[{\"id\":1411,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1412,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1413,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000096\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":472,\"createDateTime\":\"2017-10-04T18:53:31Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4eb4f8a9-9c22-4026-82b9-e4e430d40122\",\"scheduleId\":\"4eb4f8a9-9c22-4026-82b9-e4e430d40122\",\"scheduleName\":\"4eb4f8a9-9c22-4026-82b9-e4e430d40122\",\"status\":\"Cancelled\",\"userId\":\"op317q\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:53:38Z\",\"domainData\":[{\"id\":1414,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1415,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1416,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000097\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":473,\"createDateTime\":\"2017-10-04T18:53:38Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a6a72778-97f0-481b-a700-6807b4581b36\",\"scheduleId\":\"a6a72778-97f0-481b-a700-6807b4581b36\",\"scheduleName\":\"a6a72778-97f0-481b-a700-6807b4581b36\",\"status\":\"Cancelled\",\"userId\":\"pr937n\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:53:46Z\",\"domainData\":[{\"id\":1417,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1418,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1419,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000098\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":474,\"createDateTime\":\"2017-10-04T18:53:46Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cbb93537-0333-4a14-99bc-60694e4193e5\",\"scheduleId\":\"cbb93537-0333-4a14-99bc-60694e4193e5\",\"scheduleName\":\"cbb93537-0333-4a14-99bc-60694e4193e5\",\"status\":\"Cancelled\",\"userId\":\"sy6266\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:53:53Z\",\"domainData\":[{\"id\":1420,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1421,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1422,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000099\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":475,\"createDateTime\":\"2017-10-04T18:53:53Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0fb2897e-6148-4a9d-9161-e6613f02828f\",\"scheduleId\":\"0fb2897e-6148-4a9d-9161-e6613f02828f\",\"scheduleName\":\"0fb2897e-6148-4a9d-9161-e6613f02828f\",\"status\":\"Cancelled\",\"userId\":\"sb5356\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:54:00Z\",\"domainData\":[{\"id\":1423,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1424,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1425,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000100\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":476,\"createDateTime\":\"2017-10-04T18:54:00Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"4553e5b6-a875-4d94-8180-5ca64e38b2dd\",\"scheduleId\":\"4553e5b6-a875-4d94-8180-5ca64e38b2dd\",\"scheduleName\":\"4553e5b6-a875-4d94-8180-5ca64e38b2dd\",\"status\":\"Cancelled\",\"userId\":\"ss5466\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:54:07Z\",\"domainData\":[{\"id\":1426,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1427,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1428,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000101\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":477,\"createDateTime\":\"2017-10-04T18:54:07Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"daa4baf4-19bd-46cb-b5ed-510989ca6dbb\",\"scheduleId\":\"daa4baf4-19bd-46cb-b5ed-510989ca6dbb\",\"scheduleName\":\"daa4baf4-19bd-46cb-b5ed-510989ca6dbb\",\"status\":\"Cancelled\",\"userId\":\"gf1868\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:54:14Z\",\"domainData\":[{\"id\":1429,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1430,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1431,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000102\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":479,\"createDateTime\":\"2017-10-04T18:54:16Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b5ac9e31-1c6c-4b7c-a88c-b70f5c2d283c\",\"scheduleId\":\"b5ac9e31-1c6c-4b7c-a88c-b70f5c2d283c\",\"scheduleName\":\"b5ac9e31-1c6c-4b7c-a88c-b70f5c2d283c\",\"status\":\"Cancelled\",\"userId\":\"cr057g\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:54:23Z\",\"domainData\":[{\"id\":1435,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1436,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1437,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000103\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":480,\"createDateTime\":\"2017-10-04T18:54:24Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"5d765113-b4a6-4de8-9c44-4435fb6317a2\",\"scheduleId\":\"5d765113-b4a6-4de8-9c44-4435fb6317a2\",\"scheduleName\":\"5d765113-b4a6-4de8-9c44-4435fb6317a2\",\"status\":\"Cancelled\",\"userId\":\"hb6269\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:54:30Z\",\"domainData\":[{\"id\":1438,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1439,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1440,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000104\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":481,\"createDateTime\":\"2017-10-04T18:54:30Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"253758bf-a396-49e5-bf90-4a37125d5921\",\"scheduleId\":\"253758bf-a396-49e5-bf90-4a37125d5921\",\"scheduleName\":\"253758bf-a396-49e5-bf90-4a37125d5921\",\"status\":\"Cancelled\",\"userId\":\"ra5425\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-04T18:54:37Z\",\"domainData\":[{\"id\":1441,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1442,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1443,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000460\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":482,\"createDateTime\":\"2017-10-05T15:41:28Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3569b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleId\":\"3569b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1444,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1445,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1446,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000461\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":482,\"createDateTime\":\"2017-10-05T15:41:28Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3569b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleId\":\"3569b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1444,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1445,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1446,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000464\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":483,\"createDateTime\":\"2017-10-05T15:56:33Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"43ea0e8e-d87e-468e-a244-643e327dac6d\",\"scheduleId\":\"43ea0e8e-d87e-468e-a244-643e327dac6d\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1447,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1448,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1449,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000465\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":483,\"createDateTime\":\"2017-10-05T15:56:33Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"43ea0e8e-d87e-468e-a244-643e327dac6d\",\"scheduleId\":\"43ea0e8e-d87e-468e-a244-643e327dac6d\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1447,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1448,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1449,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000468\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":484,\"createDateTime\":\"2017-10-05T15:59:03Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"74f923f1-b83a-4c79-9fa8-b82823f21327\",\"scheduleId\":\"74f923f1-b83a-4c79-9fa8-b82823f21327\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1450,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1451,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1452,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000469\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":484,\"createDateTime\":\"2017-10-05T15:59:03Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"74f923f1-b83a-4c79-9fa8-b82823f21327\",\"scheduleId\":\"74f923f1-b83a-4c79-9fa8-b82823f21327\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1450,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1451,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1452,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000472\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":485,\"createDateTime\":\"2017-10-05T16:03:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e8b05c46-e803-41fe-8285-81f3ec814383\",\"scheduleId\":\"e8b05c46-e803-41fe-8285-81f3ec814383\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1453,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1454,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1455,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000473\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":485,\"createDateTime\":\"2017-10-05T16:03:04Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e8b05c46-e803-41fe-8285-81f3ec814383\",\"scheduleId\":\"e8b05c46-e803-41fe-8285-81f3ec814383\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1453,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1454,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1455,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000476\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":486,\"createDateTime\":\"2017-10-05T16:13:55Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"1119b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleId\":\"1119b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1456,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1457,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1458,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000477\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":486,\"createDateTime\":\"2017-10-05T16:13:55Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"1119b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleId\":\"1119b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1456,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1457,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1458,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000478\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":487,\"createDateTime\":\"2017-10-05T16:15:28Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3791b8a5-2fb1-46e8-82ac-d8dd996cb345\",\"scheduleId\":\"3791b8a5-2fb1-46e8-82ac-d8dd996cb345\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1459,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1460,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1461,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000479\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":487,\"createDateTime\":\"2017-10-05T16:15:28Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3791b8a5-2fb1-46e8-82ac-d8dd996cb345\",\"scheduleId\":\"3791b8a5-2fb1-46e8-82ac-d8dd996cb345\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1459,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1460,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1461,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000480\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":488,\"createDateTime\":\"2017-10-05T16:18:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b03f0b71-af1a-4cff-875f-675ce3e144d8\",\"scheduleId\":\"b03f0b71-af1a-4cff-875f-675ce3e144d8\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1462,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1463,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1464,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000481\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":488,\"createDateTime\":\"2017-10-05T16:18:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b03f0b71-af1a-4cff-875f-675ce3e144d8\",\"scheduleId\":\"b03f0b71-af1a-4cff-875f-675ce3e144d8\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1462,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1463,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1464,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000494\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":489,\"createDateTime\":\"2017-10-06T00:58:41Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cfe61512-5d8e-4e30-888e-8f3608c7b9bd\",\"scheduleId\":\"cfe61512-5d8e-4e30-888e-8f3608c7b9bd\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1465,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1466,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1467,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000496\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":489,\"createDateTime\":\"2017-10-06T00:58:41Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cfe61512-5d8e-4e30-888e-8f3608c7b9bd\",\"scheduleId\":\"cfe61512-5d8e-4e30-888e-8f3608c7b9bd\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1465,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1466,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1467,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000495\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":490,\"createDateTime\":\"2017-10-06T00:59:58Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9c74e749-be65-40af-932e-8309a04f4b9a\",\"scheduleId\":\"9c74e749-be65-40af-932e-8309a04f4b9a\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1468,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1469,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1470,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000497\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":490,\"createDateTime\":\"2017-10-06T00:59:58Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"9c74e749-be65-40af-932e-8309a04f4b9a\",\"scheduleId\":\"9c74e749-be65-40af-932e-8309a04f4b9a\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1468,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1469,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1470,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000498\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":491,\"createDateTime\":\"2017-10-06T01:11:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b747beb5-615e-4007-a437-64b690c55401\",\"scheduleId\":\"b747beb5-615e-4007-a437-64b690c55401\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1471,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1472,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1473,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000499\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":491,\"createDateTime\":\"2017-10-06T01:11:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b747beb5-615e-4007-a437-64b690c55401\",\"scheduleId\":\"b747beb5-615e-4007-a437-64b690c55401\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1471,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1472,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1473,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000500\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":492,\"createDateTime\":\"2017-10-06T01:17:46Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e3de0d65-e16f-4e40-967f-34c7eea35350\",\"scheduleId\":\"e3de0d65-e16f-4e40-967f-34c7eea35350\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1474,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1475,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1476,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000501\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":492,\"createDateTime\":\"2017-10-06T01:17:46Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e3de0d65-e16f-4e40-967f-34c7eea35350\",\"scheduleId\":\"e3de0d65-e16f-4e40-967f-34c7eea35350\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1474,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1475,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1476,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000502\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":493,\"createDateTime\":\"2017-10-06T01:25:16Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"eea84bda-5150-4a78-974c-397a3bdc8aae\",\"scheduleId\":\"eea84bda-5150-4a78-974c-397a3bdc8aae\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1477,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1478,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1479,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000503\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":493,\"createDateTime\":\"2017-10-06T01:25:16Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"eea84bda-5150-4a78-974c-397a3bdc8aae\",\"scheduleId\":\"eea84bda-5150-4a78-974c-397a3bdc8aae\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1477,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1478,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1479,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000504\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":494,\"createDateTime\":\"2017-10-06T01:56:27Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e3de0d65-e16f-4e40-967f-34c7eea35361\",\"scheduleId\":\"e3de0d65-e16f-4e40-967f-34c7eea35361\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1480,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1481,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1482,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000505\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":494,\"createDateTime\":\"2017-10-06T01:56:27Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"e3de0d65-e16f-4e40-967f-34c7eea35361\",\"scheduleId\":\"e3de0d65-e16f-4e40-967f-34c7eea35361\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1480,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1481,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1482,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000604\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":495,\"createDateTime\":\"2017-10-06T13:22:33Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c87fed4a-48bb-478c-8d7a-214be0c33e49\",\"scheduleId\":\"c87fed4a-48bb-478c-8d7a-214be0c33e49\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1483,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1484,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1485,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000605\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":495,\"createDateTime\":\"2017-10-06T13:22:33Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c87fed4a-48bb-478c-8d7a-214be0c33e49\",\"scheduleId\":\"c87fed4a-48bb-478c-8d7a-214be0c33e49\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1483,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1484,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1485,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000607\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":496,\"createDateTime\":\"2017-10-06T13:31:03Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ee7cf787-3428-40b5-b6fc-222c81d30cb0\",\"scheduleId\":\"ee7cf787-3428-40b5-b6fc-222c81d30cb0\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1486,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1487,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1488,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000608\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":496,\"createDateTime\":\"2017-10-06T13:31:03Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ee7cf787-3428-40b5-b6fc-222c81d30cb0\",\"scheduleId\":\"ee7cf787-3428-40b5-b6fc-222c81d30cb0\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1486,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1487,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1488,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000615\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":497,\"createDateTime\":\"2017-10-06T14:47:26Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3333b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleId\":\"3333b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1489,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1490,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1491,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000616\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":497,\"createDateTime\":\"2017-10-06T14:47:26Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"3333b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleId\":\"3333b875-d40e-4adb-a288-a74f4b59ec1c\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1489,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1490,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1491,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000620\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":498,\"createDateTime\":\"2017-10-06T15:23:39Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bf8726cf-714e-4eb7-9b0f-58f06f765fe4\",\"scheduleId\":\"bf8726cf-714e-4eb7-9b0f-58f06f765fe4\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1492,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1493,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1494,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000621\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":498,\"createDateTime\":\"2017-10-06T15:23:39Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"bf8726cf-714e-4eb7-9b0f-58f06f765fe4\",\"scheduleId\":\"bf8726cf-714e-4eb7-9b0f-58f06f765fe4\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1492,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1493,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1494,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000622\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":499,\"createDateTime\":\"2017-10-06T15:25:35Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a3c03a59-1449-43e9-9e61-e7b8b977b564\",\"scheduleId\":\"a3c03a59-1449-43e9-9e61-e7b8b977b564\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1495,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1496,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1497,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000623\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":499,\"createDateTime\":\"2017-10-06T15:25:35Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a3c03a59-1449-43e9-9e61-e7b8b977b564\",\"scheduleId\":\"a3c03a59-1449-43e9-9e61-e7b8b977b564\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1495,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1496,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1497,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo415vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000626\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":500,\"createDateTime\":\"2017-10-06T15:35:48Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f2bf11b4-9f1a-46a0-b0c7-fd6ce8140379\",\"scheduleId\":\"f2bf11b4-9f1a-46a0-b0c7-fd6ce8140379\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1498,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1499,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1500,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"satmo455vbc\",\"status\":\"Queued for Dispatch\",\"aotsChangeId\":\"CHG000004000627\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"group1\",\"scheduleRequest\":{\"id\":500,\"createDateTime\":\"2017-10-06T15:35:48Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f2bf11b4-9f1a-46a0-b0c7-fd6ce8140379\",\"scheduleId\":\"f2bf11b4-9f1a-46a0-b0c7-fd6ce8140379\",\"scheduleName\":\"VnfUpgrade\/DWF\",\"status\":\"Scheduled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1498,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1499,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"},{\"id\":1500,\"name\":\"CallbackData\",\"value\":\"testing\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC04bccb\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000628\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T15:50:37Z\",\"finishTime\":\"2017-10-06T15:52:27Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-06T15:50:37Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=ad47fd1e-38ca-41e5-91c5-59f74545bccb VNF Name=ZRDM1MMSC04bccb AOTS ChangeId=CHG000004000628 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":501,\"createDateTime\":\"2017-10-06T15:49:42Z\",\"optimizerDateTime\":\"2017-10-06T15:49:47Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T15:49:47Z\",\"optimizerTransactionId\":\"ad47fd1e-38ca-41e5-91c5-59f74545bccb\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-06 15:50:37\\\",\\\"finishTime\\\":\\\"2017-10-06 15:52:27\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 15:50:37\\\",\\\"node\\\":[\\\"ZRDM1MMSC04bccb\\\"]}]\",\"scheduleId\":\"ad47fd1e-38ca-41e5-91c5-59f74545bccb\",\"scheduleName\":\"ad47fd1e-38ca-41e5-91c5-59f74545bccb\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1501,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1502,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1503,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T15:49:47Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0464dd\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000629\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T15:54:27Z\",\"finishTime\":\"2017-10-06T15:56:17Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-06T15:54:27Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=a9daca09-f4d0-4a6d-a5a9-38ee31e464dd VNF Name=ZRDM1MMSC0464dd AOTS ChangeId=CHG000004000629 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":502,\"createDateTime\":\"2017-10-06T15:53:28Z\",\"optimizerDateTime\":\"2017-10-06T15:53:37Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T15:53:37Z\",\"optimizerTransactionId\":\"a9daca09-f4d0-4a6d-a5a9-38ee31e464dd\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-06 15:54:27\\\",\\\"finishTime\\\":\\\"2017-10-06 15:56:17\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 15:54:27\\\",\\\"node\\\":[\\\"ZRDM1MMSC0464dd\\\"]}]\",\"scheduleId\":\"a9daca09-f4d0-4a6d-a5a9-38ee31e464dd\",\"scheduleName\":\"a9daca09-f4d0-4a6d-a5a9-38ee31e464dd\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1504,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1505,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1506,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T15:53:38Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC048e7f\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000634\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:02:03Z\",\"finishTime\":\"2017-10-06T17:03:53Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-06T17:02:03Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=e248cc0b-47bf-4e1e-9c7b-435d5b428e7f VNF Name=ZRDM1MMSC048e7f AOTS ChangeId=CHG000004000634 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":503,\"createDateTime\":\"2017-10-06T17:01:03Z\",\"optimizerDateTime\":\"2017-10-06T17:01:07Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:01:07Z\",\"optimizerTransactionId\":\"e248cc0b-47bf-4e1e-9c7b-435d5b428e7f\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-06 17:02:03\\\",\\\"finishTime\\\":\\\"2017-10-06 17:03:53\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:02:03\\\",\\\"node\\\":[\\\"ZRDM1MMSC048e7f\\\"]}]\",\"scheduleId\":\"e248cc0b-47bf-4e1e-9c7b-435d5b428e7f\",\"scheduleName\":\"e248cc0b-47bf-4e1e-9c7b-435d5b428e7f\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1507,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1508,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1509,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:01:08Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName12056\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000636\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:04:33Z\",\"finishTime\":\"2017-10-06T17:06:23Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-06T17:04:33Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=e23bf714-069c-43f5-97c9-870fee9b2056 VNF Name=VNFName12056 AOTS ChangeId=CHG000004000636 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":504,\"createDateTime\":\"2017-10-06T17:03:33Z\",\"optimizerDateTime\":\"2017-10-06T17:03:37Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:03:37Z\",\"optimizerTransactionId\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-06 17:04:33\\\",\\\"finishTime\\\":\\\"2017-10-06 17:06:23\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:04:33\\\",\\\"node\\\":[\\\"VNFName12056\\\",\\\"VNFName22056\\\",\\\"VNFName32056\\\"]}]\",\"scheduleId\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"scheduleName\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1510,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1511,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1512,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:03:39Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName22056\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000637\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:04:33Z\",\"finishTime\":\"2017-10-06T17:06:23Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-06T17:04:33Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=e23bf714-069c-43f5-97c9-870fee9b2056 VNF Name=VNFName22056 AOTS ChangeId=CHG000004000637 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":504,\"createDateTime\":\"2017-10-06T17:03:33Z\",\"optimizerDateTime\":\"2017-10-06T17:03:37Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:03:37Z\",\"optimizerTransactionId\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-06 17:04:33\\\",\\\"finishTime\\\":\\\"2017-10-06 17:06:23\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:04:33\\\",\\\"node\\\":[\\\"VNFName12056\\\",\\\"VNFName22056\\\",\\\"VNFName32056\\\"]}]\",\"scheduleId\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"scheduleName\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1510,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1511,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1512,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:03:39Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName32056\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000638\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:04:33Z\",\"finishTime\":\"2017-10-06T17:06:23Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-06T17:04:33Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=e23bf714-069c-43f5-97c9-870fee9b2056 VNF Name=VNFName32056 AOTS ChangeId=CHG000004000638 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":504,\"createDateTime\":\"2017-10-06T17:03:33Z\",\"optimizerDateTime\":\"2017-10-06T17:03:37Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:03:37Z\",\"optimizerTransactionId\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-06 17:04:33\\\",\\\"finishTime\\\":\\\"2017-10-06 17:06:23\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:04:33\\\",\\\"node\\\":[\\\"VNFName12056\\\",\\\"VNFName22056\\\",\\\"VNFName32056\\\"]}]\",\"scheduleId\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"scheduleName\":\"e23bf714-069c-43f5-97c9-870fee9b2056\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1510,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1511,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1512,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:03:39Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName129a4\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000639\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:07:22Z\",\"finishTime\":\"2017-10-06T17:09:12Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-06T17:07:22Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=9bd1bd57-f5b3-4977-b71b-43c6746b29a4 VNF Name=VNFName129a4 AOTS ChangeId=CHG000004000639 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":505,\"createDateTime\":\"2017-10-06T17:06:23Z\",\"optimizerDateTime\":\"2017-10-06T17:06:27Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:06:27Z\",\"optimizerTransactionId\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-06 17:07:22\\\",\\\"finishTime\\\":\\\"2017-10-06 17:09:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:07:22\\\",\\\"node\\\":[\\\"VNFName129a4\\\",\\\"VNFName229a4\\\",\\\"VNFName329a4\\\",\\\"VNFName429a4\\\"]}]\",\"scheduleId\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"scheduleName\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1513,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1514,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1515,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:06:28Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName229a4\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000640\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:07:22Z\",\"finishTime\":\"2017-10-06T17:09:12Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-06T17:07:22Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=9bd1bd57-f5b3-4977-b71b-43c6746b29a4 VNF Name=VNFName229a4 AOTS ChangeId=CHG000004000640 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":505,\"createDateTime\":\"2017-10-06T17:06:23Z\",\"optimizerDateTime\":\"2017-10-06T17:06:27Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:06:27Z\",\"optimizerTransactionId\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-06 17:07:22\\\",\\\"finishTime\\\":\\\"2017-10-06 17:09:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:07:22\\\",\\\"node\\\":[\\\"VNFName129a4\\\",\\\"VNFName229a4\\\",\\\"VNFName329a4\\\",\\\"VNFName429a4\\\"]}]\",\"scheduleId\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"scheduleName\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1513,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1514,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1515,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:06:28Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName329a4\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000641\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:07:22Z\",\"finishTime\":\"2017-10-06T17:09:12Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-06T17:07:22Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=9bd1bd57-f5b3-4977-b71b-43c6746b29a4 VNF Name=VNFName329a4 AOTS ChangeId=CHG000004000641 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":505,\"createDateTime\":\"2017-10-06T17:06:23Z\",\"optimizerDateTime\":\"2017-10-06T17:06:27Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:06:27Z\",\"optimizerTransactionId\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-06 17:07:22\\\",\\\"finishTime\\\":\\\"2017-10-06 17:09:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:07:22\\\",\\\"node\\\":[\\\"VNFName129a4\\\",\\\"VNFName229a4\\\",\\\"VNFName329a4\\\",\\\"VNFName429a4\\\"]}]\",\"scheduleId\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"scheduleName\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1513,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1514,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1515,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:06:28Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"VNFName429a4\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000642\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:07:22Z\",\"finishTime\":\"2017-10-06T17:09:12Z\",\"groupId\":\"Group1\",\"lastInstanceStartTime\":\"2017-10-06T17:07:22Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=9bd1bd57-f5b3-4977-b71b-43c6746b29a4 VNF Name=VNFName429a4 AOTS ChangeId=CHG000004000642 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":505,\"createDateTime\":\"2017-10-06T17:06:23Z\",\"optimizerDateTime\":\"2017-10-06T17:06:27Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:06:27Z\",\"optimizerTransactionId\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"schedule\":\"[{\\\"groupId\\\":\\\"Group1\\\",\\\"startTime\\\":\\\"2017-10-06 17:07:22\\\",\\\"finishTime\\\":\\\"2017-10-06 17:09:12\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:07:22\\\",\\\"node\\\":[\\\"VNFName129a4\\\",\\\"VNFName229a4\\\",\\\"VNFName329a4\\\",\\\"VNFName429a4\\\"]}]\",\"scheduleId\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"scheduleName\":\"9bd1bd57-f5b3-4977-b71b-43c6746b29a4\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1513,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1514,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1515,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:06:28Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000643\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-06T17:09:27Z\",\"executionCompletedTime\":\"2017-10-06T17:09:37Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-06T17:09:37Z\",\"scheduleRequest\":{\"id\":506,\"createDateTime\":\"2017-10-06T17:09:11Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0226821c-3f32-4001-b236-a9dc34414fe3\",\"scheduleId\":\"0226821c-3f32-4001-b236-a9dc34414fe3\",\"scheduleName\":\"0226821c-3f32-4001-b236-a9dc34414fe3\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:10:37Z\",\"domainData\":[{\"id\":1516,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1517,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1518,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName1a15d\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000644\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-06T17:11:07Z\",\"executionCompletedTime\":\"2017-10-06T17:11:17Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-06T17:11:17Z\",\"scheduleRequest\":{\"id\":507,\"createDateTime\":\"2017-10-06T17:10:37Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"scheduleId\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"scheduleName\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:11:37Z\",\"domainData\":[{\"id\":1519,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1520,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1521,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName2a15d\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000645\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-06T17:11:07Z\",\"executionCompletedTime\":\"2017-10-06T17:11:17Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-06T17:11:17Z\",\"scheduleRequest\":{\"id\":507,\"createDateTime\":\"2017-10-06T17:10:37Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"scheduleId\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"scheduleName\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:11:37Z\",\"domainData\":[{\"id\":1519,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1520,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1521,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"VNFName3a15d\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000647\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-06T17:11:07Z\",\"executionCompletedTime\":\"2017-10-06T17:11:17Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-06T17:11:17Z\",\"scheduleRequest\":{\"id\":507,\"createDateTime\":\"2017-10-06T17:10:37Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"scheduleId\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"scheduleName\":\"b430bfe0-0622-4a10-acc4-f958d56aa15d\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:11:37Z\",\"domainData\":[{\"id\":1519,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1520,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1521,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC0450d9\",\"vnfId\":\"\",\"status\":\"Pending Approval\",\"startTime\":\"2017-10-06T17:12:39Z\",\"finishTime\":\"2017-10-06T17:14:29Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-06T17:12:39Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"scheduleRequest\":{\"id\":508,\"createDateTime\":\"2017-10-06T17:11:39Z\",\"optimizerDateTime\":\"2017-10-06T17:11:47Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:11:47Z\",\"optimizerTransactionId\":\"83aec7bf-602f-49eb-9788-bbc33ac550d9\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-06 17:12:39\\\",\\\"finishTime\\\":\\\"2017-10-06 17:14:29\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:12:39\\\",\\\"node\\\":[\\\"ZRDM1MMSC0450d9\\\"]}]\",\"scheduleId\":\"83aec7bf-602f-49eb-9788-bbc33ac550d9\",\"scheduleName\":\"83aec7bf-602f-49eb-9788-bbc33ac550d9\",\"status\":\"Pending Approval\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1522,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1523,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1524,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:11:50Z\",\"status\":\"Rejected\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000648\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":509,\"createDateTime\":\"2017-10-06T17:11:50Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"575d2db3-5118-4ab0-b17a-147bf408c04e\",\"scheduleId\":\"575d2db3-5118-4ab0-b17a-147bf408c04e\",\"scheduleName\":\"575d2db3-5118-4ab0-b17a-147bf408c04e\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:11:58Z\",\"domainData\":[{\"id\":1525,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1526,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1527,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000649\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":510,\"createDateTime\":\"2017-10-06T17:12:03Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"c6be394b-3774-4102-a286-d2fad4757307\",\"scheduleId\":\"c6be394b-3774-4102-a286-d2fad4757307\",\"scheduleName\":\"c6be394b-3774-4102-a286-d2fad4757307\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:12:11Z\",\"domainData\":[{\"id\":1528,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1529,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1530,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000650\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":511,\"createDateTime\":\"2017-10-06T17:12:14Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a8f72a75-5c8c-4835-ba06-44d31641e667\",\"scheduleId\":\"a8f72a75-5c8c-4835-ba06-44d31641e667\",\"scheduleName\":\"a8f72a75-5c8c-4835-ba06-44d31641e667\",\"status\":\"Cancelled\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:12:21Z\",\"domainData\":[{\"id\":1531,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1532,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1533,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000651\",\"aotsStatus\":\"Closed\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"dispatchTime\":\"2017-10-06T17:12:37Z\",\"executionCompletedTime\":\"2017-10-06T17:12:47Z\",\"msoRequestId\":\"1c74b28f-8914-4e8d-a23e-de036ccf88be\",\"msoStatus\":\"COMPLETE\",\"msoMessage\":\"Vf Module has been created successfully.\",\"msoTime\":\"2017-10-06T17:12:47Z\",\"scheduleRequest\":{\"id\":512,\"createDateTime\":\"2017-10-06T17:12:27Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"46c448db-29bd-46d0-9f24-6b576d05b1a8\",\"scheduleId\":\"46c448db-29bd-46d0-9f24-6b576d05b1a8\",\"scheduleName\":\"46c448db-29bd-46d0-9f24-6b576d05b1a8\",\"status\":\"Deleted\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:13:32Z\",\"domainData\":[{\"id\":1534,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1535,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1536,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ZRDM1MMSC049641\",\"vnfId\":\"\",\"status\":\"Scheduling Failed\",\"aotsChangeId\":\"CHG000004000652\",\"aotsApprovalStatus\":\"Approved\",\"startTime\":\"2017-10-06T17:14:32Z\",\"finishTime\":\"2017-10-06T17:16:22Z\",\"groupId\":\"\",\"lastInstanceStartTime\":\"2017-10-06T17:14:32Z\",\"policyId\":\"SNIRO.TimeLimitAndVerticalTopology\",\"statusMessage\":\"CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=82a34af1-6a5b-4ecc-8a9e-653f38119641 VNF Name=ZRDM1MMSC049641 AOTS ChangeId=CHG000004000652 Status=Assigned Approval Status=Approval Required\",\"scheduleRequest\":{\"id\":513,\"createDateTime\":\"2017-10-06T17:13:32Z\",\"optimizerDateTime\":\"2017-10-06T17:13:37Z\",\"optimizerStatus\":\"Done.\",\"optimizerAttemptsToSchedule\":0,\"optimizerReturnDateTime\":\"2017-10-06T17:13:37Z\",\"optimizerTransactionId\":\"82a34af1-6a5b-4ecc-8a9e-653f38119641\",\"schedule\":\"[{\\\"groupId\\\":\\\"\\\",\\\"startTime\\\":\\\"2017-10-06 17:14:32\\\",\\\"finishTime\\\":\\\"2017-10-06 17:16:22\\\",\\\"latestInstanceStartTime\\\":\\\"2017-10-06 17:14:32\\\",\\\"node\\\":[\\\"ZRDM1MMSC049641\\\"]}]\",\"scheduleId\":\"82a34af1-6a5b-4ecc-8a9e-653f38119641\",\"scheduleName\":\"82a34af1-6a5b-4ecc-8a9e-653f38119641\",\"status\":\"Completed with error(s)\",\"userId\":\"su7376\",\"domain\":\"ChangeManagement\",\"domainData\":[{\"id\":1537,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1538,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1539,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[{\"approvalDateTime\":\"2017-10-06T17:13:38Z\",\"status\":\"Accepted\",\"userId\":\"jf9860\",\"approvalTypeId\":1}]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000653\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":514,\"createDateTime\":\"2017-10-06T17:18:49Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"ee1825b7-4268-4c88-8650-26db75a29a56\",\"scheduleId\":\"ee1825b7-4268-4c88-8650-26db75a29a56\",\"scheduleName\":\"ee1825b7-4268-4c88-8650-26db75a29a56\",\"status\":\"Cancelled\",\"userId\":\"dr695h\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:18:59Z\",\"domainData\":[{\"id\":1540,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1541,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1542,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000654\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":515,\"createDateTime\":\"2017-10-06T17:18:59Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"44f5b667-1532-4b09-a614-26600e2ad1c6\",\"scheduleId\":\"44f5b667-1532-4b09-a614-26600e2ad1c6\",\"scheduleName\":\"44f5b667-1532-4b09-a614-26600e2ad1c6\",\"status\":\"Cancelled\",\"userId\":\"jf9860\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:19:07Z\",\"domainData\":[{\"id\":1543,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1544,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1545,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000655\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":516,\"createDateTime\":\"2017-10-06T17:19:07Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"6449930d-27f1-4a43-86f3-4756afdf6836\",\"scheduleId\":\"6449930d-27f1-4a43-86f3-4756afdf6836\",\"scheduleName\":\"6449930d-27f1-4a43-86f3-4756afdf6836\",\"status\":\"Cancelled\",\"userId\":\"ks6305\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:19:15Z\",\"domainData\":[{\"id\":1546,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1547,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1548,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000656\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":517,\"createDateTime\":\"2017-10-06T17:19:15Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"f1c54b1b-eef0-40e2-ab54-cb6bab09f3f8\",\"scheduleId\":\"f1c54b1b-eef0-40e2-ab54-cb6bab09f3f8\",\"scheduleName\":\"f1c54b1b-eef0-40e2-ab54-cb6bab09f3f8\",\"status\":\"Cancelled\",\"userId\":\"op317q\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:19:23Z\",\"domainData\":[{\"id\":1549,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1550,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1551,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000657\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":518,\"createDateTime\":\"2017-10-06T17:19:23Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"542a6f62-7eb7-42d9-9d2e-201d240e5dfe\",\"scheduleId\":\"542a6f62-7eb7-42d9-9d2e-201d240e5dfe\",\"scheduleName\":\"542a6f62-7eb7-42d9-9d2e-201d240e5dfe\",\"status\":\"Cancelled\",\"userId\":\"pr937n\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:19:30Z\",\"domainData\":[{\"id\":1552,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1553,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1554,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000658\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":519,\"createDateTime\":\"2017-10-06T17:19:30Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"cfcd5631-b824-41a2-89c0-0dc98d8aabc3\",\"scheduleId\":\"cfcd5631-b824-41a2-89c0-0dc98d8aabc3\",\"scheduleName\":\"cfcd5631-b824-41a2-89c0-0dc98d8aabc3\",\"status\":\"Cancelled\",\"userId\":\"sy6266\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:19:38Z\",\"domainData\":[{\"id\":1555,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1556,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1557,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000659\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":520,\"createDateTime\":\"2017-10-06T17:19:39Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"a299ccc0-5f2c-484c-96f2-d1f92f179382\",\"scheduleId\":\"a299ccc0-5f2c-484c-96f2-d1f92f179382\",\"scheduleName\":\"a299ccc0-5f2c-484c-96f2-d1f92f179382\",\"status\":\"Cancelled\",\"userId\":\"sb5356\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:19:46Z\",\"domainData\":[{\"id\":1558,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1559,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1560,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000660\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":521,\"createDateTime\":\"2017-10-06T17:19:46Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"fb83362e-e822-469f-8cc1-a6cb8c42bbc0\",\"scheduleId\":\"fb83362e-e822-469f-8cc1-a6cb8c42bbc0\",\"scheduleName\":\"fb83362e-e822-469f-8cc1-a6cb8c42bbc0\",\"status\":\"Cancelled\",\"userId\":\"ss5466\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:19:54Z\",\"domainData\":[{\"id\":1561,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1562,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1563,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000661\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":522,\"createDateTime\":\"2017-10-06T17:19:54Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"62847135-0c67-4305-8a34-948c64c00e2a\",\"scheduleId\":\"62847135-0c67-4305-8a34-948c64c00e2a\",\"scheduleName\":\"62847135-0c67-4305-8a34-948c64c00e2a\",\"status\":\"Cancelled\",\"userId\":\"gf1868\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:20:03Z\",\"domainData\":[{\"id\":1564,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1565,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1566,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000662\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":524,\"createDateTime\":\"2017-10-06T17:20:05Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"2173cc42-ea4c-4a50-8b6b-6133e45405cc\",\"scheduleId\":\"2173cc42-ea4c-4a50-8b6b-6133e45405cc\",\"scheduleName\":\"2173cc42-ea4c-4a50-8b6b-6133e45405cc\",\"status\":\"Cancelled\",\"userId\":\"cr057g\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:20:13Z\",\"domainData\":[{\"id\":1570,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1571,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1572,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000663\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":525,\"createDateTime\":\"2017-10-06T17:20:13Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"0aa0f4ce-d5f0-4a70-9d24-7cdeac7841a3\",\"scheduleId\":\"0aa0f4ce-d5f0-4a70-9d24-7cdeac7841a3\",\"scheduleName\":\"0aa0f4ce-d5f0-4a70-9d24-7cdeac7841a3\",\"status\":\"Cancelled\",\"userId\":\"hb6269\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:20:21Z\",\"domainData\":[{\"id\":1573,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1574,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1575,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0},{\"vnfName\":\"ctsf0002v\",\"status\":\"Deleted\",\"aotsChangeId\":\"CHG000004000664\",\"aotsApprovalStatus\":\"Approved\",\"groupId\":\"\",\"scheduleRequest\":{\"id\":526,\"createDateTime\":\"2017-10-06T17:20:21Z\",\"optimizerAttemptsToSchedule\":0,\"optimizerTransactionId\":\"823ddea9-666b-4f10-af07-85e7c00d323d\",\"scheduleId\":\"823ddea9-666b-4f10-af07-85e7c00d323d\",\"scheduleName\":\"823ddea9-666b-4f10-af07-85e7c00d323d\",\"status\":\"Cancelled\",\"userId\":\"ra5425\",\"domain\":\"ChangeManagement\",\"deleteDateTime\":\"2017-10-06T17:20:28Z\",\"domainData\":[{\"id\":1576,\"name\":\"CallbackData\",\"value\":\"{\\\"requestDetails\\\": [{\\\"vnfInstanceId\\\": \\\"Test\\\", \\\"relatedInstanceList\\\": [{\\\"relatedInstance\\\": {\\\"instanceId\\\": \\\"{serviceInstanceId}\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"{parent service model name}\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff3514e3-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"service\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"9ebb1521-2e74-47a4-aac7-e71a79f73a79\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}}}], \\\"requestParameters\\\": {\\\"usePreload\\\": true}, \\\"requestInfo\\\": {\\\"source\\\": \\\"VID\\\", \\\"requestorId\\\": \\\"az2016\\\", \\\"suppressRollback\\\": false}, \\\"vnfName\\\": \\\"Name\\\", \\\"modelInfo\\\": {\\\"modelName\\\": \\\"vSAMP12\\\", \\\"modelVersion\\\": \\\"2.0\\\", \\\"modelInvariantId\\\": \\\"ff5256d1-5a33-55df-13ab-12abad84e7ff\\\", \\\"modelType\\\": \\\"vnf\\\", \\\"modelCustomizationName\\\": \\\"vSAMP12 1\\\", \\\"modelVersionId\\\": \\\"254583ad-b38c-498b-bdbd-b8de5e07541b\\\", \\\"modelCustomizationId\\\": \\\"c539433a-84a6-4082-a12e-5c9b00c3b960\\\"}, \\\"cloudConfiguration\\\": {\\\"tenantId\\\": \\\"88a6ca3ee0394ade9403f075db23167e\\\", \\\"lcpCloudRegionId\\\": \\\"mdt1\\\"}}]}\"},{\"id\":1577,\"name\":\"WorkflowName\",\"value\":\"ReplaceVnfInfra\"},{\"id\":1578,\"name\":\"CallbackUrl\",\"value\":\"http:\/\/127.0.0.1:8989\/scheduler\/v1\/loopbacktest\/vid\"}],\"scheduleApprovals\":[]},\"schedulesId\":0}]" + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_scheduler_details_short.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_scheduler_details_short.json new file mode 100644 index 000000000..ad4a8316f --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_scheduler_details_short.json @@ -0,0 +1,340 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/scheduler/v1/ChangeManagement/schedules/scheduleDetails/?" + }, + "simulatorResponse": { + "responseCode": 200, + "body": [ + { + "vnfName": "ctsf0002v", + "status": "Deleted", + "aotsChangeId": "CHG000004000643", + "aotsStatus": "Closed", + "aotsApprovalStatus": "Approved", + "groupId": "", + "dispatchTime": "2017-10-06T17:09:27Z", + "executionCompletedTime": "2017-10-06T17:09:37Z", + "msoRequestId": "1c74b28f-8914-4e8d-a23e-de036ccf88be", + "msoStatus": "COMPLETE", + "msoMessage": "Vf Module has been created successfully.", + "msoTime": "2017-10-06T17:09:37Z", + "scheduleRequest": { + "id": 506, + "createDateTime": "2017-10-06T17:09:11Z", + "optimizerAttemptsToSchedule": 0, + "optimizerTransactionId": "0226821c-3f32-4001-b236-a9dc34414fe3", + "scheduleId": "0226821c-3f32-4001-b236-a9dc34414fe3", + "scheduleName": "0226821c-3f32-4001-b236-a9dc34414fe3", + "status": "Deleted", + "userId": "su7376", + "domain": "ChangeManagement", + "deleteDateTime": "2017-10-06T17:10:37Z", + "domainData": [ + { + "id": 1516, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"service\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": true}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": false}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"vnf\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\", \"lcpCloudRegionId\": \"mdt1\"}}]}" + }, + { + "id": 1517, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1518, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [] + }, + "schedulesId": 0 + }, + { + "vnfName": "ZRDM1MMSC0450d9", + "vnfId": "", + "status": "Pending Approval", + "startTime": "2017-10-06T17:12:39Z", + "finishTime": "2017-10-06T17:14:29Z", + "groupId": "", + "lastInstanceStartTime": "2017-10-06T17:12:39Z", + "policyId": "SNIRO.TimeLimitAndVerticalTopology", + "scheduleRequest": { + "id": 508, + "createDateTime": "2017-10-06T17:11:39Z", + "optimizerDateTime": "2017-10-06T17:11:47Z", + "optimizerStatus": "Done.", + "optimizerAttemptsToSchedule": 0, + "optimizerReturnDateTime": "2017-10-06T17:11:47Z", + "optimizerTransactionId": "83aec7bf-602f-49eb-9788-bbc33ac550d9", + "schedule": "[{\"groupId\":\"\",\"startTime\":\"2017-10-06 17:12:39\",\"finishTime\":\"2017-10-06 17:14:29\",\"latestInstanceStartTime\":\"2017-10-06 17:12:39\",\"node\":[\"ZRDM1MMSC0450d9\"]}]", + "scheduleId": "83aec7bf-602f-49eb-9788-bbc33ac550d9", + "scheduleName": "83aec7bf-602f-49eb-9788-bbc33ac550d9", + "status": "Pending Approval", + "userId": "su7376", + "domain": "ChangeManagement", + "domainData": [ + { + "id": 1522, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"service\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": true}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": false}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"vnf\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\", \"lcpCloudRegionId\": \"mdt1\"}}]}" + }, + { + "id": 1523, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1524, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [ + { + "approvalDateTime": "2017-10-06T17:11:50Z", + "status": "Rejected", + "userId": "jf9860", + "approvalTypeId": 1 + } + ] + }, + "schedulesId": 0 + }, + { + "vnfName": "VNFName22056", + "vnfId": "", + "status": "Deleted", + "aotsChangeId": "CHG000004000637", + "aotsApprovalStatus": "Approved", + "startTime": "2017-10-06T17:04:33Z", + "finishTime": "2017-10-06T17:06:23Z", + "groupId": "", + "lastInstanceStartTime": "2017-10-06T17:04:33Z", + "policyId": "SNIRO.TimeLimitAndVerticalTopology", + "statusMessage": "CM_TICKET_NOT_APPROVED Attempt to dispatch a change management event that has no AOTS Ticket approved. scheduleId=e23bf714-069c-43f5-97c9-870fee9b2056 VNF Name=VNFName22056 AOTS ChangeId=CHG000004000637 Status=Assigned Approval Status=Approval Required", + "scheduleRequest": { + "id": 504, + "createDateTime": "2017-10-06T17:03:33Z", + "optimizerDateTime": "2017-10-06T17:03:37Z", + "optimizerStatus": "Done.", + "optimizerAttemptsToSchedule": 0, + "optimizerReturnDateTime": "2017-10-06T17:03:37Z", + "optimizerTransactionId": "e23bf714-069c-43f5-97c9-870fee9b2056", + "schedule": "[{\"groupId\":\"\",\"startTime\":\"2017-10-06 17:04:33\",\"finishTime\":\"2017-10-06 17:06:23\",\"latestInstanceStartTime\":\"2017-10-06 17:04:33\",\"node\":[\"VNFName12056\",\"VNFName22056\",\"VNFName32056\"]}]", + "scheduleId": "e23bf714-069c-43f5-97c9-870fee9b2056", + "scheduleName": "e23bf714-069c-43f5-97c9-870fee9b2056", + "status": "Deleted", + "userId": "su7376", + "domain": "ChangeManagement", + "deleteDateTime": "2017-10-29T13:15:46Z", + "domainData": [ + { + "id": 1510, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"service\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": true}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": false}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"vnf\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\", \"lcpCloudRegionId\": \"mdt1\"}}]}" + }, + { + "id": 1511, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1512, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [ + { + "approvalDateTime": "2017-10-06T17:03:39Z", + "status": "Accepted", + "userId": "jf9860", + "approvalTypeId": 1 + } + ] + }, + "schedulesId": 0 + }, + { + "vnfName": "VNFName244dd", + "vnfId": "", + "status": "Deleted", + "aotsChangeId": "CHG000000000001", + "aotsStatus": "Closed", + "aotsApprovalStatus": "Approved", + "startTime": "2017-10-02T19:28:00Z", + "finishTime": "2017-10-02T19:29:50Z", + "groupId": "Group1", + "lastInstanceStartTime": "2017-10-02T19:28:00Z", + "policyId": "SNIRO.TimeLimitAndVerticalTopology", + "dispatchTime": "2017-10-02T19:27:59Z", + "executionCompletedTime": "2017-10-02T19:28:09Z", + "msoRequestId": "1c74b28f-8914-4e8d-a23e-de036ccf88be", + "msoStatus": "COMPLETE", + "msoMessage": "Vf Module has been created successfully.", + "msoTime": "2017-10-02T19:28:09Z", + "scheduleRequest": { + "id": 425, + "createDateTime": "2017-10-02T19:27:00Z", + "optimizerDateTime": "2017-10-02T19:27:06Z", + "optimizerStatus": "Done.", + "optimizerAttemptsToSchedule": 0, + "optimizerReturnDateTime": "2017-10-02T19:27:06Z", + "optimizerTransactionId": "654e859a-02c1-4ad9-ad44-66f0b6d144dd", + "schedule": "[{\"groupId\":\"Group1\",\"startTime\":\"2017-10-02 19:28:00\",\"finishTime\":\"2017-10-02 19:29:50\",\"latestInstanceStartTime\":\"2017-10-02 19:28:00\",\"node\":[\"VNFName144dd\",\"VNFName244dd\",\"VNFName344dd\",\"VNFName444dd\"]}]", + "scheduleId": "654e859a-02c1-4ad9-ad44-66f0b6d144dd", + "scheduleName": "654e859a-02c1-4ad9-ad44-66f0b6d144dd", + "status": "Deleted", + "userId": "su7376", + "domain": "ChangeManagement", + "deleteDateTime": "2017-10-02T19:28:56Z", + "domainData": [ + { + "id": 1273, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"service\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": true}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": false}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelType\": \"vnf\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\", \"lcpCloudRegionId\": \"mdt1\"}}]}" + }, + { + "id": 1274, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1275, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [ + { + "approvalDateTime": "2017-10-02T19:27:11Z", + "status": "Accepted", + "userId": "jf9860", + "approvalTypeId": 1 + } + ] + }, + "schedulesId": 0 + }, + { + "vnfName": "satmo455vbc", + "status": "Scheduled", + "aotsChangeId": "CHG000004001141", + "aotsApprovalStatus": "Approved", + "groupId": "group1", + "scheduleRequest": { + "id": 529, + "createDateTime": "2017-10-11T21:06:51Z", + "optimizerAttemptsToSchedule": 0, + "optimizerTransactionId": "0b87fe60-50b0-4bac-a0a7-49e951b0ba9e", + "scheduleId": "0b87fe60-50b0-4bac-a0a7-49e951b0ba9e", + "scheduleName": "VnfUpgrade/DWF", + "status": "Scheduled", + "userId": "su7376", + "domain": "ChangeManagement", + "domainData": [ + { + "id": 1585, + "name": "WorkflowName", + "value": "ReplaceVnfInfra" + }, + { + "id": 1586, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + }, + { + "id": 1587, + "name": "CallbackData", + "value": "testing" + } + ], + "scheduleApprovals": [] + }, + "schedulesId": 0 + }, + { + "vnfName": "ZRDM1MMSC04482c", + "status": "Deleted", + "groupId": "", + "policyId": "SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone", + "scheduleRequest": { + "id": 2, + "createDateTime": "2017-09-06T13:34:07Z", + "optimizerDateTime": "2017-09-06T13:34:09Z", + "optimizerMessage": "Error while processing request ID: CM-896de9fc-aa5f-446d-b8ea-801f2bb9c282 -- Failed Processing; cause: Traceback (most recent call last):\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 1122, in _do_get\n return self._pool.get(wait, self._timeout)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/util/queue.py\", line 145, in get\n raise Empty\nsqlalchemy.util.queue.Empty\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/opt/app/sniro/sniroapp/sniro/optimizers/cmopt/rcscheduler/local_opt_processor.py\", line 15, in process_local_cm_scheduler_opt\n full_process_local_cm_scheduler_opt(request_json, policies, sniro_config)\n File \"/opt/app/sniro/sniroapp/sniro/optimizers/cmopt/rcscheduler/local_opt_processor.py\", line 38, in full_process_local_cm_scheduler_opt\n json_req = create_cm_scheduler_request(request_json, policies, all_req_info)\n File \"/opt/app/sniro/sniroapp/sniro/optimizers/cmopt/rcscheduler/request_builder.py\", line 16, in create_cm_scheduler_request\n cm = vertical_topology.VerticalConflicts(request_json) # TODO: rename + refactor\n File \"/opt/app/sniro/sniroapp/sniro/datasources/aai/vertical_topology.py\", line 58, in __init__\n self.v_p_topo, self.clli = vserver_pserver_topology(self.vnfs)\n File \"/opt/app/sniro/sniroapp/sniro/datasources/aai/aai_vertica.py\", line 91, in vserver_pserver_topology\n vertica = AAIVertica()\n File \"/opt/app/sniro/sniroapp/sniro/datasources/aai/aai_vertica.py\", line 19, in __init__\n self.fresh_connection()\n File \"/opt/app/sniro/sniroapp/sniro/datasources/aai/aai_vertica.py\", line 23, in fresh_connection\n self.conn, self.cursor = VerticaDB().connect()\n File \"/opt/app/sniro/sniroapp/sniro/datasources/db_adapters/VerticaDB.py\", line 35, in connect\n conn = self.connection_pool.connect()\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 387, in connect\n return _ConnectionFairy._checkout(self)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 766, in _checkout\n fairy = _ConnectionRecord.checkout(pool)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 516, in checkout\n rec = pool._do_get()\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 1138, in _do_get\n self._dec_overflow()\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py\", line 66, in __exit__\n compat.reraise(exc_type, exc_value, exc_tb)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/util/compat.py\", line 187, in reraise\n raise value\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 1135, in _do_get\n return self._create_connection()\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 333, in _create_connection\n return _ConnectionRecord(self)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 461, in __init__\n self.__connect(first_connect_check=True)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 651, in __connect\n connection = pool._invoke_creator(self)\n File \"/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py\", line 294, in <lambda>\n return lambda crec: creator()\n File \"/opt/app/sniro/sniroapp/sniro/datasources/db_adapters/VerticaDB.py\", line 20, in get_connection\n jars=[p['db_driver']]\n File \"/usr/local/lib/python3.5/site-packages/jaydebeapi/__init__.py\", line 381, in connect\n jconn = _jdbc_connect(jclassname, url, driver_args, jars, libs)\n File \"/usr/local/lib/python3.5/site-packages/jaydebeapi/__init__.py\", line 199, in _jdbc_connect_jpype\n return jpype.java.sql.DriverManager.getConnection(url, *dargs)\njpype._jexception.java.sql.SQLExceptionPyRaisable: java.sql.SQLException: [Vertica][VJDBC](2983) FATAL: Database \"PDWQ\" does not exist\n", + "optimizerStatus": "failed", + "optimizerAttemptsToSchedule": 0, + "optimizerReturnDateTime": "2017-09-06T13:34:10Z", + "optimizerTransactionId": "e12ee39a-6c9c-42a7-9a96-0cfc6eca482c", + "scheduleId": "e12ee39a-6c9c-42a7-9a96-0cfc6eca482c", + "scheduleName": "e12ee39a-6c9c-42a7-9a96-0cfc6eca482c", + "status": "Deleted", + "userId": "su7376", + "domain": "ChangeManagement", + "deleteDateTime": "2017-11-07T12:40:50Z", + "domainData": [ + { + "id": 4, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelType\": \"service\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": \"True\"}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": \"False\"}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelType\": \"vnf\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"lcpCloudRegionId\": \"mdt1\", \"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\"}}]}" + }, + { + "id": 5, + "name": "WorkflowName", + "value": "Build Software Upgrade for vNFs" + }, + { + "id": 6, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [] + }, + "schedulesId": 0 + }, + { + "vnfName": "StaticallyRegistered ", + "status": "Pending Schedule", + "groupId": "", + "policyId": "SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone", + "scheduleRequest": { + "id": 1, + "createDateTime": "2017-09-06T13:29:43Z", + "optimizerDateTime": "2017-09-06T13:29:55Z", + "optimizerMessage": "\n{\n \"requestError\": {\n \"serviceException\": {\n \"messageId\": \"SVC0001\",\n \"requestId\": \"CM-c098bd33-a51e-461b-8fd2-6c4d2666c706\",\n \"text\": \"sniro.operation.exceptions.PolicyNotFoundException: Cannot fetch policy SNIRO.Config_MS_Demo_TimeLimitAndVerticalTopology_zone: : HTTPSConnectionPool(host='policypdp-conexus-ist.ecomp.cci.att.com', port=8081): Max retries exceeded with url: /pdp/getConfig (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ecc00d6d8>, 'Connection to policypdp-conexus-ist.ecomp.cci.att.com timed out. (connect timeout=6.5)'))\",\n \"variables\": [\"severity\", 400]\n }\n }\n}", + "optimizerStatus": "HTTP Status: 400", + "optimizerAttemptsToSchedule": 1, + "optimizerTransactionId": "08fb4c32-ecb4-4d72-b618-a6156d3fc53a", + "scheduleId": "08fb4c32-ecb4-4d72-b618-a6156d3fc53a", + "scheduleName": "08fb4c32-ecb4-4d72-b618-a6156d3fc53a", + "status": "Schedule Failed", + "userId": "su7376", + "domain": "ChangeManagement", + "domainData": [ + { + "id": 1, + "name": "CallbackData", + "value": "{\"requestDetails\": [{\"vnfInstanceId\": \"Test\", \"relatedInstanceList\": [{\"relatedInstance\": {\"instanceId\": \"{serviceInstanceId}\", \"modelInfo\": {\"modelName\": \"{parent service model name}\", \"modelVersion\": \"2.0\", \"modelType\": \"service\", \"modelInvariantId\": \"ff3514e3-5a33-55df-13ab-12abad84e7ff\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"9ebb1521-2e74-47a4-aac7-e71a79f73a79\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}}}], \"requestParameters\": {\"usePreload\": \"True\"}, \"requestInfo\": {\"source\": \"VID\", \"requestorId\": \"az2016\", \"suppressRollback\": \"False\"}, \"vnfName\": \"Name\", \"modelInfo\": {\"modelName\": \"vSAMP12\", \"modelVersion\": \"2.0\", \"modelType\": \"vnf\", \"modelInvariantId\": \"ff5256d1-5a33-55df-13ab-12abad84e7ff\", \"modelCustomizationName\": \"vSAMP12 1\", \"modelVersionId\": \"254583ad-b38c-498b-bdbd-b8de5e07541b\", \"modelCustomizationId\": \"c539433a-84a6-4082-a12e-5c9b00c3b960\"}, \"cloudConfiguration\": {\"lcpCloudRegionId\": \"mdt1\", \"tenantId\": \"88a6ca3ee0394ade9403f075db23167e\"}}]}" + }, + { + "id": 2, + "name": "WorkflowName", + "value": "Build Software Upgrade for vNFs" + }, + { + "id": 3, + "name": "CallbackUrl", + "value": "http://127.0.0.1:8989/scheduler/v1/loopbacktest/vid" + } + ], + "scheduleApprovals": [] + }, + "schedulesId": 0 + } + ] + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_sdc_catalog_services_2f80c596.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_sdc_catalog_services_2f80c596.json new file mode 100644 index 000000000..be0a8c569 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_sdc_catalog_services_2f80c596.json @@ -0,0 +1,38 @@ +[ + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd/toscaModel" + }, + "simulatorResponse": { + "responseCode": 200, + "file": "2f80c596.zip" + } + }, + { + "simulatorRequest": { + "method": "GET", + "path": "/sdc/v1/catalog/services/2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd/metadata" + }, + "simulatorResponse": { + "responseCode": 200, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "uuid": "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd", + "invariantUUID": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "name": "action-data", + "version": "1.0", + "toscaModelURL": "./2f80c596.zip", + "category": "Mobility", + "lifecycleState": "CERTIFIED", + "lastUpdaterUserId": "rg276b", + "lastUpdaterFullName": null, + "distributionStatus": "DISTRIBUTED", + "artifacts": null, + "resources": null + } + } + } +]
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_service-design-and-creation.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_service-design-and-creation.json new file mode 100644 index 000000000..27c5bb42a --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_service-design-and-creation.json @@ -0,0 +1,414 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v../service-design-and-creation/models", + "queryParams" : { + "model-invariant-id": [ "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", "00beb8f9-6d39-452f-816d-c709b9cbb87d" ], + "depth": [ "2" ] + } + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "model":[ + { + "model-invariant-id":"72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-type":"resource", + "resource-version":"1507747452923", + "model-vers":{ + "model-ver":[ + { + "model-version-id":"76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-name":"mdns_2017_1011", + "model-version":"1.0", + "model-description":"mdns_2017_1011", + "resource-version":"1507747452925", + "model-elements":{ + "model-element":[ + { + "model-element-uuid":"10259f1b-85ca-486c-a016-5aa8d0422c99", + "new-data-del-flag":"T", + "cardinality":"unbounded", + "resource-version":"1507747452928", + "relationship-list":{ + "relationship":[ + { + "related-to":"model-ver", + "related-link":"/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property":[ + { + "property-key":"model-ver.model-name", + "property-value":"generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list":{ + "relationship":[ + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/ee6e6d7f-203c-4abb-b0d2-c807792093e2/model-elements/model-element/18e43321-edb8-4054-965c-13d5f0d41016/model-elements/model-element/ea0d60c1-9580-4056-86df-e20853ecdbb7", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"18e43321-edb8-4054-965c-13d5f0d41016" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"ea0d60c1-9580-4056-86df-e20853ecdbb7" + } + ] + } + ] + } + }, + { + "model-version-id":"90caad85-5d5c-4caf-9ddd-c05f6e088ba2", + "model-name":"mdns_2017_1011", + "model-version":"3.0", + "model-description":"mdns_2017_1011", + "resource-version":"1507920105086", + "model-elements":{ + "model-element":[ + { + "model-element-uuid":"c7abaf3b-7262-498a-984b-5d89047c631a", + "new-data-del-flag":"T", + "cardinality":"unbounded", + "resource-version":"1507920105089", + "relationship-list":{ + "relationship":[ + { + "related-to":"model-ver", + "related-link":"/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property":[ + { + "property-key":"model-ver.model-name", + "property-value":"generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list":{ + "relationship":[ + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/48d9a641-7f74-437b-8ec0-145ee54595d0/model-elements/model-element/ecbb139e-fd6c-4948-8a0d-1ccac7dd462a/model-elements/model-element/8b77ab8f-fa2f-414b-85be-45dafa2904e8", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"48d9a641-7f74-437b-8ec0-145ee54595d0" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"ecbb139e-fd6c-4948-8a0d-1ccac7dd462a" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"8b77ab8f-fa2f-414b-85be-45dafa2904e8" + } + ] + }, + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/e1092bfc-c14c-4de3-8ced-2d98c2a24dc3/model-elements/model-element/55764ab2-0308-4b1e-9c71-8c388064401a/model-elements/model-element/124f71f3-2e68-45fe-b264-b967294db411", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"e1092bfc-c14c-4de3-8ced-2d98c2a24dc3" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"55764ab2-0308-4b1e-9c71-8c388064401a" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"124f71f3-2e68-45fe-b264-b967294db411" + } + ] + } + ] + } + }, + { + "model-version-id":"afacccf6-397d-45d6-b5ae-94c39734b168", + "model-name":"mdns_2017_1011", + "model-version":"4.0", + "model-description":"mdns_2017_1011", + "resource-version":"1509315798030", + "model-elements":{ + "model-element":[ + { + "model-element-uuid":"05c54427-c298-43df-863b-ad0012bc389e", + "new-data-del-flag":"T", + "cardinality":"unbounded", + "resource-version":"1509315798038", + "relationship-list":{ + "relationship":[ + { + "related-to":"model-ver", + "related-link":"/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property":[ + { + "property-key":"model-ver.model-name", + "property-value":"generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list":{ + "relationship":[ + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/29f8d538-a1d0-44f4-9bb9-5f7ac1691aa6/model-elements/model-element/5cce81dd-a3d1-4cbf-bb20-b7573ed1484f/model-elements/model-element/47c8ce7e-1313-4c66-9b31-166ee34b6f25", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"29f8d538-a1d0-44f4-9bb9-5f7ac1691aa6" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"5cce81dd-a3d1-4cbf-bb20-b7573ed1484f" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"47c8ce7e-1313-4c66-9b31-166ee34b6f25" + } + ] + }, + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/a317f4e4-7dda-4470-a553-8b047107544f/model-elements/model-element/01402820-32ab-479a-ac1e-8208a3a86e9b/model-elements/model-element/dc8449df-40c6-4d57-af9c-f75aafdea8f2", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"a317f4e4-7dda-4470-a553-8b047107544f" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"01402820-32ab-479a-ac1e-8208a3a86e9b" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"dc8449df-40c6-4d57-af9c-f75aafdea8f2" + } + ] + } + ] + } + }, + { + "model-version-id":"b217c612-7fcf-484c-861b-df0a5c4b5bcb", + "model-name":"mdns_2017_1011", + "model-version":"2.0", + "model-description":"mdns_2017_1011", + "resource-version":"1507830869475", + "model-elements":{ + "model-element":[ + { + "model-element-uuid":"b4975b14-0e9c-4d1c-9019-aadb5e4b4efd", + "new-data-del-flag":"T", + "cardinality":"unbounded", + "resource-version":"1507830869478", + "relationship-list":{ + "relationship":[ + { + "related-to":"model-ver", + "related-link":"/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property":[ + { + "property-key":"model-ver.model-name", + "property-value":"generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list":{ + "relationship":[ + { + "related-to":"model-element", + "related-link":"/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/7cce8c53-d391-42aa-984d-c6166dee9abe/model-elements/model-element/bdc32cad-1eba-43c8-88f1-746ad4ac5f05/model-elements/model-element/26e3d430-abd1-4741-b63b-f71ca623f02b", + "relationship-data":[ + { + "relationship-key":"model.model-invariant-id", + "relationship-value":"e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key":"model-ver.model-version-id", + "relationship-value":"7cce8c53-d391-42aa-984d-c6166dee9abe" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"bdc32cad-1eba-43c8-88f1-746ad4ac5f05" + }, + { + "relationship-key":"model-element.model-element-uuid", + "relationship-value":"26e3d430-abd1-4741-b63b-f71ca623f02b" + } + ] + } + ] + } + } + ] + } + }, + { + "model-invariant-id": "00beb8f9-6d39-452f-816d-c709b9cbb87d", + "model-type": "resource", + "resource-version": "1507747452923", + "model-vers": { + "model-ver": [ + { + "model-version-id": "0903e1c0-8e03-4936-b5c2-260653b96413", + "model-name": "mdns_2017_1011", + "model-version": "1.0", + "model-description": "mdns_2017_1011", + "resource-version": "1507747452925", + "model-elements": { + "model-element": [ + { + "model-element-uuid": "10259f1b-85ca-486c-a016-5aa8d0422c99", + "new-data-del-flag": "T", + "cardinality": "unbounded", + "resource-version": "1507747452928", + "relationship-list": { + "relationship": [ + { + "related-to": "model-ver", + "related-link": "/aai/v11/service-design-and-creation/models/model/acc6edd8-a8d4-4b93-afaa-0994068be14c/model-vers/model-ver/93a6166f-b3d5-4f06-b4ba-aed48d009ad9", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "acc6edd8-a8d4-4b93-afaa-0994068be14c" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "93a6166f-b3d5-4f06-b4ba-aed48d009ad9" + } + ], + "related-to-property": [ + { + "property-key": "model-ver.model-name", + "property-value": "generic-vnf" + } + ] + } + ] + } + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "related-link": "/aai/v11/service-design-and-creation/models/model/e58733ef-43cb-4b6b-b641-922078b6c88b/model-vers/model-ver/ee6e6d7f-203c-4abb-b0d2-c807792093e2/model-elements/model-element/18e43321-edb8-4054-965c-13d5f0d41016/model-elements/model-element/ea0d60c1-9580-4056-86df-e20853ecdbb7", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "e58733ef-43cb-4b6b-b641-922078b6c88b" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "ee6e6d7f-203c-4abb-b0d2-c807792093e2" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "18e43321-edb8-4054-965c-13d5f0d41016" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "ea0d60c1-9580-4056-86df-e20853ecdbb7" + } + ] + } + ] + } + } + ] + } + } + ] + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_service_instance.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_service_instance.json new file mode 100644 index 000000000..5b6fd2f35 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_service_instance.json @@ -0,0 +1,10 @@ +{ + "simulatorRequest": { + "method": "GET", + "path": "/aai/v11/business/customers/customer/31739f3e-526b-11e6-beb8-9e71128cae77/service-subscriptions/service-subscription/AIM+Transport/service-instances/service-instance/f36f5734-e9df-4fbf-9f35-61be13f028a1" + } , + "simulatorResponse": { + "responseCode": 200, + "body": "{\"service-instance-id\":\"5e72ff6e-8bab-4ec7-bfc9-54f58c01a666\",\"service-instance-name\":\"MISVPN_TRANSPORT_00001\",\"service-type\":\"TRANSPORT\",\"service-role\":\"MISVPN\",\"environment-context\":\"General_Revenue-Bearing\",\"workload-context\":\"Production\",\"model-invariant-id\":\"6ffab618-bc86-46b4-bc8c-685ee48b316a\",\"model-version-id\":\"2f2ae06d-02e8-45ba-a54b-597f66830558\",\"resource-version\":\"1508513387222\",\"orchestration-status\":\"Active\",\"relationship-list\":{\"relationship\":[{\"related-to\":\"zone\",\"related-link\":\"/aai/v11/network/zones/zone/TAT37\",\"relationship-data\":[{\"relationship-key\":\"zone.zone-id\",\"relationship-value\":\"TAT37\"}],\"related-to-property\":[{\"property-key\":\"zone.zone-name\",\"property-value\":\"TESAAISD-TAT37\"}]},{\"related-to\":\"logical-link\",\"related-link\":\"/aai/v11/network/logical-links/logical-link/tesai371ve2%3Aae10%7Ctesaaisdgraclz1a1%3Apo100\",\"relationship-data\":[{\"relationship-key\":\"logical-link.link-name\",\"relationship-value\":\"tesai371ve2:ae10|tesaaisdgraclz1a1:po100\"}]},{\"related-to\":\"logical-link\",\"related-link\":\"/aai/v11/network/logical-links/logical-link/tesai372ve2%3Aae10%7Ctesaaisdgrbclz1a1%3Apo100\",\"relationship-data\":[{\"relationship-key\":\"logical-link.link-name\",\"relationship-value\":\"tesai372ve2:ae10|tesaaisdgrbclz1a1:po100\"}]},{\"related-to\":\"logical-link\",\"related-link\":\"/aai/v11/network/logical-links/logical-link/SANITY6757cce9%3ALAG1988%7CSANITY6785cce9%3ALAG1957\",\"relationship-data\":[{\"relationship-key\":\"logical-link.link-name\",\"relationship-value\":\"SANITY6757cce9:LAG1988|SANITY6785cce9:LAG1957\"}]},{\"related-to\":\"logical-link\",\"related-link\":\"/aai/v11/network/logical-links/logical-link/SANITY6758cce9%3ALAG1992%7CSANITY6785cce9%3ALAG1961\",\"relationship-data\":[{\"relationship-key\":\"logical-link.link-name\",\"relationship-value\":\"SANITY6758cce9:LAG1992|SANITY6785cce9:LAG1961\"}]}]}}" + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/get_vnf_data_by_globalid_and_service_type.json b/vid-ext-services-simulator/src/main/resources/preset_registration/get_vnf_data_by_globalid_and_service_type.json new file mode 100644 index 000000000..b3a26a492 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/get_vnf_data_by_globalid_and_service_type.json @@ -0,0 +1,554 @@ +{ + "simulatorRequest": { + "method": "PUT", + "path": "/aai/query", + "queryParams": { + "format": [ + "simple" + ] + }, + "body": "{\"start\": [\"business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances\"],\"query\": \"query/vnf-topology-fromServiceInstance\"}" + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "results": [ + { + "id": "3400916992", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/66b13cb4-b575-449f-aa45-ffbfe005c7b1", + "properties": { + "service-instance-id": "66b13cb4-b575-449f-aa45-ffbfe005c7b1", + "service-instance-name": "mDNS_preload_1710_0914", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "1525f534-99a2-408f-b847-ff636997d352", + "resource-version": "1505856078810", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3481829392", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec" + } + ] + }, + { + "id": "3771572432", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/f195837b-ef28-42c3-8dea-47ad37eaed95", + "properties": { + "service-instance-id": "f195837b-ef28-42c3-8dea-47ad37eaed95", + "service-instance-name": "mDNS_preload_1710_0914_0920", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "3915de55-a904-4cc6-8fc3-86f8bc316616", + "resource-version": "1505964829466", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3484520464", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1" + } + ] + }, + { + "id": "3775807704", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/9ad4ac55-a5e0-4b49-95c0-b2d846abf700", + "properties": { + "service-instance-id": "9ad4ac55-a5e0-4b49-95c0-b2d846abf700", + "service-instance-name": "mDNS_preload_1710_0914_100417", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "3915de55-a904-4cc6-8fc3-86f8bc316616", + "resource-version": "1507144734087", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3783459064", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/54626a59-ec0d-4fa9-b0c2-08d008688165" + } + ] + }, + { + "id": "4178862184", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/599c7247-b083-447c-b6b1-0cdd5170dfd2", + "properties": { + "service-instance-id": "599c7247-b083-447c-b6b1-0cdd5170dfd2", + "service-instance-name": "mDNS_preload_1710_0914_1010", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "3915de55-a904-4cc6-8fc3-86f8bc316616", + "resource-version": "1507664240411", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3892133896", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/d74503d8-abab-49c6-ba48-a6211eee9b7a" + } + ] + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08", + "properties": { + "service-instance-id": "97315a05-e6f3-4c47-ae7e-d850c327aa08", + "service-instance-name": "mDNS_preload_1710_0914_0927", + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-version-id": "3915de55-a904-4cc6-8fc3-86f8bc316616", + "resource-version": "1506527653053", + "orchestration-status": "Active" + }, + "related-to": [ + { + "id": "10207440", + "node-type": "service-subscription", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic" + }, + { + "id": "3418898432", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855" + } + ] + }, + { + "id": "3481829392", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec", + "properties": { + "vnf-id": "0c465dd3-4151-4da9-92a2-541bb3174cec", + "vnf-name": "Eoghan Fausto", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1505856137206", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "afacccf6-397d-45d6-b5ae-94c39734b168", + "model-customization-id": "b54689f8-45c5-4be2-9e91-f033e028feec", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vWheeler", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3285635208", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec/vf-modules/vf-module/d49713bf-1bff-4eab-bed1-a8f1bb83aa98" + }, + { + "id": "3441209432", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec/vf-modules/vf-module/b8397fec-cf13-40b3-be8f-7d0912506419" + }, + { + "id": "3687522312", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0c465dd3-4151-4da9-92a2-541bb3174cec/vf-modules/vf-module/fd098a52-09be-4c48-a9e9-a565d1b39db3" + }, + { + "id": "3400916992", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/66b13cb4-b575-449f-aa45-ffbfe005c7b1" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + } + ] + }, + { + "id": "3484520464", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1", + "properties": { + "vnf-id": "c2d2d389-fa00-4fb4-a269-e46d495719e1", + "vnf-name": "Odell Romana", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1505964996823", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-customization-id": "c00e8fc8-af39-4da8-8c78-a7efc2fe5994", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3447107680", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/c4711b5c-742e-4d03-8146-bff763f69fbd" + }, + { + "id": "3448307712", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/0ba3fcdd-0536-4ac7-a9ec-8d8622db7fb2" + }, + { + "id": "3692179528", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/6bb843eb-ef84-43b1-83b4-3154a7f9928c" + }, + { + "id": "3771588816", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/a4c008c6-cac0-4e3f-928f-90fa37dc8c4b" + }, + { + "id": "3904077944", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/eecb619c-a173-4ead-bf48-d4d09cbbdd5e" + }, + { + "id": "4027855088", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/1e29424e-2dca-45ac-b1df-59a8f74d0bc1" + }, + { + "id": "4390871192", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/b185220a-7f63-4b29-867d-1452813a4f09" + }, + { + "id": "4450529432", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/c2d2d389-fa00-4fb4-a269-e46d495719e1/vf-modules/vf-module/7a0c4b98-b3cc-490c-bbab-e2d7f169f2d7" + }, + { + "id": "3771572432", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/f195837b-ef28-42c3-8dea-47ad37eaed95" + } + ] + }, + { + "id": "3783459064", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/54626a59-ec0d-4fa9-b0c2-08d008688165", + "properties": { + "vnf-id": "54626a59-ec0d-4fa9-b0c2-08d008688165", + "vnf-name": "Dominika Fionnbharr", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1507144948937", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-customization-id": "c00e8fc8-af39-4da8-8c78-a7efc2fe5994", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3775807704", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/9ad4ac55-a5e0-4b49-95c0-b2d846abf700" + } + ] + }, + { + "id": "3892133896", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/d74503d8-abab-49c6-ba48-a6211eee9b7a", + "properties": { + "vnf-id": "d74503d8-abab-49c6-ba48-a6211eee9b7a", + "vnf-name": "mDNS_PreloadTest_VNF", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1507664288548", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-customization-id": "c00e8fc8-af39-4da8-8c78-a7efc2fe5994", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "4178862184", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/599c7247-b083-447c-b6b1-0cdd5170dfd2" + } + ] + }, + { + "id": "1507690314", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/385548e2-3f31-4900-9437-317d0346e49a", + "properties": { + "vnf-id": "385548e2-3f31-4900-9437-317d0346e49a", + "vnf-name": "Senga Gabrielle", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "7788675952902", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "b217c612-7fcf-484c-861b-df0a5c4b5bcb", + "model-customization-id": "ce15d245-763c-4079-ac82-fe93007adb69", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3664617648", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855/vf-modules/vf-module/788cde64-c288-4971-8e8c-77973c5009dc" + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + } + ] + }, + { + "id": "5278880615", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/0465e048-92a4-4a7f-bfe7-de39b32de4bd", + "properties": { + "vnf-id": "0465e048-92a4-4a7f-bfe7-de39b32de4bd", + "vnf-name": "Constantius Raghu", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "7788675952902", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "afacccf6-397d-45d6-b5ae-94c39734b168", + "model-customization-id": "ce15d245-763c-4079-ac82-fe93007adb69", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vWheeler", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3664617648", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855/vf-modules/vf-module/788cde64-c288-4971-8e8c-77973c5009dc" + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + } + ] + }, + { + "id": "3418898432", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855", + "properties": { + "vnf-id": "8e5e3ba1-3fe6-4d86-966e-f9f03dab4855", + "vnf-name": "zrdm3amdns02test2", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1507132024933", + "model-invariant-id": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8", + "model-version-id": "76e908e0-5201-44d2-a3e2-9e6128d05820", + "model-customization-id": "c00e8fc8-af39-4da8-8c78-a7efc2fe5994", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3664617648", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855/vf-modules/vf-module/788cde64-c288-4971-8e8c-77973c5009dc" + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + }, + { + "id": "3647635704", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/b30b17e9-10d0-4475-b558-7d18ae0aade0" + }, + { + "id": "3664621744", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/d3b293ba-85de-440e-904b-9dad160fbdce" + }, + { + "id": "3975352504", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/495a9a72-c9f6-41ed-93eb-065ebc2bfb1f" + }, + { + "id": "4059455552", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/b4b9f419-3ed4-4bd8-bb2e-32b0a98e80b7" + }, + { + "id": "4098130088", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/94c79f43-e76d-461e-b8df-8af2acb08e1e" + }, + { + "id": "4401291416", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/99cad3c6-1301-49c4-ad67-ae3c955de5f1" + }, + { + "id": "4458950808", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/88a6ca3ee0394ade9403f075db23167e/vservers/vserver/047354dc-0244-4241-b24a-7d7b00413b82" + } + ] + }, + { + "id": "1024648346", + "node-type": "generic-vnf", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/a58bf551-a79c-42d1-83b4-ed9288036245", + "properties": { + "vnf-id": "a58bf551-a79c-42d1-83b4-ed9288036245", + "vnf-name": "Harrison Kris", + "vnf-type": "mDNS preload 1710 0914/mDNS preload 1710 0914 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "4679861552759", + "model-invariant-id": "00beb8f9-6d39-452f-816d-c709b9cbb87d", + "model-version-id": "0903e1c0-8e03-4936-b5c2-260653b96413", + "model-customization-id": "14e8057d-b22a-405c-84aa-90b82bfd6e46", + "nf-type": "DNS", + "nf-function": "Mobile DNS", + "nf-role": "vMobileDNS", + "nf-naming-code": "null" + }, + "related-to": [ + { + "id": "3664617648", + "node-type": "vf-module", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/network/generic-vnfs/generic-vnf/8e5e3ba1-3fe6-4d86-966e-f9f03dab4855/vf-modules/vf-module/788cde64-c288-4971-8e8c-77973c5009dc" + }, + { + "id": "3008335920", + "node-type": "service-instance", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vFlowLogic/service-instances/service-instance/97315a05-e6f3-4c47-ae7e-d850c327aa08" + }, + { + "id": "3477385312", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/8627b971-1032-420f-a044-6802f0ab6976" + }, + { + "id": "3647635704", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/b30b17e9-10d0-4475-b558-7d18ae0aade0" + }, + { + "id": "3664621744", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/d3b293ba-85de-440e-904b-9dad160fbdce" + }, + { + "id": "3975352504", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/495a9a72-c9f6-41ed-93eb-065ebc2bfb1f" + }, + { + "id": "4059455552", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/b4b9f419-3ed4-4bd8-bb2e-32b0a98e80b7" + }, + { + "id": "4098130088", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/94c79f43-e76d-461e-b8df-8af2acb08e1e" + }, + { + "id": "4401291416", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/99cad3c6-1301-49c4-ad67-ae3c955de5f1" + }, + { + "id": "4458950808", + "node-type": "vserver", + "url": "https://aai-conexus-e2e.ecomp.cci.att.com:8443/aai/v10/cloud-infrastructure/cloud-regions/cloud-region/att-aic/rdm3/tenants/tenant/eecd15e8e7ee46c3bbc2096f0924f4c4/vservers/vserver/047354dc-0244-4241-b24a-7d7b00413b82" + } + ] + } + ] + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/mso_add_relationships.json b/vid-ext-services-simulator/src/main/resources/preset_registration/mso_add_relationships.json new file mode 100644 index 000000000..ec92a6bd1 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/mso_add_relationships.json @@ -0,0 +1,15 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/serviceInstances/v6/*/addRelationships" + } , + "simulatorResponse": { + "responseCode": 200, + "body": { + "requestReferences": { + "instanceId": "8edb3c04-e012-4d5c-9ef4-710600d68dfa", + "requestId": "b6dc9806-b094-42f7-9386-a48de8218ce7" + } + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/post_activate_operational_environment.json b/vid-ext-services-simulator/src/main/resources/preset_registration/post_activate_operational_environment.json new file mode 100644 index 000000000..f78c06f45 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/post_activate_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974eb/activate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/post_activate_or_deactivate_operational_environment.json b/vid-ext-services-simulator/src/main/resources/preset_registration/post_activate_or_deactivate_operational_environment.json new file mode 100644 index 000000000..7b15cbcbe --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/post_activate_or_deactivate_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/[0-9a-f-]+/(de)?activate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974eb", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/post_deactivate_operational_environment.json b/vid-ext-services-simulator/src/main/resources/preset_registration/post_deactivate_operational_environment.json new file mode 100644 index 000000000..2fdc8c5c8 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/post_deactivate_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments/f07ca256-96dd-40ad-b4d2-7a77e2a974ec/deactivate" + } , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body": { + "requestReferences": { + "instanceId": "f07ca256-96dd-40ad-b4d2-7a77e2a974ec", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +} diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/post_operational_environment.json b/vid-ext-services-simulator/src/main/resources/preset_registration/post_operational_environment.json new file mode 100644 index 000000000..81fbb96bf --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/post_operational_environment.json @@ -0,0 +1,18 @@ +{ + "simulatorRequest": { + "method": "POST", + "path": "/mso/cloudResources/v1/operationalEnvironments" +} , + "simulatorResponse": { + "responseCode": 202, + "responseHeaders": { + "Content-Type": "application/json" + }, + "body":{ + "requestReferences": { + "instanceId": "bc305d54-75b4-431b-adb2-eb6b9e546014", + "requestId": "dbe54591-c8ed-46d3-abc7-d3a24873dfbd" + } + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json b/vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json new file mode 100644 index 000000000..9a892096c --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/preset_registration/service-design-and-creation.json @@ -0,0 +1,385 @@ +{ + "simulatorRequest": { + "method": "PUT", + "path": "/aai/query", + "body": "{\"start\" : \"service-design-and-creation\/models\/\", \"query\" : \"query\/servceModelsbyDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK\"}", + "queryParams": { + "format": [ + "resource" + ] + } + }, + "simulatorResponse": { + "responseCode": 200, + "body": { + "results": [ + { + "model": { + "model-invariant-id": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", + "model-type": "resource", + "resource-version": "1500138206526", + "model-vers": { + "model-ver": [ + { + "model-version-id": "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd", + "model-name": "action-data", + "model-version": "1.0", + "model-description": "lustre settler sideways volcanic eight cellular", + "resource-version": "1500137463984", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/l2-bridge-for-wan-connector-model-id-ps-02/model-vers/model-ver/l2-bridge-for-wan-connector-resource-id-ps-02/model-elements/model-element/e874da22-729d-47bd-8c08-d596fd9c213d/model-elements/model-element/ccbb65b8-2faf-4f5f-80d9-804bb50f1455", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "l2-bridge-for-wan-connector-model-id-ps-02" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "l2-bridge-for-wan-connector-resource-id-ps-02" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "e874da22-729d-47bd-8c08-d596fd9c213d" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "ccbb65b8-2faf-4f5f-80d9-804bb50f1455" + } + ] + } + ] + } + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "9551346c-7d8b-4daf-9926-b93e96e2344a", + "model-type": "resource", + "resource-version": "1500138206526", + "model-vers": { + "model-ver": [ + { + "model-version-id": "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd", + "model-name": "action-data", + "model-version": "1.0", + "model-description": "decontamination arm circus ammonia hump edge", + "resource-version": "1500137463984" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "00beb8f9-6d39-452f-816d-c709b9cbb87d", + "model-type": "resource", + "resource-version": "4076846985447", + "model-vers": { + "model-ver": [ + { + "model-version-id": "0903e1c0-8e03-4936-b5c2-260653b96413", + "model-name": "action-data", + "model-version": "1.0", + "model-description": "honor immunity exile prong below misshapen", + "resource-version": "4076846985447" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "ea78c9e3-514d-4a0a-9162-13837fa54c35", + "model-type": "resource", + "resource-version": "1500137034452", + "model-vers": { + "model-ver": [ + { + "model-version-id": "666a06ee-4b57-46df-bacf-908da8f10c3f", + "model-name": "multicast-configuration", + "model-version": "1.0", + "model-description": "python bullwhip appointment computation ambidextrous heaving", + "resource-version": "1500136282691" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "78ca26d0-246d-11e7-93ae-92361f002671", + "model-type": "resource", + "resource-version": "1492627634298", + "model-vers": { + "model-ver": [ + { + "model-version-id": "20c4431c-246d-11e7-93ae-92361f002671", + "model-name": "vSAMP10aDEV::base::module-0", + "model-version": "2", + "model-description": "MSO aLaCarte VF vSAMP10aDEV Base", + "resource-version": "1492627634300" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "5b607929-6088-4614-97ef-cac817508e0e", + "model-type": "resource", + "resource-version": "1492814035001", + "model-vers": { + "model-ver": [ + { + "model-version-id": "797a6c41-0f80-4d35-a288-3920c4e06baa", + "model-name": "CONTRAIL30_L2NODHCP", + "model-version": "1.0", + "model-description": "contrail 3.0.x L2 network for AIC 3.x sites (and No DHCP).", + "resource-version": "1492814035003", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/52b49b5d-3086-4ffd-b5e6-1b1e5e7e062f/model-vers/model-ver/aed5a5b7-20d3-44f7-90a3-ddbd16f14d1e/model-elements/model-element/2f622421-1c67-4142-be6e-cecad5242af6/model-elements/model-element/2add7556-a23b-46b8-b6b4-ad300b47ceab", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "52b49b5d-3086-4ffd-b5e6-1b1e5e7e062f" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "aed5a5b7-20d3-44f7-90a3-ddbd16f14d1e" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "2f622421-1c67-4142-be6e-cecad5242af6" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "2add7556-a23b-46b8-b6b4-ad300b47ceab" + } + ] + } + ] + } + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "0143d57b-a517-4de9-a0a1-eb76db51f402", + "model-type": "resource", + "resource-version": "1497897268768", + "model-vers": { + "model-ver": [ + { + "model-version-id": "f1bde010-cc5f-4765-941f-75f15b24f9fc", + "model-name": "BkVmxAv061917..base_vPE_AV..module-0", + "model-version": "2", + "resource-version": "1497897268769", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/267ef491-3c1a-4c32-8e69-0e557bfb61e7/model-vers/model-ver/18655c7f-c846-4934-9e25-34378dfd33d6/model-elements/model-element/578492b2-36a4-47da-83dc-91b58c699ad1/model-elements/model-element/6b1fc7a5-fc01-4a9d-a87f-0ad0d8caa13f", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "267ef491-3c1a-4c32-8e69-0e557bfb61e7" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "18655c7f-c846-4934-9e25-34378dfd33d6" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "578492b2-36a4-47da-83dc-91b58c699ad1" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "6b1fc7a5-fc01-4a9d-a87f-0ad0d8caa13f" + } + ] + } + ] + } + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "ipe-resource-id-ps-02", + "model-type": "resource", + "resource-version": "1493389430122", + "model-vers": { + "model-ver": [ + { + "model-version-id": "ipe-resource-id-ps-02", + "model-name": "abc", + "model-version": "v1.0", + "resource-version": "1493389520357", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/l2-bridge-for-wan-connector-model-id-ps-02/model-vers/model-ver/l2-bridge-for-wan-connector-resource-id-ps-02/model-elements/model-element/e874da22-729d-47bd-8c08-d596fd9c213d/model-elements/model-element/ccbb65b8-2faf-4f5f-80d9-804bb50f1455", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "l2-bridge-for-wan-connector-model-id-ps-02" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "l2-bridge-for-wan-connector-resource-id-ps-02" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "e874da22-729d-47bd-8c08-d596fd9c213d" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "ccbb65b8-2faf-4f5f-80d9-804bb50f1455" + } + ] + } + ] + } + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "lmoser410-connector-model-id", + "model-type": "widget", + "resource-version": "1493389512180", + "model-vers": { + "model-ver": [ + { + "model-version-id": "lmoser410-connector-model-version-id", + "model-name": "connector", + "model-version": "v1.0", + "resource-version": "1493389444766" + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "named-query-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/named-queries/named-query/lmoser410-named-query-uuid/named-query-elements/named-query-element/48278a7d-2b1e-454f-89e6-5c0ba145f486", + "relationship-data": [ + { + "relationship-key": "named-query.named-query-uuid", + "relationship-value": "lmoser410-named-query-uuid" + }, + { + "relationship-key": "named-query-element.named-query-element-uuid", + "relationship-value": "48278a7d-2b1e-454f-89e6-5c0ba145f486" + } + ] + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "3a97db99-c4bb-498a-a13a-38f65f1ced3d", + "model-type": "resource", + "resource-version": "1492630209768", + "model-vers": { + "model-ver": [ + { + "model-version-id": "ff2ae348-214a-11e7-93ae-92361f002673", + "model-name": "vSAMP10aDEV::base::module-0", + "model-version": "1.0", + "model-description": "MACRO_vSAMP_module", + "resource-version": "1492630209769" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "3c504d40-b847-424c-9d25-4fb7e0a3e994", + "model-type": "widget", + "resource-version": "1493389430124", + "model-vers": { + "model-ver": [ + { + "model-version-id": "204c641a-3494-48c8-979a-86856f5fd32a", + "model-name": "named-query-element", + "model-version": "1.0", + "resource-version": "1493389423212" + } + ] + } + } + }, + { + "model": { + "model-invariant-id": "93e56950-cb19-44e6-ace4-8b50f2d02e45", + "model-type": "resource", + "resource-version": "1497898974232", + "model-vers": { + "model-ver": [ + { + "model-version-id": "acba1f72-c6e0-477f-9426-ad190151e100", + "model-name": "RG_6-19_Test", + "model-version": "1.0", + "model-description": "RG_6-19_Test", + "resource-version": "1497898974233", + "relationship-list": { + "relationship": [ + { + "related-to": "model-element", + "relationship-label": "isA", + "related-link": "/aai/v12/service-design-and-creation/models/model/a07220ba-954e-422f-86b5-e8b95fe6b116/model-vers/model-ver/bf6dbd68-2c7d-4ba2-ade1-dfd4476aa505/model-elements/model-element/6e10fe2e-6d04-4198-9124-dd051a5ae65f/model-elements/model-element/cb3c22e1-9dc6-467f-9636-0a7aef10d5d0", + "relationship-data": [ + { + "relationship-key": "model.model-invariant-id", + "relationship-value": "a07220ba-954e-422f-86b5-e8b95fe6b116" + }, + { + "relationship-key": "model-ver.model-version-id", + "relationship-value": "bf6dbd68-2c7d-4ba2-ade1-dfd4476aa505" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "6e10fe2e-6d04-4198-9124-dd051a5ae65f" + }, + { + "relationship-key": "model-element.model-element-uuid", + "relationship-value": "cb3c22e1-9dc6-467f-9636-0a7aef10d5d0" + } + ] + } + ] + } + } + ] + } + } + } + ] + } + } +}
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/resources/simulator.properties b/vid-ext-services-simulator/src/main/resources/simulator.properties new file mode 100644 index 000000000..e27a931b7 --- /dev/null +++ b/vid-ext-services-simulator/src/main/resources/simulator.properties @@ -0,0 +1,8 @@ +#MockServer startup details + +simulator.mockserver.protocol = http +simulator.mockserver.host = localhost +simulator.mockserver.port = 1080 + +#Simulator proprietary +simulator.enablePresetRegistration = true
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/webapp/WEB-INF/rest-servlet.xml b/vid-ext-services-simulator/src/main/webapp/WEB-INF/rest-servlet.xml new file mode 100644 index 000000000..6d06fea1e --- /dev/null +++ b/vid-ext-services-simulator/src/main/webapp/WEB-INF/rest-servlet.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" + xmlns:aop="http://www.springframework.org/schema/aop" xmlns:util="http://www.springframework.org/schema/util" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd + http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd"> + + + <context:component-scan + base-package="org.openecomp.simulator" /> +</beans>
\ No newline at end of file diff --git a/vid-ext-services-simulator/src/main/webapp/WEB-INF/web.xml b/vid-ext-services-simulator/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 000000000..780a17dec --- /dev/null +++ b/vid-ext-services-simulator/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" + version="3.0"> + <servlet> + <servlet-name>rest</servlet-name> + <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>rest</servlet-name> + <url-pattern>/*</url-pattern> + </servlet-mapping> +</web-app>
\ No newline at end of file |