updated the harvester to maintain the hardware information for the lease information in the bind file so this can be used to determine host device vendor for switch provisioning
Change-Id: I9104bacd5c0310858294be70c3e3aa67d565da84
diff --git a/harvester/dhcpharvester.py b/harvester/dhcpharvester.py
index cc4e372..5b3f145 100755
--- a/harvester/dhcpharvester.py
+++ b/harvester/dhcpharvester.py
@@ -459,7 +459,7 @@
name = "UNK-" + lease['hardware'].translate(None, ':').upper()
if ifilter != None and name in ifilter or matched(rfilter, name):
- out.write(format(name, '<'+str(size)) + ' IN A ' + lease['ip_address'] + '\n')
+ out.write(format(name, '<'+str(size)) + ' IN A ' + lease['ip_address'] + ' ; ' + lease['hardware'] +'\n')
if options.dest != '-':
out.close()
return count