1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.NetworkTypes import NetworkType, NetworkTypes
5 from PLC.Auth import Auth
7 class GetNetworkTypes(Method):
9 Returns a list of all valid network types.
12 roles = ['admin', 'pi', 'user', 'tech', 'node']
18 returns = [NetworkType.fields['type']]
22 return [network_type['type'] for network_type in NetworkTypes(self.api)]