Adding tree import.

This commit is contained in:
stephb9959
2021-09-07 21:10:24 -07:00
parent 16919203de
commit c696498e75
2 changed files with 16 additions and 1 deletions

View File

@@ -270,7 +270,7 @@ locationcount() {
addconfig() {
payload="{ \"name\" : \"$1\", \"deviceTypes\" : [\"*\"], \"configuration\" : [ { \"name\" : \"radios\" , \"weight\" : 100, \"radios\": [{ \"band\": \"5G\", \"channel\": 52, \"channel-mode\": \"HE\", \"channel-width\": 80, \"country\": \"CA\" }, { \"band\": \"2G\", \"channel\": 11, \"channel-mode\": \"HE\", \"channel-width\": 20, \"country\": \"CA\" }] }"
curl ${FLAGS} -X POST "https://${OWPROV}/api/v1/inventory/1" \
curl ${FLAGS} -X POST "https://${OWPROV}/api/v1/configurations/1" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \
-H "accept: application/json" \