hpimdm/tree/tree_if_non_root.py
def notify_rpc_change(self, new_rpc: Metric):
        """
        The router suffered an RPC regarding the subnet of the tree's source
        """
        if new_rpc == self._my_assert_rpc:
            return

        self._my_assert_rpc = AssertMetric(new_rpc.metric_preference, new_rpc.route_metric, self.get_ip())
        if self.current_tree_state.is_active() and not self.is_interface_connected_to_source():
            SFMRNonRootState.tree_remains_active_and_my_rpc_changes(self)
        self.calculate_assert_winner()

        The router suffered an RPC regarding the subnet of the tree's source
        
The router suffered an RPC regarding the subnet of the tree's source
The router suffered an RPC regarding the subnet of the tree ' s source
def notify_rpc_change(self, new_rpc: Metric):
        if new_rpc == self._my_assert_rpc:
            return
        self._my_assert_rpc = AssertMetric(new_rpc.metric_preference, new_rpc.route_metric, self.get_ip())
        if self.current_tree_state.is_active() and not self.is_interface_connected_to_source():
            SFMRNonRootState.tree_remains_active_and_my_rpc_changes(self)
        self.calculate_assert_winner()
def notify_rpc_change ( self , new_rpc : Metric ) : if new_rpc == self . _my_assert_rpc : return self . _my_assert_rpc = AssertMetric ( new_rpc . metric_preference , new_rpc . route_metric , self . get_ip ( ) ) if self . current_tree_state . is_active ( ) and not self . is_interface_connected_to_source ( ) : SFMRNonRootState . tree_remains_active_and_my_rpc_changes ( self ) self . calculate_assert_winner ( )
The router suffered an RPC regarding the subnet of the tree's source
The router suffered an RPC regarding the subnet of the tree ' s source
"""
        The router suffered an RPC regarding the subnet of the tree's source
        """
self
new_rpc
Metric