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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
alex037yang
openXG-WIC-Cnf
Commits
2e48bc41
Commit
2e48bc41
authored
Nov 11, 2019
by
wutu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试远程vxlan功能模块
parent
f72edd6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bishe-edge-center/src/main/java/top/ninwoo/edgecenter/service/impl/TopologyServiceImpl.java
...p/ninwoo/edgecenter/service/impl/TopologyServiceImpl.java
+2
-2
No files found.
bishe-edge-center/src/main/java/top/ninwoo/edgecenter/service/impl/TopologyServiceImpl.java
View file @
2e48bc41
...
@@ -77,7 +77,7 @@ public class TopologyServiceImpl implements TopologyService {
...
@@ -77,7 +77,7 @@ public class TopologyServiceImpl implements TopologyService {
flag
++;
flag
++;
// 创建对应的虚拟交换机
// 创建对应的虚拟交换机
// 在创建前需要检查,是否已经创建过对应的交换机
// 在创建前需要检查,是否已经创建过对应的交换机
if
(!
ovsService
.
isBridge
(
appName1
))
{
if
(!
appName1
.
contains
(
"remote"
)
&&
!
ovsService
.
isBridge
(
appName1
.
substring
(
3
)
))
{
LOG
.
info
(
"Create Ovs Bridge!"
);
LOG
.
info
(
"Create Ovs Bridge!"
);
ovsService
.
addBridge
(
appName1
.
substring
(
3
));
ovsService
.
addBridge
(
appName1
.
substring
(
3
));
}
}
...
@@ -87,7 +87,7 @@ public class TopologyServiceImpl implements TopologyService {
...
@@ -87,7 +87,7 @@ public class TopologyServiceImpl implements TopologyService {
if
(
appName2
.
startsWith
(
"br:"
))
{
if
(
appName2
.
startsWith
(
"br:"
))
{
flag
++;
flag
++;
// 创建对应的虚拟交换机
// 创建对应的虚拟交换机
if
(!
ovsService
.
isBridge
(
appName2
.
substring
(
3
)))
{
if
(!
appName2
.
contains
(
"remote"
)
&&
!
ovsService
.
isBridge
(
appName2
.
substring
(
3
)))
{
LOG
.
info
(
"Create Ovs Bridge!"
);
LOG
.
info
(
"Create Ovs Bridge!"
);
ovsService
.
addBridge
(
appName2
.
substring
(
3
));
ovsService
.
addBridge
(
appName2
.
substring
(
3
));
}
}
...
...
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