- Trying to model IGP for BGP-LS application. My initial model is;
- {:router}-[:CONTAINS]->(:interface)-[:CONNECTED]->(:interface)<-[:CONTAINS]<-{:router}
- As seen defined the link as unidirectional, and different node types for router and interface.
- How its defined in Next-UI topology model, especially for the interface. Is there any documentation how to model router with interfaces. Do they defined as node or labels on links, like source/destination interface.
Would recommend you to get to know our tutorial: Understand Common Topology Model
The CTM model implies each network component to be described as a JavaScript object. In your case you may want to specify the list of available interfaces for each node inside the node object, since there's no strict way to do so in NeXt.
{ id: 0, name: "Router1", type: "router", interfaces: [ "int1", "int2", "int3" ] }
Thus, the link object should contain specific information about the connected interfaces
{ id: 0, source: 0, target: 1, sourceInterface: "int2", targetInterface: "int100" }
Like I said, "interfaces" is not something that is built in NeXt. However, you can add your own attributes into the topology data object (like done above) and go on to process the information as you need.
if you need to depict interface on the topology: http://codepen.io/NEXTSUPPORT/full/LNgYER/
To see the code: http://codepen.io/NEXTSUPPORT/pen/LNgYER
- Trying to build network monitor application. Able to change the node icon according to node's attribute (status:down/up) if its up using green router icon, if its down using the red one. Trying to apply same logic to nodeset. If one of the node's in the nodeset is down (status:down) change the nodeset icon type to red one.
created a snippet for you: http://codepen.io/NEXTSUPPORT/pen/WRrxWM
- It looks fine but a little different than what is needed. This requires additional function while construing topology data ( Using graph database, neo4j and importing its data to next ui). Looking for a different approach over the data ;
nodes: [{
"id": 0,
"x": 410,
"y": 100,
"name": "12K-1",
"status":"down"
}, {
"id": 1,
"x": 410,
"y": 280,
"name": "12K-2"
"status":"up"
}
and the nodes is without nodeset
nodeSet: [
{
id: 1001,
nodes: [0,1],
name: "Group 1",
x: 100,
y: 50
},
for the nodeset config"
nodeSetConfig: {
color: function(model){
// iterate over node's status and if one of then is down set colour red and exit.
},
This will be very useful in one the routers is down, it nodeset (city,pop or etc) will be red and alerted. Trying to understand if its possible to iterate over the node's of the nodeset for this type of function.
Comments
0 comments
Please sign in to leave a comment.