1129
This commit is contained in:
@@ -5,7 +5,7 @@ nb_sync_one_device.py
|
||||
Update a single NetBox device from Cloud by hostname.
|
||||
|
||||
Behavior
|
||||
- Liveness gate via /v1/devices/{cloud_id}/liveness.
|
||||
- Liveness gate via /v2/devices/{cloud_id}/liveness.
|
||||
* If online: keep ORIGINAL behavior (Cloud is SoT, including IP).
|
||||
* If offline: query Subsystem for the device and use Subsystem IP as fallback,
|
||||
then continue with normal NetBox updates.
|
||||
@@ -44,7 +44,7 @@ from urllib3.util.retry import Retry
|
||||
NB_URL = "http://netbox.gt-tiso.ikeja.co.za"
|
||||
NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623"
|
||||
|
||||
CLOUD_API_BASE = "https://cloud.ikeja.co.za/v1/devices"
|
||||
CLOUD_API_BASE = "https://cloud.ikeja.co.za/v2/devices"
|
||||
CLOUD_BEARER = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InBhdmVsLmxAOGRldmljZXMuY29tIiwic3ViIjoyMiwiaWF0IjoxNzg5MTk2NTQ2LCJleHAiOjE3OTE3ODg1NDZ9.fQlcMWTL4uTKewd-AjlaHOdXSMJ2JOw2RfnKKF3weWk"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user