git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define tags exposed to the API in the Accessors area
[plcapi.git]
/
PLC
/
Nodes.py
diff --git
a/PLC/Nodes.py
b/PLC/Nodes.py
index
c734a2b
..
723aeae
100644
(file)
--- a/
PLC/Nodes.py
+++ b/
PLC/Nodes.py
@@
-80,15
+80,9
@@
class Node(Row):
}
view_tags_name = "view_node_tags"
}
view_tags_name = "view_node_tags"
- # tags declared here should also be defined as Accessors to ensure that the TagType is created
- # type info not used yet
- tags = {
- # regular nodes
- 'arch': str,
- 'pldistro' : str,
- 'deployment': str,
- # dummynet nodes
- }
+ # tags are used by the Add/Get/Update methods to expose tags
+ # this is initialized here and updated by the accessors factory
+ tags = { }
def validate_hostname(self, hostname):
if not valid_hostname(hostname):
def validate_hostname(self, hostname):
if not valid_hostname(hostname):