Adressage fédéré : index d'instance (préfixe VMID + supernet)
Le VMID n'est plus codé 9CSNN en dur : il prend le préfixe d'un `index` déclaré en tête de plan/nomenclature.yml. Convention : supernet = 10.(index*10).0.0/16, VMID = index·CSNN. Permet à N écosystèmes de coexister sans collision (Chezlepro=1, Technolibre=2). Sans index → 9CSNN (rétro-compatible, bacs à sable en 172.19.x). deriveServeur JS mort retiré. Doc multi-instances.md mise à jour. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
8cc5ce8112
commit
8029083536
4 changed files with 36 additions and 8 deletions
|
|
@ -1231,13 +1231,6 @@ HTML = r"""<!doctype html>
|
|||
serveursModifie = false;
|
||||
}
|
||||
|
||||
function deriveServeur(nom, fonction) {
|
||||
const info = infoFonction(fonction);
|
||||
const seq = fonctionDe(nom).seq;
|
||||
if (!info || seq == null) return {vmid: '?', ip: '?', vlan: '?'};
|
||||
const base3 = info.sous_reseau.split('.').slice(0, 3).join('.');
|
||||
return {vmid: '9' + info.categorie + info.service + String(seq).padStart(2, '0'), ip: base3 + '.' + (info.service * 10 + seq), vlan: String(info.vlan)};
|
||||
}
|
||||
|
||||
function marquerServeursModifie() { serveursModifie = true; majIndicateurSauvegarde(); }
|
||||
function choisirServeur(i) { selServeur = i; dessiner(); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue