Skip to content

Commit

Permalink
Fix doc build regression breakage
Browse files Browse the repository at this point in the history
Signed-off-by: obarash <obarash@cisco.com>
  • Loading branch information
obarash-te committed May 1, 2023
1 parent db80716 commit 39e673e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from trex.emu.api import *

class IpfixProfileJsonConfig:
def __init__(self, config_file: str):
def __init__(self, config_file):
self._config_file = config_file
self._config_json = defaultdict()
self._profile = IpfixDevicesAutoTriggerListProfile()
Expand All @@ -28,7 +28,7 @@ def get_profile(self):

def _load_config_file(self):
if not os.path.exists(self._config_file):
raise TRexError(f"Config file does not exist - {self._config_file}")
raise TRexError("config file does not exist - {1}".format(self._config_file))

with open(self._config_file, "r" ) as f:
config_json = json.load(f)
Expand Down Expand Up @@ -60,7 +60,7 @@ def _create_ipfix_profile(self):
exporter_params.set_use_emu_client_ip_addr(_exporter_params.get("use_emu_client_ip_addr", None))
exporter_params.set_raw_socket_interface_name(_exporter_params.get("raw_socket_interface_name", None))
else:
raise ValueError(f'unsupported exporter type - {exporter_params.get_type()}')
raise ValueError("unsupported exporter type - {1}".format(exporter_params.get_type()))

if not "generators_params" in device_group:
raise ValueError('"generators_params" does not exist in config file')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def __init__(
self.application_id = int(engine_id) << 24 | int(selector_id)

def __str__(self):
s = f"name: {self.name}\n" + \
f"application_id: {self.application_id} [{self.engine_id}:{self.selector_id}]\n" + \
f"help_string: {self.help_string}\n"
s = "name: {1}\napplication_id: {2} [{3}}:{4}]\nhelp_string: {5}\n".format(
self.name, self.application_id, self.engine_id,
self.selector_id, self.help_string)
return s

def __init__(self, ppack_taxonomy_file = PPACK_TAXONOMY_FILE):
Expand Down

0 comments on commit 39e673e

Please sign in to comment.