hpimdm/tree/KernelEntry.py
def check_tree_state(self):
        """
        Verify if tree changes state (Active/Unsure/Inactive)
        """
        if self.inbound_interface_index is not None and self.sat_is_running and len(self.interface_state) > 0:
            print("PARA ACTIVE")
            # tree is active
            self._tree_state.transition_to_active(self)
        elif len(self.interface_state) == 0 or\
                (not self.sat_is_running and all(v is None for v in self._upstream_interface_state.values())):
            # tree is Inactive
            print("PARA INACTIVE")
            self._tree_state.transition_to_inactive(self)
        elif self.inbound_interface_index is None or not self.sat_is_running:
            print("PARA UNSURE")
            # tree is Unsure
            self._tree_state.transition_to_unsure(self)

        Verify if tree changes state (Active/Unsure/Inactive)
        
Verify if tree changes state (Active/Unsure/Inactive)
Verify if tree changes state ( Active / Unsure / Inactive )
def check_tree_state(self):
        if self.inbound_interface_index is not None and self.sat_is_running and len(self.interface_state) > 0:
            print("PARA ACTIVE")
            self._tree_state.transition_to_active(self)
        elif len(self.interface_state) == 0 or\
                (not self.sat_is_running and all(v is None for v in self._upstream_interface_state.values())):
            print("PARA INACTIVE")
            self._tree_state.transition_to_inactive(self)
        elif self.inbound_interface_index is None or not self.sat_is_running:
            print("PARA UNSURE")
            self._tree_state.transition_to_unsure(self)
def check_tree_state ( self ) : if self . inbound_interface_index is not None and self . sat_is_running and len ( self . interface_state ) > 0 : print ( "PARA ACTIVE" ) self . _tree_state . transition_to_active ( self ) elif len ( self . interface_state ) == 0 or ( not self . sat_is_running and all ( v is None for v in self . _upstream_interface_state . values ( ) ) ) : print ( "PARA INACTIVE" ) self . _tree_state . transition_to_inactive ( self ) elif self . inbound_interface_index is None or not self . sat_is_running : print ( "PARA UNSURE" ) self . _tree_state . transition_to_unsure ( self )
Verify if tree changes state (Active/Unsure/Inactive)
Verify if tree changes state ( Active / Unsure / Inactive )
"""
        Verify if tree changes state (Active/Unsure/Inactive)
        """ # tree is active # tree is Inactive # tree is Unsure
self