Commit d5d2ad58 authored by Peter V. Saveliev's avatar Peter V. Saveliev

ndb.objects.interface: fix master interface resolution

parent 42695c8a
......@@ -550,7 +550,7 @@ class Interface(RTNL_Object):
def apply(self, rollback=False, fallback=False):
# translate string link references into numbers
for key in ('link', ):
for key in ('link', 'master'):
if key in self and isinstance(self[key], basestring):
self[key] = self.ndb.interfaces[self[key]]['index']
setns = self.state.get() == 'setns'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment