From 6dde0f030a5382a1425ac7820edfa9dcf5162c02 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 19 Jun 2018 13:37:12 -0400 Subject: [PATCH] Fixes #2182: ValueError raised when viewing the interface connections table --- netbox/dcim/tables.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index e71395ebc..427687ef9 100644 --- a/netbox/dcim/tables.py +++ b/netbox/dcim/tables.py @@ -7,9 +7,9 @@ from tenancy.tables import COL_TENANT from utilities.tables import BaseTable, ToggleColumn from .models import ( ConsolePort, ConsolePortTemplate, ConsoleServerPort, ConsoleServerPortTemplate, Device, DeviceBay, - DeviceBayTemplate, DeviceRole, DeviceType, Interface, InterfaceTemplate, InventoryItem, Manufacturer, Platform, - PowerOutlet, PowerOutletTemplate, PowerPort, PowerPortTemplate, Rack, RackGroup, RackReservation, Region, Site, - VirtualChassis, + DeviceBayTemplate, DeviceRole, DeviceType, Interface, InterfaceConnection, InterfaceTemplate, InventoryItem, + Manufacturer, Platform, PowerOutlet, PowerOutletTemplate, PowerPort, PowerPortTemplate, Rack, RackGroup, + RackReservation, Region, Site, VirtualChassis, ) REGION_LINK = """ @@ -594,7 +594,7 @@ class InterfaceConnectionTable(BaseTable): interface_b = tables.Column(verbose_name='Interface B') class Meta(BaseTable.Meta): - model = Interface + model = InterfaceConnection fields = ('device_a', 'interface_a', 'device_b', 'interface_b')