Search in sources :

Example 1 with EdgeKey

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.EdgeKey in project bgpcep by opendaylight.

the class LinkstateGraphBuilder method removeEdge.

private void removeEdge(final LinkCase linkCase) {
    /* Get Source and Destination Connected Vertex */
    if (linkCase.getLinkDescriptors() == null) {
        LOG.warn("Missing Link descriptor in link {}, skipping it", linkCase);
        return;
    }
    EdgeKey edgeKey = new EdgeKey(getEdgeId(linkCase));
    if (edgeKey == null || edgeKey.getEdgeId() == Uint64.ZERO) {
        LOG.warn("Unable to get the Edge Key from link {}, skipping it", linkCase);
        return;
    }
    LOG.info("Deleted Edge {} from TED[{}]", edgeKey, cgraph);
    cgraph.deleteEdge(edgeKey);
}
Also used : EdgeKey(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.EdgeKey)

Aggregations

EdgeKey (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.EdgeKey)1