Add ability to the acl.conf.xml to read a description attribute.
This commit is contained in:
@@ -97,6 +97,7 @@
|
|||||||
$node_type = $row['@attributes']['type'];
|
$node_type = $row['@attributes']['type'];
|
||||||
$node_cidr = $row['@attributes']['cidr'];
|
$node_cidr = $row['@attributes']['cidr'];
|
||||||
$node_domain = $row['@attributes']['domain'];
|
$node_domain = $row['@attributes']['domain'];
|
||||||
|
$node_description = $row['@attributes']['description'];
|
||||||
//replace $${domain}
|
//replace $${domain}
|
||||||
if (strlen($node_domain) > 0) {
|
if (strlen($node_domain) > 0) {
|
||||||
$node_domain = str_replace("\$\${domain}", $domain_name, $node_domain);
|
$node_domain = str_replace("\$\${domain}", $domain_name, $node_domain);
|
||||||
@@ -109,7 +110,8 @@
|
|||||||
$sql .= "access_control_uuid, ";
|
$sql .= "access_control_uuid, ";
|
||||||
$sql .= "node_type, ";
|
$sql .= "node_type, ";
|
||||||
$sql .= "node_cidr, ";
|
$sql .= "node_cidr, ";
|
||||||
$sql .= "node_domain ";
|
$sql .= "node_domain, ";
|
||||||
|
$sql .= "node_description ";
|
||||||
$sql .= ") ";
|
$sql .= ") ";
|
||||||
$sql .= "values ";
|
$sql .= "values ";
|
||||||
$sql .= "( ";
|
$sql .= "( ";
|
||||||
@@ -117,7 +119,8 @@
|
|||||||
$sql .= "'".$access_control_uuid."', ";
|
$sql .= "'".$access_control_uuid."', ";
|
||||||
$sql .= "'".$node_type."', ";
|
$sql .= "'".$node_type."', ";
|
||||||
$sql .= "'".$node_cidr."', ";
|
$sql .= "'".$node_cidr."', ";
|
||||||
$sql .= "'".$node_domain."' ";
|
$sql .= "'".$node_domain."', ";
|
||||||
|
$sql .= "'".$node_description."' ";
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
//echo $sql."\n";
|
//echo $sql."\n";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
|
|||||||
Reference in New Issue
Block a user