hpimdm/Neighbor.py
def install_tree_state(self, tree_state: list):
        """
        Store Upstream state regarding trees that were included in a Sync message... Since we allow installing state from
        IamUpstream/IamNoLongerUpstream/Interest/NoInterest messages concurrently to an ongoing synchronization, verify if
        trees included in Sync message have state fresher than the one that is already stored (in a non-Sync message)
        """
        for t in tree_state:
            tree_id = (t.source, t.group)
            if self.last_sequence_number.get(tree_id, 0) > self.neighbor_snapshot_sn:
                continue

            self.tree_metric_state[tree_id] = AssertMetric(metric_preference=t.metric_preference,
                                                           route_metric=t.metric, ip_address=self.ip)

        Store Upstream state regarding trees that were included in a Sync message... Since we allow installing state from
        IamUpstream/IamNoLongerUpstream/Interest/NoInterest messages concurrently to an ongoing synchronization, verify if
        trees included in Sync message have state fresher than the one that is already stored (in a non-Sync message)
        
Store Upstream state regarding trees that were included in a Sync message... Since we allow installing state from
IamUpstream/IamNoLongerUpstream/Interest/NoInterest messages concurrently to an ongoing synchronization, verify if
trees included in Sync message have state fresher than the one that is already stored (in a non-Sync message)
Store Upstream state regarding trees that were included in a Sync message ... Since we allow installing state from IamUpstream / IamNoLongerUpstream / Interest / NoInterest messages concurrently to an ongoing synchronization verify if trees included in Sync message have state fresher than the one that is already stored ( in a non - Sync message )
def install_tree_state(self, tree_state: list):
        for t in tree_state:
            tree_id = (t.source, t.group)
            if self.last_sequence_number.get(tree_id, 0) > self.neighbor_snapshot_sn:
                continue
            self.tree_metric_state[tree_id] = AssertMetric(metric_preference=t.metric_preference,
                                                           route_metric=t.metric, ip_address=self.ip)
def install_tree_state ( self , tree_state : list ) : for t in tree_state : tree_id = ( t . source , t . group ) if self . last_sequence_number . get ( tree_id , 0 ) > self . neighbor_snapshot_sn : continue self . tree_metric_state [ tree_id ] = AssertMetric ( metric_preference = t . metric_preference , route_metric = t . metric , ip_address = self . ip )
Store Upstream state regarding trees that were included in a Sync message...
Store Upstream state regarding trees that were included in a Sync message ...
"""
        Store Upstream state regarding trees that were included in a Sync message... Since we allow installing state from
        IamUpstream/IamNoLongerUpstream/Interest/NoInterest messages concurrently to an ongoing synchronization, verify if
        trees included in Sync message have state fresher than the one that is already stored (in a non-Sync message)
        """
self
tree_state
list