Skip to content
Snippets Groups Projects
Commit 285e9068 authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Neda Moeini
Browse files

make iptrunk product block use the PhyPortCapacity enum

parent 87a1dc8a
No related branches found
No related tags found
1 merge request!83Clean up the repo a bit, and add some unit tests
...@@ -8,6 +8,7 @@ from orchestrator.forms.validators import UniqueConstrainedList ...@@ -8,6 +8,7 @@ from orchestrator.forms.validators import UniqueConstrainedList
from orchestrator.types import SubscriptionLifecycle, strEnum from orchestrator.types import SubscriptionLifecycle, strEnum
from pydantic import Field from pydantic import Field
from gso.products.product_blocks import PhyPortCapacity
from gso.products.product_blocks.router import RouterBlock, RouterBlockInactive, RouterBlockProvisioning from gso.products.product_blocks.router import RouterBlock, RouterBlockInactive, RouterBlockProvisioning
...@@ -58,7 +59,7 @@ class IptrunkBlockInactive( ...@@ -58,7 +59,7 @@ class IptrunkBlockInactive(
geant_s_sid: str | None = None geant_s_sid: str | None = None
iptrunk_description: str | None = None iptrunk_description: str | None = None
iptrunk_type: IptrunkType | None = None iptrunk_type: IptrunkType | None = None
iptrunk_speed: str | None = None iptrunk_speed: PhyPortCapacity | None = None
iptrunk_minimum_links: int | None = None iptrunk_minimum_links: int | None = None
iptrunk_isis_metric: int | None = None iptrunk_isis_metric: int | None = None
iptrunk_ipv4_network: ipaddress.IPv4Network | None = None iptrunk_ipv4_network: ipaddress.IPv4Network | None = None
...@@ -73,7 +74,7 @@ class IptrunkBlockProvisioning(IptrunkBlockInactive, lifecycle=[SubscriptionLife ...@@ -73,7 +74,7 @@ class IptrunkBlockProvisioning(IptrunkBlockInactive, lifecycle=[SubscriptionLife
geant_s_sid: str | None = None geant_s_sid: str | None = None
iptrunk_description: str | None = None iptrunk_description: str | None = None
iptrunk_type: IptrunkType | None = None iptrunk_type: IptrunkType | None = None
iptrunk_speed: str | None = None iptrunk_speed: PhyPortCapacity | None = None
iptrunk_minimum_links: int | None = None iptrunk_minimum_links: int | None = None
iptrunk_isis_metric: int | None = None iptrunk_isis_metric: int | None = None
iptrunk_ipv4_network: ipaddress.IPv4Network | None = None iptrunk_ipv4_network: ipaddress.IPv4Network | None = None
...@@ -92,7 +93,7 @@ class IptrunkBlock(IptrunkBlockProvisioning, lifecycle=[SubscriptionLifecycle.AC ...@@ -92,7 +93,7 @@ class IptrunkBlock(IptrunkBlockProvisioning, lifecycle=[SubscriptionLifecycle.AC
#: The type of trunk, can be either dark fibre or leased capacity. #: The type of trunk, can be either dark fibre or leased capacity.
iptrunk_type: IptrunkType iptrunk_type: IptrunkType
#: The speed of the trunk, measured per interface associated with it. #: The speed of the trunk, measured per interface associated with it.
iptrunk_speed: str # FIXME: should be of PhyPortCapacity type iptrunk_speed: PhyPortCapacity
#: The minimum amount of links the trunk should consist of. #: The minimum amount of links the trunk should consist of.
iptrunk_minimum_links: int iptrunk_minimum_links: int
#: The :term:`IS-IS` metric of this link #: The :term:`IS-IS` metric of this link
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment