-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add config option to assign VLANs to VLAN groups #373
Comments
Mmhhh, this looks quite nice. Thabk you. Will try to add it. |
We also would need that! |
Hi @bb-Ricardo, is there any progress with this update for multiple VLAN's and VLAN groups please? |
Hi @KPTheProf, sorry for the delay, didn't had time the last few weeks to work on this project. |
Hi! Are you working on this enhancement? It would be great to have this option to add VLANs to a group. The script is really great and saved us a lot of time when importing data from vcenter! |
Just had a look at it and it seems a bit strange API wise. Maybe someone else can have a look as well. I just tested it with NetBox 4.1.6. The UI specifies a VLAN ID's range but the API specification does not mention a VLAN ID. but when you request the object via API, it returns a What do you think? |
Ok, it's a known issue: netbox-community/netbox#17488 |
Ah.. then there’s not much to do than wait until it’s fixed. |
I believe it still can be added. Just wondering what's the expectation here.
Because there exists a discrepancy between the API and the UI. When creating an VLAN group via UI, the VLAN ID range is mandatory. Creating a VLAN Group via API only requires a name and a slug. What do you think? |
From my perspective, I would expect the VLAN group to already exist because I want to ensure that the VLAN's are only added to that group and not to another group that might have the same VLAN ID. |
Hi @Croes1, @KPTheProf, @thuguet, I finally (sorry for this long wait) got some time to implement this feature. I pushed a new commit to the |
Hi @bb-Ricardo
Do have a docker development version that I can test against? |
Hi @bb-Ricardo |
Hi @bb-Ricardo
This is the only change I've made to my settings.ini for the test
|
Hey, thank you for the effort. I just created an beta image with the latest code changes here: |
Thank you for working on this! I agree, I expect the vlan group to already exist. I’ll try to do some tests next week! Got some other stuff at work I have to complete first. |
Hi @bb-Ricardo I've tried running the beta docker image, but it is failing with the below error.
|
hi, sorry for the hassle. Yes, it was a bug which even my IDE warned me about but somehow just blindly ignored. I just pushed another container, please try: Thank you |
Hi @bb-Ricardo
|
What are the scopes of your VLAN groups? Especially the ones in the error. Guess the scopes I tested were all site scoped. |
Discussed in #372
Originally posted by KPTheProf February 22, 2024
Hi
I have a large number of VLAN's and multiple VLAN Groups configured in Netbox.
I have a VLAN Group for VMware VLAN's but when I import the data, it is imported into the same VLAN number but in a different group.
Is there a way to configure the settings.ini to specify which VLAN group I want the VLAN's added to or updated?
If possible, could I suggest that the currect VLAN options be extended to include a VLAN group or groups based on regex key / value pair similar to the tenant information.
The text was updated successfully, but these errors were encountered: