Skip to content

Commit 726c3cb

Browse files
committed
ft-orchestration make cache_size overwrite other values
1 parent c66c3dd commit 726c3cb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

testing/simulation/one_packet_flows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ sim_threshold:
9696
- id: one_packet_short_timeout
9797
marks: []
9898
mbps_accuracy: 100
99-
mbps_required: 900
99+
mbps_required: 1000
100100
speed_max: 12500
101101
probe:
102102
active_timeout: 10
@@ -120,7 +120,7 @@ sim_threshold:
120120
- id: one_packet_one_min_timeout
121121
marks: []
122122
mbps_accuracy: 100
123-
mbps_required: 5000
123+
mbps_required: 1000
124124
speed_max: 12500
125125
probe:
126126
active_timeout: 60

tools/ft-orchestration/src/probe/cento.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(
119119
self._interfaces = interfaces_names
120120
self._zero_copy = any(ifc.startswith("zc:") for ifc in self._interfaces)
121121

122-
if "max_hash_size" not in kwargs and cache_size:
122+
if cache_size:
123123
kwargs["hash_size"] = min(
124124
2**cache_size, kwargs.get("hash_size", float("inf"))
125125
)

tools/ft-orchestration/src/probe/nprobe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __init__(
128128
self._interfaces = interfaces_names
129129
self._zero_copy = any(ifc.startswith("zc:") for ifc in self._interfaces)
130130

131-
if "max_num_flows" not in kwargs and cache_size:
131+
if cache_size:
132132
kwargs["max_num_flows"] = 2**cache_size
133133

134134
settings: NProbeSettings = NProbeSettings(

tools/ft-orchestration/src/probe/yaf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __init__(
208208
kwargs["tls"] = YafSettings.TLSOptions(**(kwargs.get("tls", {})))
209209
kwargs["log"] = YafSettings.LoggingOptions(**(kwargs.get("log", {})))
210210

211-
if "maxflows" not in kwargs and cache_size:
211+
if cache_size:
212212
kwargs["maxflows"] = 2**cache_size
213213

214214
self._settings = YafSettings(

0 commit comments

Comments
 (0)