|
| 1 | +from .circuits import Circuits, CircuitTerminations |
| 2 | +from .dcim import ( |
| 3 | + DeviceTypes, |
| 4 | + Devices, |
| 5 | + Interfaces, |
| 6 | + PowerOutlets, |
| 7 | + PowerPorts, |
| 8 | + ConsolePorts, |
| 9 | + ConsoleServerPorts, |
| 10 | + RackReservations, |
| 11 | + VirtualChassis, |
| 12 | + FrontPorts, |
| 13 | + RearPorts, |
| 14 | + Racks, |
| 15 | + Termination, |
| 16 | + Cables, |
| 17 | +) |
| 18 | +from .ipam import ( |
| 19 | + IpAddresses, |
| 20 | + Prefixes, |
| 21 | + Aggregates, |
| 22 | + Vlans, |
| 23 | + VlanGroups, |
| 24 | +) |
| 25 | +from .virtualization import VirtualMachines |
| 26 | +from .wireless import WirelessLans |
| 27 | + |
| 28 | + |
| 29 | +CONTENT_TYPE_MAPPER = { |
| 30 | + "circuits.circuit": Circuits, |
| 31 | + "circuits.circuittermination": CircuitTerminations, |
| 32 | + "dcim.cable": Cables, |
| 33 | + "dcim.cablepath": None, |
| 34 | + "dcim.cabletermination": Termination, |
| 35 | + "dcim.consoleport": ConsolePorts, |
| 36 | + "dcim.consoleporttemplate": None, |
| 37 | + "dcim.consoleserverport": ConsoleServerPorts, |
| 38 | + "dcim.consoleserverporttemplate": None, |
| 39 | + "dcim.device": Devices, |
| 40 | + "dcim.devicebay": None, |
| 41 | + "dcim.devicebaytemplate": None, |
| 42 | + "dcim.devicerole": None, |
| 43 | + "dcim.devicetype": DeviceTypes, |
| 44 | + "dcim.frontport": FrontPorts, |
| 45 | + "dcim.frontporttemplate": None, |
| 46 | + "dcim.interface": Interfaces, |
| 47 | + "dcim.interfacetemplate": None, |
| 48 | + "dcim.inventoryitem": None, |
| 49 | + "dcim.inventoryitemrole": None, |
| 50 | + "dcim.inventoryitemtemplate": None, |
| 51 | + "dcim.location": None, |
| 52 | + "dcim.manufacturer": None, |
| 53 | + "dcim.module": None, |
| 54 | + "dcim.modulebay": None, |
| 55 | + "dcim.modulebaytemplate": None, |
| 56 | + "dcim.moduletype": None, |
| 57 | + "dcim.platform": None, |
| 58 | + "dcim.powerfeed": None, |
| 59 | + "dcim.poweroutlet": PowerOutlets, |
| 60 | + "dcim.poweroutlettemplate": None, |
| 61 | + "dcim.powerpanel": None, |
| 62 | + "dcim.powerport": ConsolePorts, |
| 63 | + "dcim.powerporttemplate": None, |
| 64 | + "dcim.rack": Racks, |
| 65 | + "dcim.rackreservation": RackReservations, |
| 66 | + "dcim.rackrole": None, |
| 67 | + "dcim.rearport": RearPorts, |
| 68 | + "dcim.rearporttemplate": None, |
| 69 | + "dcim.region": None, |
| 70 | + "dcim.site": None, |
| 71 | + "dcim.sitegroup": None, |
| 72 | + "dcim.virtualchassis": VirtualChassis, |
| 73 | + "extras.configcontext": None, |
| 74 | + "extras.configrevision": None, |
| 75 | + "extras.customfield": None, |
| 76 | + "extras.customlink": None, |
| 77 | + "extras.exporttemplate": None, |
| 78 | + "extras.imageattachment": None, |
| 79 | + "extras.jobresult": None, |
| 80 | + "extras.journalentry": None, |
| 81 | + "extras.objectchange": None, |
| 82 | + "extras.report": None, |
| 83 | + "extras.script": None, |
| 84 | + "extras.tag": None, |
| 85 | + "extras.taggeditem": None, |
| 86 | + "extras.webhook": None, |
| 87 | + "ipam.aggregate": Aggregates, |
| 88 | + "ipam.ASN": None, |
| 89 | + "ipam.FHRPgroup": None, |
| 90 | + "ipam.FHRPgroupassignment": None, |
| 91 | + "ipam.IPaddress": IpAddresses, |
| 92 | + "ipam.IPrange": None, |
| 93 | + "ipam.L2VPN": None, |
| 94 | + "ipam.L2VPNtermination": None, |
| 95 | + "ipam.prefix": Prefixes, |
| 96 | + "ipam.RIR": None, |
| 97 | + "ipam.role": None, |
| 98 | + "ipam.routetarget": None, |
| 99 | + "ipam.service": None, |
| 100 | + "ipam.servicetemplate": None, |
| 101 | + "ipam.VLAN": Vlans, |
| 102 | + "ipam.VLANgroup": VlanGroups, |
| 103 | + "ipam.VRF": None, |
| 104 | + "tenancy.contact": None, |
| 105 | + "tenancy.contactassignment": None, |
| 106 | + "tenancy.contactgroup": None, |
| 107 | + "tenancy.contactrole": None, |
| 108 | + "tenancy.tenant": None, |
| 109 | + "tenancy.tenantgroup": None, |
| 110 | + "virtualization.cluster": None, |
| 111 | + "virtualization.clustergroup": None, |
| 112 | + "virtualization.clustertype": None, |
| 113 | + "virtualization.interface": None, |
| 114 | + "virtualization.virtualmachine": VirtualMachines, |
| 115 | + "wireless.WirelessLAN": WirelessLans, |
| 116 | + "wireless.WirelessLANGroup": None, |
| 117 | + "wireless.wirelesslink": None, |
| 118 | +} |
0 commit comments