-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test scripts and settings to netbox 3.3 (#508)
Update test scripts and settings to NetBox 3.3
- Loading branch information
Showing
11 changed files
with
224 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
from .circuits import Circuits, CircuitTerminations | ||
from .dcim import ( | ||
DeviceTypes, | ||
Devices, | ||
Interfaces, | ||
PowerOutlets, | ||
PowerPorts, | ||
ConsolePorts, | ||
ConsoleServerPorts, | ||
RackReservations, | ||
VirtualChassis, | ||
FrontPorts, | ||
RearPorts, | ||
Racks, | ||
Termination, | ||
Cables, | ||
) | ||
from .ipam import ( | ||
IpAddresses, | ||
Prefixes, | ||
Aggregates, | ||
Vlans, | ||
VlanGroups, | ||
) | ||
from .virtualization import VirtualMachines | ||
from .wireless import WirelessLans | ||
|
||
|
||
CONTENT_TYPE_MAPPER = { | ||
"circuits.circuit": Circuits, | ||
"circuits.circuittermination": CircuitTerminations, | ||
"dcim.cable": Cables, | ||
"dcim.cablepath": None, | ||
"dcim.cabletermination": Termination, | ||
"dcim.consoleport": ConsolePorts, | ||
"dcim.consoleporttemplate": None, | ||
"dcim.consoleserverport": ConsoleServerPorts, | ||
"dcim.consoleserverporttemplate": None, | ||
"dcim.device": Devices, | ||
"dcim.devicebay": None, | ||
"dcim.devicebaytemplate": None, | ||
"dcim.devicerole": None, | ||
"dcim.devicetype": DeviceTypes, | ||
"dcim.frontport": FrontPorts, | ||
"dcim.frontporttemplate": None, | ||
"dcim.interface": Interfaces, | ||
"dcim.interfacetemplate": None, | ||
"dcim.inventoryitem": None, | ||
"dcim.inventoryitemrole": None, | ||
"dcim.inventoryitemtemplate": None, | ||
"dcim.location": None, | ||
"dcim.manufacturer": None, | ||
"dcim.module": None, | ||
"dcim.modulebay": None, | ||
"dcim.modulebaytemplate": None, | ||
"dcim.moduletype": None, | ||
"dcim.platform": None, | ||
"dcim.powerfeed": None, | ||
"dcim.poweroutlet": PowerOutlets, | ||
"dcim.poweroutlettemplate": None, | ||
"dcim.powerpanel": None, | ||
"dcim.powerport": ConsolePorts, | ||
"dcim.powerporttemplate": None, | ||
"dcim.rack": Racks, | ||
"dcim.rackreservation": RackReservations, | ||
"dcim.rackrole": None, | ||
"dcim.rearport": RearPorts, | ||
"dcim.rearporttemplate": None, | ||
"dcim.region": None, | ||
"dcim.site": None, | ||
"dcim.sitegroup": None, | ||
"dcim.virtualchassis": VirtualChassis, | ||
"extras.configcontext": None, | ||
"extras.configrevision": None, | ||
"extras.customfield": None, | ||
"extras.customlink": None, | ||
"extras.exporttemplate": None, | ||
"extras.imageattachment": None, | ||
"extras.jobresult": None, | ||
"extras.journalentry": None, | ||
"extras.objectchange": None, | ||
"extras.report": None, | ||
"extras.script": None, | ||
"extras.tag": None, | ||
"extras.taggeditem": None, | ||
"extras.webhook": None, | ||
"ipam.aggregate": Aggregates, | ||
"ipam.ASN": None, | ||
"ipam.FHRPgroup": None, | ||
"ipam.FHRPgroupassignment": None, | ||
"ipam.IPaddress": IpAddresses, | ||
"ipam.IPrange": None, | ||
"ipam.L2VPN": None, | ||
"ipam.L2VPNtermination": None, | ||
"ipam.prefix": Prefixes, | ||
"ipam.RIR": None, | ||
"ipam.role": None, | ||
"ipam.routetarget": None, | ||
"ipam.service": None, | ||
"ipam.servicetemplate": None, | ||
"ipam.VLAN": Vlans, | ||
"ipam.VLANgroup": VlanGroups, | ||
"ipam.VRF": None, | ||
"tenancy.contact": None, | ||
"tenancy.contactassignment": None, | ||
"tenancy.contactgroup": None, | ||
"tenancy.contactrole": None, | ||
"tenancy.tenant": None, | ||
"tenancy.tenantgroup": None, | ||
"virtualization.cluster": None, | ||
"virtualization.clustergroup": None, | ||
"virtualization.clustertype": None, | ||
"virtualization.interface": None, | ||
"virtualization.virtualmachine": VirtualMachines, | ||
"wireless.WirelessLAN": WirelessLans, | ||
"wireless.WirelessLANGroup": None, | ||
"wireless.wirelesslink": None, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
black~=22.0 | ||
pytest==6.2.* | ||
pytest-docker==0.10.* | ||
black~=22.10 | ||
pytest==7.1.* | ||
pytest-docker==1.0.* | ||
PyYAML==6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
setup( | ||
name="pynetbox", | ||
description="NetBox API client library", | ||
url="https://github.com/digitalocean/pynetbox", | ||
url="https://github.com/netbox-community/netbox", | ||
author="Zach Moody", | ||
author_email="[email protected]", | ||
license="Apache2", | ||
|
@@ -20,6 +20,8 @@ | |
"Intended Audience :: Developers", | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.