Merge pull request #336 from niteshnarayanlal/rhbz#1943291
plugin_net: Fix check for channels supported mode
This commit is contained in:
commit
e828fa8300
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue