Logo Search packages:      
Sourcecode: nmap version File versions  Download package

def zenmapCore::NetworkInventory::NetworkInventory::remove_scan (   self,
  scan 
)

Removes a scan and any host information it contained from the inventory.

Definition at line 163 of file NetworkInventory.py.

00163                                :
        """Removes a scan and any host information it contained from the inventory."""
        # Note: If a scan is passed in that isn't in the inventory then this
        # method will throw a ValueError Exception and will not finish
        # Remove the scan from our scan list
        self.scans.remove(scan)
        
        # Clear the host dictionary
        self.hosts = {}
        
        # Remember the scan list
        scans = self.scans
        
        # Empty it
        self.scans = []
        
        # Delete the filename entry, if any
        if scan in self.filenames:
            del self.filenames[scan]
        
        # For each scan in the remembered list, append it to the scan list and update
        # the host list accordingly
        for scan in scans:
            self.add_scan(scan)
    
    def _update_host_info(self, old_host, new_host, old_date, new_date):


Generated by  Doxygen 1.6.0   Back to index