1
0
Fork 0
plugin_net: Fix check for channels supported mode
This commit is contained in:
Jaroslav Škarvada 2021-04-16 00:33:38 +02:00 committed by GitHub
commit e828fa8300
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -397,7 +397,7 @@ class NetTuningPlugin(base.Plugin):
if dev_params:
self._check_device_support(context, d, device, dev_params)
# replace the channel parameters based on the device support
if context == "channels" and int(dev_params[next(iter(d))]) == 0:
if context == "channels" and (int(dev_params[next(iter(d))]) == 0 or str(dev_params[next(iter(d))]) == 'n/a'):
d = self._replace_channels_parameters(context, self._cmd.dict2list(d), dev_params)
if not sim and len(d) != 0: