mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-19 20:16:04 +00:00
Fix relay dhcp behavior
The refactor for multiple nics on same vlan omitted a required parameter.
This commit is contained in:
parent
e87d6652ca
commit
825cacde0e
@ -935,10 +935,10 @@ def reply_dhcp4(node, info, packet, cfg, reqview, httpboot, cfd, profile, sock=N
|
||||
ipinfo = 'without address, served from {0}'.format(myip)
|
||||
if relayipa:
|
||||
ipinfo += ' (relayed to {} via {})'.format(relayipa, requestor[0])
|
||||
eventlet.spawn(send_rsp, repview, replen, requestor, relayip, reqview, info, deferanswer, isboot, node, boottype, ipinfo)
|
||||
eventlet.spawn(send_rsp, repview, replen, requestor, relayip, reqview, info, deferanswer, isboot, node, boottype, ipinfo, sock)
|
||||
|
||||
|
||||
def send_rsp(repview, replen, requestor, relayip, reqview, info, defertxid, isboot, node, boottype, ipinfo):
|
||||
def send_rsp(repview, replen, requestor, relayip, reqview, info, defertxid, isboot, node, boottype, ipinfo, sock):
|
||||
if defertxid:
|
||||
eventlet.sleep(0.5)
|
||||
if defertxid in _recent_txids:
|
||||
|
Loading…
x
Reference in New Issue
Block a user