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
7b3043a1
Commit
7b3043a1
authored
Mar 18, 2020
by
wutu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化日志
parent
06ba3f12
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
bishe-utils/src/main/java/top/ninwoo/utils/util/impl/OvsDockerUtilsImpl.java
...n/java/top/ninwoo/utils/util/impl/OvsDockerUtilsImpl.java
+1
-1
bishe-utils/src/main/java/top/ninwoo/utils/util/impl/OvsUtilsImpl.java
...rc/main/java/top/ninwoo/utils/util/impl/OvsUtilsImpl.java
+0
-1
docker/network-test/Dockerfile
docker/network-test/Dockerfile
+7
-0
docker/network-test/sources.list
docker/network-test/sources.list
+19
-0
No files found.
bishe-utils/src/main/java/top/ninwoo/utils/util/impl/OvsDockerUtilsImpl.java
View file @
7b3043a1
...
...
@@ -27,7 +27,7 @@ public class OvsDockerUtilsImpl implements OvsDockerUtils {
// 这里需要给容器设置mtu
String
mtuCmd
=
"docker exec "
+
containerId
+
" ifconfig eth1 mtu 1450"
;
String
mtuRes
=
linuxCtlUtils
.
runCmd
(
mtuCmd
);
System
.
out
.
println
(
mtuRes
);
//
System.out.println(mtuRes);
return
res
;
}
...
...
bishe-utils/src/main/java/top/ninwoo/utils/util/impl/OvsUtilsImpl.java
View file @
7b3043a1
...
...
@@ -128,7 +128,6 @@ public class OvsUtilsImpl implements OvsUtils {
public
void
addBridge
(
String
name
)
{
String
cmd
=
"echo 'Vudo3423' | sudo -S ovs-vsctl add-br "
+
name
;
String
res
=
linuxCtlUtils
.
runCmd
(
cmd
);
System
.
out
.
println
(
res
);
if
(
res
.
contains
(
"Error"
))
{
throw
new
RuntimeException
(
"linux bridge has existed!"
);
}
...
...
docker/network-test/Dockerfile
0 → 100644
View file @
7b3043a1
FROM
centos
MAINTAINER
Joliu<ljo0412@live.com>
RUN
yum
install
-y
http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
&&
\
yum install -y iperf iptables tc
RUN
yum
install
-y
net-tools.x86_64
RUN
echo
"net.ipv4.ip_forward=1"
>>
/etc/sysctl.conf
docker/network-test/sources.list
0 → 100644
View file @
7b3043a1
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ xenial-backports main restricted universe multiverse
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