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
2014-04-22 23:54:22 +0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cc79df1af80812c53db26445197cd3182033b59d
cc79df1a
1 parent
e6877c5a
Fixed up-ing of bridges without slaves
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
ipw
ipw
View file @
cc79df1
...
...
@@ -539,18 +539,17 @@ case "$CMD" in
if
! iface_isexists
"
$BRNAME
"
;
then
#do this bridge exists?
ip link add
"
$BRNAME
"
type
bridge
ip link
set
dev
"
$BRNAME
"
up
fi
if
[[
"
$VLAN
"
!
=
""
]]
;
then
OLD_BRNAME
=
"
`
get_brname_byslave
"
$FULL_VLAN_NAME
"
`
"
if
[[
"
$OLD_BRNAME
"
=
""
]]
;
then
#is this vlan have been already enslaved?
ip link
set
"
$FULL_VLAN_NAME
"
master
"
$BRNAME
"
ip link
set
dev
"
$BRNAME
"
up
else
if
[[
"
$BRNAME
"
!
=
"
$OLD_BRNAME
"
]]
;
then
ip link
set
"
$FULL_VLAN_NAME
"
nomaster
ip link
set
"
$FULL_VLAN_NAME
"
master
"
$BRNAME
"
ip link
set
dev
"
$BRNAME
"
up
fi
fi
fi
...
...
Please
register
or
login
to post a comment