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
GetNodeFlavour exposes 'virt' based on node's 'virt' tag, or on PLC_FLAVOUR_VIRT_MAP
[plcapi.git]
/
PLC
/
Methods
/
GetNetworkTypes.py
diff --git
a/PLC/Methods/GetNetworkTypes.py
b/PLC/Methods/GetNetworkTypes.py
index
7187d21
..
dbddd9f
100644
(file)
--- a/
PLC/Methods/GetNetworkTypes.py
+++ b/
PLC/Methods/GetNetworkTypes.py
@@
-9,7
+9,7
@@
class GetNetworkTypes(Method):
Returns a list of all valid network types.
"""
Returns a list of all valid network types.
"""
- roles = ['admin', 'pi', 'user', 'tech']
+ roles = ['admin', 'pi', 'user', 'tech'
, 'node'
]
accepts = [
Auth()
accepts = [
Auth()
@@
-17,5
+17,6
@@
class GetNetworkTypes(Method):
returns = [NetworkType.fields['type']]
returns = [NetworkType.fields['type']]
+
def call(self, auth):
return [network_type['type'] for network_type in NetworkTypes(self.api)]
def call(self, auth):
return [network_type['type'] for network_type in NetworkTypes(self.api)]