Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
ipw
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2015-03-31 16:54:55 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
143fbe2b4e790d65f48dca37f350ffc9fa8cff84
143fbe2b
1 parent
6810559d
Added an ifdown before adding an interface into a container
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
ipw
ipw
View file @
143fbe2
...
...
@@ -650,7 +650,8 @@ case "$CMD" in
[[
"
$CONTAINER_PID
"
==
''
]]
&&
CONTAINER_PID
=
$(
lxc-info -p -n
"
$CONTAINER
"
| awk
'{ print $2 }'
)
ip link add name
"
$HNAME
"
type
veth peer name
".c
$GNAME
"
ip link add name
"
$HNAME
"
type
veth peer name
".c
$GNAME
"
&&
lxc-attach -n
"
$CONTAINER
"
ifdown
"
$GNAME
"
ip link
set
"
$HNAME
"
up
ip link
set
".c
$GNAME
"
netns
"
$CONTAINER_PID
"
lxc-attach -n
"
$CONTAINER
"
ip link
set
".c
$GNAME
"
name
"
$GNAME
"
...
...
Please
register
or
login
to post a comment