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
Artyom A Anikeev
2014-04-16 21:11:17 +0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e702f69cfb2669110cf84c14ef312c60c1d3855f
e702f69c
1 parent
c65b25c7
no debug info
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
ipw
ipw
View file @
e702f69
...
...
@@ -322,13 +322,13 @@ case "$CMD" in
OLD_VLAN_N_BRIDGES
=(
`
get_vlan_n_bridges
`
)
for
LINE
in
${
OLD_VLAN_N_BRIDGES
[@]
}
;
do
echo
ITERATION
#
echo ITERATION
parse_vlan_subvlan_bridge
"
$LINE
"
OLD_BRNAME
=
"
$BRNAME
"
OLD_VLANNAME
=
"
$VLANNAME
"
##
echo
"BRNAME
$BRNAME
"
echo
"VLANNAME
$VLANNAME
"
#
echo "BRNAME $BRNAME"
#
echo "VLANNAME $VLANNAME"
##
IS_SLAVE
=
0
...
...
@@ -440,15 +440,15 @@ case "$CMD" in
##
parse_vlan_subvlan_bridge
"
${
VLAN_N_BRIDGE
}
"
##
echo
BRNAME
$BRNAME
echo
VLANNAME
$VLANNAME
echo
VLAN
$VLApN
echo
SUBVLAN
$SUBVLAN
#
echo BRNAME $BRNAME
#
echo VLANNAME $VLANNAME
#
echo VLAN $VLApN
#
echo SUBVLAN $SUBVLAN
##
FULL_VLAN_NAME
=
"
$D1Q_IFACE
"
.
"
$VLANNAME
"
##
echo
FULL_VLAN_NAME
$FULL_VLAN_NAME
#
echo FULL_VLAN_NAME $FULL_VLAN_NAME
##
#VLAN STUFF
...
...
@@ -459,8 +459,8 @@ case "$CMD" in
if
[[
"
$SUBVLAN
"
!
=
""
]]
;
then
#is it subvlan?
FULL_PARVLAN_NAME
=
"
$D1Q_IFACE
"
.
"
$VLAN
"
##
echo
FULL_PARVLAN_NAME
$FULL_PARVLAN_NAME
echo
D1Q_IFACE
$D1Q_IFACE
#
echo FULL_PARVLAN_NAME $FULL_PARVLAN_NAME
#
echo D1Q_IFACE $D1Q_IFACE
##
if
! ip link show
"
$FULL_PARVLAN_NAME
"
2>/dev/null;
then
#should we create a new parent vlan?
#echo "ip link add link $D1Q_IFACE name $FULL_PARVLAN_NAME type vlan id $VLAN" #vlan in bond
...
...
@@ -483,7 +483,9 @@ case "$CMD" in
#BRIDGE STUFF
echo
BRIDGE STUFF
"
$BRNAME
"
##
#echo BRIDGE STUFF "$BRNAME"
##
if
[[
"
$BRNAME
"
!
=
""
]]
;
then
#if [[ "`brctl show | grep "$BRNAME"`" = "" ]]; then #do this bridge exists?
...
...
Please
register
or
login
to post a comment