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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user