diff --git a/templates/index.html b/templates/index.html
index 1cd05d1..36e51a7 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -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 @@
SEC NAME
+
+ AMI DATA #
+
+
+
+ AMI NAME
+
+
BLACKHOLE #
@@ -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';
}