commit f4911d859c215c9b7d9d911d29e85ce541ebf5e7 Author: Jan Tluka jtluka@redhat.com Date: Wed Jul 25 20:28:49 2012 +0200
Adding rescan method to reinitialize scanned devices.
NetConfig/NetConfigDevNames.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) --- diff --git a/NetConfig/NetConfigDevNames.py b/NetConfig/NetConfigDevNames.py index 1619b7e..1220480 100644 --- a/NetConfig/NetConfigDevNames.py +++ b/NetConfig/NetConfigDevNames.py @@ -39,6 +39,9 @@ class NetConfigDevNames: scan.append({"name": d, "hwaddr": addr}) return scan
+ def rescan_netdevs(self): + self._scan = self._scan_netdevs() + def assign_name_by_scan(self, dev_id, netdev): if (not "hwaddr" in netdev or "name" in netdev): # name was previously assigned
lnst-developers@lists.fedorahosted.org