hpimdm/InterfaceHPIM.py
def snapshot_multicast_routing_table(self):
        """
        Create a new snapshot
        This method will return the current BootTime, SnapshotSN and all trees to be included in Sync messages
        """
        with self.get_kernel().rwlock.genWlock():
            with self.sequencer_lock:
                (snapshot_bt, snapshot_sn) = self.get_sequence_number()

                trees_to_sync = self.get_kernel().snapshot_multicast_routing_table(self.vif_index)  # type: dict
                tree_to_sync_in_msg_format = {}

                for (source_group, state) in trees_to_sync.items():
                    tree_to_sync_in_msg_format[source_group] = self.create_sync_entry_hdr(source_group[0],
                                                                                          source_group[1],
                                                                                          state.metric_preference,
                                                                                          state.route_metric)
                return (snapshot_bt, snapshot_sn, tree_to_sync_in_msg_format)

        Create a new snapshot
        This method will return the current BootTime, SnapshotSN and all trees to be included in Sync messages
        
Create a new snapshot
This method will return the current BootTime, SnapshotSN and all trees to be included in Sync messages
Create a new snapshot This method will return the current BootTime SnapshotSN and all trees to be included in Sync messages
def snapshot_multicast_routing_table(self):
        with self.get_kernel().rwlock.genWlock():
            with self.sequencer_lock:
                (snapshot_bt, snapshot_sn) = self.get_sequence_number()
                trees_to_sync = self.get_kernel().snapshot_multicast_routing_table(self.vif_index)  
                tree_to_sync_in_msg_format = {}
                for (source_group, state) in trees_to_sync.items():
                    tree_to_sync_in_msg_format[source_group] = self.create_sync_entry_hdr(source_group[0],
                                                                                          source_group[1],
                                                                                          state.metric_preference,
                                                                                          state.route_metric)
                return (snapshot_bt, snapshot_sn, tree_to_sync_in_msg_format)
def snapshot_multicast_routing_table ( self ) : with self . get_kernel ( ) . rwlock . genWlock ( ) : with self . sequencer_lock : ( snapshot_bt , snapshot_sn ) = self . get_sequence_number ( ) trees_to_sync = self . get_kernel ( ) . snapshot_multicast_routing_table ( self . vif_index ) tree_to_sync_in_msg_format = { } for ( source_group , state ) in trees_to_sync . items ( ) : tree_to_sync_in_msg_format [ source_group ] = self . create_sync_entry_hdr ( source_group [ 0 ] , source_group [ 1 ] , state . metric_preference , state . route_metric ) return ( snapshot_bt , snapshot_sn , tree_to_sync_in_msg_format )
Create a new snapshot
This method will return the current BootTime, SnapshotSN and all trees to be included in Sync messages
Create a new snapshot This method will return the current BootTime SnapshotSN and all trees to be included in Sync messages
"""
        Create a new snapshot
        This method will return the current BootTime, SnapshotSN and all trees to be included in Sync messages
        """ # type: dict
self