Skip to content
Snippets Groups Projects
Commit 75ddb3d9 authored by Pablo Armingol's avatar Pablo Armingol
Browse files

code cleanup

parent 008be1ba
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!218Resolve "(TID) Add support for IETF slices"
......@@ -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)
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment