whoops, circular imports
This commit is contained in:
@@ -6,10 +6,10 @@ import os
|
||||
import jinja2
|
||||
##
|
||||
import aif.utils
|
||||
import aif.network._common
|
||||
from . import _common
|
||||
|
||||
|
||||
class Connection(aif.network._common.BaseConnection):
|
||||
class Connection(_common.BaseConnection):
|
||||
def __init__(self, iface_xml):
|
||||
super().__init__(iface_xml)
|
||||
self.provider_type = 'systemd-networkd'
|
||||
@@ -36,7 +36,7 @@ class Connection(aif.network._common.BaseConnection):
|
||||
|
||||
def _initCfg(self):
|
||||
if self.device == 'auto':
|
||||
self.device = aif.network._common.getDefIface(self.connection_type)
|
||||
self.device = _common.getDefIface(self.connection_type)
|
||||
self._cfg = {'Match': {'Name': self.device},
|
||||
'Network': {'Description': ('A {0} profile for {1} '
|
||||
'(generated by AIF-NG)').format(self.connection_type,
|
||||
@@ -137,12 +137,12 @@ class Wireless(Connection):
|
||||
except AttributeError:
|
||||
bssid = None
|
||||
if bssid:
|
||||
bssid = aif.network._common.canonizeEUI(bssid)
|
||||
bssid = _common.canonizeEUI(bssid)
|
||||
self._wpasupp['bssid'] = bssid
|
||||
self._wpasupp['bssid_whitelist'] = bssid
|
||||
crypto = self.xml.find('encryption')
|
||||
if crypto:
|
||||
crypto = aif.network._common.convertWifiCrypto(crypto, self._cfg['BASE']['ESSID'])
|
||||
crypto = _common.convertWifiCrypto(crypto, self._cfg['BASE']['ESSID'])
|
||||
# if crypto['type'] in ('wpa', 'wpa2', 'wpa3'):
|
||||
# TODO: WPA2 enterprise
|
||||
if crypto['type'] in ('wpa', 'wpa2'):
|
||||
|
||||
Reference in New Issue
Block a user