mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 01:32:31 +00:00
Adding tree import.
This commit is contained in:
@@ -321,6 +321,16 @@ listconfigs() {
|
||||
jq < ${result_file}
|
||||
}
|
||||
|
||||
deviceconfig() {
|
||||
gettag() {
|
||||
curl ${FLAGS} "https://${OWPROV}/api/v1/inventory/$1?config=true" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${token}" \
|
||||
-H "accept: application/json" > ${result_file}
|
||||
jq < ${result_file}
|
||||
}
|
||||
}
|
||||
|
||||
shopt -s nocasematch
|
||||
case "$1" in
|
||||
"login") login; help ; logout ;;
|
||||
@@ -332,6 +342,7 @@ case "$1" in
|
||||
"entitycount") login; entitycount ; logout;;
|
||||
"tree") login; tree ; logout;;
|
||||
"importtree") login; importtree $2; logout;;
|
||||
"deviceconfig") login; deviceconfig $2; logout;;
|
||||
"addtag") login; addtag $2 $3; logout;;
|
||||
"unassigntag") login; unassigntag $2; logout;;
|
||||
"addunassignedtag") login; addunassignedtag $2 ; logout;;
|
||||
|
||||
Reference in New Issue
Block a user