-# Copyright (c) 2022 Cisco and/or its affiliates.
+# Copyright (c) 2023 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
:type process_oper: bool
"""
- # Save the provided metadata
- for key, val in metadata.items():
- self._data["metadata"][key] = val
-
# Mapping of TCs long names
self._mapping = mapping
"tests": dict()
}
+ # Save the provided metadata
+ for key, val in metadata.items():
+ self._data["metadata"][key] = val
+
@property
def data(self):
"""Getter - Data parsed from the XML file.
if self._kw_name is None:
return
elif self._kw_name.count("Run Telemetry On All Duts"):
- self._telemetry_kw_counter += 1
- self._get_telemetry(msg)
+ if self._process_oper:
+ self._telemetry_kw_counter += 1
+ self._get_telemetry(msg)
elif self._kw_name.count("Show Runtime On All Duts"):
- self._sh_run_counter += 1
- self._get_show_run(msg)
+ if self._process_oper:
+ self._sh_run_counter += 1
+ self._get_show_run(msg)
elif self._kw_name.count("Show Vpp Version On All Duts"):
if not self._version:
self._get_vpp_version(msg)