l3_cxprofile.py : added quiesce_cx option to allow the cx to drain then stop

realm.py : added drain_stop_cx (could not get quiesce_cx name to work)
test_l3.py : added quiesce_cx

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2022-03-28 16:33:34 -06:00
committed by shivam
parent 04ff6d7cb4
commit c6a8627240
3 changed files with 68 additions and 8 deletions

View File

@@ -397,6 +397,16 @@ class L3CXProfile(LFCliBase):
if self.debug:
print("")
def quiesce_cx(self):
logger.info("Quiesce CXs...")
for cx_name in self.created_cx.keys():
# TODO see why quiesce_cx does not work
# self.local_realm.quiesce_cx(cx_name)
self.local_realm.drain_stop_cx(cx_name)
# this is for a visual affect someone watching the screen, leave as print
print(".", end='')
print("")
def stop_cx(self):
logger.info("Stopping CXs...")
for cx_name in self.created_cx.keys():