aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/FlowUtil.py
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2023-01-16 12:46:43 +0100
committerVratko Polak <vrpolak@cisco.com>2023-01-16 12:46:43 +0100
commit8efbe2c99af0e2e60028d89b2207be59701d69e8 (patch)
treec8407acb6420ab4ffc36661217385e4aaded8bff /resources/libraries/python/FlowUtil.py
parenta63b5bbbbfa418c7140d9006f0257bc614a0cd3b (diff)
feat(papi): switch ipsec from vat to async papi
+ Move papi_exec resource out of for loops. Change-Id: I39d75ad2552986f82f7e2c8e3aae2fbc07f042e0 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/FlowUtil.py')
-rw-r--r--resources/libraries/python/FlowUtil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/FlowUtil.py b/resources/libraries/python/FlowUtil.py
index f92f5148db..054356b9a2 100644
--- a/resources/libraries/python/FlowUtil.py
+++ b/resources/libraries/python/FlowUtil.py
@@ -1,4 +1,4 @@
-# copyright (c) 2022 Intel and/or its affiliates.
+# copyright (c) 2023 Intel 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:
@@ -454,7 +454,7 @@ class FlowUtil:
hw_if_index=int(sw_if_index)
)
- err_msg = u"Failed to enable flow on host {node[u'host']}"
+ err_msg = f"Failed to enable flow on host {node[u'host']}"
with PapiSocketExecutor(node) as papi_exec:
papi_exec.add(cmd, **args).get_reply(err_msg)