Adding tree import.

This commit is contained in:
stephb9959
2021-09-08 10:45:14 -07:00
parent e1333d616d
commit 0ad996cf57
2 changed files with 4 additions and 1 deletions

View File

@@ -47,9 +47,12 @@ namespace OpenWifi{
}
ProvObjects::InventoryTag IT;
std::cout << __LINE__ << std::endl;
if(Storage()->InventoryDB().GetRecord(RESTAPI::Protocol::SERIALNUMBER,SerialNumber,IT)) {
std::string Arg;
std::cout << __LINE__ << std::endl;
if(HasParameter("config",Arg) && Arg=="true") {
std::cout << __LINE__ << std::endl;
APConfig Device(SerialNumber,IT.deviceType,Logger_);
std::cout << __LINE__ << std::endl;

View File

@@ -352,7 +352,7 @@ case "$1" in
"entitycount") login; entitycount ; logout;;
"tree") login; tree ; logout;;
"importtree") login; importtree $2; logout;;
"deviceconfig") login; deviceconfig $2; logout;;
"deviceconfig") login; deviceconfig "$2"; logout;;
"addtag") login; addtag $2 $3; logout;;
"unassigntag") login; unassigntag $2; logout;;
"addunassignedtag") login; addunassignedtag $2 ; logout;;