aboutsummaryrefslogtreecommitdiffstats
path: root/vicn/resource/application.py
diff options
context:
space:
mode:
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)