[lxc-devel] [lxd/master] doc: Drop JSON example from configuration.md

stgraber on Github lxc-bot at linuxcontainers.org
Thu Jun 23 20:03:14 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 427 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160623/cfd17dc2/attachment.bin>
-------------- next part --------------
From 1b916c778ffbd26dde463756f169ff70769e5cdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 23 Jun 2016 10:33:33 -0400
Subject: [PATCH] doc: Drop JSON example from configuration.md
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

It's outdated and we've got a bunch of up to date ones in rest-api.md

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 doc/configuration.md | 39 ---------------------------------------
 1 file changed, 39 deletions(-)

diff --git a/doc/configuration.md b/doc/configuration.md
index 34dc0fa..0415d7e 100644
--- a/doc/configuration.md
+++ b/doc/configuration.md
@@ -269,42 +269,3 @@ network interface connected to LXD's default bridge (lxdbr0).
 
 The "default" profile is set for any new container created which doesn't
 specify a different profiles list.
-
-## JSON representation
-A representation of a container using all the different types of
-configurations would look like:
-
-    {
-        'name': "my-container",
-        'profiles': ["default"],
-        'architecture': 'x86_64',
-        'config': {
-            'limits.cpu': '3',
-            'security.privileged': 'true'
-        },
-        'devices': {
-            'nic-lxdbr0': {
-                'type': 'none'
-            },
-            'nic-mybr0': {
-                'type': 'nic',
-                'mtu': '9000',
-                'parent': 'mybr0'
-            },
-            'rootfs': {
-                'type': 'disk',
-                'path': '/',
-                'source': 'UUID=8f7fdf5e-dc60-4524-b9fe-634f82ac2fb6'
-            },
-        },
-        'status': {
-                    'status': "Running",
-                    'status_code': 103,
-                    'ips': [{'interface': "eth0",
-                             'protocol': "INET6",
-                             'address': "2001:470:b368:1020:1::2"},
-                            {'interface': "eth0",
-                             'protocol': "INET",
-                             'address': "172.16.15.30"}]}
-    }
-


More information about the lxc-devel mailing list