Virtual chassis - no "add" button

590 views
Skip to first unread message

Brian Candler

unread,
Feb 27, 2018, 5:41:53 PM2/27/18
to NetBox
I am probably being very dense here.  I cannot see how to create a virtual chassis!

I have been following the "develop" branch, but I don't think I applied any updates while 2.3 beta was underway (I *think* I updated to 2.2.10, certainly to 2.2.9).  I have now updated to the tip of 'develop': the top commit is

commit 970759ed8ba786a38e599e2160e9e7e13671f487
Author: Jeremy Stretch <jstr...@digitalocean.com>
Date:   Mon Feb 26 14:19:38 2018 -0500

    Release v2.3.0

After doing the upgrade, the virtual chassis feature appears under the Devices menu, but there is no "+" button next to it.

If I select Virtual Chassis from the menu, which takes me to /dcim/virtual-chassis/, I get an empty list of virtual chassis, but no Add button.

If I manually enter /dcim/virtual-chassis/add/ in the URL bar, I get a HTTP 405 error.

I am logged in as "admin", and otherwise everything seems fine - for example I can happily add a new Device.  (But creating or editing a device does not show any options relating to VCs either).

I even looked in the source: netbox/templates/dcim/virtualchassis_list.html doesn't appear to have an add_button, and netbox/templates/inc/nav_menu.html doesn't have Add or Import buttons next to Virtual Chassis.

Any clues as to what I'm doing wrong?

Thanks... Brian.

Jeremy Stretch

unread,
Feb 27, 2018, 5:58:14 PM2/27/18
to Brian Candler, NetBox
Hi Brian,

Currently, virtual chassis can only be added by selecting devices in the device list and clicking the "add virtual chassis" button at the bottom of the page.

Jeremy

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/85b42f44-e3a8-45a0-b445-c135c0d3fbac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Candler

unread,
Feb 28, 2018, 3:01:44 AM2/28/18
to NetBox
Ah, thank you!  Maybe worth a mention at https://netbox.readthedocs.io/en/latest/data-model/dcim/#virtual-chassis

A few problems:

* As others have reported: clicking "Create Virtual Chassis" at /dcim/devices/ without selecting any devices leads to an exception:

<class 'ValueError'>
Cannot use None as a query value

* If I select two devices, pick one as master, but don't enter data into any other fields, I get the following error on Create:

<class 'KeyError'>
'vc_position'

This problem goes away if I enter numbers for position.

* Once I've created a VC, I cannot see how to delete it in the GUI.  I can remove non-primary devices but not the primary device.

In the end I used the Swagger API frontend at /api/docs/#!/dcim/dcim_virtual_chassis_delete and that seemed to do the job.

Cheers,

Brian.

Jeremy Stretch

unread,
Mar 1, 2018, 2:45:17 PM3/1/18
to Brian Candler, NetBox
Thanks Brian. These bugs have been addressed in #1919 and #1936.


> Once I've created a VC, I cannot see how to delete it in the GUI.

You should see a "delete virtual chassis" button in the Virtual Chassis block under the device view for any VC member.

Jeremy

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.

Brian Candler

unread,
Mar 1, 2018, 2:57:49 PM3/1/18
to NetBox
> You should see a "delete virtual chassis" button in the Virtual Chassis block under the device view for any VC member.

Ah right - that works.  Just wasn't where I expected to find it :-)

Cheers,

Brian. 
Reply all
Reply to author
Forward
0 new messages