blob: 63f51d784f3de9840ff441d07214a824c63f7bf0 [file] [log] [blame]
Adnaan Sachidanandana915da12017-08-09 15:12:45 -07001/*
2 * Copyright 2017-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 */
16package org.onosproject.linkprops;
17
18import org.onosproject.ui.UiTopoOverlay;
19import org.onosproject.ui.topo.PropertyPanel;
20import org.onosproject.ui.GlyphConstants;
21
22import static org.onosproject.ui.topo.TopoConstants.Properties.FLOWS;
23import static org.onosproject.ui.topo.TopoConstants.Properties.INTENTS;
24import static org.onosproject.ui.topo.TopoConstants.Properties.TOPOLOGY_SSCS;
25import static org.onosproject.ui.topo.TopoConstants.Properties.TUNNELS;
26import static org.onosproject.ui.topo.TopoConstants.Properties.VERSION;
27
28/**
29 * Link Properties topology overlay.
30 */
31public class LinkPropsTopovOverlay extends UiTopoOverlay {
32
33 // NOTE: this must match the ID defined in sampleTopov.js
34 private static final String OVERLAY_ID = "linkprops-overlay";
35
36 private static final String MY_TITLE = "Link Properties";
37 private static final String MY_VERSION = "Beta-1.0.0042";
38
39
40 public LinkPropsTopovOverlay() {
41 super(OVERLAY_ID);
42 }
43
44
45 @Override
46 public void modifySummary(PropertyPanel pp) {
47 pp.title(MY_TITLE)
48 .glyphId(GlyphConstants.CROWN)
49 .removeProps(
50 TOPOLOGY_SSCS,
51 INTENTS,
52 TUNNELS,
53 FLOWS,
54 VERSION
55 )
56 .addProp(VERSION, MY_VERSION);
57 }
58
59}