mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
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:
committed by
shivam
parent
04ff6d7cb4
commit
c6a8627240
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user