hpimdm/tree/KernelEntry.py
def check_interface_state(self, index, upstream_state, interest_state):
        """
        A neighbor changed Upstream state due to the reception of any control packet
        (IamUpstream or IamNoLongerUpstream or Interest or NoInterest or Sync)
        """
        if index not in self.interface_state or self.is_tree_inactive():
            return
        print("ENTER CHECK INTERFACE STATE")
        self._upstream_interface_state[index] = upstream_state

        self.interface_state[index].change_best_upstream_neighbor_state(upstream_state)
        self.check_interest_state(index, interest_state)

        self.check_tree_state()
        print("EXIT CHECK INTERFACE STATE")

        A neighbor changed Upstream state due to the reception of any control packet
        (IamUpstream or IamNoLongerUpstream or Interest or NoInterest or Sync)
        
A neighbor changed Upstream state due to the reception of any control packet
(IamUpstream or IamNoLongerUpstream or Interest or NoInterest or Sync)
A neighbor changed Upstream state due to the reception of any control packet ( IamUpstream or IamNoLongerUpstream or Interest or NoInterest or Sync )
def check_interface_state(self, index, upstream_state, interest_state):
        if index not in self.interface_state or self.is_tree_inactive():
            return
        print("ENTER CHECK INTERFACE STATE")
        self._upstream_interface_state[index] = upstream_state
        self.interface_state[index].change_best_upstream_neighbor_state(upstream_state)
        self.check_interest_state(index, interest_state)
        self.check_tree_state()
        print("EXIT CHECK INTERFACE STATE")
def check_interface_state ( self , index , upstream_state , interest_state ) : if index not in self . interface_state or self . is_tree_inactive ( ) : return print ( "ENTER CHECK INTERFACE STATE" ) self . _upstream_interface_state [ index ] = upstream_state self . interface_state [ index ] . change_best_upstream_neighbor_state ( upstream_state ) self . check_interest_state ( index , interest_state ) self . check_tree_state ( ) print ( "EXIT CHECK INTERFACE STATE" )
A neighbor changed Upstream state due to the reception of any control packet
(IamUpstream or IamNoLongerUpstream or Interest or NoInterest or Sync)
A neighbor changed Upstream state due to the reception of any control packet ( IamUpstream or IamNoLongerUpstream or Interest or NoInterest or Sync )
"""
        A neighbor changed Upstream state due to the reception of any control packet
        (IamUpstream or IamNoLongerUpstream or Interest or NoInterest or Sync)
        """
self
index
upstream_state
interest_state