mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-31 11:22:28 +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:
		| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user