From ca29f6ae3532a4ce6d48b45edf36700dfa307e48 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 29 Mar 2019 14:01:36 -0400 Subject: [PATCH] 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. --- confluent_client/bin/nodediscover | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodediscover b/confluent_client/bin/nodediscover index 2c34c697..9686a503 100755 --- a/confluent_client/bin/nodediscover +++ b/confluent_client/bin/nodediscover @@ -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() \ No newline at end of file + main()