summaryrefslogtreecommitdiff
path: root/opendc/api/v2/paths
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-25 14:48:24 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-25 14:48:24 +0200
commitff31029e732dd56743690dc608f535163a0548ff (patch)
tree04fe8e4a17816d93db386b5b6c560be654cdee86 /opendc/api/v2/paths
parentc2706e023070211f8ac992b800353807a1f10886 (diff)
Experiment
Diffstat (limited to 'opendc/api/v2/paths')
-rw-r--r--opendc/api/v2/paths/pathId/branches/endpoint.py16
-rw-r--r--opendc/api/v2/paths/pathId/endpoint.py2
-rw-r--r--opendc/api/v2/paths/pathId/sections/endpoint.py4
3 files changed, 11 insertions, 11 deletions
diff --git a/opendc/api/v2/paths/pathId/branches/endpoint.py b/opendc/api/v2/paths/pathId/branches/endpoint.py
index d3256e8c..6b0eebbd 100644
--- a/opendc/api/v2/paths/pathId/branches/endpoint.py
+++ b/opendc/api/v2/paths/pathId/branches/endpoint.py
@@ -1,13 +1,13 @@
from datetime import datetime
-from opendc.models.datacenter import Datacenter
-from opendc.models.machine import Machine
-from opendc.models.object import Object
-from opendc.models.path import Path
-from opendc.models.rack import Rack
-from opendc.models.room import Room
-from opendc.models.section import Section
-from opendc.models.tile import Tile
+from opendc.models_old.datacenter import Datacenter
+from opendc.models_old.machine import Machine
+from opendc.models_old.object import Object
+from opendc.models_old.path import Path
+from opendc.models_old.rack import Rack
+from opendc.models_old.room import Room
+from opendc.models_old.section import Section
+from opendc.models_old.tile import Tile
from opendc.util import database, exceptions
from opendc.util.rest import Request, Response
diff --git a/opendc/api/v2/paths/pathId/endpoint.py b/opendc/api/v2/paths/pathId/endpoint.py
index 42357fc5..a3348618 100644
--- a/opendc/api/v2/paths/pathId/endpoint.py
+++ b/opendc/api/v2/paths/pathId/endpoint.py
@@ -1,4 +1,4 @@
-from opendc.models.path import Path
+from opendc.models_old.path import Path
from opendc.util import exceptions
from opendc.util.rest import Response
diff --git a/opendc/api/v2/paths/pathId/sections/endpoint.py b/opendc/api/v2/paths/pathId/sections/endpoint.py
index a983ff1f..8f3e270b 100644
--- a/opendc/api/v2/paths/pathId/sections/endpoint.py
+++ b/opendc/api/v2/paths/pathId/sections/endpoint.py
@@ -1,5 +1,5 @@
-from opendc.models.path import Path
-from opendc.models.section import Section
+from opendc.models_old.path import Path
+from opendc.models_old.section import Section
from opendc.util import exceptions
from opendc.util.rest import Response