mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-22 07:34:19 +00:00
Opportunisticly start mac rescan on rescan
While the network rescan might be too slow to hold up general rescan, at least begin a rescan of switches when a rescan is requested.
This commit is contained in:
parent
5c61430ccc
commit
ca29f6ae35
@ -289,6 +289,7 @@ def blocking_scan(session):
|
||||
list(session.update('/discovery/rescan', {'rescan': 'start'}))
|
||||
while(list(session.read('/discovery/rescan'))[0].get('scanning', False)):
|
||||
time.sleep(0.5)
|
||||
list(session.update('/networking/macs/rescan', {'rescan': 'start'}))
|
||||
|
||||
|
||||
def main():
|
||||
@ -347,4 +348,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user