I'm trying to parse a file and find a fixedaddress under a subnet. The find_hosts seems to only find hosts at the top level, but I need to find them within a subnet. I'm looping through the subnets and getting the hosts, but when trying to print the fixedaddress in the host, it is being returned as a a hash like Net::ISC::DHCPd::Config::Host::FixedAddress=HASH(0x56041690c548), even though I can get the hardwareethernet, the name, and everything else. I can't seem to parse this hash. Any ideas on how to show this or a simpler way to find the host within the subnets?
I'm trying to parse a file and find a fixedaddress under a subnet. The find_hosts seems to only find hosts at the top level, but I need to find them within a subnet. I'm looping through the subnets and getting the hosts, but when trying to print the fixedaddress in the host, it is being returned as a a hash like Net::ISC::DHCPd::Config::Host::FixedAddress=HASH(0x56041690c548), even though I can get the hardwareethernet, the name, and everything else. I can't seem to parse this hash. Any ideas on how to show this or a simpler way to find the host within the subnets?