Add AMI department — badge, VLAN settings, and config template support
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -171,6 +171,7 @@
|
||||
.dept-ELEC { background: #003d66; color: #00b4d8; border: 1px solid #005a99; }
|
||||
.dept-GW { background: #003300; color: #00e676; border: 1px solid #005500; }
|
||||
.dept-SEC { background: #4d1a00; color: #ffd166; border: 1px solid #7a2a00; }
|
||||
.dept-AMI { background: #2a003d; color: #cc88ff; border: 1px solid #5500aa; }
|
||||
|
||||
/* Settings accordion */
|
||||
.accordion-header {
|
||||
@@ -690,6 +691,14 @@
|
||||
<span class="setting-label">SEC NAME</span>
|
||||
<input type="text" id="s-vlan-sec-name" value="SECURITY">
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<span class="setting-label">AMI DATA #</span>
|
||||
<input type="text" id="s-vlan-ami" value="203">
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<span class="setting-label">AMI NAME</span>
|
||||
<input type="text" id="s-vlan-ami-name" value="AMI_SCADA">
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<span class="setting-label">BLACKHOLE #</span>
|
||||
<input type="text" id="s-vlan-bh" value="900">
|
||||
@@ -916,6 +925,8 @@ function cfg() {
|
||||
vlanGwName: document.getElementById('s-vlan-gw-name').value.trim(),
|
||||
vlanSec: document.getElementById('s-vlan-sec').value.trim(),
|
||||
vlanSecName: document.getElementById('s-vlan-sec-name').value.trim(),
|
||||
vlanAmi: document.getElementById('s-vlan-ami').value.trim(),
|
||||
vlanAmiName: document.getElementById('s-vlan-ami-name').value.trim(),
|
||||
vlanBh: document.getElementById('s-vlan-bh').value.trim(),
|
||||
gateway: document.getElementById('s-gateway').value.trim(),
|
||||
defaultUsername: document.getElementById('s-username').value.trim(),
|
||||
@@ -962,6 +973,8 @@ function buildConfig(sw, c) {
|
||||
dataVlan = c.vlanGw; dataVlanName = c.vlanGwName; port1Desc = 'GW Scada';
|
||||
} else if (dept === 'SEC') {
|
||||
dataVlan = c.vlanSec; dataVlanName = c.vlanSecName; port1Desc = 'Security';
|
||||
} else if (dept === 'AMI') {
|
||||
dataVlan = c.vlanAmi; dataVlanName = c.vlanAmiName; port1Desc = 'AMI';
|
||||
} else {
|
||||
dataVlan = c.vlanElec; dataVlanName = c.vlanElecName; port1Desc = 'Port 1';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user