@@ -50,22 +50,6 @@ async def setup_class_helper(self):
50
50
self .xml_device_types , problems = build_xml_device_types ()
51
51
self .problems .extend (problems )
52
52
53
- def _get_device_type_id (self , device_type_name : str ) -> int :
54
- id = [id for id , dt in self .xml_device_types .items () if dt .name .lower () == device_type_name .lower ()]
55
- if len (id ) != 1 :
56
- self .fail_current_test (f"Unable to find { device_type_name } device type" )
57
- return id [0 ]
58
-
59
- def _has_nim (self ):
60
- nim_id = self ._get_device_type_id ('network infrastructure manager' )
61
- for endpoint in self .endpoints_tlv .values ():
62
- desc = Clusters .Descriptor
63
- device_types = [dt .deviceType for dt in endpoint [desc .id ][desc .Attributes .DeviceTypeList .attribute_id ]]
64
- if nim_id in device_types :
65
- # TODO: it's unclear if this needs to be present on every endpoint. Right now, this assumes one is sufficient.
66
- return True
67
- return False
68
-
69
53
def check_conformance (self , ignore_in_progress : bool , is_ci : bool ):
70
54
problems = []
71
55
success = True
@@ -141,13 +125,6 @@ def record_warning(location, problem):
141
125
for f in feature_masks :
142
126
location = AttributePathLocation (endpoint_id = endpoint_id , cluster_id = cluster_id ,
143
127
attribute_id = GlobalAttributeIds .FEATURE_MAP_ID )
144
- if cluster_id == Clusters .AccessControl .id and f == Clusters .AccessControl .Bitmaps .Feature .kManagedDevice :
145
- # Managed ACL is treated as a special case because it is only allowed if other endpoints support NIM and disallowed otherwise.
146
- if not self ._has_nim ():
147
- record_error (
148
- location = location , problem = "MACL feature is disallowed if the Network Infrastructure Manager device type is not present" )
149
- continue
150
-
151
128
if f not in self .xml_clusters [cluster_id ].features .keys ():
152
129
record_error (location = location , problem = f'Unknown feature with mask 0x{ f :02x} ' )
153
130
continue
0 commit comments