-
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
Update routeros_facts #101
Update routeros_facts #101
Conversation
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.
You need a changelog fragment.
CC @heuels |
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.
Thanks for submitting a pull request! I've noted a few things that need correcting, but otherwise it's very good, thanks.
You'd also need to add unit tests and a changelog fragment.
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Egor Zaitsev <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Hello, I created changelog fragment according to the instructions, I hope that it turned out correctly.. Also, can you tell us in what format you need to attach the unit test? Can there be instructions for me to prepare it correctly? I don't have much idea about it yet. |
There already is a unit test file for |
Co-authored-by: Felix Fontein <[email protected]>
@@ -110,6 +123,34 @@ | |||
description: The list of neighbors from the remote device | |||
returned: when interfaces is configured | |||
type: dict | |||
|
|||
# routing | |||
ansible_net_bgp_peer: |
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.
This is indented wrongly. There is a leading space which shouldn't be there. (That makes it invalid YAML.)
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 corrected it.
While we are still doing this work I would like to thank you for your help, you are very cool guys. I hope that in time I will learn to be like you, thank you very much. |
CI verification was successful! Unexpectedly for me, this required a lot of corrections, I am ready for the next step. |
recheck |
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. Also tested it with a real device, looks good!
@heuels if you want to check again feel free, otherwise let's merge this!
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.
@adeptvin1, thank you so much for submitting this pull request!
@adeptvin1 thanks a lot for contributing this! |
* Update routeros_facts.py * Update routeros_facts.py * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Create 101_update_routeros_facts.yml * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Felix Fontein <[email protected]> * Update changelogs/fragments/101_update_routeros_facts.yml Co-authored-by: Felix Fontein <[email protected]> * add test default function * add test data * Update routing_ospf_neighbor_print_detail_without-paging * add test function "Routing" * added information of version * Removed extra spaces * add one more version, "ansible_net_cpu_load" * remove many blank lines * remove 'too many blank lines' * renamed arhitec to arch * Update routeros_facts.py * Update test_routeros_facts.py * Update test_routeros_facts.py * one more * remove one route * Update test_routeros_facts.py * remove one neighbor Co-authored-by: Egor Zaitsev <[email protected]> Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 6fa7295)
* Update routeros_facts.py * Update routeros_facts.py * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Egor Zaitsev <[email protected]> * Create 101_update_routeros_facts.yml * Update plugins/modules/network/routeros/routeros_facts.py Co-authored-by: Felix Fontein <[email protected]> * Update changelogs/fragments/101_update_routeros_facts.yml Co-authored-by: Felix Fontein <[email protected]> * add test default function * add test data * Update routing_ospf_neighbor_print_detail_without-paging * add test function "Routing" * added information of version * Removed extra spaces * add one more version, "ansible_net_cpu_load" * remove many blank lines * remove 'too many blank lines' * renamed arhitec to arch * Update routeros_facts.py * Update test_routeros_facts.py * Update test_routeros_facts.py * one more * remove one route * Update test_routeros_facts.py * remove one neighbor Co-authored-by: Egor Zaitsev <[email protected]> Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 6fa7295) Co-authored-by: adeptvin1 <[email protected]>
SUMMARY
I added variables to the "Default" function
ansible_net_architec:
ansible_net_uptime:
ansible_net_cpu_load:
And added the "Routing" function to collect data about BGP and OSPF.
ISSUE TYPE
COMPONENT NAME
routeros_facts.py
ADDITIONAL INFORMATION