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

routeros_facts: Allow multiple entries per iface #6

Merged
merged 3 commits into from
May 18, 2020
Merged

routeros_facts: Allow multiple entries per iface #6

merged 3 commits into from
May 18, 2020

Conversation

jplitza
Copy link
Contributor

@jplitza jplitza commented Apr 8, 2020

SUMMARY

There can be multiple addresses per interface, as well as multiple
neighbors.

This changes the format of "ansible_net_neighbors" to list instead of
dict, because the old format could not store multiple neighbors per
interface.

Also, this fixes a crash when the ipv6 module is not loaded, because the
error "bad command name" was being parsed with interface=None

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

routeros_facts

ADDITIONAL INFORMATION

@felixfontein
Copy link
Collaborator

@jplitza can you add a changelog fragment? Also please observe that there are failing unit tests.
@heuels pinging you as the module author

@jplitza
Copy link
Contributor Author

jplitza commented Apr 13, 2020

Well, that makes sense, as I didn't adapt them to the new format. I would like to have a confirmation that changing the format is acceptable, however, before fixing the tests.

The changelog could read something like
"routeros_facts: Allow multiple addresses and neighbors per interface"

@heuels
Copy link
Contributor

heuels commented Apr 14, 2020

@jplitza Yes, that sounds about right. Here is an example of a changelog entry from my recent PR: https://github.com/ansible/ansible/pull/68554/files#diff-87566feaded5be117df64f3c01233c4b

@felixfontein
Copy link
Collaborator

@jplitza could you please add a changelog fragment?

There can be multiple addresses per interface, as well as multiple
neighbors.

This changes the format of "ansible_net_neighbors" to list instead of
dict, because the old format could not store multiple neighbors per
interface.

Also, this fixes a crash when the ipv6 module is not loaded, because the
error "bad command name" was being parsed with interface=None
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.

@heuels can you take another look?

Copy link
Contributor

@heuels heuels 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 a2e544f into ansible-collections:master May 18, 2020
@felixfontein
Copy link
Collaborator

@jplitza thanks for improving this module!
@heuels thanks for reviewing!

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.

3 participants