Skip to content
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

dladm_vnic python3 fixes and tests #132

Merged
merged 7 commits into from
Oct 15, 2020

Conversation

jbronn
Copy link
Contributor

@jbronn jbronn commented Oct 13, 2020

SUMMARY

Fixes #131 and adds tests for dladm_vnic module.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

dladm_vnic

ADDITIONAL INFORMATION

N/A.

* Fix logic to match the `is_valid_{unicast_mac,vlan_id}` function names and don't allow VLAN 0.
* Add tests for this module.
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot judge the code changes, but yay for tests! :)

changelogs/fragments/131_dladm_vnic.yml Outdated Show resolved Hide resolved
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felixfontein felixfontein merged commit cfe13ea into ansible-collections:main Oct 15, 2020
@felixfontein
Copy link
Collaborator

@jbronn thanks for fixing this!

patchback bot pushed a commit that referenced this pull request Oct 15, 2020
* * Explicitly add types for all module arguments.
* Fix logic to match the `is_valid_{unicast_mac,vlan_id}` function names and don't allow VLAN 0.
* Add tests for this module.

* Add changelog fragment.

* Fix sanity tests.

* No longer need to ignore 'doc-missing-type'.

* Update changelog fragment.

Co-authored-by: Felix Fontein <[email protected]>

* The valid VID range is 1-4094, confirmed from the Illumos source code.

* Update changelog fragment.

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit cfe13ea)
felixfontein pushed a commit that referenced this pull request Oct 15, 2020
* * Explicitly add types for all module arguments.
* Fix logic to match the `is_valid_{unicast_mac,vlan_id}` function names and don't allow VLAN 0.
* Add tests for this module.

* Add changelog fragment.

* Fix sanity tests.

* No longer need to ignore 'doc-missing-type'.

* Update changelog fragment.

Co-authored-by: Felix Fontein <[email protected]>

* The valid VID range is 1-4094, confirmed from the Illumos source code.

* Update changelog fragment.

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit cfe13ea)

Co-authored-by: Justin Bronn <[email protected]>
@Andersson007
Copy link
Contributor

@jbronn hi, would you like to have your GH login added to .github/BOTMETA.yml as a maintainer of the module?
You'll be notified about Issues/PRs related to this file and your shipit will be counted by bot for automerge (needs two for bugfixes and minor changes).
What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dladm_vnic: error setting vlan when using python3
3 participants