def update(self, prefixes):
        """Add a value to the list.

        Arguments:
            prefixes(list): A list to add the value
        """
        if self.ip_prefix not in prefixes:
            prefixes.append(self.ip_prefix)
            self.log.info("announcing %s for %s", self.ip_prefix, self.name)
            return True

        return False
def update ( self , prefixes ) : if self . ip_prefix not in prefixes : prefixes . append ( self . ip_prefix ) self . log . info ( "announcing %s for %s" , self . ip_prefix , self . name ) return True return False
Add a value to the list.

        Arguments:
            prefixes(list): A list to add the value