Skip to content

Commit fbcbdd8

Browse files
committed
fixed optics in scenarios
1 parent c678c8b commit fbcbdd8

9 files changed

Lines changed: 10 additions & 2 deletions

examples/backbone_baseline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ components:
6969
leaf|leaf: 800G-ZR+
7070
core|leaf: 800G-ZR+
7171
leaf|dc: 800G-ZR+
72+
core|dc: 800G-ZR+
7273
leaf|spine: 800G-DR4
7374
spine|leaf: 1600G-2xDR4
7475

examples/backbone_clos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ components:
6969
leaf|leaf: 800G-ZR+
7070
core|leaf: 800G-ZR+
7171
leaf|dc: 800G-ZR+
72+
core|dc: 800G-ZR+
7273
leaf|spine: 800G-DR4
7374
spine|leaf: 1600G-2xDR4
7475

examples/backbone_slimfly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ components:
6969
leaf|leaf: 800G-ZR+
7070
core|leaf: 800G-ZR+
7171
leaf|dc: 800G-ZR+
72+
core|dc: 800G-ZR+
7273
leaf|spine: 800G-DR4
7374
spine|leaf: 1600G-2xDR4
7475

examples/backbone_slimfly_spine.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ components:
6969
leaf|leaf: 800G-ZR+
7070
core|leaf: 800G-ZR+
7171
leaf|dc: 800G-ZR+
72+
core|dc: 800G-ZR+
7273
leaf|spine: 800G-DR4
7374
spine|leaf: 1600G-2xDR4
7475

examples/small_test_baseline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ components:
5757
leaf|leaf: 800G-ZR+
5858
core|leaf: 800G-ZR+
5959
leaf|dc: 800G-ZR+
60+
core|dc: 800G-ZR+
6061
leaf|spine: 800G-DR4
6162
spine|leaf: 1600G-2xDR4
6263

examples/small_test_clos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ components:
5757
leaf|leaf: 800G-ZR+
5858
core|leaf: 800G-ZR+
5959
leaf|dc: 800G-ZR+
60+
core|dc: 800G-ZR+
6061
leaf|spine: 800G-DR4
6162
spine|leaf: 1600G-2xDR4
6263

examples/small_test_slimfly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ components:
5757
leaf|leaf: 800G-ZR+
5858
core|leaf: 800G-ZR+
5959
leaf|dc: 800G-ZR+
60+
core|dc: 800G-ZR+
6061
leaf|spine: 800G-DR4
6162
spine|leaf: 1600G-2xDR4
6263

examples/small_test_slimfly_spine.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ components:
5757
leaf|leaf: 800G-ZR+
5858
core|leaf: 800G-ZR+
5959
leaf|dc: 800G-ZR+
60+
core|dc: 800G-ZR+
6061
leaf|spine: 800G-DR4
6162
spine|leaf: 1600G-2xDR4
6263

topogen/traffic_matrix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def _distance_km(m1: str, m2: str) -> float:
527527
"mode": "pairwise",
528528
"priority": int(priority),
529529
"demand": demand_each,
530-
"attrs": {"euclidean_km": float(dist_km)},
530+
"attrs": {"euclidean_km": int(math.ceil(float(dist_km)))},
531531
}
532532
)
533533
# Optional per-priority flow policy config passthrough
@@ -542,7 +542,7 @@ def _distance_km(m1: str, m2: str) -> float:
542542
"mode": "pairwise",
543543
"priority": int(priority),
544544
"demand": demand_each,
545-
"attrs": {"euclidean_km": float(dist_km)},
545+
"attrs": {"euclidean_km": int(math.ceil(float(dist_km)))},
546546
}
547547
)
548548
if isinstance(getattr(traffic_cfg, "flow_policy_config", {}), dict):

0 commit comments

Comments
 (0)