Implement get_box_ip #1652
arpadszasz
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
User story
Following the synopsis of the
Rex::Commands::Boxmodule and trying to get the IP address of a KVM box usingget_box($_->{name})->{ip}results in anundefvalue.The info for the KVM box does not include a hash key called
ip, and even the primary NICs IP address seems to be empty:Describe the solution you would like
There seems to already be a way to get the IP address across virtualization types using
Rex::Box::Base::ip()which can be leveraged to provide aget_box_ipfunction.Additional context
My fork contains an implementation of the
get_box_ipfunction in thefeature/get-box-ipbranch (relevant commit: arpadszasz@0aecd52)Beta Was this translation helpful? Give feedback.
All reactions