blob: 3d9debccbfac37e6c8f89fc73aa1a85c31985e3e [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';
21import { LayoutComponent } from './layer/layout/layout.component';
Sean Condonf4f54a12018-10-10 23:25:46 +010022import { InstanceComponent } from './panel/instance/instance.component';
23import { SummaryComponent } from './panel/summary/summary.component';
24import { ToolbarComponent } from './panel/toolbar/toolbar.component';
25import { DetailsComponent } from './panel/details/details.component';
26import { Gui2FwLibModule } from 'gui2-fw-lib';
27import { BackgroundSvgComponent } from './layer/backgroundsvg/backgroundsvg.component';
28import { ForceSvgComponent } from './layer/forcesvg/forcesvg.component';
29import { MapSvgComponent } from './layer/mapsvg/mapsvg.component';
Sean Condonaa4366d2018-11-02 14:29:01 +000030import { TopologyService } from './topology.service';
Sean Condon0c577f62018-11-18 22:40:05 +000031import { DraggableDirective } from './layer/forcesvg/draggable/draggable.directive';
32import { ZoomableDirective } from './layer/zoomable.directive';
33import {
Sean Condon0c577f62018-11-18 22:40:05 +000034 SubRegionNodeSvgComponent,
35 DeviceNodeSvgComponent,
Sean Condon50855cf2018-12-23 15:37:42 +000036 HostNodeSvgComponent, LinkSvgComponent,
Sean Condon0c577f62018-11-18 22:40:05 +000037} from './layer/forcesvg/visuals';
Sean Condonf4f54a12018-10-10 23:25:46 +010038
39/**
40 * ONOS GUI -- Topology View Module
41 *
42 * Note: This has been updated from onos-gui-1.0.0 where it was called 'topo2'
43 * whereas here it is now called 'topology'. This also merges in the old 'topo'
44 */
45@NgModule({
46 imports: [
47 CommonModule,
48 TopologyRoutingModule,
49 Gui2FwLibModule
50 ],
51 declarations: [
52 TopologyComponent,
53 NoDeviceConnectedSvgComponent,
54 LayoutComponent,
Sean Condonf4f54a12018-10-10 23:25:46 +010055 InstanceComponent,
56 SummaryComponent,
57 ToolbarComponent,
58 DetailsComponent,
59 BackgroundSvgComponent,
60 ForceSvgComponent,
Sean Condon0c577f62018-11-18 22:40:05 +000061 MapSvgComponent,
62 ZoomableDirective,
63 DraggableDirective,
Sean Condon50855cf2018-12-23 15:37:42 +000064 LinkSvgComponent,
Sean Condon0c577f62018-11-18 22:40:05 +000065 DeviceNodeSvgComponent,
66 HostNodeSvgComponent,
67 SubRegionNodeSvgComponent
Sean Condonaa4366d2018-11-02 14:29:01 +000068 ],
69 providers: [
70 TopologyService
Sean Condonf4f54a12018-10-10 23:25:46 +010071 ]
72})
73export class TopologyModule { }