[racktables-users] Re: Adding field to VLAN

  • From: Denis Ovsienko <denis@xxxxxxxxxxxxx>
  • To: <racktables-users@xxxxxxxxxxxxx>
  • Date: Fri, 21 Jul 2017 16:52:01 +0100

---- On Fri, 21 Jul 2017 15:48:48 +0100 James Osbourn<james.osbourn@xxxxxxxxxx> 
wrote ---- 

We would like to add a new field to the VLAN object in racktables.  As well 
as a name and VLAN ID we would like to act a contact reference. 
 
Looking at the object configurations VLANs appear to be classed as a built 
in object and custom fields cannot be added to them. 
 
Can anyone confirm that this is true and how we could go about adding 
further details to a VLAN object. 

Hello James.

The VLAN data unit in RackTables is quite minimalistic, as far as the current 
implementation goes (in both SQL and PHP) it only can have arbitrary text in 
the description.

If you are sure the contact reference cannot be a part of the description, it 
may require a custom local extension to implement what you need. At SQL level 
all VLANs are rows in the VLANDescription table with the primary key being 
(domain_id, vlan_id) as a VLAN only exists within a domain.

I would try using the descriptions first.

-- 
    Denis Ovsienko



Other related posts: