Hi Serge On 29/06/2012 10:02, Serge Hallyn wrote: > Good point. But note that lxc-ls is currently a script with no code in > liblxc, so while we may get a version of the API with no ls defined, at > least it won't have ls badly defined :) > >> IMHO the functionality of the three status commands could even be merged into >> a single utility: >> >> * lxc-ls >> * lxc-list >> * lxc-info > > Jonathan, is your modified lxc-ls another script? I liked the output of > your lxc-ls :)
It uses lxc-list to get the list of containers. I guess I might as well post a link to it here: http://irc.jonathancarter.org/files/rlxc/rlxc I would've put it on github or something but it's definitely going to be abandoned for a python version that uses liblxc. > Would someone care to write a patch to implement ls in the api, against > lp:~ubuntu-lxc/ubuntu/quantal/lxc/lxc-api-and-python/ (define it in > src/lxc/lxccontainer.{c,h}? I may not be able to get to it until the > week after next. I'm secretly hoping that Stéphane will just do all of that :p It's a long weekend for me this weekend and it's already quite loaded, but I think I'll spend at least a little time on starting on a nice new script that uses liblxc for everything that gives pretty output :) -Jonathan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel