-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[change] Wireless: avoid unnecessary network config #289 #298
[change] Wireless: avoid unnecessary network config #289 #298
Conversation
self.assertEqual(o.config, self._wireless_interface_netjson) | ||
self.assertDictEqual(o.config, self._wireless_interface_netjson) | ||
|
||
_wireless_only_netjson = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a couple of tests with the use case described by @thiagohflima in the original issue #289 (comment).
if len(static.get('ip6addr', [])) == 1: | ||
static['ip6addr'] = static['ip6addr'][0] | ||
result.append(static) | ||
result.append(self.__intermediate_static_address(static)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to move the logic above to this method because flake8 was complaining about cyclomatic complexity due to the 2 lines I had to add above.
eb192a0
to
331a144
Compare
Avoid generating unnecessary config in /etc/config/network when defining wireless interfaces. Closes #289
There's no point in trying to attach a WiFi interface to itself. It's unnecessary and can cause issues in some situations.
1beb808
to
ba2f9b8
Compare
Avoid generating unnecessary config in /etc/config/network when defining wireless interfaces.
Closes #289