diff options
Diffstat (limited to 'vicn/resource/interface.py')
-rw-r--r-- | vicn/resource/interface.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vicn/resource/interface.py b/vicn/resource/interface.py index db5f5427..0ae2dc94 100644 --- a/vicn/resource/interface.py +++ b/vicn/resource/interface.py @@ -30,7 +30,8 @@ class Interface(Resource): node = Attribute(Node, description = 'Node to which the interface belongs', multiplicity = Multiplicity.ManyToOne, reverse_name = 'interfaces', - mandatory = True) + mandatory = True, + key = True) channel = Attribute(Channel, description = 'Channel to which the interface is attached', multiplicity = Multiplicity.ManyToOne, reverse_name = 'interfaces') |