Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
safeedge
pyroute2
Commits
d5d2ad58
Commit
d5d2ad58
authored
Apr 15, 2020
by
Peter V. Saveliev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb.objects.interface: fix master interface resolution
parent
42695c8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pyroute2/ndb/objects/interface.py
pyroute2/ndb/objects/interface.py
+1
-1
No files found.
pyroute2/ndb/objects/interface.py
View file @
d5d2ad58
...
@@ -550,7 +550,7 @@ class Interface(RTNL_Object):
...
@@ -550,7 +550,7 @@ class Interface(RTNL_Object):
@
check_auth
(
'obj:modify'
)
@
check_auth
(
'obj:modify'
)
def
apply
(
self
,
rollback
=
False
,
fallback
=
False
):
def
apply
(
self
,
rollback
=
False
,
fallback
=
False
):
# translate string link references into numbers
# translate string link references into numbers
for
key
in
(
'link'
,
):
for
key
in
(
'link'
,
'master'
):
if
key
in
self
and
isinstance
(
self
[
key
],
basestring
):
if
key
in
self
and
isinstance
(
self
[
key
],
basestring
):
self
[
key
]
=
self
.
ndb
.
interfaces
[
self
[
key
]][
'index'
]
self
[
key
]
=
self
.
ndb
.
interfaces
[
self
[
key
]][
'index'
]
setns
=
self
.
state
.
get
()
==
'setns'
setns
=
self
.
state
.
get
()
==
'setns'
...
...
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