blob: b6c79a12f3f7a5579613c76a9f6256b02e434071 [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';
32import {
Sean Condon0c577f62018-11-18 22:40:05 +000033 SubRegionNodeSvgComponent,
34 DeviceNodeSvgComponent,
Sean Condon50855cf2018-12-23 15:37:42 +000035 HostNodeSvgComponent, LinkSvgComponent,
Sean Condon0c577f62018-11-18 22:40:05 +000036} from './layer/forcesvg/visuals';
Sean Condon0d064ec2019-02-04 21:53:53 +000037import { MapSelectorComponent } from './panel/mapselector/mapselector.component';
38import {FormsModule, ReactiveFormsModule} from '@angular/forms';
Sean Condonf4f54a12018-10-10 23:25:46 +010039
40/**
41 * ONOS GUI -- Topology View Module
42 *
Sean Condon91481822019-01-01 13:56:14 +000043 * The main entry point is the TopologyComponent
44 *
Sean Condonf4f54a12018-10-10 23:25:46 +010045 * Note: This has been updated from onos-gui-1.0.0 where it was called 'topo2'
46 * whereas here it is now called 'topology'. This also merges in the old 'topo'
47 */
48@NgModule({
49 imports: [
50 CommonModule,
Sean Condon0d064ec2019-02-04 21:53:53 +000051 FormsModule,
52 ReactiveFormsModule,
Sean Condonf4f54a12018-10-10 23:25:46 +010053 TopologyRoutingModule,
54 Gui2FwLibModule
55 ],
56 declarations: [
57 TopologyComponent,
58 NoDeviceConnectedSvgComponent,
Sean Condonf4f54a12018-10-10 23:25:46 +010059 InstanceComponent,
60 SummaryComponent,
61 ToolbarComponent,
62 DetailsComponent,
63 BackgroundSvgComponent,
64 ForceSvgComponent,
Sean Condon0c577f62018-11-18 22:40:05 +000065 MapSvgComponent,
66 ZoomableDirective,
67 DraggableDirective,
Sean Condon50855cf2018-12-23 15:37:42 +000068 LinkSvgComponent,
Sean Condon0c577f62018-11-18 22:40:05 +000069 DeviceNodeSvgComponent,
70 HostNodeSvgComponent,
Sean Condon0d064ec2019-02-04 21:53:53 +000071 SubRegionNodeSvgComponent,
72 MapSelectorComponent
Sean Condonaa4366d2018-11-02 14:29:01 +000073 ],
74 providers: [
75 TopologyService
Sean Condonf4f54a12018-10-10 23:25:46 +010076 ]
77})
78export class TopologyModule { }