Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WF for managing ME config vars #105

Merged
merged 13 commits into from
Oct 4, 2020
51 changes: 0 additions & 51 deletions Utils/Assign_Device_Variables/Assign_Device_Variables.xml

This file was deleted.

80 changes: 0 additions & 80 deletions Utils/Assign_Device_Variables/Assign_Variables__dc.php

This file was deleted.

80 changes: 0 additions & 80 deletions Utils/Assign_Device_Variables/Delete_Delete_Variable.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<map>
<entry>
<key>DATE_MODIFICATION</key>
<value>1601489175862</value>
<value>1601815193337</value>
</entry>
<entry>
<key>REPOSITORY</key>
<value>Process</value>
</entry>
<entry>
<key>DATE_CREATION</key>
<value>1601489175854</value>
<value>1601815193333</value>
</entry>
<entry>
<key>TAG</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<map>
<entry>
<key>DATE_MODIFICATION</key>
<value>1594912013084</value>
<value>1601815262124</value>
</entry>
<entry>
<key>REPOSITORY</key>
<value>Process</value>
</entry>
<entry>
<key>DATE_CREATION</key>
<value>1594912013080</value>
<value>1601815262119</value>
</entry>
<entry>
<key>TAG</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<map>
<entry>
<key>DATE_MODIFICATION</key>
<value>1601565009178</value>
<value>1601814080937</value>
</entry>
<entry>
<key>REPOSITORY</key>
<value>Process</value>
</entry>
<entry>
<key>DATE_CREATION</key>
<value>1601565009171</value>
<value>1601814080930</value>
</entry>
<entry>
<key>TAG</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<metadata>
<map>
<entry>
<key>DATE_MODIFICATION</key>
<value>1601813937323</value>
</entry>
<entry>
<key>REPOSITORY</key>
<value>Process</value>
</entry>
<entry>
<key>DATE_CREATION</key>
<value>1601813937315</value>
</entry>
<entry>
<key>TAG</key>
</entry>
<entry>
<key>FILE_TYPE</key>
<value>text</value>
</entry>
<entry>
<key>TYPE</key>
<value>UPLOAD</value>
</entry>
<entry>
<key>COMMENT</key>
</entry>
</map>
</metadata>
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<map>
<entry>
<key>DATE_MODIFICATION</key>
<value>1601565010035</value>
<value>1601815324805</value>
</entry>
<entry>
<key>REPOSITORY</key>
<value>Process</value>
</entry>
<entry>
<key>DATE_CREATION</key>
<value>1601565010023</value>
<value>1601815324797</value>
</entry>
<entry>
<key>MODEL</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<map>
<entry>
<key>DATE_MODIFICATION</key>
<value>1601564990094</value>
<value>1601815323661</value>
</entry>
<entry>
<key>REPOSITORY</key>
<value>Process</value>
</entry>
<entry>
<key>DATE_CREATION</key>
<value>1601564990086</value>
<value>1601815323649</value>
</entry>
<entry>
<key>TAG</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@

require_once '/opt/fmc_repository/Process/Reference/Common/common.php';
require_once '/opt/fmc_repository/Process/Reference/Common/Library/msa_common.php';
require_once 'Common.php';


/*
The process recieves server IP and MAC address as parameters
*/
function list_args()
{
create_var_def('device_id', 'Device');
create_var_def('variable_name', 'String');
create_var_def('variable_type', 'String');
create_var_def('variable_value', 'String');
}


check_mandatory_param('device_id');
check_mandatory_param('variable_name');
check_mandatory_param('variable_type');
check_mandatory_param('variable_value');

/*
Expand All @@ -31,11 +29,12 @@ function list_args()

$device_id = $context['device_id'];
$variable_name = $context['variable_name'];
$variable_type = $context['variable_type'];
$variable_value = $context['variable_value'];

_configuration_variable_create ($device_id, $variable_name, $variable_value, $type =$variable_type, $comment = "");
_configuration_variable_create ($device_id, $variable_name, $variable_value, $type = "String", $comment = "");

task_success('The variable '.$variable_name.'(type is '.$variable_type.') with value '.$variable_value.' has been added to device '.$device_id.' successfully');
update_var_array($device_id);

task_success('The variable '.$variable_name.' with value '.$variable_value.' has been added to device '.$device_id.' successfully');

?>
Loading