2 ============LICENSE_START==========================================
3 ===================================================================
4 Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
5 ===================================================================
7 Unless otherwise specified, all software contained herein is licensed
8 under the Apache License, Version 2.0 (the License);
9 you may not use this software except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
20 ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 ============LICENSE_END============================================
24 import { GoldenConfigurationHolderComponent, } from './build-artifacts/template-holder/template-holder.component';
25 import { MyvnfsComponent } from './myvnfs/myvnfs.component';
26 import { NgModule } from '@angular/core';
27 import { RouterModule, Routes } from '@angular/router';
28 import { ReferenceDataformComponent } from './build-artifacts/reference-dataform/reference-dataform.component';
29 import { GoldenConfigurationComponent } from './build-artifacts/template-holder/template-configuration/template-configuration.component';
30 import { GoldenConfigurationMappingComponent } from './build-artifacts/template-holder/param-name-value/param-name-value.component';
31 import { ParameterComponent } from './build-artifacts/parameter-definitions/parameter.component';
32 import { ParameterHolderComponent } from './build-artifacts/parameter-holder/parameter-holder.component';
33 import { VnfsComponent } from './vnfs/vnfs.component';
34 import { BuildDesignComponent } from './build-artifacts/build-artifacts.component';
35 import { userloginFormComponent } from './userlogin-form/userlogin-form.component';
36 import { LoginGuardService } from './LoginGuardService/Login-guard-service';
37 import { ReferenceDataHolderComponent } from './build-artifacts/reference-data-holder/reference-data-holder.component';
40 const routes: Routes = [
43 component: VnfsComponent,
47 component: userloginFormComponent,
48 canActivate: [LoginGuardService],
52 component: MyvnfsComponent
58 component: BuildDesignComponent,
62 component: ReferenceDataHolderComponent,
66 component: ReferenceDataformComponent
71 component: GoldenConfigurationHolderComponent,
72 // canActivate:[GCAuthGuardService],
75 path: 'configureTemplate',
76 component: GoldenConfigurationComponent
80 component: GoldenConfigurationMappingComponent
84 redirectTo: 'myTemplates',
89 path: 'parameterDefinitions',
90 component: ParameterHolderComponent,
94 component: ParameterComponent
98 component: ParameterComponent
102 component: ParameterComponent
106 component: ParameterComponent
110 component: ParameterComponent
114 redirectTo: 'create',
128 imports: [RouterModule.forChild(routes)],
129 exports: [RouterModule]
131 export class VnfRoutingModule {