jhthorsen / net-isc-dhcpd

Perl module that interacts with ISC DHCPd
http://search.cpan.org/perldoc?Net::ISC::DHCPd
11 stars 6 forks source link

fixedaddress is only showing me a hash #39

Closed cscrum closed 11 months ago

cscrum commented 11 months ago

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?

cscrum commented 11 months ago

I discovered that I needed to use the fixedaddress->value. Closing this.