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