Skip to content
Snippets Groups Projects
Commit e11f4b17 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand :lion_face:
Browse files

added networks module to docs

parent daed2912
No related branches found
No related tags found
1 merge request!187add topology rest api
Pipeline #86075 passed
......@@ -15,3 +15,4 @@ Submodules
imports
subscriptions
processes
networks
``gso.api.v1.subscriptions``
============================
.. automodule:: gso.api.v1.networks
:members:
:show-inheritance:
......@@ -11,7 +11,7 @@ from starlette import status
from gso.products.product_blocks.iptrunk import PhysicalPortCapacity
from gso.services.subscriptions import get_active_iptrunk_subscriptions
router = APIRouter(prefix="/networks", tags=["Network"],)
router = APIRouter(prefix="/networks", tags=["Network"])
class RouterBlock(OrchestratorBaseModel):
......@@ -59,7 +59,7 @@ def _calculate_iptrunk_capacity(iptrunk_sides: list, iptrunk_speed: PhysicalPort
return f"{capacity}G"
@router.get("/topology", status_code=status.HTTP_200_OK, response_model=NetworkTopologyDomainModelSchema,)
@router.get("/topology", status_code=status.HTTP_200_OK, response_model=NetworkTopologyDomainModelSchema)
def network_topology() -> NetworkTopologyDomainModelSchema:
"""Retrieve all active or provisioning IP trunk subscriptions."""
topology: dict = {"iptrunks": []}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment