def update_topology():
    """
    updates all the topology
    sends logs to the "nodeshot.networking" logger
    """
    for topology in Topology.objects.all():
        try:
            topology.update()
        except Exception as e:
            msg = 'Failed to update {}'.format(topology.__repr__())
            logger.exception(msg)
            print('{0}: {1}\n'
                  'see networking.log for more information\n'.format(msg, e.__class__))
def update_topology ( ) : for topology in Topology . objects . all ( ) : try : topology . update ( ) except Exception as e : msg = 'Failed to update {}' . format ( topology . __repr__ ( ) ) logger . exception ( msg ) print ( '{0}: {1}\n' 'see networking.log for more information\n' . format ( msg , e . __class__ ) )
updates all the topology
    sends logs to the "nodeshot.networking" logger