Page MenuHomePhabricator
Paste P8628

tables to dump from Netbox
ActivePublic

Authored by crusnov on Jun 18 2019, 6:10 PM.
# These define the full path name for the specified object (basically the second argument to the handler function).
TABLE_ALIASES = {
'sites': 'dcim.sites',
'regions': 'dcim.regions',
'tenants': 'tenancy.tenants',
'racks': 'dcim.racks',
'rack_groups': 'dcim.rack_groups',
'devices': 'dcim.devices',
# handle_custom_fields expects the parent table name as its argument.
'devices_custom_fields': 'dcim.devices',
'device_roles': 'dcim.device_roles',
'platforms': 'dcim.platforms',
'device_types': 'dcim.device_types',
'manufacturers': 'dcim.manufacturers',
'cables': 'dcim.cables',
'inventory_items': 'dcim.inventory_items',
'ip_addresses': 'ipam.ip_addresses',
'prefixes': 'ipam.prefixes',
'agregates': 'ipam.agregates',
'rirs': 'ipam.rirs',
'vlans': 'ipam.vlans',
'vlan_groups': 'ipam.vlan_groups',
'virtual_machines': 'virtualization.virtual_machines',
# handle_custom_fields expects the parent table name as its argument.
'virtual_machines_custom_fields': 'virtualization.virtual_machines',
'clusters': 'virtualization.clusters',
'cluster_types': 'virtualization.cluster_types',
'cluster_groups': 'virtualization.cluster_groups',
'circuits': 'circuits.circuits',
'circuit_types': 'circuits.circuit_types',
'providers': 'circuits.providers',
}

Event Timeline

crusnov created this paste.Jun 18 2019, 6:10 PM