mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
attach, then shutdown, the internal components
This commit is contained in:
@@ -189,11 +189,20 @@ class OnieBootContext:
|
||||
|
||||
def shutdown(self):
|
||||
ctx, self.fctx = self.fctx, None
|
||||
if ctx is not None: ctx.shutdown()
|
||||
if ctx is not None:
|
||||
ctx.shutdown()
|
||||
ctx.attach()
|
||||
ctx.shutdown()
|
||||
ctx, self.ictx = self.ictx, None
|
||||
if ctx is not None: ctx.shutdown()
|
||||
if ctx is not None:
|
||||
ctx.shutdown()
|
||||
ctx.attach()
|
||||
ctx.shutdown()
|
||||
ctx, self.dctx = self.dctx, None
|
||||
if ctx is not None: ctx.shutdown()
|
||||
if ctx is not None:
|
||||
ctx.shutdown()
|
||||
ctx.attach()
|
||||
ctx.shutdown()
|
||||
|
||||
def __exit__(self, eType, eValue, eTrace):
|
||||
self.shutdown()
|
||||
|
||||
Reference in New Issue
Block a user