-
Notifications
You must be signed in to change notification settings - Fork 90
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
Adding support for Wind River Linux in support of Cisco devices #33
Conversation
Wind River Linux is the underlying OS for Cisco Nexus and IOS-XR devices, and is essentially a Red Hat variant. These changes allow train to connect to these devices and run commands properly.
Hi Adam, thank you very much for this great addition. Do you think it may be possible to reuse the |
Good afternoon, @chris-rock! Wind River Linux is like RH in functionality, but in terms of how it describes itself name/version-wise, it's not that similar. The os-release (and subsequent cisco-release file, if present) are in a multi-line but parseable format, and those files are customized by Cisco, as well. So, https://github.com/chef/ohai/blob/master/lib/ohai/plugins/linux/platform.rb#L38-L45 |
Let's replicate the Ohai approach here; I originaly left out that code piece because we didn't test for Cisco yet. Love to get it back in! |
os-release file fetching/parsing. Started unit tests for detect_linux_via_config and related methods.
@chris-rock / @arlimus - check out the latest commit I just pushed and tell me what you think, please! I started the unit test for os_detect_linux but did not do all of it. I can certainly help write that coverage if needed but I figured a start is better than nothing, and I made sure to 100% cover the changes I was making. Also test/unit/transports/local_test.rb was changed simply because minitest+mocha will complain for any object named "mock" so I had to change that to avoid a minitest failure. |
@adamleff looks very good from my side! |
Really love the added tests, thank you so uch for all of it!! |
Adding support for Wind River Linux in support of Cisco devices
Wind River Linux is the underlying OS for Cisco Nexus and IOS-XR
devices, and is essentially a Red Hat variant. These changes allow
train to connect to these devices and run commands properly.