Skip to content

Commit 3d8bb1d

Browse files
authored
Merge pull request #53 from noironetworks/main
Updated readme doc with latest vkaci changes
2 parents 4b571ae + 54df3f2 commit 3d8bb1d

File tree

6 files changed

+29
-5
lines changed

6 files changed

+29
-5
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,31 @@ Cluster Network Graph Example: Without specific Namespace
8080

8181
![Cluster Network Graph Example: Without specific Namespace](readme-img/fig4.png)
8282

83+
VKACI can have 3 types of topologies based on the setup.
84+
1. Baremetal: In this case the nodes are directly connected to the leaf(s)
85+
2. Esxi5 and Nutanix: In this case, the nodes run on a hypervisor which in turn is connected to the leaf(s). The below image displays the Nutanix case
86+
![Nutanix](readme-img/fig11.jpg)
87+
3. Hybrid: This is a combination of baremetal & Esxi5 and Nutanix where some nodes are directly connected to the leaf(s) and some are running on a hypervisor which is connected to the leaf(s)
88+
89+
The VKACI has the support of secondary links as well. It can have SRIOV and MacVlan links. For better visualization, VKACI provides three different filtered views of the topology.
90+
1. Primary Links: These are the traditional links with which different topology nodes are connected to each other
91+
2. SRIOV Links: These are the secondary links between the different topology nodes. It is denoted by purple lines as shown in the figure.
92+
93+
![Cluster Network Graph Example: Sriov Links](readme-img/fig8.png)
94+
95+
The label of the links between a node and a leaf is denoted as node-interface:leaf-interface. So, in the above example, PF-ens1f2 is a node interface and eth1/41 is a leaf interface. Similarly, the label of the links between a node and a pod is denoted as pod-interface:node-interface. So, in the above example net1 is a pod interface and VF-ens1f2v2 is a node interface.
96+
97+
3. MacVlan Links: These are the secondary links between the different topology nodes and are denoted by teal coloured links as shown in the figure.
98+
99+
![Cluster Network Graph Example: MacVlan Links](readme-img/fig9.png)
100+
101+
The labels of the MacVlan links are displayed in the same way as are being displayed for SRIOV links.
102+
103+
4. View All: This view provides the view of all the nodes and links for all namespaces or for a particular namespace. The below image shows an example of hybrid topology in the View All menu.
104+
105+
![Cluster Network Graph Example: View All](readme-img/fig10.png)
106+
107+
Worker2 is directly connected to to the leaf-101 and leaf-102 whereas worker1 runs on a hypervisor which is connected to the leaf(s)
83108
#### Table View
84109

85110
The secondary view of Vkaci outlines the cluster network in different tree table configurations.

app/template/assets/cui-2.0.0/js/vkaci.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ function neo_viz_config(showPodName, container, cypher, seed = null) {
1212
server_user: server_user,
1313
server_password: server_password,
1414
initial_cypher: cypher,
15-
arrows: showPodName,
1615
fix_nodes_in_place_on_drag: true,
1716
layout: {
1817
improvedLayout: true,
@@ -249,7 +248,7 @@ function draw_pods_and_nodes() {
249248
let q = ` MATCH (p:Pod)-[r1]->(n:Node) WHERE p.ns =~ '${selectedNamespace}' `
250249
q += addLabelQuery();
251250
q += `RETURN p,r1,n`
252-
draw(q)
251+
draw(q, true)
253252
//draw("MATCH (p:Pod)-[r]->(n2) WHERE p.ns =~ '" + selectedNamespace + "' RETURN *", true)
254253
}
255254

@@ -269,7 +268,7 @@ function draw_only_primary_links() {
269268
OPTIONAL MATCH (p1:Pod)-[r2:RUNNING_ON]->(n1:Node)-[r3:RUNNING_IN]->(v:VM_Host)-[r4:CONNECTED_TO]-(b) WHERE p1.ns =~ '${selectedNamespace}'`
270269
q += addLabelQuery();
271270
q += `RETURN p, p1, n, n1, r, r2, r1, r3, r4, v, a, b`
272-
draw(q)
271+
draw(q, true)
273272
}
274273

275274
function draw_only_sriov_links() {
@@ -278,7 +277,7 @@ function draw_only_sriov_links() {
278277
OPTIONAL MATCH (p1:Pod)-[r2:RUNNING_ON_SEC]->(n1:Node)-[r3:RUNNING_IN]->(v:VM_Host)-[r4:CONNECTED_TO_SEC]->(b) WHERE p1.ns =~ '${selectedNamespace}'`
279278
q += addLabelQuery();
280279
q += `RETURN p, p1, n, n1, r, r2, r1, r3, r4, v, a, b`
281-
draw(q)
280+
draw(q, true)
282281
}
283282

284283
function draw_only_macvlan_links() {
@@ -287,7 +286,7 @@ function draw_only_macvlan_links() {
287286
OPTIONAL MATCH (p1:Pod)-[r2:RUNNING_ON_TER]->(n1:Node)-[r3:RUNNING_IN]->(v:VM_Host)-[r4:CONNECTED_TO_TER]->(b) WHERE p1.ns =~ '${selectedNamespace}'`
288287
q += addLabelQuery();
289288
q += `RETURN p, p1, n, n1, r, r2, r1, r3, r4, v, a, b`
290-
draw(q)
289+
draw(q, true)
291290
}
292291

293292

readme-img/fig10.png

165 KB
Loading

readme-img/fig11.jpg

177 KB
Loading

readme-img/fig8.png

48.8 KB
Loading

readme-img/fig9.png

67.4 KB
Loading

0 commit comments

Comments
 (0)