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

add geant_s_sid to the network api used by map

parent 5b9b2ddb
No related branches found
No related tags found
1 merge request!248add geant_s_sid to the network api used by map
Pipeline #88301 failed
This commit is part of merge request !248. Comments created here will be created in the context of that merge request.
...@@ -62,6 +62,7 @@ class IptrunkBlock(OrchestratorBaseModel): ...@@ -62,6 +62,7 @@ class IptrunkBlock(OrchestratorBaseModel):
iptrunk_capacity: str iptrunk_capacity: str
iptrunk_isis_metric: int iptrunk_isis_metric: int
iptrunk_sides: list[IptrunkSideBlock] iptrunk_sides: list[IptrunkSideBlock]
geant_s_sid: str
class IptrunkSchema(OrchestratorBaseModel): class IptrunkSchema(OrchestratorBaseModel):
...@@ -106,6 +107,7 @@ def network_topology() -> NetworkTopologyDomainModelSchema: ...@@ -106,6 +107,7 @@ def network_topology() -> NetworkTopologyDomainModelSchema:
"iptrunk_capacity": _calculate_iptrunk_capacity( "iptrunk_capacity": _calculate_iptrunk_capacity(
extended_model["iptrunk"]["iptrunk_sides"], extended_model["iptrunk"]["iptrunk_speed"] extended_model["iptrunk"]["iptrunk_sides"], extended_model["iptrunk"]["iptrunk_speed"]
), ),
"geant_s_sid": extended_model["iptrunk"]["geant_s_sid"],
"iptrunk_sides": [ "iptrunk_sides": [
{ {
"subscription_instance_id": side["subscription_instance_id"], "subscription_instance_id": side["subscription_instance_id"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment