Loading src/device/service/drivers/openconfig/templates/Inventory.py +1 −0 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: add_value_from_tag(inventory, 'class', component_type) if inventory['class'] == 'CPU' or inventory['class'] == 'STORAGE': continue component_empty = xml_component.find('ocp:state/ocp:empty', namespaces=NAMESPACES) if not component_empty is None: add_value_from_tag(inventory['attributes'], 'empty', component_empty) Loading src/slice/service/slice_grouper/SliceGrouper.py +1 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ class SliceGrouper: @property def is_enabled(self): return self._is_enabled def group(self, slice_obj : Slice) -> bool: LOGGER.debug('[group] slice_obj={:s}'.format(grpc_message_to_json_string(slice_obj))) selected_group = self._select_group(slice_obj) Loading Loading
src/device/service/drivers/openconfig/templates/Inventory.py +1 −0 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: add_value_from_tag(inventory, 'class', component_type) if inventory['class'] == 'CPU' or inventory['class'] == 'STORAGE': continue component_empty = xml_component.find('ocp:state/ocp:empty', namespaces=NAMESPACES) if not component_empty is None: add_value_from_tag(inventory['attributes'], 'empty', component_empty) Loading
src/slice/service/slice_grouper/SliceGrouper.py +1 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ class SliceGrouper: @property def is_enabled(self): return self._is_enabled def group(self, slice_obj : Slice) -> bool: LOGGER.debug('[group] slice_obj={:s}'.format(grpc_message_to_json_string(slice_obj))) selected_group = self._select_group(slice_obj) Loading