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
fd87fef6
Commit
fd87fef6
authored
Oct 25, 2010
by
martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compat with braindead ubuntu changes
parent
a059a46d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/netns/iproute.py
src/netns/iproute.py
+1
-1
test/test_util.py
test/test_util.py
+2
-2
No files found.
src/netns/iproute.py
View file @
fd87fef6
...
...
@@ -292,7 +292,7 @@ def get_if_data():
match
=
re
.
search
(
r'^(\
d+):
\s+(.*)'
,
line
)
idx
=
int
(
match
.
group
(
1
))
match
=
re
.
search
(
r'^(\
d+): (
\S+): <(\
S+)> m
tu (\
d+) qdisc
\S+'
+
r'.*link/\
S+
([
0-9a-f:]+) brd ([0-9a-f:]+)
'
,
line
)
r'.*link/\
S+
(?: ([
0-9a-f:]+) brd ([0-9a-f:]+))?
'
,
line
)
flags
=
match
.
group
(
3
).
split
(
","
)
i
=
interface
(
index
=
match
.
group
(
1
),
...
...
test/test_util.py
View file @
fd87fef6
...
...
@@ -27,7 +27,7 @@ def process_ipcmd(str):
continue
# Assume cur is defined
assert
cur
!=
None
match
=
re
.
search
(
r'^\
s+li
nk/\
S*
([
0-9a-f:]+)
(?: |$)'
,
line
)
match
=
re
.
search
(
r'^\
s+li
nk/\
S*
(?: ([
0-9a-f:]+))?
(?: |$)'
,
line
)
if
match
!=
None
:
out
[
cur
][
'lladdr'
]
=
match
.
group
(
1
)
continue
...
...
@@ -49,7 +49,7 @@ def process_ipcmd(str):
'
family
': '
inet6
'})
continue
match = re.search(r'
^
\
s
{
6
}
', line)
match = re.search(r'
^
\
s
{
4
}
', line)
assert match != None
return out
...
...
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