From 3e6678f9c692553e8902da4d6fb1fe6c087db1f4 Mon Sep 17 00:00:00 2001 From: Marcel Enguehard Date: Wed, 19 Jul 2017 11:26:26 +0200 Subject: * GUI resource * MemIf interface for VPP * Better netmodel integration * Draft documentation * New tutorials * Improved monitoring and error handling * Refactored IP addresses and prefixes representation * Improved image mgmt for LXD * Various bugfixes and code refactoring Change-Id: I90da6cf7b5716bc7deb6bf4e24d3f9f01b5a9b0f Signed-off-by: Marcel Enguehard --- vicn/resource/application.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'vicn/resource/application.py') diff --git a/vicn/resource/application.py b/vicn/resource/application.py index 0f245496..b5502f39 100644 --- a/vicn/resource/application.py +++ b/vicn/resource/application.py @@ -16,9 +16,10 @@ # limitations under the License. # -from vicn.core.attribute import Attribute, Multiplicity -from vicn.core.resource import Resource -from vicn.resource.node import Node +from netmodel.model.key import Key +from vicn.core.attribute import Attribute, Multiplicity +from vicn.core.resource import Resource +from vicn.resource.node import Node class Application(Resource): node = Attribute(Node, @@ -26,5 +27,5 @@ class Application(Resource): mandatory = True, multiplicity = Multiplicity.ManyToOne, reverse_name = 'applications', - key = True, reverse_description = 'Applications installed on node') + __key__ = Key(node) -- cgit 1.2.3-korg