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