|
19 | 19 | from pynetbox.core.endpoint import DetailEndpoint, RODetailEndpoint
|
20 | 20 | from pynetbox.core.query import Request
|
21 | 21 | from pynetbox.core.response import JsonField, Record
|
22 |
| -from pynetbox.models.circuits import Circuits |
| 22 | +from pynetbox.models.circuits import Circuits, CircuitTerminations |
23 | 23 | from pynetbox.models.ipam import IpAddresses
|
24 | 24 |
|
25 | 25 |
|
26 | 26 | class TraceableRecord(Record):
|
27 | 27 | def _get_obj_class(self, url):
|
28 | 28 | uri_to_obj_class_map = {
|
| 29 | + "circuits/circuit-terminations": CircuitTerminations, |
29 | 30 | "dcim/cables": Cables,
|
| 31 | + "dcim/console-ports": ConsolePorts, |
| 32 | + "dcim/console-server-ports": ConsoleServerPorts, |
30 | 33 | "dcim/front-ports": FrontPorts,
|
31 | 34 | "dcim/interfaces": Interfaces,
|
| 35 | + "dcim/power-feeds": PowerFeeds, |
| 36 | + "dcim/power-outlets": PowerOutlets, |
| 37 | + "dcim/power-ports": PowerPorts, |
32 | 38 | "dcim/rear-ports": RearPorts,
|
33 | 39 | }
|
34 | 40 |
|
@@ -154,6 +160,10 @@ class Interfaces(TraceableRecord):
|
154 | 160 | interface_connection = InterfaceConnection
|
155 | 161 |
|
156 | 162 |
|
| 163 | +class PowerFeeds(TraceableRecord): |
| 164 | + pass |
| 165 | + |
| 166 | + |
157 | 167 | class PowerOutlets(TraceableRecord):
|
158 | 168 | device = Devices
|
159 | 169 |
|
|
0 commit comments