mac => [ ip, hostname ]
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 29 Aug 2009 15:52:50 +0000 (15:52 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 29 Aug 2009 15:52:50 +0000 (15:52 +0000)
couchdb/dhcpd/_rev
couchdb/dhcpd/views/mac-ip,hostname/map.js [new file with mode: 0644]

index 5f9cb56..b51ccf0 100644 (file)
@@ -1 +1 @@
-2-3628264130
\ No newline at end of file
+3-3062052067
\ No newline at end of file
diff --git a/couchdb/dhcpd/views/mac-ip,hostname/map.js b/couchdb/dhcpd/views/mac-ip,hostname/map.js
new file mode 100644 (file)
index 0000000..d8c056e
--- /dev/null
@@ -0,0 +1,4 @@
+function(doc) {
+  if ( doc.package == 'dhcpd' )
+  emit(doc.mac,[doc.ip,doc.hostname]);
+}
\ No newline at end of file