diff options
author | Marcel Enguehard <mengueha+fdio@cisco.com> | 2017-05-29 13:13:32 +0200 |
---|---|---|
committer | Marcel Enguehard <mengueha+fdio@cisco.com> | 2017-05-29 13:13:32 +0200 |
commit | a836e5c16ea7df38646c46f2e9ffc6163ab05f06 (patch) | |
tree | d5cf3b799af7e9a328db245647a5cdce0ba744f4 /vicn/resource/interface.py | |
parent | be0b435d307173598c30fcacc421b17112137099 (diff) |
Misc bug fixes
*IP assignment
*Node is a key attribute
*Up-to-date packages
*Trailing whitespaces
...
Change-Id: Id8e2a5f7b2c4506f326b3c4bc991fa65f53fca5c
Signed-off-by: Marcel Enguehard <mengueha+fdio@cisco.com>
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') |