mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 01:32:31 +00:00
Adding firmware upgrade automation.
This commit is contained in:
@@ -370,6 +370,14 @@ deviceconfig() {
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
devicefwoptions() {
|
||||
curl ${FLAGS} "https://${OWPROV}/api/v1/inventory/$1?firmwareOptions=true" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${token}" \
|
||||
-H "accept: application/json" > ${result_file}
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
adddeviceconfig() {
|
||||
payload="{\"deviceConfiguration\" : \"$2\"}";
|
||||
curl ${FLAGS} -X PUT "https://${OWPROV}/api/v1/inventory/$1" \
|
||||
@@ -448,6 +456,7 @@ case "$1" in
|
||||
"tree") login; tree ; logout;;
|
||||
"importtree") login; importtree $2; logout;;
|
||||
"deviceconfig") login; deviceconfig "$2"; logout;;
|
||||
"devicefwoptions") login; devicefwoptions "$2"; logout;;
|
||||
"addtag") login; addtag "$2"; logout;;
|
||||
"unassigntag") login; unassigntag $2; logout;;
|
||||
"addunassignedtag") login; addunassignedtag $2 ; logout;;
|
||||
|
||||
Reference in New Issue
Block a user