blob: dc5297a4e1d5f47c3df607fd2018d5d2d0fdeefc [file] [log] [blame]
Simon Hunt629b99e2015-07-27 17:38:33 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Simon Hunt629b99e2015-07-27 17:38:33 -07003 *
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.
Simon Hunt629b99e2015-07-27 17:38:33 -070015 */
16
17package org.onosproject.ui.topo;
18
19/**
20 * Defines string constants used in the Topology View of the ONOS GUI.
Simon Hunt629b99e2015-07-27 17:38:33 -070021 */
22public final class TopoConstants {
23
24 /**
Simon Huntfb940112015-07-29 18:36:35 -070025 * Defines constants for property names on the default summary and
26 * details panels.
27 */
28 public static final class Properties {
Simon Hunt3a0598f2015-08-04 19:59:04 -070029 public static final String SEPARATOR = "-";
30
Simon Huntfb940112015-07-29 18:36:35 -070031 // summary panel
32 public static final String DEVICES = "Devices";
33 public static final String LINKS = "Links";
34 public static final String HOSTS = "Hosts";
35 public static final String TOPOLOGY_SSCS = "Topology SCCs";
36 public static final String INTENTS = "Intents";
37 public static final String TUNNELS = "Tunnels";
38 public static final String FLOWS = "Flows";
39 public static final String VERSION = "Version";
40
41 // device details
42 public static final String URI = "URI";
43 public static final String VENDOR = "Vendor";
44 public static final String HW_VERSION = "H/W Version";
45 public static final String SW_VERSION = "S/W Version";
Steven Burrows2762b242016-12-14 11:54:47 -050046 public static final String SERIAL_NUMBER = "Serial #";
Simon Huntfb940112015-07-29 18:36:35 -070047 public static final String PROTOCOL = "Protocol";
48 public static final String LATITUDE = "Latitude";
49 public static final String LONGITUDE = "Longitude";
Simon Huntbc30e682017-02-15 18:39:23 -080050 public static final String GRID_Y = "Grid Y";
51 public static final String GRID_X = "Grid X";
Simon Huntfb940112015-07-29 18:36:35 -070052 public static final String PORTS = "Ports";
53
54 // host details
55 public static final String MAC = "MAC";
56 public static final String IP = "IP";
57 public static final String VLAN = "VLAN";
58 }
59
Simon Hunt3a0598f2015-08-04 19:59:04 -070060 /**
Simon Hunt8d22c4b2015-08-06 16:24:43 -070061 * Defines identities of core buttons that appear on the topology
Simon Hunt3a0598f2015-08-04 19:59:04 -070062 * details panel.
63 */
64 public static final class CoreButtons {
Simon Hunt8d22c4b2015-08-06 16:24:43 -070065 public static final ButtonId SHOW_DEVICE_VIEW =
66 new ButtonId("showDeviceView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070067
Simon Hunt8d22c4b2015-08-06 16:24:43 -070068 public static final ButtonId SHOW_FLOW_VIEW =
69 new ButtonId("showFlowView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070070
Simon Hunt8d22c4b2015-08-06 16:24:43 -070071 public static final ButtonId SHOW_PORT_VIEW =
72 new ButtonId("showPortView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070073
Simon Hunt8d22c4b2015-08-06 16:24:43 -070074 public static final ButtonId SHOW_GROUP_VIEW =
75 new ButtonId("showGroupView");
Jian Li79f67322016-01-06 18:22:37 -080076
77 public static final ButtonId SHOW_METER_VIEW =
78 new ButtonId("showMeterView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070079 }
Simon Hunt629b99e2015-07-27 17:38:33 -070080}