'IPDB' object has no attribute 'interface' in utils.remove_device

Change-Id: I7068651572f4781ebf7f8cd954730f6a4c30dab3
Closes-bug: #1631819
This commit is contained in:
Liping Mao 2016-10-10 09:02:35 +08:00
parent 98e27df5d7
commit 2f5fcc9926
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def remove_device(ifname):
"""
ip = get_ipdb()
dev_index = ip.interface.get(ifname, {}).get('index', None)
dev_index = ip.interfaces.get(ifname, {}).get('index', None)
if dev_index:
with ip.interfaces[ifname] as iface: