hpimdm/tree/root_state_machine.py
def interfaces_roles_change_and_tree_remains_active(interface: 'TreeInterfaceRoot'):
        """
        Interfaces roles change (NonRoot->Root) AND
        Tree was Active and remains Active
        """
        interface.logger.debug('interfaces_roles_change_and_tree_remains_active')
        interface.send_i_am_no_longer_upstream()
        interface.send_my_interest()

        Interfaces roles change (NonRoot->Root) AND
        Tree was Active and remains Active
        
Interfaces roles change (NonRoot->Root) AND
Tree was Active and remains Active
Interfaces roles change ( NonRoot - > Root ) AND Tree was Active and remains Active
def interfaces_roles_change_and_tree_remains_active(interface: 'TreeInterfaceRoot'):
        interface.logger.debug('interfaces_roles_change_and_tree_remains_active')
        interface.send_i_am_no_longer_upstream()
        interface.send_my_interest()
def interfaces_roles_change_and_tree_remains_active ( interface : 'TreeInterfaceRoot' ) : interface . logger . debug ( 'interfaces_roles_change_and_tree_remains_active' ) interface . send_i_am_no_longer_upstream ( ) interface . send_my_interest ( )
Interfaces roles change (NonRoot->Root) AND
Tree was Active and remains Active
Interfaces roles change ( NonRoot - > Root ) AND Tree was Active and remains Active
"""
        Interfaces roles change (NonRoot->Root) AND
        Tree was Active and remains Active
        """
interface
'TreeInterfaceRoot'