mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
19 lines
529 B
Python
19 lines
529 B
Python
from netbox.api import OrderedDefaultRouter
|
|
from . import views
|
|
|
|
|
|
router = OrderedDefaultRouter()
|
|
router.APIRootView = views.VirtualizationRootView
|
|
|
|
# Clusters
|
|
router.register('cluster-types', views.ClusterTypeViewSet)
|
|
router.register('cluster-groups', views.ClusterGroupViewSet)
|
|
router.register('clusters', views.ClusterViewSet)
|
|
|
|
# VirtualMachines
|
|
router.register('virtual-machines', views.VirtualMachineViewSet)
|
|
router.register('interfaces', views.VMInterfaceViewSet)
|
|
|
|
app_name = 'virtualization-api'
|
|
urlpatterns = router.urls
|