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

Compatibility with Netbox 4.2 #8280

Open
jmcguir opened this issue Jan 28, 2025 · 0 comments
Open

Compatibility with Netbox 4.2 #8280

jmcguir opened this issue Jan 28, 2025 · 0 comments
Assignees

Comments

@jmcguir
Copy link

jmcguir commented Jan 28, 2025

Due to the scope changes on clusters the netbox plugin won't work with 4.2

https://netboxlabs.com/docs/netbox/en/stable/release-notes/version-4.2/

These two sections will need an upgrade to support 4.2:

  1. https://github.com/vatesfr/xen-orchestra/blob/3e69d4c84b2e18c00aebf5362fa7baa16cd30043/packages/xo-server-netbox/src/index.js#L495C1-L495C77
  2. site: nbVm.site == null ? nbVm.site : nbVm.site.id,

this is what site looks like now on a cluster:

 "scope_type": "dcim.site",
    "scope_id": 5121,
    "scope": {
        "id": 5121,
        "url": "https://netbox.localhost.net/api/dcim/sites/5121/",
        "display": "6464",
        "name": "6464",
        "slug": "site_6464",
        "description": "Paris"
    },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants