Underlay : fabric physique cluster-global (mgmt/iSCSI/Ceph) + preuve P23
Le modele derive l'adressage par tenant (VLAN 1000+index*10+zone), mais la fabric physique qui porte la flotte (mgmt switches/Proxmox/OOB, iSCSI, Ceph public+cluster) n'appartient a aucun tenant. Elle est desormais codifiee. - scripts/underlay.py + make underlay : charge/affiche/valide underlay.yml (VLAN < 1000, sous-reseaux hors des supernets tenant 10.(10+index).0.0/16). - underlay.yml gitignore (comme le vault) ; gabarit public underlay.yml.example ; surchargeable par SETOPS_UNDERLAY. - devis_reseau : section 0. Underlay + VLAN underlay sur le trunk, selon dialecte. - P23 : underlay.py --verifier ; sautee si underlay.yml absent (comme P16 sans vault). 23/23 preuves. Doc : docs/audit/README.md, wiki page reseau, CHANGELOG. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
02f3122b3d
commit
272f6369d8
9 changed files with 322 additions and 3 deletions
|
|
@ -290,6 +290,8 @@ PREUVES: list[dict] = [
|
|||
"cmds": [[sys.executable, "scripts/instances.py", "--verifier"]]},
|
||||
{"id": "P22", "titre": "Plan de recette a jour (genere du wiki)", "refs": ["AFF-002"],
|
||||
"cmds": [[sys.executable, "scripts/plan_recette.py", "--verifier"]]},
|
||||
{"id": "P23", "titre": "Underlay sans collision avec la plage tenant", "refs": ["AFF-001"],
|
||||
"cmds": [[sys.executable, "scripts/underlay.py", "--verifier"]]},
|
||||
]
|
||||
|
||||
|
||||
|
|
@ -310,6 +312,12 @@ def _vault_requis_absent() -> bool:
|
|||
return False
|
||||
|
||||
|
||||
def _underlay_absent() -> bool:
|
||||
"""Vrai si aucun underlay.yml n'est defini (fabric non decrite : rien a prouver)."""
|
||||
import underlay
|
||||
return underlay.chemin() is None
|
||||
|
||||
|
||||
def _executer(preuve: dict) -> tuple[str, str]:
|
||||
"""Renvoie (statut, detail). statut in {OK, ECHEC, SAUTE}."""
|
||||
if "func" in preuve:
|
||||
|
|
@ -344,6 +352,13 @@ def main(argv: list[str] | None = None) -> int:
|
|||
else:
|
||||
liste.append(preuve_inv)
|
||||
|
||||
# Preuve conditionnelle : underlay (fabric physique). Sautee si non definie.
|
||||
if _underlay_absent():
|
||||
p23 = next((p for p in liste if p["id"] == "P23"), None)
|
||||
if p23:
|
||||
liste.remove(p23)
|
||||
resultats.append((p23, "SAUTE", "Aucun underlay.yml (fabric non definie) — rien a prouver."))
|
||||
|
||||
for preuve in liste:
|
||||
statut, detail = _executer(preuve)
|
||||
resultats.append((preuve, statut, detail))
|
||||
|
|
|
|||
Loading…
Reference in a new issue