Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-WIC-Cnf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-WIC-Cnf
Commits
f72edd6a
Commit
f72edd6a
authored
Nov 11, 2019
by
wutu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试远程vxlan功能模块
parent
61788084
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
.idea/.gitignore
.idea/.gitignore
+0
-6
bishe-edge-center/src/main/java/top/ninwoo/edgecenter/service/impl/TopologyServiceImpl.java
...p/ninwoo/edgecenter/service/impl/TopologyServiceImpl.java
+6
-6
No files found.
.idea/.gitignore
deleted
100644 → 0
View file @
61788084
# Default ignored files
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
\ No newline at end of file
bishe-edge-center/src/main/java/top/ninwoo/edgecenter/service/impl/TopologyServiceImpl.java
View file @
f72edd6a
...
...
@@ -109,11 +109,11 @@ public class TopologyServiceImpl implements TopologyService {
// 两个都是本地交换机
if
(
""
.
equals
(
remoteIp1
)
&&
""
.
equals
(
remoteIp2
))
{
// 创建两个虚拟交换机
ovsService
.
addBridge
(
appName1
);
ovsService
.
addBridge
(
appName2
);
// 创建两个虚拟交换机
--前边都创建过交换机了,不需要再进行创建
//
ovsService.addBridge(appName1);
//
ovsService.addBridge(appName2);
// 创建两个交换机之间的连接
ovsService
.
linkOvs
(
appName1
,
appName2
);
ovsService
.
linkOvs
(
appName1
.
substring
(
3
),
appName2
.
substring
(
3
)
);
}
// 如果两个都是远程交换机
...
...
@@ -124,10 +124,10 @@ public class TopologyServiceImpl implements TopologyService {
else
{
if
(
""
.
equals
(
remoteIp1
))
{
// appName2是远程的
ovsService
.
setVxlan
(
appName1
,
remoteIp2
);
ovsService
.
setVxlan
(
appName1
.
substring
(
3
)
,
remoteIp2
);
}
else
if
(
""
.
equals
(
remoteIp2
))
{
// appName1是远程的
ovsService
.
setVxlan
(
appName2
,
remoteIp1
);
ovsService
.
setVxlan
(
appName2
.
substring
(
3
)
,
remoteIp1
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment