librelist archives

« back to archive

migration from Racktables to Raplh

migration from Racktables to Raplh

From:
jazzman@go2.pl
Date:
2013-06-11 @ 12:36
Hi all, 
I want to ask you about something.
There is any way to import all data from Racktables to Raplh?
We have 40-45 racks.... 
 
 
GJK 
 

Re: [ralph] migration from Racktables to Raplh

From:
Łukasz Langa
Date:
2013-06-11 @ 13:32
On 11 cze 2013, at 14:36, jazzman@go2.pl <jazzman@o2.pl> wrote:

> Hi all, 
> I want to ask you about something.
> There is any way to import all data from Racktables to Raplh?
> We have 40-45 racks.... 

There is no specific handling for Racktables. You can import your data by either:

1. using the RESTful API on a running instance; this is the easiest option
since the API is HATEOAS with a self-documenting schema
2. using "ralph import" with a compatible CSV file; this is unfortunately 
not yet documented
3. using "ralph shell" and writing an importing script by hand; this is 
preferred if you want the greatest flexibility.



-- 
Best regards,
Łukasz Langa

WWW: http://lukasz.langa.pl/
Twitter: @llanga
IRC: ambv on #python-dev