
es.tid.tedb.EdgeUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of topology Show documentation
Show all versions of topology Show documentation
Traffic Engineering Database, BGP-LS peer, Topology Module
The newest version!
package es.tid.tedb;
import java.net.Inet4Address;
import es.tid.of.DataPathID;
public class EdgeUtils {
public static Object getEdge(String edge){
Object router_id_addr;
try { //Router_type: IPv4
router_id_addr = (Inet4Address) Inet4Address.getByName(edge);
} catch (Exception e) { //Router_type: DatapathID
router_id_addr = (DataPathID) DataPathID.getByName(edge);
//FIXME: See what to do if it is not IPv4 or DatapahID
}
return router_id_addr;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy