blob: 63f51d784f3de9840ff441d07214a824c63f7bf0 [file] [log] [blame]
/*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.onosproject.linkprops;
import org.onosproject.ui.UiTopoOverlay;
import org.onosproject.ui.topo.PropertyPanel;
import org.onosproject.ui.GlyphConstants;
import static org.onosproject.ui.topo.TopoConstants.Properties.FLOWS;
import static org.onosproject.ui.topo.TopoConstants.Properties.INTENTS;
import static org.onosproject.ui.topo.TopoConstants.Properties.TOPOLOGY_SSCS;
import static org.onosproject.ui.topo.TopoConstants.Properties.TUNNELS;
import static org.onosproject.ui.topo.TopoConstants.Properties.VERSION;
/**
* Link Properties topology overlay.
*/
public class LinkPropsTopovOverlay extends UiTopoOverlay {
// NOTE: this must match the ID defined in sampleTopov.js
private static final String OVERLAY_ID = "linkprops-overlay";
private static final String MY_TITLE = "Link Properties";
private static final String MY_VERSION = "Beta-1.0.0042";
public LinkPropsTopovOverlay() {
super(OVERLAY_ID);
}
@Override
public void modifySummary(PropertyPanel pp) {
pp.title(MY_TITLE)
.glyphId(GlyphConstants.CROWN)
.removeProps(
TOPOLOGY_SSCS,
INTENTS,
TUNNELS,
FLOWS,
VERSION
)
.addProp(VERSION, MY_VERSION);
}
}