[lxc-devel] [pylxd/master] Add missing attributes to Network model

hsoft on Github lxc-bot at linuxcontainers.org
Mon Oct 17 01:04:03 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 525 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161017/1eaa329e/attachment.bin>
-------------- next part --------------
From c5018280db0c01f3656f69fa6e791386c03eda47 Mon Sep 17 00:00:00 2001
From: Virgil Dupras <hsoft at hardcoded.net>
Date: Sun, 16 Oct 2016 21:01:18 -0400
Subject: [PATCH] Add missing attributes to Network model

Add "config" and "managed" attributes to the Network model. In addition
to be generally useful information, it also fixes warnings we were
getting upon calling `Client.networks.get()` about these attributes not
existing.
---
 pylxd/models/network.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pylxd/models/network.py b/pylxd/models/network.py
index 2b9af32..c59fc01 100644
--- a/pylxd/models/network.py
+++ b/pylxd/models/network.py
@@ -19,6 +19,8 @@ class Network(model.Model):
     name = model.Attribute()
     type = model.Attribute()
     used_by = model.Attribute()
+    config = model.Attribute()
+    managed = model.Attribute()
 
     @classmethod
     def get(cls, client, name):


More information about the lxc-devel mailing list