From 44f0bd378763f4c481fb8a87847ca84469b35a67 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 26 Sep 2017 17:10:06 +0200 Subject: Copy over topology_ids on branch --- opendc/models/rack.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'opendc/models/rack.py') diff --git a/opendc/models/rack.py b/opendc/models/rack.py index 74104fcb..43916490 100644 --- a/opendc/models/rack.py +++ b/opendc/models/rack.py @@ -9,14 +9,15 @@ class Rack(Model): 'id': 'id', 'name': 'name', 'capacity': 'capacity', - 'powerCapacityW': 'power_capacity_w' + 'powerCapacityW': 'power_capacity_w', + 'topologyId': 'topology_id' } } PATH = '/v1/tiles/{tileId}/rack' TABLE_NAME = 'racks' - COLUMNS = ['id', 'name', 'capacity', 'power_capacity_w'] + COLUMNS = ['id', 'name', 'capacity', 'power_capacity_w', 'topology_id'] COLUMNS_PRIMARY_KEY = ['id'] @classmethod -- cgit v1.2.3