3 # Thierry Parmentelat - INRIA
7 from PLC.Faults import *
8 from PLC.Method import Method
9 from PLC.Parameter import Parameter, Mixed
10 from PLC.Filter import Filter
11 from PLC.Auth import Auth
13 from PLC.InterfaceTags import InterfaceTag, InterfaceTags
14 from PLC.Sites import Site, Sites
15 from PLC.Interfaces import Interface, Interfaces
17 class GetInterfaceTags(Method):
19 Returns an array of structs containing details about
20 interfaces and related settings.
22 If interface_tag_filter is specified and is an array of
23 interface setting identifiers, only interface settings matching
24 the filter will be returned. If return_fields is specified, only
25 the specified details will be returned.
28 roles = ['admin', 'pi', 'user', 'node']
32 Mixed([InterfaceTag.fields['interface_tag_id']],
33 Parameter(int,"Interface setting id"),
34 Filter(InterfaceTag.fields)),
35 Parameter([str], "List of fields to return", nullok = True)
38 returns = [InterfaceTag.fields]
41 def call(self, auth, interface_tag_filter = None, return_fields = None):
43 interface_tags = InterfaceTags(self.api, interface_tag_filter, return_fields)