Contrôles
Algorithme — Path Impact
# TwinModel impact_engine.py
def compute_fw_impact(twin, rule_change):
# 1. Snapshot du plan de contrôle
snapshot = twin.batfish.snapshot()
# 2. Appliquer la règle delta
twin.apply_delta(rule_change)
# 3. Rejouer tous les flux SoT-Flow
results = []
for flow in twin.sot_flows:
before = snapshot.trace(flow)
after = twin.trace(flow)
if before["action"] != after["action"]:
results.append({
"flow": flow,
"delta": after["action"],
"sla_delta_ms": after["latency"]
- before["latency"]
})
return results
Verdict
EN ATTENTE
Applications impactées—
Chemin critique—
Chemin backup—
Δ latence SLA—