Commit 3100dd01 authored by Elf's avatar Elf

不使用IPtables来创造容器之间断路,改为直接在容器转发是构建路由算法

parent 83eeee8f
......@@ -54,6 +54,7 @@ public class LogicTopoServiceImpl implements LogicTopoService {
return;
}
/*
// 这里声明:cNames中不包含ovs虚拟机,仅包含docker容器组成的逻辑拓扑
for (int i = 1; i < cNames.length; i++) {
for (int j = 0; j < i; j++) {
......@@ -65,6 +66,8 @@ public class LogicTopoServiceImpl implements LogicTopoService {
}
}
*/
clustersTopo.put(clusterId, logictopo);
}
......@@ -111,6 +114,7 @@ public class LogicTopoServiceImpl implements LogicTopoService {
return "拓扑大小不一致";
}
/*
//System.out.println("终于要更新网络了啦");
// 更新网络拓扑
for (int i = 1; i < newTopoArr.length; i++) {
......@@ -127,6 +131,8 @@ public class LogicTopoServiceImpl implements LogicTopoService {
}
}
}
*/
clustersTopo.put(clusterId, logictopo);
return "success";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment