|
@@ -293,6 +293,13 @@ $contents = str_replace('%%MGMT_MASK%%', $row['mask'], $contents);
|
|
|
$contents = str_replace('%%MGMT_GW%%', $row['gw'], $contents);
|
|
|
$contents = str_replace('%%SNMP_LOCATION%%', $snmp_loc, $contents);
|
|
|
|
|
|
+if (MAP_V6 === true) {
|
|
|
+ $octets = explode('.', $row['ip']);
|
|
|
+ $contents = str_replace('%%MGMT_IP6%%', IPV6_PREFIX . ':' . $octets[3], $contents);
|
|
|
+ $contents = str_replace('%%MGMT_PREFIXLEN%%', IPV6_PREFIXLEN, $contents);
|
|
|
+ $contents = str_replace('%%MGMT_GW6%%', IPV6_GW, $contents);
|
|
|
+}
|
|
|
+
|
|
|
$contents = str_replace('%%START_PORT%%', $start_port, $contents);
|
|
|
$contents = str_replace('%%MAX_PORT%%', $max_ports, $contents);
|
|
|
|