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

refactored mac addresses into lists, rather than strings #31

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

jamesgreen-moj
Copy link
Contributor

@jamesgreen-moj jamesgreen-moj commented Jun 21, 2024

image

Successful run:

Login successful
GET https://api.eu.mist.com/api/v1/orgs/9fd50080-520d-49ec-96a0-09f263fc8a05/sites
GET https://api.eu.mist.com/api/v1/orgs/9fd50080-520d-49ec-96a0-09f263fc8a05/inventory
[
  {
    "op": "assign",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "macs": [
      "a83a790387d4",
      "a83a790387f7",
      "a83a790388a1",
      "a83a7903889c",
      "a83a7903866c",
      "a83a79038838",
      "a83a790386ee",
      "a83a79038775",
      "a83a790384f5",
      "a83a7903855e",
      "a83a79038662",
      "a83a7903869e",
      "a83a79038617",
      "a83a79038671"
    ],
    "no_reassign": false,
    "disable_auto_config": false,
    "managed": false
  }
]
A file containing all the changes has been created: ../data_src/mist_plan_20240621_105034.json
Continuing with run
PUT https://api.eu.mist.com/api/v1/orgs/9fd50080-520d-49ec-96a0-09f263fc8a05/inventory
Successfully assigned ap {'op': 'assign', 'site_id': 'ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6', 'macs': ['a83a790387d4', 'a83a790387f7', 'a83a790388a1', 'a83a7903889c', 'a83a7903866c', 'a83a79038838', 'a83a790386ee', 'a83a79038775', 'a83a790384f5', 'a83a7903855e', 'a83a79038662', 'a83a7903869e', 'a83a79038617', 'a83a79038671'], 'no_reassign': False, 'disable_auto_config': False, 'managed': False}
[
  {
    "new_ap_name": "MOJ-NS-0998-WAP003",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a790387d4"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP004",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a790387f7"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP005",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a790388a1"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP006",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a7903889c"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP007",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a7903866c"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP008",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a79038838"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP009",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a790386ee"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP010",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a79038775"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP011",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a790384f5"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP012",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a7903855e"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP013",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a79038662"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP014",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a7903869e"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP015",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a79038617"
  },
  {
    "new_ap_name": "MOJ-NS-0998-WAP016",
    "site_id": "ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6",
    "ap_id": "00000000-0000-0000-1000-a83a79038671"
  }
]
A file containing all the changes has been created: ../data_src/mist_plan_20240621_105131.json
Continuing with run
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a790387d4
Successfully renamed ap to new desired name MOJ-NS-0998-WAP003
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a790387f7
Successfully renamed ap to new desired name MOJ-NS-0998-WAP004
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a790388a1
Successfully renamed ap to new desired name MOJ-NS-0998-WAP005
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a7903889c
Successfully renamed ap to new desired name MOJ-NS-0998-WAP006
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a7903866c
Successfully renamed ap to new desired name MOJ-NS-0998-WAP007
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a79038838
Successfully renamed ap to new desired name MOJ-NS-0998-WAP008
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a790386ee
Successfully renamed ap to new desired name MOJ-NS-0998-WAP009
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a79038775
Successfully renamed ap to new desired name MOJ-NS-0998-WAP010
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a790384f5
Successfully renamed ap to new desired name MOJ-NS-0998-WAP011
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a7903855e
Successfully renamed ap to new desired name MOJ-NS-0998-WAP012
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a79038662
Successfully renamed ap to new desired name MOJ-NS-0998-WAP013
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a7903869e
Successfully renamed ap to new desired name MOJ-NS-0998-WAP014
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a79038617
Successfully renamed ap to new desired name MOJ-NS-0998-WAP015
PUT https://api.eu.mist.com/api/v1/sites/ffb3e6a8-900a-4e4f-b0cc-9bd864c356c6/devices/00000000-0000-0000-1000-a83a79038671
Successfully renamed ap to new desired name MOJ-NS-0998-WAP016

Process finished with exit code 0

@jamesgreen-moj jamesgreen-moj requested a review from a team as a code owner June 21, 2024 10:56
Copy link

@smjmoj smjmoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jamesgreen-moj jamesgreen-moj merged commit 70bbc8e into main Jun 21, 2024
2 checks passed
@jamesgreen-moj jamesgreen-moj deleted the fixes-for-ap-onboarding branch June 21, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants