avoid attempting to stop services for nodes that are not considered up
This commit is contained in:
parent
3846f2b5bd
commit
c66ee04db5
4 changed files with 7 additions and 13 deletions
|
@ -284,6 +284,7 @@ class CoreNodeBase(NodeBase):
|
|||
self.config_services = {}
|
||||
self.nodedir = None
|
||||
self.tmpnodedir = False
|
||||
self.up = False
|
||||
|
||||
def add_config_service(self, service_class: "ConfigServiceType") -> None:
|
||||
"""
|
||||
|
@ -503,7 +504,6 @@ class CoreNode(CoreNodeBase):
|
|||
)
|
||||
self.client = None
|
||||
self.pid = None
|
||||
self.up = False
|
||||
self.lock = threading.RLock()
|
||||
self._mounts = []
|
||||
self.bootsh = bootsh
|
||||
|
|
|
@ -289,7 +289,6 @@ class Rj45Node(CoreNodeBase, CoreInterface):
|
|||
"""
|
||||
CoreNodeBase.__init__(self, session, _id, name, start, server)
|
||||
CoreInterface.__init__(self, session, self, name, mtu, server)
|
||||
self.up = False
|
||||
self.lock = threading.RLock()
|
||||
self.ifindex = None
|
||||
# the following are PyCoreNetIf attributes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue