Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Compliance Tests
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Compliance Tests
Commits
eef6a711
Commit
eef6a711
authored
Apr 29, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLAN CLI update : Wrong mask
Clear the CPU bit (19th) in VLAN mask.
parent
b54ebb9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
vlan_array_wrs.tcl
ATTEST/Vlan/Net-O2/NECP_LIB/Cli/Vlan/vlan_array_wrs.tcl
+11
-3
No files found.
ATTEST/Vlan/Net-O2/NECP_LIB/Cli/Vlan/vlan_array_wrs.tcl
View file @
eef6a711
...
...
@@ -2844,6 +2844,8 @@ proc callback_vlan_admit_all_frames {args} {
if
{[
regexp
$vlan
_id
$line
]}
{
if
{[
lindex
$line
0
]
==
$vlan
_id
}
{
set previousvlan
[
string
map
{
"0x0004"
""
}
[
lindex
$line
2
]]
## Take into account only the 18 ports
set previousvlan
[
format
0x%x
[
expr
{
$previousvlan
& 0x3FFFF
}]]
set previousvlaninbin
[
string
trimleft
[
HextoBin
$previousvlan
]
0
]
set previousvlanindec
[
wrsbin2dec
$previousvlaninbin
]
set checkportsavail
[
Portfinder
$previousvlaninbin
]
...
...
@@ -2943,6 +2945,8 @@ proc callback_vlan_admit_only_vlan_tagged_frames {args} {
if
{[
regexp
$vlan
_id
$line
]}
{
if
{[
lindex
$line
0
]
==
$vlan
_id
}
{
set previousvlan
[
string
map
{
"0x0004"
""
}
[
lindex
$line
2
]]
## Take into account only the 18 ports
set previousvlan
[
format
0x%x
[
expr
{
$previousvlan
& 0x3FFFF
}]]
set previousvlaninbin
[
string
trimleft
[
HextoBin
$previousvlan
]
0
]
set previousvlanindec
[
wrsbin2dec
$previousvlaninbin
]
set checkportsavail
[
Portfinder
$previousvlaninbin
]
...
...
@@ -3045,7 +3049,9 @@ proc callback_vlan_set_tagged_port_vlan_membership {args} {
if
{[
regexp
$vlan
_id
$line
]}
{
if
{[
lindex
$line
0
]
==
$vlan
_id
}
{
set previousvlan
[
string
map
{
"0x0004"
""
}
[
lindex
$line
2
]]
set previousvlaninbin
[
string
trimleft
[
HextoBin
$previousvlan
]
0
]
## Take into account only the 18 ports
set previousvlan
[
format
0x%x
[
expr
{
$previousvlan
& 0x3FFFF
}]]
set previousvlaninbin
[
string
trimleft
[
HextoBin
$previousvlan
]
0
]
set previousvlanindec
[
wrsbin2dec
$previousvlaninbin
]
set checkportsavail
[
Portfinder
$previousvlaninbin
]
}
...
...
@@ -3054,7 +3060,7 @@ proc callback_vlan_set_tagged_port_vlan_membership {args} {
########################## NEW ############################
lappend listofPorts_tpvlan
"
$vlan
_id-
$port
InBin"
foreach LPorts
$listof
Ports_tpvlan
{
foreach LPorts
$listof
Ports_tpvlan
{
set Req
[
split
$LPorts -
]
if
{
$vlan
_id ==
[
lindex
$Req 0
]}
{
set LPorts_
[
lindex
$Req 0
]
[
wrsbin2dec
[
lindex
$Req 1
]]
...
...
@@ -3074,7 +3080,7 @@ proc callback_vlan_set_tagged_port_vlan_membership {args} {
set port_num
"0x
[
string
toupper
[
format
%01x
$finaladdedports
]]
"
}
}
########################## NEW ############################
########################## NEW ############################
if
{
!
[
Send_cli_command -session_handler
$session
_handler
\
-cmd_type
$cmd
_type
\
...
...
@@ -3198,6 +3204,8 @@ proc callback_vlan_set_pvid_to_untagged_port {args} {
if
{[
regexp
$vlan
_id
$line
]}
{
if
{[
lindex
$line
0
]
==
$vlan
_id
}
{
set previousvlan
[
string
map
{
"0x0004"
""
}
[
lindex
$line
2
]]
## Take into account only the 18 ports
set previousvlan
[
format
0x%x
[
expr
{
$previousvlan
& 0x3FFFF
}]]
set previousvlaninbin
[
string
trimleft
[
HextoBin
$previousvlan
]
0
]
set previousvlanindec
[
wrsbin2dec
$previousvlaninbin
]
set checkportsavail
[
Portfinder
$previousvlaninbin
]
...
...
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