Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nemu3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
nexedi
nemu3
Commits
50184001
Commit
50184001
authored
Aug 04, 2010
by
Martín Ferrari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handler regexes.
parent
27ce6c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/netns/iproute.py
src/netns/iproute.py
+2
-2
No files found.
src/netns/iproute.py
View file @
50184001
...
...
@@ -702,8 +702,8 @@ def get_tc_tree():
for line in tcdata.split("
\
n
"):
if line == "":
continue
match = re.match(r'
qdisc
(
\
S
+
)
(
\
d
+
):
\
d
*
dev
(
\
S
+
)
' +
r'
(
?
:
parent
(
\
d
+
):
\
d
*|
root
)
\
s
*
(.
*
)
', line)
match = re.match(r'
qdisc
(
\
S
+
)
(
[
0
-
9
a
-
f
]
+
):[
0
-
9
a
-
f
]
*
dev
(
\
S
+
)
' +
r'
(
?
:
parent
(
[
0
-
9
a
-
f
]
+
):[
0
-
9
a
-
f
]
*|
root
)
\
s
*
(.
*
)
', line)
if not match:
raise RuntimeError("Invalid output from `tc qdisc'
:
`
%
s
'" % line)
qdisc = match.group(1)
...
...
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