def sync_networks(self):
        """sync networks.

        It will retrieve networks from neutron and populate
        them in dfa database and dcnm
        """
        nets = self.neutronclient.list_networks()
        for net in nets.get("networks"):
            LOG.info("Syncing network %s", net["id"])
            self.network_create_func(net)
        subnets = self.neutronclient.list_subnets()
        for subnet in subnets.get("subnets"):
            LOG.info("Syncing subnet %s", subnet["id"])
            self.create_subnet(subnet)
def sync_networks ( self ) : nets = self . neutronclient . list_networks ( ) for net in nets . get ( "networks" ) : LOG . info ( "Syncing network %s" , net [ "id" ] ) self . network_create_func ( net ) subnets = self . neutronclient . list_subnets ( ) for subnet in subnets . get ( "subnets" ) : LOG . info ( "Syncing subnet %s" , subnet [ "id" ] ) self . create_subnet ( subnet )
sync networks.

        It will retrieve networks from neutron and populate
        them in dfa database and dcnm