blob: 22c896880cabff09dd6dc03fb2ed6f5c3f5b048b [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';
Sean Condon3dd062f2020-04-14 09:25:00 +010025import { Gui2FwLibModule } from 'org_onosproject_onos/web/gui2-fw-lib/public_api';
Sean Condonf4f54a12018-10-10 23:25:46 +010026import { 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';
Sean Condon0d064ec2019-02-04 21:53:53 +000031import { MapSelectorComponent } from './panel/mapselector/mapselector.component';
Sean Condonff85fbe2019-03-16 14:28:46 +000032import { DeviceNodeSvgComponent} from './layer/forcesvg/visuals/devicenodesvg/devicenodesvg.component';
33import { HostNodeSvgComponent } from './layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component';
34import { SubRegionNodeSvgComponent } from './layer/forcesvg/visuals/subregionnodesvg/subregionnodesvg.component';
35import { LinkSvgComponent} from './layer/forcesvg/visuals/linksvg/linksvg.component';
Sean Condon0d064ec2019-02-04 21:53:53 +000036import {FormsModule, ReactiveFormsModule} from '@angular/forms';
Sean Condon71910542019-02-16 18:16:42 +000037import { GridsvgComponent } from './layer/gridsvg/gridsvg.component';
Sean Condonff85fbe2019-03-16 14:28:46 +000038import {TrafficService} from './traffic.service';
Sean Condon28884332019-03-21 14:07:00 +000039import {LayoutService} from './layout.service';
Sean Condon590b34b2019-12-04 18:44:37 +000040import { BadgeSvgComponent } from './layer/forcesvg/visuals/badgesvg/badgesvg.component';
Sean Condonf4f54a12018-10-10 23:25:46 +010041
42/**
43 * ONOS GUI -- Topology View Module
44 *
Sean Condon91481822019-01-01 13:56:14 +000045 * The main entry point is the TopologyComponent
46 *
Sean Condonf4f54a12018-10-10 23:25:46 +010047 * Note: This has been updated from onos-gui-1.0.0 where it was called 'topo2'
48 * whereas here it is now called 'topology'. This also merges in the old 'topo'
49 */
50@NgModule({
51 imports: [
52 CommonModule,
Sean Condon0d064ec2019-02-04 21:53:53 +000053 FormsModule,
54 ReactiveFormsModule,
Sean Condonf4f54a12018-10-10 23:25:46 +010055 TopologyRoutingModule,
56 Gui2FwLibModule
57 ],
58 declarations: [
Sean Condonff85fbe2019-03-16 14:28:46 +000059 BackgroundSvgComponent,
60 DetailsComponent,
61 DeviceNodeSvgComponent,
62 ForceSvgComponent,
63 GridsvgComponent,
64 HostNodeSvgComponent,
Sean Condonf4f54a12018-10-10 23:25:46 +010065 InstanceComponent,
Sean Condonff85fbe2019-03-16 14:28:46 +000066 LinkSvgComponent,
67 MapSelectorComponent,
68 MapSvgComponent,
69 NoDeviceConnectedSvgComponent,
70 SubRegionNodeSvgComponent,
Sean Condonf4f54a12018-10-10 23:25:46 +010071 SummaryComponent,
72 ToolbarComponent,
Sean Condonff85fbe2019-03-16 14:28:46 +000073 TopologyComponent,
Sean Condon0c577f62018-11-18 22:40:05 +000074 DraggableDirective,
Sean Condon590b34b2019-12-04 18:44:37 +000075 BadgeSvgComponent,
Sean Condonaa4366d2018-11-02 14:29:01 +000076 ],
77 providers: [
Sean Condonff85fbe2019-03-16 14:28:46 +000078 TopologyService,
Sean Condon28884332019-03-21 14:07:00 +000079 TrafficService,
80 LayoutService
Sean Condonff85fbe2019-03-16 14:28:46 +000081 ],
82 exports: [
83 BackgroundSvgComponent,
84 DetailsComponent,
85 DeviceNodeSvgComponent,
86 ForceSvgComponent,
87 GridsvgComponent,
88 HostNodeSvgComponent,
89 InstanceComponent,
90 LinkSvgComponent,
91 MapSelectorComponent,
92 MapSvgComponent,
93 NoDeviceConnectedSvgComponent,
94 SubRegionNodeSvgComponent,
95 SummaryComponent,
96 ToolbarComponent,
97 TopologyComponent,
Sean Condonff85fbe2019-03-16 14:28:46 +000098 DraggableDirective,
Sean Condon590b34b2019-12-04 18:44:37 +000099 BadgeSvgComponent
Sean Condonf4f54a12018-10-10 23:25:46 +0100100 ]
101})
Sean Condonff85fbe2019-03-16 14:28:46 +0000102export class Gui2TopoLibModule { }