CE-2440: Prepare for NetBox integration
The code has been refactored to be compatible with the backend's NetBox integration changes. We query hosts from two different sources in NetBox, so their numerical identifiers are unique only within their own entity. Therefore, they have received a generated String ID that includes the numerical ID and information about from which endpoint they can be queried (Is Virtual Machine or not).
Closes CE-2440
Merge request reports
Activity
Filter activity
requested review from @imretoth, @christinajenks, and @johannaszepanski
assigned to @domonkosgulyas
Hints to test the NetBox stuff:
- Modify Playbook
- Add NetBox base URL (NETBOX_HOST). Should be: https://netbox-lab-02.cslab.esss.lu.se
- Add NetBox API token (NETBOX_TOKEN) It can be generated via: https://netbox-lab-02.cslab.esss.lu.se/api/users/tokens/provision
- Undo the V23 migration script (or just delete the entry)
- Deploy to TEST
- Migrate hosts via /api/v1/migrate (Auth required)
Edited by Anders Lindh Olsson183 182 <Autocomplete 184 183 autoHighlight 185 184 id="host" 186 options={query ? hosts?.csEntryHosts ?? [] : []} 185 options={query ? hosts?.netBoxHosts ?? [] : []} - src/mocks/fixtures/NetBoxHostWithStatus.json 0 → 100644
3 3 "listSize": 25, 4 4 "pageNumber": 0, 5 5 "limit": 100, 6 "csEntryHosts": [ 6 "netBoxHosts": [ related to the other questions
Edited by Johanna Szepanski
added 1 commit
added 15 commits
-
ced10bfa...5a979e4d - 9 commits from branch
netbox_integration
- 26190ce5 - CE-2440: Prepare for NetBox integration
- 81371df1 - CE-2440: Fix review comments
- 7c1daa50 - CE-2440: Fix JobHostColumn
- a59f591e - CE-2440: Fix host link on IOC details page
- 063b93ee - CE-2440: Fix IOCTable test, hardcore NetBox URL
- dc2178ae - CE-2440: Undo NetBox url hardcoding
Toggle commit list-
ced10bfa...5a979e4d - 9 commits from branch
added 1 commit
Please register or sign in to reply