blob: 50898abbd56f81f1aeff6a09bdc7102223b932f0 [file] [log] [blame]
Simon Hunt629b99e2015-07-27 17:38:33 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
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 Hunta58d8942017-08-11 12:51:14 -070025 * Defines constants for property/localization keys on the default summary
26 * and details panels. Note that display labels should be looked up using
Simon Hunt879ce452017-08-10 23:32:00 -070027 * the "core.view.Topo" localization bundle (LionBundle).
Simon Huntfb940112015-07-29 18:36:35 -070028 */
29 public static final class Properties {
Simon Hunt3a0598f2015-08-04 19:59:04 -070030 public static final String SEPARATOR = "-";
31
Simon Huntfb940112015-07-29 18:36:35 -070032 // summary panel
Simon Hunt879ce452017-08-10 23:32:00 -070033 public static final String DEVICES = "devices";
34 public static final String LINKS = "links";
35 public static final String HOSTS = "hosts";
36 public static final String TOPOLOGY_SSCS = "topology_sccs";
37 public static final String INTENTS = "intents";
38 public static final String TUNNELS = "tunnels";
39 public static final String FLOWS = "flows";
40 public static final String VERSION = "version";
Simon Huntfb940112015-07-29 18:36:35 -070041
42 // device details
Simon Hunt879ce452017-08-10 23:32:00 -070043 public static final String URI = "uri";
44 public static final String VENDOR = "vendor";
45 public static final String HW_VERSION = "hw_version";
46 public static final String SW_VERSION = "sw_version";
47 public static final String SERIAL_NUMBER = "serial_number";
48 public static final String PROTOCOL = "protocol";
49 public static final String LATITUDE = "latitude";
50 public static final String LONGITUDE = "longitude";
51 public static final String GRID_Y = "grid_y";
52 public static final String GRID_X = "grid_x";
53 public static final String PORTS = "ports";
Simon Huntfb940112015-07-29 18:36:35 -070054
55 // host details
Simon Hunt879ce452017-08-10 23:32:00 -070056 public static final String MAC = "mac";
57 public static final String IP = "ip";
58 public static final String VLAN = "vlan";
Simon Hunta58d8942017-08-11 12:51:14 -070059 public static final String VLAN_NONE = "vlan_none";
Simon Huntfb940112015-07-29 18:36:35 -070060 }
61
Simon Hunt3a0598f2015-08-04 19:59:04 -070062 /**
Simon Hunt8d22c4b2015-08-06 16:24:43 -070063 * Defines identities of core buttons that appear on the topology
Simon Hunt3a0598f2015-08-04 19:59:04 -070064 * details panel.
65 */
66 public static final class CoreButtons {
Simon Hunt8d22c4b2015-08-06 16:24:43 -070067 public static final ButtonId SHOW_DEVICE_VIEW =
68 new ButtonId("showDeviceView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070069
Simon Hunt8d22c4b2015-08-06 16:24:43 -070070 public static final ButtonId SHOW_FLOW_VIEW =
71 new ButtonId("showFlowView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070072
Simon Hunt8d22c4b2015-08-06 16:24:43 -070073 public static final ButtonId SHOW_PORT_VIEW =
74 new ButtonId("showPortView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070075
Simon Hunt8d22c4b2015-08-06 16:24:43 -070076 public static final ButtonId SHOW_GROUP_VIEW =
77 new ButtonId("showGroupView");
Jian Li79f67322016-01-06 18:22:37 -080078
79 public static final ButtonId SHOW_METER_VIEW =
80 new ButtonId("showMeterView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070081 }
Simon Hunt629b99e2015-07-27 17:38:33 -070082}