blob: 643c3d7cf0e84395b50245b899fa656f10f5526f [file] [log] [blame]
Sean Condonf4f54a12018-10-10 23:25:46 +01001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the 'License');
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an 'AS IS' BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { NgModule } from '@angular/core';
17import { CommonModule } from '@angular/common';
18import { TopologyRoutingModule } from './topology-routing.module';
19import { TopologyComponent } from './topology/topology.component';
20import { NoDeviceConnectedSvgComponent } from './layer/nodeviceconnectedsvg/nodeviceconnectedsvg.component';
Sean Condonf4f54a12018-10-10 23:25:46 +010021import { InstanceComponent } from './panel/instance/instance.component';
22import { SummaryComponent } from './panel/summary/summary.component';
23import { ToolbarComponent } from './panel/toolbar/toolbar.component';
24import { DetailsComponent } from './panel/details/details.component';
25import { Gui2FwLibModule } from 'gui2-fw-lib';
26import { BackgroundSvgComponent } from './layer/backgroundsvg/backgroundsvg.component';
27import { ForceSvgComponent } from './layer/forcesvg/forcesvg.component';
28import { MapSvgComponent } from './layer/mapsvg/mapsvg.component';
Sean Condonaa4366d2018-11-02 14:29:01 +000029import { TopologyService } from './topology.service';
Sean Condon0c577f62018-11-18 22:40:05 +000030import { DraggableDirective } from './layer/forcesvg/draggable/draggable.directive';
31import { ZoomableDirective } from './layer/zoomable.directive';
Sean Condon0d064ec2019-02-04 21:53:53 +000032import { MapSelectorComponent } from './panel/mapselector/mapselector.component';
Sean Condonff85fbe2019-03-16 14:28:46 +000033import { DeviceNodeSvgComponent} from './layer/forcesvg/visuals/devicenodesvg/devicenodesvg.component';
34import { HostNodeSvgComponent } from './layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component';
35import { SubRegionNodeSvgComponent } from './layer/forcesvg/visuals/subregionnodesvg/subregionnodesvg.component';
36import { LinkSvgComponent} from './layer/forcesvg/visuals/linksvg/linksvg.component';
Sean Condon0d064ec2019-02-04 21:53:53 +000037import {FormsModule, ReactiveFormsModule} from '@angular/forms';
Sean Condon71910542019-02-16 18:16:42 +000038import { GridsvgComponent } from './layer/gridsvg/gridsvg.component';
Sean Condonff85fbe2019-03-16 14:28:46 +000039import {TrafficService} from './traffic.service';
Sean Condonf4f54a12018-10-10 23:25:46 +010040
41/**
42 * ONOS GUI -- Topology View Module
43 *
Sean Condon91481822019-01-01 13:56:14 +000044 * The main entry point is the TopologyComponent
45 *
Sean Condonf4f54a12018-10-10 23:25:46 +010046 * Note: This has been updated from onos-gui-1.0.0 where it was called 'topo2'
47 * whereas here it is now called 'topology'. This also merges in the old 'topo'
48 */
49@NgModule({
50 imports: [
51 CommonModule,
Sean Condon0d064ec2019-02-04 21:53:53 +000052 FormsModule,
53 ReactiveFormsModule,
Sean Condonf4f54a12018-10-10 23:25:46 +010054 TopologyRoutingModule,
55 Gui2FwLibModule
56 ],
57 declarations: [
Sean Condonff85fbe2019-03-16 14:28:46 +000058 BackgroundSvgComponent,
59 DetailsComponent,
60 DeviceNodeSvgComponent,
61 ForceSvgComponent,
62 GridsvgComponent,
63 HostNodeSvgComponent,
Sean Condonf4f54a12018-10-10 23:25:46 +010064 InstanceComponent,
Sean Condonff85fbe2019-03-16 14:28:46 +000065 LinkSvgComponent,
66 MapSelectorComponent,
67 MapSvgComponent,
68 NoDeviceConnectedSvgComponent,
69 SubRegionNodeSvgComponent,
Sean Condonf4f54a12018-10-10 23:25:46 +010070 SummaryComponent,
71 ToolbarComponent,
Sean Condonff85fbe2019-03-16 14:28:46 +000072 TopologyComponent,
Sean Condon0c577f62018-11-18 22:40:05 +000073 ZoomableDirective,
74 DraggableDirective,
Sean Condonaa4366d2018-11-02 14:29:01 +000075 ],
76 providers: [
Sean Condonff85fbe2019-03-16 14:28:46 +000077 TopologyService,
78 TrafficService
79 ],
80 exports: [
81 BackgroundSvgComponent,
82 DetailsComponent,
83 DeviceNodeSvgComponent,
84 ForceSvgComponent,
85 GridsvgComponent,
86 HostNodeSvgComponent,
87 InstanceComponent,
88 LinkSvgComponent,
89 MapSelectorComponent,
90 MapSvgComponent,
91 NoDeviceConnectedSvgComponent,
92 SubRegionNodeSvgComponent,
93 SummaryComponent,
94 ToolbarComponent,
95 TopologyComponent,
96 ZoomableDirective,
97 DraggableDirective,
Sean Condonf4f54a12018-10-10 23:25:46 +010098 ]
99})
Sean Condonff85fbe2019-03-16 14:28:46 +0000100export class Gui2TopoLibModule { }