aboutsummaryrefslogtreecommitdiffstats
path: root/vicn/resource/application.py
diff options
context:
space:
mode:
authorMarcel Enguehard <mengueha+fdio@cisco.com>2017-07-19 11:26:26 +0200
committerMarcel Enguehard <mengueha+fdio@cisco.com>2017-07-19 11:51:26 +0000
commit3e6678f9c692553e8902da4d6fb1fe6c087db1f4 (patch)
tree580a46ca5de22a044319eabb295ad980d50589ec /vicn/resource/application.py
parent08c4f765cf29dbd6e9a616c542552417eece14fc (diff)
* 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 <mengueha+fdio@cisco.com>
Diffstat (limited to 'vicn/resource/application.py')
-rw-r--r--vicn/resource/application.py9
1 files changed, 5 insertions, 4 deletions
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)