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
2a5db95c
Commit
2a5db95c
authored
May 22, 2024
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deletion issue
parent
517bf1de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/nemu/iproute.py
src/nemu/iproute.py
+7
-2
No files found.
src/nemu/iproute.py
View file @
2a5db95c
...
@@ -555,8 +555,11 @@ def get_bridge(br):
...
@@ -555,8 +555,11 @@ def get_bridge(br):
iface = get_if(br)
iface = get_if(br)
brdata = _sysfs_read_br(iface.name)
brdata = _sysfs_read_br(iface.name)
# ports = [ifdata[1][x].index for x in brdata["ports"]]
# ports = [ifdata[1][x].index for x in brdata["ports"]]
if brdata is not None:
del brdata["ports"]
del brdata["ports"]
return bridge.upgrade(iface, **brdata)
return bridge.upgrade(iface, **brdata)
else:
return None
def create_bridge(br):
def create_bridge(br):
...
@@ -598,6 +601,8 @@ def set_bridge(br, recover=True):
...
@@ -598,6 +601,8 @@ def set_bridge(br, recover=True):
raise
raise
orig_br = get_bridge(br)
orig_br = get_bridge(br)
if orig_br is None:
return
diff = br - orig_br # Only set what'
s
needed
diff = br - orig_br # Only set what'
s
needed
cmds
=
[]
cmds
=
[]
...
...
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