-
Notifications
You must be signed in to change notification settings - Fork 91
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
Conversation
* Fix logic to match the `is_valid_{unicast_mac,vlan_id}` function names and don't allow VLAN 0. * Add tests for this module.
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.
Cannot judge the code changes, but yay for tests! :)
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
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.
LGTM
@jbronn thanks for fixing this! |
* * 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)
* * 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]>
@jbronn hi, would you like to have your GH login added to |
SUMMARY
Fixes #131 and adds tests for
dladm_vnic
module.ISSUE TYPE
COMPONENT NAME
dladm_vnic
ADDITIONAL INFORMATION
N/A.