2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-29 00:31:09 +00:00

Add a pxe-client service

For consistency with other plugins, model a pxe request as a 'pxe-client'
service being detected
This commit is contained in:
Jarrod Johnson
2017-02-09 14:41:11 -05:00
parent 94a3e83b04
commit 0dc42567c2
+5 -1
View File
@@ -103,7 +103,11 @@ def snoop(handler):
uuid, arch = find_info_in_options(rq, optidx)
if uuid is None:
continue
handler({'hwaddr': netaddr, 'uuid': uuid, 'architecture': arch})
# We will fill out service to have something to byte into,
# but the nature of the beast is that we do not have peers,
# so that will not be present for a pxe snoop
handler({'hwaddr': netaddr, 'uuid': uuid, 'architecture': arch,
'service': 'pxe-client'})
if __name__ == '__main__':
def testsnoop(info):